2024-02-15 17:18:14 -08:00

9721 lines
543 KiB
Swift

// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1
// swiftlint:disable all
import Foundation
@_spi(WinRTInternal) @_spi(WinRTImplements) import UWP
@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation
import CWinRT
private var IID___x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurface: WindowsFoundation.IID {
.init(Data1: 0xc89efa6d, Data2: 0x6f22, Data3: 0x5e04, Data4: ( 0x80,0x59,0xb5,0x62,0x8e,0x3f,0x01,0x80 ))// c89efa6d-6f22-5e04-8059-b5628e3f0180
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurface {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceVTable: __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceVtbl = .init(
QueryInterface: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.addRef($0) },
Release: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let asyncInfo: WindowsFoundation.AnyIAsyncOperation<WinAppSDK.AnyICompositionSurface?>? = WinAppSDK.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.unwrapFrom(abi: ComPtr($1))
let asyncStatus: WindowsFoundation.AsyncStatus = $2
__unwrapped__instance(asyncInfo, asyncStatus)
return S_OK
}
)
typealias __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceBridge>
internal class AsyncOperationCompletedHandlerICompositionSurface: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurface }
internal func InvokeImpl(_ asyncInfo: WindowsFoundation.AnyIAsyncOperation<WinAppSDK.AnyICompositionSurface?>?, _ asyncStatus: WindowsFoundation.AsyncStatus) throws {
let asyncInfoWrapper = WinAppSDK.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper(asyncInfo)
let _asyncInfo = try! asyncInfoWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurface.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _asyncInfo, asyncStatus))
}
}
}
internal class __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.AsyncOperationCompletedHandler<WinAppSDK.AnyICompositionSurface?>
internal typealias CABI = __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurface
internal typealias SwiftABI = WinAppSDK.AsyncOperationCompletedHandlerICompositionSurface
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (asyncInfo, asyncStatus) in
try! _default.InvokeImpl(asyncInfo, asyncStatus)
}
return handler
}
}
private var IID___x_ABI_C__FIIterable_1_float: WindowsFoundation.IID {
.init(Data1: 0xb01bee51, Data2: 0x063a, Data3: 0x5fda, Data4: ( 0xbd,0x72,0xd7,0x66,0x37,0xbb,0x8c,0xb8 ))// b01bee51-063a-5fda-bd72-d76637bb8cb8
}
internal var __x_ABI_C__FIIterable_1_floatVTable: __x_ABI_C__FIIterable_1_floatVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterable_1_floatWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterable_1_floatWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterable_1_floatWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1_floatWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterable`1<Float>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
First: {
guard let __unwrapped__instance = __x_ABI_C__FIIterable_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.first()
let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1_floatWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
}
)
typealias __x_ABI_C__FIIterable_1_floatWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterable_1_floatBridge>
internal class IIterableFloat: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1_float }
internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator<Float>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterable_1_float.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIIterator_1_floatWrapper.unwrapFrom(abi: result)
}
}
internal enum __x_ABI_C__FIIterable_1_floatBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterable_1_float
internal typealias SwiftABI = IIterableFloat
internal typealias SwiftProjection = WindowsFoundation.AnyIIterable<Float>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterable_1_floatImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1_floatVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterable_1_floatImpl : IIterable, AbiInterfaceImpl {
typealias T = Float
typealias Bridge = __x_ABI_C__FIIterable_1_floatBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<Float>? {
try! _default.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimation: WindowsFoundation.IID {
.init(Data1: 0x1def86ce, Data2: 0x4be1, Data3: 0x5ccc, Data4: ( 0xba,0x28,0x05,0xd7,0x46,0xd9,0xbb,0x8d ))// 1def86ce-4be1-5ccc-ba28-05d746d9bb8d
}
internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterable`1<Microsoft.UI.Composition.CompositionAnimation>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
First: {
guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.first()
let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
}
)
typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationBridge>
internal class IIterableCompositionAnimation: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimation }
internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator<WinAppSDK.CompositionAnimation?>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimation.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.unwrapFrom(abi: result)
}
}
internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimation
internal typealias SwiftABI = IIterableCompositionAnimation
internal typealias SwiftProjection = WindowsFoundation.AnyIIterable<WinAppSDK.CompositionAnimation?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationImpl : IIterable, AbiInterfaceImpl {
typealias T = WinAppSDK.CompositionAnimation?
typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WinAppSDK.CompositionAnimation?>? {
try! _default.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop: WindowsFoundation.IID {
.init(Data1: 0x0a1f6ff8, Data2: 0x2211, Data3: 0x5f18, Data4: ( 0xb9,0x59,0x2b,0xc4,0x04,0x31,0xfd,0x37 ))// 0a1f6ff8-2211-5f18-b959-2bc40431fd37
}
internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterable`1<Microsoft.UI.Composition.CompositionColorGradientStop>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
First: {
guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.first()
let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
}
)
typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopBridge>
internal class IIterableCompositionColorGradientStop: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop }
internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator<WinAppSDK.CompositionColorGradientStop?>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.unwrapFrom(abi: result)
}
}
internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop
internal typealias SwiftABI = IIterableCompositionColorGradientStop
internal typealias SwiftProjection = WindowsFoundation.AnyIIterable<WinAppSDK.CompositionColorGradientStop?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopImpl : IIterable, AbiInterfaceImpl {
typealias T = WinAppSDK.CompositionColorGradientStop?
typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WinAppSDK.CompositionColorGradientStop?>? {
try! _default.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCaster: WindowsFoundation.IID {
.init(Data1: 0x7cc33343, Data2: 0x15e6, Data3: 0x5a20, Data4: ( 0xac,0xbd,0xa2,0xaf,0x4c,0xb2,0x16,0xa3 ))// 7cc33343-15e6-5a20-acbd-a2af4cb216a3
}
internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterable`1<Microsoft.UI.Composition.CompositionProjectedShadowCaster>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
First: {
guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.first()
let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
}
)
typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterBridge>
internal class IIterableCompositionProjectedShadowCaster: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCaster }
internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator<WinAppSDK.CompositionProjectedShadowCaster?>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCaster.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.unwrapFrom(abi: result)
}
}
internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCaster
internal typealias SwiftABI = IIterableCompositionProjectedShadowCaster
internal typealias SwiftProjection = WindowsFoundation.AnyIIterable<WinAppSDK.CompositionProjectedShadowCaster?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterImpl : IIterable, AbiInterfaceImpl {
typealias T = WinAppSDK.CompositionProjectedShadowCaster?
typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WinAppSDK.CompositionProjectedShadowCaster?>? {
try! _default.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiver: WindowsFoundation.IID {
.init(Data1: 0x89fadb12, Data2: 0xce6b, Data3: 0x5056, Data4: ( 0xb3,0x4b,0x42,0xcf,0x64,0x63,0xa8,0x7b ))// 89fadb12-ce6b-5056-b34b-42cf6463a87b
}
internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterable`1<Microsoft.UI.Composition.CompositionProjectedShadowReceiver>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
First: {
guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.first()
let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
}
)
typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverBridge>
internal class IIterableCompositionProjectedShadowReceiver: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiver }
internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator<WinAppSDK.CompositionProjectedShadowReceiver?>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiver.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.unwrapFrom(abi: result)
}
}
internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiver
internal typealias SwiftABI = IIterableCompositionProjectedShadowReceiver
internal typealias SwiftProjection = WindowsFoundation.AnyIIterable<WinAppSDK.CompositionProjectedShadowReceiver?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverImpl : IIterable, AbiInterfaceImpl {
typealias T = WinAppSDK.CompositionProjectedShadowReceiver?
typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WinAppSDK.CompositionProjectedShadowReceiver?>? {
try! _default.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape: WindowsFoundation.IID {
.init(Data1: 0xc9e6839b, Data2: 0x5066, Data3: 0x5658, Data4: ( 0xaf,0xc8,0x57,0xd5,0x0f,0x1b,0xde,0x3f ))// c9e6839b-5066-5658-afc8-57d50f1bde3f
}
internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterable`1<Microsoft.UI.Composition.CompositionShape>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
First: {
guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.first()
let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
}
)
typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeBridge>
internal class IIterableCompositionShape: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape }
internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator<WinAppSDK.CompositionShape?>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.unwrapFrom(abi: result)
}
}
internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape
internal typealias SwiftABI = IIterableCompositionShape
internal typealias SwiftProjection = WindowsFoundation.AnyIIterable<WinAppSDK.CompositionShape?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeImpl : IIterable, AbiInterfaceImpl {
typealias T = WinAppSDK.CompositionShape?
typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WinAppSDK.CompositionShape?>? {
try! _default.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValue: WindowsFoundation.IID {
.init(Data1: 0xbfe6e6f0, Data2: 0x29d3, Data3: 0x5d7b, Data4: ( 0xac,0x52,0x9f,0xf2,0xf2,0xfa,0xa5,0xc1 ))// bfe6e6f0-29d3-5d7b-ac52-9ff2f2faa5c1
}
internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterable`1<Microsoft.UI.Composition.Interactions.CompositionConditionalValue>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
First: {
guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.first()
let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
}
)
typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueBridge>
internal class IIterableCompositionConditionalValue: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValue }
internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator<WinAppSDK.CompositionConditionalValue?>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValue.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.unwrapFrom(abi: result)
}
}
internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValue
internal typealias SwiftABI = IIterableCompositionConditionalValue
internal typealias SwiftProjection = WindowsFoundation.AnyIIterable<WinAppSDK.CompositionConditionalValue?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueImpl : IIterable, AbiInterfaceImpl {
typealias T = WinAppSDK.CompositionConditionalValue?
typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WinAppSDK.CompositionConditionalValue?>? {
try! _default.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSource: WindowsFoundation.IID {
.init(Data1: 0xef893131, Data2: 0x12b4, Data3: 0x5e2d, Data4: ( 0x9a,0x98,0xb0,0x83,0xab,0x21,0x89,0x18 ))// ef893131-12b4-5e2d-9a98-b083ab218918
}
internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterable`1<Microsoft.UI.Composition.Interactions.ICompositionInteractionSource>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
First: {
guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.first()
let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
}
)
typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceBridge>
internal class IIterableICompositionInteractionSource: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSource }
internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator<WinAppSDK.AnyICompositionInteractionSource?>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSource.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.unwrapFrom(abi: result)
}
}
internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSource
internal typealias SwiftABI = IIterableICompositionInteractionSource
internal typealias SwiftProjection = WindowsFoundation.AnyIIterable<WinAppSDK.AnyICompositionInteractionSource?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceImpl : IIterable, AbiInterfaceImpl {
typealias T = WinAppSDK.AnyICompositionInteractionSource?
typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WinAppSDK.AnyICompositionInteractionSource?>? {
try! _default.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifier: WindowsFoundation.IID {
.init(Data1: 0xc2ab0a9f, Data2: 0x2518, Data3: 0x5c81, Data4: ( 0x9a,0xda,0x72,0x16,0x9f,0x0f,0x00,0xa3 ))// c2ab0a9f-2518-5c81-9ada-72169f0f00a3
}
internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterable`1<Microsoft.UI.Composition.Interactions.InteractionTrackerInertiaModifier>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
First: {
guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.first()
let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
}
)
typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierBridge>
internal class IIterableInteractionTrackerInertiaModifier: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifier }
internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator<WinAppSDK.InteractionTrackerInertiaModifier?>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifier.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.unwrapFrom(abi: result)
}
}
internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifier
internal typealias SwiftABI = IIterableInteractionTrackerInertiaModifier
internal typealias SwiftProjection = WindowsFoundation.AnyIIterable<WinAppSDK.InteractionTrackerInertiaModifier?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierImpl : IIterable, AbiInterfaceImpl {
typealias T = WinAppSDK.InteractionTrackerInertiaModifier?
typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WinAppSDK.InteractionTrackerInertiaModifier?>? {
try! _default.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifier: WindowsFoundation.IID {
.init(Data1: 0x6a242990, Data2: 0x7db7, Data3: 0x57bd, Data4: ( 0x8d,0x01,0xe2,0x0b,0x65,0x81,0x32,0x0a ))// 6a242990-7db7-57bd-8d01-e20b6581320a
}
internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterable`1<Microsoft.UI.Composition.Interactions.InteractionTrackerVector2InertiaModifier>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
First: {
guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.first()
let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
}
)
typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierBridge>
internal class IIterableInteractionTrackerVector2InertiaModifier: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifier }
internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator<WinAppSDK.InteractionTrackerVector2InertiaModifier?>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifier.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.unwrapFrom(abi: result)
}
}
internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifier
internal typealias SwiftABI = IIterableInteractionTrackerVector2InertiaModifier
internal typealias SwiftProjection = WindowsFoundation.AnyIIterable<WinAppSDK.InteractionTrackerVector2InertiaModifier?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierImpl : IIterable, AbiInterfaceImpl {
typealias T = WinAppSDK.InteractionTrackerVector2InertiaModifier?
typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WinAppSDK.InteractionTrackerVector2InertiaModifier?>? {
try! _default.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisual: WindowsFoundation.IID {
.init(Data1: 0x1d4a1b0e, Data2: 0xa493, Data3: 0x58b9, Data4: ( 0x80,0xf4,0x20,0x0c,0xd0,0x44,0x00,0xf9 ))// 1d4a1b0e-a493-58b9-80f4-200cd04400f9
}
internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterable`1<Microsoft.UI.Composition.Visual>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
First: {
guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.first()
let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
}
)
typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualBridge>
internal class IIterableVisual: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisual }
internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator<WinAppSDK.Visual?>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisual.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.unwrapFrom(abi: result)
}
}
internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisual
internal typealias SwiftABI = IIterableVisual
internal typealias SwiftProjection = WindowsFoundation.AnyIIterable<WinAppSDK.Visual?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualImpl : IIterable, AbiInterfaceImpl {
typealias T = WinAppSDK.Visual?
typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WinAppSDK.Visual?>? {
try! _default.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint: WindowsFoundation.IID {
.init(Data1: 0x645acc33, Data2: 0xffce, Data3: 0x5ad3, Data4: ( 0xbe,0x2b,0xc4,0x9b,0x9c,0x27,0xc3,0x5d ))// 645acc33-ffce-5ad3-be2b-c49b9c27c35d
}
internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterable`1<Microsoft.UI.Input.PointerPoint>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
First: {
guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.first()
let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
}
)
typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointBridge>
internal class IIterablePointerPoint: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint }
internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator<WinAppSDK.PointerPoint?>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.unwrapFrom(abi: result)
}
}
internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint
internal typealias SwiftABI = IIterablePointerPoint
internal typealias SwiftProjection = WindowsFoundation.AnyIIterable<WinAppSDK.PointerPoint?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointImpl : IIterable, AbiInterfaceImpl {
typealias T = WinAppSDK.PointerPoint?
typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WinAppSDK.PointerPoint?>? {
try! _default.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea: WindowsFoundation.IID {
.init(Data1: 0xfb253085, Data2: 0x6cfc, Data3: 0x5fa6, Data4: ( 0x94,0x8e,0x97,0x38,0x3f,0x5b,0xe3,0x6c ))// fb253085-6cfc-5fa6-948e-97383f5be36c
}
internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterable`1<Microsoft.UI.Windowing.DisplayArea>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
First: {
guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.first()
let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
}
)
typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaBridge>
internal class IIterableDisplayArea: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea }
internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator<WinAppSDK.DisplayArea?>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.unwrapFrom(abi: result)
}
}
internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea
internal typealias SwiftABI = IIterableDisplayArea
internal typealias SwiftProjection = WindowsFoundation.AnyIIterable<WinAppSDK.DisplayArea?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaImpl : IIterable, AbiInterfaceImpl {
typealias T = WinAppSDK.DisplayArea?
typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WinAppSDK.DisplayArea?>? {
try! _default.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance: WindowsFoundation.IID {
.init(Data1: 0x46dd4ef2, Data2: 0xc3a5, Data3: 0x5a9f, Data4: ( 0xb7,0x2d,0x8f,0x08,0x36,0xbe,0x42,0x4a ))// 46dd4ef2-c3a5-5a9f-b72d-8f0836be424a
}
internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterable`1<Microsoft.Windows.AppLifecycle.AppInstance>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
First: {
guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.first()
let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
}
)
typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceBridge>
internal class IIterableAppInstance: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance }
internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator<WinAppSDK.AppInstance?>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.unwrapFrom(abi: result)
}
}
internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance
internal typealias SwiftABI = IIterableAppInstance
internal typealias SwiftProjection = WindowsFoundation.AnyIIterable<WinAppSDK.AppInstance?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceImpl : IIterable, AbiInterfaceImpl {
typealias T = WinAppSDK.AppInstance?
typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WinAppSDK.AppInstance?>? {
try! _default.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterable_1_HSTRING: WindowsFoundation.IID {
.init(Data1: 0xe2fcc7c1, Data2: 0x3bfc, Data3: 0x5a0b, Data4: ( 0xb2,0xb0,0x72,0xe7,0x69,0xd1,0xcb,0x7e ))// e2fcc7c1-3bfc-5a0b-b2b0-72e769d1cb7e
}
internal var __x_ABI_C__FIIterable_1_HSTRINGVTable: __x_ABI_C__FIIterable_1_HSTRINGVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterable_1_HSTRINGWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterable_1_HSTRINGWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterable_1_HSTRINGWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1_HSTRINGWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterable`1<String>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
First: {
guard let __unwrapped__instance = __x_ABI_C__FIIterable_1_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.first()
let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1_HSTRINGWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
}
)
typealias __x_ABI_C__FIIterable_1_HSTRINGWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterable_1_HSTRINGBridge>
internal class IIterableString: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1_HSTRING }
internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator<String>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterable_1_HSTRING.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIIterator_1_HSTRINGWrapper.unwrapFrom(abi: result)
}
}
internal enum __x_ABI_C__FIIterable_1_HSTRINGBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterable_1_HSTRING
internal typealias SwiftABI = IIterableString
internal typealias SwiftProjection = WindowsFoundation.AnyIIterable<String>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterable_1_HSTRINGImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1_HSTRINGVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterable_1_HSTRINGImpl : IIterable, AbiInterfaceImpl {
typealias T = String
typealias Bridge = __x_ABI_C__FIIterable_1_HSTRINGBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<String>? {
try! _default.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase: WindowsFoundation.IID {
.init(Data1: 0x999d6f68, Data2: 0xb74e, Data3: 0x5e06, Data4: ( 0xa7,0x98,0xd2,0x54,0xc4,0x89,0x56,0x70 ))// 999d6f68-b74e-5e06-a798-d254c4895670
}
internal var __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVTable: __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterable`1<Windows.Foundation.Collections.IKeyValuePair`2<String, Microsoft.UI.Composition.ICompositionAnimationBase>>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
First: {
guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.first()
let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
}
)
typealias __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge>
internal class IIterableIKeyValuePairString_ICompositionAnimationBase: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase }
internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator<WindowsFoundation.AnyIKeyValuePair<String, WinAppSDK.AnyICompositionAnimationBase?>?>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.unwrapFrom(abi: result)
}
}
internal enum __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase
internal typealias SwiftABI = IIterableIKeyValuePairString_ICompositionAnimationBase
internal typealias SwiftProjection = WindowsFoundation.AnyIIterable<WindowsFoundation.AnyIKeyValuePair<String, WinAppSDK.AnyICompositionAnimationBase?>?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseImpl : IIterable, AbiInterfaceImpl {
typealias T = WindowsFoundation.AnyIKeyValuePair<String, WinAppSDK.AnyICompositionAnimationBase?>?
typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WindowsFoundation.AnyIKeyValuePair<String, WinAppSDK.AnyICompositionAnimationBase?>?>? {
try! _default.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING: WindowsFoundation.IID {
.init(Data1: 0xe9bdaaf0, Data2: 0xcbf6, Data3: 0x5c72, Data4: ( 0xbe,0x90,0x29,0xcb,0xf3,0xa1,0x31,0x9b ))// e9bdaaf0-cbf6-5c72-be90-29cbf3a1319b
}
internal var __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGVTable: __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterable`1<Windows.Foundation.Collections.IKeyValuePair`2<String, String>>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
First: {
guard let __unwrapped__instance = __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.first()
let resultWrapper = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
}
)
typealias __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGBridge>
internal class IIterableIKeyValuePairString_String: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING }
internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator<WindowsFoundation.AnyIKeyValuePair<String, String>?>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.unwrapFrom(abi: result)
}
}
internal enum __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING
internal typealias SwiftABI = IIterableIKeyValuePairString_String
internal typealias SwiftProjection = WindowsFoundation.AnyIIterable<WindowsFoundation.AnyIKeyValuePair<String, String>?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGImpl : IIterable, AbiInterfaceImpl {
typealias T = WindowsFoundation.AnyIKeyValuePair<String, String>?
typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterable-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WindowsFoundation.AnyIKeyValuePair<String, String>?>? {
try! _default.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterator_1_float: WindowsFoundation.IID {
.init(Data1: 0x42614e61, Data2: 0xb0aa, Data3: 0x5e72, Data4: ( 0x93,0x54,0x27,0x71,0xdb,0x20,0xb7,0xa8 ))// 42614e61-b0aa-5e72-9354-2771db20b7a8
}
internal var __x_ABI_C__FIIterator_1_floatVTable: __x_ABI_C__FIIterator_1_floatVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterator_1_floatWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterator_1_floatWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterator_1_floatWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1_floatWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterator`1<Float>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Current: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.current
$1?.initialize(to: result)
return S_OK
},
get_HasCurrent: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.hasCurrent
$1?.initialize(to: .init(from: result))
return S_OK
},
MoveNext: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.moveNext()
$1?.initialize(to: .init(from: result))
return S_OK
},
GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIIterator_1_floatWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterator_1_floatBridge>
internal class IIteratorFloat: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1_float }
internal func get_CurrentImpl() throws -> Float {
var result: FLOAT = 0.0
_ = try perform(as: __x_ABI_C__FIIterator_1_float.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &result))
}
return result
}
internal func get_HasCurrentImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1_float.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result))
}
return .init(from: result)
}
internal func MoveNextImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1_float.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result))
}
return .init(from: result)
}
}
internal enum __x_ABI_C__FIIterator_1_floatBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterator_1_float
internal typealias SwiftABI = IIteratorFloat
internal typealias SwiftProjection = WindowsFoundation.AnyIIterator<Float>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterator_1_floatImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1_floatVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterator_1_floatImpl : IIterator, AbiInterfaceImpl {
typealias T = Float
typealias Bridge = __x_ABI_C__FIIterator_1_floatBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext)
fileprivate func moveNext() -> Bool {
try! _default.MoveNextImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current)
fileprivate var current : Float {
get { try! _default.get_CurrentImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent)
fileprivate var hasCurrent : Bool {
get { try! _default.get_HasCurrentImpl() }
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimation: WindowsFoundation.IID {
.init(Data1: 0x3094fcbe, Data2: 0x7d8f, Data3: 0x5bb0, Data4: ( 0xbf,0x52,0x08,0x5b,0xce,0xe7,0x64,0x96 ))// 3094fcbe-7d8f-5bb0-bf52-085bcee76496
}
internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterator`1<Microsoft.UI.Composition.CompositionAnimation>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Current: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.current
result?.copyTo($1)
return S_OK
},
get_HasCurrent: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.hasCurrent
$1?.initialize(to: .init(from: result))
return S_OK
},
MoveNext: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.moveNext()
$1?.initialize(to: .init(from: result))
return S_OK
},
GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationBridge>
internal class IIteratorCompositionAnimation: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimation }
internal func get_CurrentImpl() throws -> WinAppSDK.CompositionAnimation? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimation.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi))
}
}
return .from(abi: result)
}
internal func get_HasCurrentImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimation.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result))
}
return .init(from: result)
}
internal func MoveNextImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimation.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result))
}
return .init(from: result)
}
}
internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimation
internal typealias SwiftABI = IIteratorCompositionAnimation
internal typealias SwiftProjection = WindowsFoundation.AnyIIterator<WinAppSDK.CompositionAnimation?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationImpl : IIterator, AbiInterfaceImpl {
typealias T = WinAppSDK.CompositionAnimation?
typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionAnimationBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext)
fileprivate func moveNext() -> Bool {
try! _default.MoveNextImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current)
fileprivate var current : WinAppSDK.CompositionAnimation? {
get { try! _default.get_CurrentImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent)
fileprivate var hasCurrent : Bool {
get { try! _default.get_HasCurrentImpl() }
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop: WindowsFoundation.IID {
.init(Data1: 0x5865f61c, Data2: 0x2bca, Data3: 0x5f80, Data4: ( 0x96,0x8a,0x8e,0x06,0xbd,0xc2,0x8c,0xb0 ))// 5865f61c-2bca-5f80-968a-8e06bdc28cb0
}
internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterator`1<Microsoft.UI.Composition.CompositionColorGradientStop>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Current: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.current
result?.copyTo($1)
return S_OK
},
get_HasCurrent: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.hasCurrent
$1?.initialize(to: .init(from: result))
return S_OK
},
MoveNext: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.moveNext()
$1?.initialize(to: .init(from: result))
return S_OK
},
GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopBridge>
internal class IIteratorCompositionColorGradientStop: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop }
internal func get_CurrentImpl() throws -> WinAppSDK.CompositionColorGradientStop? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi))
}
}
return .from(abi: result)
}
internal func get_HasCurrentImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result))
}
return .init(from: result)
}
internal func MoveNextImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result))
}
return .init(from: result)
}
}
internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop
internal typealias SwiftABI = IIteratorCompositionColorGradientStop
internal typealias SwiftProjection = WindowsFoundation.AnyIIterator<WinAppSDK.CompositionColorGradientStop?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopImpl : IIterator, AbiInterfaceImpl {
typealias T = WinAppSDK.CompositionColorGradientStop?
typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext)
fileprivate func moveNext() -> Bool {
try! _default.MoveNextImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current)
fileprivate var current : WinAppSDK.CompositionColorGradientStop? {
get { try! _default.get_CurrentImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent)
fileprivate var hasCurrent : Bool {
get { try! _default.get_HasCurrentImpl() }
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCaster: WindowsFoundation.IID {
.init(Data1: 0x1ac58905, Data2: 0x0d81, Data3: 0x581d, Data4: ( 0xb7,0x18,0x80,0x12,0x97,0x56,0x8e,0xc1 ))// 1ac58905-0d81-581d-b718-801297568ec1
}
internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterator`1<Microsoft.UI.Composition.CompositionProjectedShadowCaster>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Current: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.current
result?.copyTo($1)
return S_OK
},
get_HasCurrent: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.hasCurrent
$1?.initialize(to: .init(from: result))
return S_OK
},
MoveNext: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.moveNext()
$1?.initialize(to: .init(from: result))
return S_OK
},
GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterBridge>
internal class IIteratorCompositionProjectedShadowCaster: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCaster }
internal func get_CurrentImpl() throws -> WinAppSDK.CompositionProjectedShadowCaster? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCaster.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi))
}
}
return .from(abi: result)
}
internal func get_HasCurrentImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCaster.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result))
}
return .init(from: result)
}
internal func MoveNextImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCaster.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result))
}
return .init(from: result)
}
}
internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCaster
internal typealias SwiftABI = IIteratorCompositionProjectedShadowCaster
internal typealias SwiftProjection = WindowsFoundation.AnyIIterator<WinAppSDK.CompositionProjectedShadowCaster?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterImpl : IIterator, AbiInterfaceImpl {
typealias T = WinAppSDK.CompositionProjectedShadowCaster?
typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowCasterBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext)
fileprivate func moveNext() -> Bool {
try! _default.MoveNextImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current)
fileprivate var current : WinAppSDK.CompositionProjectedShadowCaster? {
get { try! _default.get_CurrentImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent)
fileprivate var hasCurrent : Bool {
get { try! _default.get_HasCurrentImpl() }
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiver: WindowsFoundation.IID {
.init(Data1: 0xd0a7e89f, Data2: 0xa01e, Data3: 0x5c64, Data4: ( 0xbf,0x5e,0x37,0xd0,0x3e,0xae,0xa3,0x20 ))// d0a7e89f-a01e-5c64-bf5e-37d03eaea320
}
internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterator`1<Microsoft.UI.Composition.CompositionProjectedShadowReceiver>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Current: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.current
result?.copyTo($1)
return S_OK
},
get_HasCurrent: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.hasCurrent
$1?.initialize(to: .init(from: result))
return S_OK
},
MoveNext: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.moveNext()
$1?.initialize(to: .init(from: result))
return S_OK
},
GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverBridge>
internal class IIteratorCompositionProjectedShadowReceiver: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiver }
internal func get_CurrentImpl() throws -> WinAppSDK.CompositionProjectedShadowReceiver? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiver.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi))
}
}
return .from(abi: result)
}
internal func get_HasCurrentImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiver.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result))
}
return .init(from: result)
}
internal func MoveNextImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiver.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result))
}
return .init(from: result)
}
}
internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiver
internal typealias SwiftABI = IIteratorCompositionProjectedShadowReceiver
internal typealias SwiftProjection = WindowsFoundation.AnyIIterator<WinAppSDK.CompositionProjectedShadowReceiver?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverImpl : IIterator, AbiInterfaceImpl {
typealias T = WinAppSDK.CompositionProjectedShadowReceiver?
typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionProjectedShadowReceiverBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext)
fileprivate func moveNext() -> Bool {
try! _default.MoveNextImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current)
fileprivate var current : WinAppSDK.CompositionProjectedShadowReceiver? {
get { try! _default.get_CurrentImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent)
fileprivate var hasCurrent : Bool {
get { try! _default.get_HasCurrentImpl() }
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape: WindowsFoundation.IID {
.init(Data1: 0x4ec94e18, Data2: 0xf15c, Data3: 0x5432, Data4: ( 0x9b,0xb3,0x77,0xbd,0xcd,0x96,0xdc,0x04 ))// 4ec94e18-f15c-5432-9bb3-77bdcd96dc04
}
internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterator`1<Microsoft.UI.Composition.CompositionShape>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Current: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.current
result?.copyTo($1)
return S_OK
},
get_HasCurrent: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.hasCurrent
$1?.initialize(to: .init(from: result))
return S_OK
},
MoveNext: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.moveNext()
$1?.initialize(to: .init(from: result))
return S_OK
},
GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeBridge>
internal class IIteratorCompositionShape: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape }
internal func get_CurrentImpl() throws -> WinAppSDK.CompositionShape? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi))
}
}
return .from(abi: result)
}
internal func get_HasCurrentImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result))
}
return .init(from: result)
}
internal func MoveNextImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result))
}
return .init(from: result)
}
}
internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape
internal typealias SwiftABI = IIteratorCompositionShape
internal typealias SwiftProjection = WindowsFoundation.AnyIIterator<WinAppSDK.CompositionShape?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeImpl : IIterator, AbiInterfaceImpl {
typealias T = WinAppSDK.CompositionShape?
typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext)
fileprivate func moveNext() -> Bool {
try! _default.MoveNextImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current)
fileprivate var current : WinAppSDK.CompositionShape? {
get { try! _default.get_CurrentImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent)
fileprivate var hasCurrent : Bool {
get { try! _default.get_HasCurrentImpl() }
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValue: WindowsFoundation.IID {
.init(Data1: 0x1bf57a13, Data2: 0xc5b6, Data3: 0x5d31, Data4: ( 0x80,0x5b,0x6f,0x00,0x9b,0x24,0xe3,0x60 ))// 1bf57a13-c5b6-5d31-805b-6f009b24e360
}
internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterator`1<Microsoft.UI.Composition.Interactions.CompositionConditionalValue>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Current: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.current
result?.copyTo($1)
return S_OK
},
get_HasCurrent: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.hasCurrent
$1?.initialize(to: .init(from: result))
return S_OK
},
MoveNext: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.moveNext()
$1?.initialize(to: .init(from: result))
return S_OK
},
GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueBridge>
internal class IIteratorCompositionConditionalValue: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValue }
internal func get_CurrentImpl() throws -> WinAppSDK.CompositionConditionalValue? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValue.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi))
}
}
return .from(abi: result)
}
internal func get_HasCurrentImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValue.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result))
}
return .init(from: result)
}
internal func MoveNextImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValue.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result))
}
return .init(from: result)
}
}
internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValue
internal typealias SwiftABI = IIteratorCompositionConditionalValue
internal typealias SwiftProjection = WindowsFoundation.AnyIIterator<WinAppSDK.CompositionConditionalValue?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueImpl : IIterator, AbiInterfaceImpl {
typealias T = WinAppSDK.CompositionConditionalValue?
typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CCompositionConditionalValueBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext)
fileprivate func moveNext() -> Bool {
try! _default.MoveNextImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current)
fileprivate var current : WinAppSDK.CompositionConditionalValue? {
get { try! _default.get_CurrentImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent)
fileprivate var hasCurrent : Bool {
get { try! _default.get_HasCurrentImpl() }
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSource: WindowsFoundation.IID {
.init(Data1: 0xf21f2a85, Data2: 0xe3f0, Data3: 0x557c, Data4: ( 0x8c,0xff,0x6c,0xfb,0xc3,0x97,0x54,0xbb ))// f21f2a85-e3f0-557c-8cff-6cfbc39754bb
}
internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterator`1<Microsoft.UI.Composition.Interactions.ICompositionInteractionSource>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Current: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.current
let resultWrapper = __ABI_Microsoft_UI_Composition_Interactions.ICompositionInteractionSourceWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
},
get_HasCurrent: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.hasCurrent
$1?.initialize(to: .init(from: result))
return S_OK
},
MoveNext: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.moveNext()
$1?.initialize(to: .init(from: result))
return S_OK
},
GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceBridge>
internal class IIteratorICompositionInteractionSource: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSource }
internal func get_CurrentImpl() throws -> WinAppSDK.AnyICompositionInteractionSource? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSource.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi))
}
}
return __ABI_Microsoft_UI_Composition_Interactions.ICompositionInteractionSourceWrapper.unwrapFrom(abi: result)
}
internal func get_HasCurrentImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSource.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result))
}
return .init(from: result)
}
internal func MoveNextImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSource.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result))
}
return .init(from: result)
}
}
internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSource
internal typealias SwiftABI = IIteratorICompositionInteractionSource
internal typealias SwiftProjection = WindowsFoundation.AnyIIterator<WinAppSDK.AnyICompositionInteractionSource?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceImpl : IIterator, AbiInterfaceImpl {
typealias T = WinAppSDK.AnyICompositionInteractionSource?
typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CICompositionInteractionSourceBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext)
fileprivate func moveNext() -> Bool {
try! _default.MoveNextImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current)
fileprivate var current : WinAppSDK.AnyICompositionInteractionSource? {
get { try! _default.get_CurrentImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent)
fileprivate var hasCurrent : Bool {
get { try! _default.get_HasCurrentImpl() }
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifier: WindowsFoundation.IID {
.init(Data1: 0xad8bcabc, Data2: 0x22a3, Data3: 0x5fea, Data4: ( 0x9e,0xdc,0x20,0xe8,0xc4,0xfa,0x39,0x05 ))// ad8bcabc-22a3-5fea-9edc-20e8c4fa3905
}
internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterator`1<Microsoft.UI.Composition.Interactions.InteractionTrackerInertiaModifier>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Current: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.current
result?.copyTo($1)
return S_OK
},
get_HasCurrent: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.hasCurrent
$1?.initialize(to: .init(from: result))
return S_OK
},
MoveNext: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.moveNext()
$1?.initialize(to: .init(from: result))
return S_OK
},
GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierBridge>
internal class IIteratorInteractionTrackerInertiaModifier: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifier }
internal func get_CurrentImpl() throws -> WinAppSDK.InteractionTrackerInertiaModifier? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifier.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi))
}
}
return .from(abi: result)
}
internal func get_HasCurrentImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifier.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result))
}
return .init(from: result)
}
internal func MoveNextImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifier.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result))
}
return .init(from: result)
}
}
internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifier
internal typealias SwiftABI = IIteratorInteractionTrackerInertiaModifier
internal typealias SwiftProjection = WindowsFoundation.AnyIIterator<WinAppSDK.InteractionTrackerInertiaModifier?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierImpl : IIterator, AbiInterfaceImpl {
typealias T = WinAppSDK.InteractionTrackerInertiaModifier?
typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerInertiaModifierBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext)
fileprivate func moveNext() -> Bool {
try! _default.MoveNextImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current)
fileprivate var current : WinAppSDK.InteractionTrackerInertiaModifier? {
get { try! _default.get_CurrentImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent)
fileprivate var hasCurrent : Bool {
get { try! _default.get_HasCurrentImpl() }
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifier: WindowsFoundation.IID {
.init(Data1: 0xe666655f, Data2: 0x2a16, Data3: 0x5a78, Data4: ( 0xbd,0x73,0x7f,0x81,0xbb,0xa7,0xc2,0xc4 ))// e666655f-2a16-5a78-bd73-7f81bba7c2c4
}
internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterator`1<Microsoft.UI.Composition.Interactions.InteractionTrackerVector2InertiaModifier>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Current: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.current
result?.copyTo($1)
return S_OK
},
get_HasCurrent: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.hasCurrent
$1?.initialize(to: .init(from: result))
return S_OK
},
MoveNext: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.moveNext()
$1?.initialize(to: .init(from: result))
return S_OK
},
GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierBridge>
internal class IIteratorInteractionTrackerVector2InertiaModifier: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifier }
internal func get_CurrentImpl() throws -> WinAppSDK.InteractionTrackerVector2InertiaModifier? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifier.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi))
}
}
return .from(abi: result)
}
internal func get_HasCurrentImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifier.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result))
}
return .init(from: result)
}
internal func MoveNextImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifier.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result))
}
return .init(from: result)
}
}
internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifier
internal typealias SwiftABI = IIteratorInteractionTrackerVector2InertiaModifier
internal typealias SwiftProjection = WindowsFoundation.AnyIIterator<WinAppSDK.InteractionTrackerVector2InertiaModifier?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierImpl : IIterator, AbiInterfaceImpl {
typealias T = WinAppSDK.InteractionTrackerVector2InertiaModifier?
typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CInteractions__CInteractionTrackerVector2InertiaModifierBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext)
fileprivate func moveNext() -> Bool {
try! _default.MoveNextImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current)
fileprivate var current : WinAppSDK.InteractionTrackerVector2InertiaModifier? {
get { try! _default.get_CurrentImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent)
fileprivate var hasCurrent : Bool {
get { try! _default.get_HasCurrentImpl() }
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisual: WindowsFoundation.IID {
.init(Data1: 0x44b22f94, Data2: 0x798f, Data3: 0x5841, Data4: ( 0xbb,0x05,0x0d,0x1a,0xaa,0x22,0xf6,0x68 ))// 44b22f94-798f-5841-bb05-0d1aaa22f668
}
internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterator`1<Microsoft.UI.Composition.Visual>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Current: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.current
result?.copyTo($1)
return S_OK
},
get_HasCurrent: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.hasCurrent
$1?.initialize(to: .init(from: result))
return S_OK
},
MoveNext: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.moveNext()
$1?.initialize(to: .init(from: result))
return S_OK
},
GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualBridge>
internal class IIteratorVisual: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisual }
internal func get_CurrentImpl() throws -> WinAppSDK.Visual? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisual.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi))
}
}
return .from(abi: result)
}
internal func get_HasCurrentImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisual.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result))
}
return .init(from: result)
}
internal func MoveNextImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisual.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result))
}
return .init(from: result)
}
}
internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisual
internal typealias SwiftABI = IIteratorVisual
internal typealias SwiftProjection = WindowsFoundation.AnyIIterator<WinAppSDK.Visual?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualImpl : IIterator, AbiInterfaceImpl {
typealias T = WinAppSDK.Visual?
typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CComposition__CVisualBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext)
fileprivate func moveNext() -> Bool {
try! _default.MoveNextImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current)
fileprivate var current : WinAppSDK.Visual? {
get { try! _default.get_CurrentImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent)
fileprivate var hasCurrent : Bool {
get { try! _default.get_HasCurrentImpl() }
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint: WindowsFoundation.IID {
.init(Data1: 0x5b63939d, Data2: 0x11cf, Data3: 0x56c4, Data4: ( 0xb0,0xd0,0x11,0xdf,0x9d,0xc4,0x87,0xd1 ))// 5b63939d-11cf-56c4-b0d0-11df9dc487d1
}
internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterator`1<Microsoft.UI.Input.PointerPoint>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Current: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.current
result?.copyTo($1)
return S_OK
},
get_HasCurrent: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.hasCurrent
$1?.initialize(to: .init(from: result))
return S_OK
},
MoveNext: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.moveNext()
$1?.initialize(to: .init(from: result))
return S_OK
},
GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointBridge>
internal class IIteratorPointerPoint: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint }
internal func get_CurrentImpl() throws -> WinAppSDK.PointerPoint? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi))
}
}
return .from(abi: result)
}
internal func get_HasCurrentImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result))
}
return .init(from: result)
}
internal func MoveNextImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result))
}
return .init(from: result)
}
}
internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint
internal typealias SwiftABI = IIteratorPointerPoint
internal typealias SwiftProjection = WindowsFoundation.AnyIIterator<WinAppSDK.PointerPoint?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointImpl : IIterator, AbiInterfaceImpl {
typealias T = WinAppSDK.PointerPoint?
typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext)
fileprivate func moveNext() -> Bool {
try! _default.MoveNextImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current)
fileprivate var current : WinAppSDK.PointerPoint? {
get { try! _default.get_CurrentImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent)
fileprivate var hasCurrent : Bool {
get { try! _default.get_HasCurrentImpl() }
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea: WindowsFoundation.IID {
.init(Data1: 0x3d833884, Data2: 0x2258, Data3: 0x5c48, Data4: ( 0x8d,0x45,0x36,0x42,0xfe,0x8c,0x67,0x55 ))// 3d833884-2258-5c48-8d45-3642fe8c6755
}
internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterator`1<Microsoft.UI.Windowing.DisplayArea>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Current: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.current
result?.copyTo($1)
return S_OK
},
get_HasCurrent: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.hasCurrent
$1?.initialize(to: .init(from: result))
return S_OK
},
MoveNext: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.moveNext()
$1?.initialize(to: .init(from: result))
return S_OK
},
GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaBridge>
internal class IIteratorDisplayArea: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea }
internal func get_CurrentImpl() throws -> WinAppSDK.DisplayArea? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi))
}
}
return .from(abi: result)
}
internal func get_HasCurrentImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result))
}
return .init(from: result)
}
internal func MoveNextImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result))
}
return .init(from: result)
}
}
internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea
internal typealias SwiftABI = IIteratorDisplayArea
internal typealias SwiftProjection = WindowsFoundation.AnyIIterator<WinAppSDK.DisplayArea?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaImpl : IIterator, AbiInterfaceImpl {
typealias T = WinAppSDK.DisplayArea?
typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext)
fileprivate func moveNext() -> Bool {
try! _default.MoveNextImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current)
fileprivate var current : WinAppSDK.DisplayArea? {
get { try! _default.get_CurrentImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent)
fileprivate var hasCurrent : Bool {
get { try! _default.get_HasCurrentImpl() }
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance: WindowsFoundation.IID {
.init(Data1: 0x58c4b850, Data2: 0xcfd3, Data3: 0x54c7, Data4: ( 0x95,0x68,0xcf,0x76,0xa0,0x17,0xaf,0xae ))// 58c4b850-cfd3-54c7-9568-cf76a017afae
}
internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterator`1<Microsoft.Windows.AppLifecycle.AppInstance>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Current: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.current
result?.copyTo($1)
return S_OK
},
get_HasCurrent: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.hasCurrent
$1?.initialize(to: .init(from: result))
return S_OK
},
MoveNext: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.moveNext()
$1?.initialize(to: .init(from: result))
return S_OK
},
GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceBridge>
internal class IIteratorAppInstance: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance }
internal func get_CurrentImpl() throws -> WinAppSDK.AppInstance? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi))
}
}
return .from(abi: result)
}
internal func get_HasCurrentImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result))
}
return .init(from: result)
}
internal func MoveNextImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result))
}
return .init(from: result)
}
}
internal enum __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance
internal typealias SwiftABI = IIteratorAppInstance
internal typealias SwiftProjection = WindowsFoundation.AnyIIterator<WinAppSDK.AppInstance?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceImpl : IIterator, AbiInterfaceImpl {
typealias T = WinAppSDK.AppInstance?
typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext)
fileprivate func moveNext() -> Bool {
try! _default.MoveNextImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current)
fileprivate var current : WinAppSDK.AppInstance? {
get { try! _default.get_CurrentImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent)
fileprivate var hasCurrent : Bool {
get { try! _default.get_HasCurrentImpl() }
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterator_1_HSTRING: WindowsFoundation.IID {
.init(Data1: 0x8c304ebb, Data2: 0x6615, Data3: 0x50a4, Data4: ( 0x88,0x29,0x87,0x9e,0xcd,0x44,0x32,0x36 ))// 8c304ebb-6615-50a4-8829-879ecd443236
}
internal var __x_ABI_C__FIIterator_1_HSTRINGVTable: __x_ABI_C__FIIterator_1_HSTRINGVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterator_1_HSTRINGWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterator_1_HSTRINGWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterator_1_HSTRINGWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1_HSTRINGWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterator`1<String>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Current: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.current
$1?.initialize(to: try! HString(result).detach())
return S_OK
},
get_HasCurrent: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.hasCurrent
$1?.initialize(to: .init(from: result))
return S_OK
},
MoveNext: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.moveNext()
$1?.initialize(to: .init(from: result))
return S_OK
},
GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIIterator_1_HSTRINGWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterator_1_HSTRINGBridge>
internal class IIteratorString: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1_HSTRING }
internal func get_CurrentImpl() throws -> String {
var result: HSTRING?
_ = try perform(as: __x_ABI_C__FIIterator_1_HSTRING.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &result))
}
return .init(from: result)
}
internal func get_HasCurrentImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1_HSTRING.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result))
}
return .init(from: result)
}
internal func MoveNextImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1_HSTRING.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result))
}
return .init(from: result)
}
}
internal enum __x_ABI_C__FIIterator_1_HSTRINGBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterator_1_HSTRING
internal typealias SwiftABI = IIteratorString
internal typealias SwiftProjection = WindowsFoundation.AnyIIterator<String>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterator_1_HSTRINGImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1_HSTRINGVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterator_1_HSTRINGImpl : IIterator, AbiInterfaceImpl {
typealias T = String
typealias Bridge = __x_ABI_C__FIIterator_1_HSTRINGBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext)
fileprivate func moveNext() -> Bool {
try! _default.MoveNextImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current)
fileprivate var current : String {
get { try! _default.get_CurrentImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent)
fileprivate var hasCurrent : Bool {
get { try! _default.get_HasCurrentImpl() }
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase: WindowsFoundation.IID {
.init(Data1: 0xd7585c8c, Data2: 0x8ac4, Data3: 0x575f, Data4: ( 0x8a,0x96,0x0d,0xe9,0xc3,0x15,0x9e,0xa9 ))// d7585c8c-8ac4-575f-8a96-0de9c3159ea9
}
internal var __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVTable: __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterator`1<Windows.Foundation.Collections.IKeyValuePair`2<String, Microsoft.UI.Composition.ICompositionAnimationBase>>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Current: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.current
let resultWrapper = WinAppSDK.__x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
},
get_HasCurrent: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.hasCurrent
$1?.initialize(to: .init(from: result))
return S_OK
},
MoveNext: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.moveNext()
$1?.initialize(to: .init(from: result))
return S_OK
},
GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge>
internal class IIteratorIKeyValuePairString_ICompositionAnimationBase: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase }
internal func get_CurrentImpl() throws -> WindowsFoundation.AnyIKeyValuePair<String, WinAppSDK.AnyICompositionAnimationBase?>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.unwrapFrom(abi: result)
}
internal func get_HasCurrentImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result))
}
return .init(from: result)
}
internal func MoveNextImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result))
}
return .init(from: result)
}
}
internal enum __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase
internal typealias SwiftABI = IIteratorIKeyValuePairString_ICompositionAnimationBase
internal typealias SwiftProjection = WindowsFoundation.AnyIIterator<WindowsFoundation.AnyIKeyValuePair<String, WinAppSDK.AnyICompositionAnimationBase?>?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseImpl : IIterator, AbiInterfaceImpl {
typealias T = WindowsFoundation.AnyIKeyValuePair<String, WinAppSDK.AnyICompositionAnimationBase?>?
typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext)
fileprivate func moveNext() -> Bool {
try! _default.MoveNextImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current)
fileprivate var current : WindowsFoundation.AnyIKeyValuePair<String, WinAppSDK.AnyICompositionAnimationBase?>? {
get { try! _default.get_CurrentImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent)
fileprivate var hasCurrent : Bool {
get { try! _default.get_HasCurrentImpl() }
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING: WindowsFoundation.IID {
.init(Data1: 0x05eb86f1, Data2: 0x7140, Data3: 0x5517, Data4: ( 0xb8,0x8d,0xcb,0xae,0xbe,0x57,0xe6,0xb1 ))// 05eb86f1-7140-5517-b88d-cbaebe57e6b1
}
internal var __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGVTable: __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGVtbl = .init(
QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.addRef($0) },
Release: { __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IIterator`1<Windows.Foundation.Collections.IKeyValuePair`2<String, String>>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Current: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.current
let resultWrapper = WinAppSDK.__x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
},
get_HasCurrent: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.hasCurrent
$1?.initialize(to: .init(from: result))
return S_OK
},
MoveNext: {
guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.moveNext()
$1?.initialize(to: .init(from: result))
return S_OK
},
GetMany: { _, _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGBridge>
internal class IIteratorIKeyValuePairString_String: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING }
internal func get_CurrentImpl() throws -> WindowsFoundation.AnyIKeyValuePair<String, String>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.unwrapFrom(abi: result)
}
internal func get_HasCurrentImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &result))
}
return .init(from: result)
}
internal func MoveNextImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result))
}
return .init(from: result)
}
}
internal enum __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING
internal typealias SwiftABI = IIteratorIKeyValuePairString_String
internal typealias SwiftProjection = WindowsFoundation.AnyIIterator<WindowsFoundation.AnyIKeyValuePair<String, String>?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGImpl : IIterator, AbiInterfaceImpl {
typealias T = WindowsFoundation.AnyIKeyValuePair<String, String>?
typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.movenext)
fileprivate func moveNext() -> Bool {
try! _default.MoveNextImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.current)
fileprivate var current : WindowsFoundation.AnyIKeyValuePair<String, String>? {
get { try! _default.get_CurrentImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iiterator-1.hascurrent)
fileprivate var hasCurrent : Bool {
get { try! _default.get_HasCurrentImpl() }
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase: WindowsFoundation.IID {
.init(Data1: 0xe1ea9d61, Data2: 0x0e9e, Data3: 0x5375, Data4: ( 0xac,0x74,0x50,0x2e,0x67,0xf9,0xed,0xe1 ))// e1ea9d61-0e9e-5375-ac74-502e67f9ede1
}
internal var __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVTable: __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVtbl = .init(
QueryInterface: { __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.addRef($0) },
Release: { __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IKeyValuePair`2<String, Microsoft.UI.Composition.ICompositionAnimationBase>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Key: {
guard let __unwrapped__instance = __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.key
$1?.initialize(to: try! HString(result).detach())
return S_OK
},
get_Value: {
guard let __unwrapped__instance = __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.value
let resultWrapper = __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
}
)
typealias __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge>
internal class IKeyValuePairString_ICompositionAnimationBase: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase }
internal func get_KeyImpl() throws -> String {
var result: HSTRING?
_ = try perform(as: __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Key(pThis, &result))
}
return .init(from: result)
}
internal func get_ValueImpl() throws -> WinAppSDK.AnyICompositionAnimationBase? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Value(pThis, &resultAbi))
}
}
return __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper.unwrapFrom(abi: result)
}
}
internal enum __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase
internal typealias SwiftABI = IKeyValuePairString_ICompositionAnimationBase
internal typealias SwiftProjection = WindowsFoundation.AnyIKeyValuePair<String, WinAppSDK.AnyICompositionAnimationBase?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseImpl : IKeyValuePair, AbiInterfaceImpl {
typealias K = String
typealias V = WinAppSDK.AnyICompositionAnimationBase?
typealias Bridge = __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ikeyvaluepair-2.key)
fileprivate var key : String {
get { try! _default.get_KeyImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ikeyvaluepair-2.value)
fileprivate var value : WinAppSDK.AnyICompositionAnimationBase? {
get { try! _default.get_ValueImpl() }
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidate: WindowsFoundation.IID {
.init(Data1: 0x6a46de21, Data2: 0x86a6, Data3: 0x536a, Data4: ( 0x93,0x7b,0x1e,0xdf,0xa3,0xe1,0x64,0x74 ))// 6a46de21-86a6-536a-937b-1edfa3e16474
}
internal var __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateVTable: __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateVtbl = .init(
QueryInterface: { __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateWrapper.addRef($0) },
Release: { __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IKeyValuePair`2<String, Microsoft.Windows.ApplicationModel.Resources.ResourceCandidate>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Key: {
guard let __unwrapped__instance = __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.key
$1?.initialize(to: try! HString(result).detach())
return S_OK
},
get_Value: {
guard let __unwrapped__instance = __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.value
result?.copyTo($1)
return S_OK
}
)
typealias __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateBridge>
internal class IKeyValuePairString_ResourceCandidate: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidate }
internal func get_KeyImpl() throws -> String {
var result: HSTRING?
_ = try perform(as: __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidate.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Key(pThis, &result))
}
return .init(from: result)
}
internal func get_ValueImpl() throws -> WinAppSDK.ResourceCandidate? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidate.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Value(pThis, &resultAbi))
}
}
return .from(abi: result)
}
}
internal enum __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidate
internal typealias SwiftABI = IKeyValuePairString_ResourceCandidate
internal typealias SwiftProjection = WindowsFoundation.AnyIKeyValuePair<String, WinAppSDK.ResourceCandidate?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateImpl : IKeyValuePair, AbiInterfaceImpl {
typealias K = String
typealias V = WinAppSDK.ResourceCandidate?
typealias Bridge = __x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceCandidateBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ikeyvaluepair-2.key)
fileprivate var key : String {
get { try! _default.get_KeyImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ikeyvaluepair-2.value)
fileprivate var value : WinAppSDK.ResourceCandidate? {
get { try! _default.get_ValueImpl() }
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING: WindowsFoundation.IID {
.init(Data1: 0x60310303, Data2: 0x49c5, Data3: 0x52e6, Data4: ( 0xab,0xc6,0xa9,0xb3,0x6e,0xcc,0xc7,0x16 ))// 60310303-49c5-52e6-abc6-a9b36eccc716
}
internal var __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGVTable: __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGVtbl = .init(
QueryInterface: { __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.addRef($0) },
Release: { __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IKeyValuePair`2<String, String>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Key: {
guard let __unwrapped__instance = __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.key
$1?.initialize(to: try! HString(result).detach())
return S_OK
},
get_Value: {
guard let __unwrapped__instance = __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.value
$1?.initialize(to: try! HString(result).detach())
return S_OK
}
)
typealias __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGBridge>
internal class IKeyValuePairString_String: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING }
internal func get_KeyImpl() throws -> String {
var result: HSTRING?
_ = try perform(as: __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Key(pThis, &result))
}
return .init(from: result)
}
internal func get_ValueImpl() throws -> String {
var result: HSTRING?
_ = try perform(as: __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Value(pThis, &result))
}
return .init(from: result)
}
}
internal enum __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRING
internal typealias SwiftABI = IKeyValuePairString_String
internal typealias SwiftProjection = WindowsFoundation.AnyIKeyValuePair<String, String>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGImpl : IKeyValuePair, AbiInterfaceImpl {
typealias K = String
typealias V = String
typealias Bridge = __x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ikeyvaluepair-2.key)
fileprivate var key : String {
get { try! _default.get_KeyImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ikeyvaluepair-2.value)
fileprivate var value : String {
get { try! _default.get_ValueImpl() }
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase: WindowsFoundation.IID {
.init(Data1: 0x60d8d804, Data2: 0xd025, Data3: 0x5b6e, Data4: ( 0x80,0x0c,0xb0,0x38,0xcd,0xed,0xba,0xb4 ))// 60d8d804-d025-5b6e-800c-b038cdedbab4
}
internal var __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVTable: __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVtbl = .init(
QueryInterface: { __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.addRef($0) },
Release: { __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.IID
iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.IID
$1!.pointee = 4
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IMapView`2<String, Microsoft.UI.Composition.ICompositionAnimationBase>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
Lookup: {
guard let __unwrapped__instance = __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let key: String = .init(from: $1)
let result = __unwrapped__instance.lookup(key)
let resultWrapper = __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper(result)
resultWrapper?.copyTo($2)
return S_OK
},
get_Size: {
guard let __unwrapped__instance = __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.size
$1?.initialize(to: result)
return S_OK
},
HasKey: {
guard let __unwrapped__instance = __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let key: String = .init(from: $1)
let result = __unwrapped__instance.hasKey(key)
$2?.initialize(to: .init(from: result))
return S_OK
},
Split: {
guard let __unwrapped__instance = __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
var first: WindowsFoundation.AnyIMapView<String, WinAppSDK.AnyICompositionAnimationBase?>?
var second: WindowsFoundation.AnyIMapView<String, WinAppSDK.AnyICompositionAnimationBase?>?
__unwrapped__instance.split(&first, &second)
let firstWrapper = WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper(first)
firstWrapper?.copyTo($1)
let secondWrapper = WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper(second)
secondWrapper?.copyTo($2)
return S_OK
}
)
typealias __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge>
internal class IMapViewString_ICompositionAnimationBase: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase }
internal func LookupImpl(_ key: String) throws -> WinAppSDK.AnyICompositionAnimationBase? {
let (result) = try ComPtrs.initialize { resultAbi in
let _key = try! HString(key)
_ = try perform(as: __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Lookup(pThis, _key.get(), &resultAbi))
}
}
return __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper.unwrapFrom(abi: result)
}
internal func get_SizeImpl() throws -> UInt32 {
var result: UINT32 = 0
_ = try perform(as: __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result))
}
return result
}
internal func HasKeyImpl(_ key: String) throws -> Bool {
var result: boolean = 0
let _key = try! HString(key)
_ = try perform(as: __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.HasKey(pThis, _key.get(), &result))
}
return .init(from: result)
}
internal func SplitImpl(_ first: inout WindowsFoundation.AnyIMapView<String, WinAppSDK.AnyICompositionAnimationBase?>?, _ second: inout WindowsFoundation.AnyIMapView<String, WinAppSDK.AnyICompositionAnimationBase?>?) throws {
let (_first, _second) = try ComPtrs.initialize { (_firstAbi, _secondAbi) in
_ = try perform(as: __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Split(pThis, &_firstAbi, &_secondAbi))
}
}
first = WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.unwrapFrom(abi: _first)
second = WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.unwrapFrom(abi: _second)
}
}
internal enum __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase
internal typealias SwiftABI = IMapViewString_ICompositionAnimationBase
internal typealias SwiftProjection = WindowsFoundation.AnyIMapView<String, WinAppSDK.AnyICompositionAnimationBase?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseImpl : IMapView, AbiInterfaceImpl {
typealias T = WindowsFoundation.AnyIKeyValuePair<String, WinAppSDK.AnyICompositionAnimationBase?>?
typealias K = String
typealias V = WinAppSDK.AnyICompositionAnimationBase?
typealias Bridge = __x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imapview-2.lookup)
fileprivate func lookup(_ key: String) -> WinAppSDK.AnyICompositionAnimationBase? {
try! _default.LookupImpl(key)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imapview-2.haskey)
fileprivate func hasKey(_ key: String) -> Bool {
try! _default.HasKeyImpl(key)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imapview-2.split)
fileprivate func split(_ first: inout WindowsFoundation.AnyIMapView<String, WinAppSDK.AnyICompositionAnimationBase?>?, _ second: inout WindowsFoundation.AnyIMapView<String, WinAppSDK.AnyICompositionAnimationBase?>?) {
try! _default.SplitImpl(&first, &second)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imapview-2.size)
fileprivate var size : UInt32 {
get { try! _default.get_SizeImpl() }
}
private lazy var _IIterable: IIterableIKeyValuePairString_ICompositionAnimationBase! = getInterfaceForCaching()
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imapview-2.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WindowsFoundation.AnyIKeyValuePair<String, WinAppSDK.AnyICompositionAnimationBase?>?>? {
try! _IIterable.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIMapView_2_HSTRING_HSTRING: WindowsFoundation.IID {
.init(Data1: 0xac7f26f2, Data2: 0xfeb7, Data3: 0x5b2a, Data4: ( 0x8a,0xc4,0x34,0x5b,0xc6,0x2c,0xae,0xde ))// ac7f26f2-feb7-5b2a-8ac4-345bc62caede
}
internal var __x_ABI_C__FIMapView_2_HSTRING_HSTRINGVTable: __x_ABI_C__FIMapView_2_HSTRING_HSTRINGVtbl = .init(
QueryInterface: { __x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper.addRef($0) },
Release: { __x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper.IID
iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.IID
$1!.pointee = 4
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IMapView`2<String, String>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
Lookup: {
guard let __unwrapped__instance = __x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let key: String = .init(from: $1)
let result = __unwrapped__instance.lookup(key)
$2?.initialize(to: try! HString(result).detach())
return S_OK
},
get_Size: {
guard let __unwrapped__instance = __x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.size
$1?.initialize(to: result)
return S_OK
},
HasKey: {
guard let __unwrapped__instance = __x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let key: String = .init(from: $1)
let result = __unwrapped__instance.hasKey(key)
$2?.initialize(to: .init(from: result))
return S_OK
},
Split: {
guard let __unwrapped__instance = __x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
var first: WindowsFoundation.AnyIMapView<String, String>?
var second: WindowsFoundation.AnyIMapView<String, String>?
__unwrapped__instance.split(&first, &second)
let firstWrapper = WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper(first)
firstWrapper?.copyTo($1)
let secondWrapper = WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper(second)
secondWrapper?.copyTo($2)
return S_OK
}
)
typealias __x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING_HSTRINGBridge>
internal class IMapViewString_String: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIMapView_2_HSTRING_HSTRING }
internal func LookupImpl(_ key: String) throws -> String {
var result: HSTRING?
let _key = try! HString(key)
_ = try perform(as: __x_ABI_C__FIMapView_2_HSTRING_HSTRING.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Lookup(pThis, _key.get(), &result))
}
return .init(from: result)
}
internal func get_SizeImpl() throws -> UInt32 {
var result: UINT32 = 0
_ = try perform(as: __x_ABI_C__FIMapView_2_HSTRING_HSTRING.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result))
}
return result
}
internal func HasKeyImpl(_ key: String) throws -> Bool {
var result: boolean = 0
let _key = try! HString(key)
_ = try perform(as: __x_ABI_C__FIMapView_2_HSTRING_HSTRING.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.HasKey(pThis, _key.get(), &result))
}
return .init(from: result)
}
internal func SplitImpl(_ first: inout WindowsFoundation.AnyIMapView<String, String>?, _ second: inout WindowsFoundation.AnyIMapView<String, String>?) throws {
let (_first, _second) = try ComPtrs.initialize { (_firstAbi, _secondAbi) in
_ = try perform(as: __x_ABI_C__FIMapView_2_HSTRING_HSTRING.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Split(pThis, &_firstAbi, &_secondAbi))
}
}
first = WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper.unwrapFrom(abi: _first)
second = WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper.unwrapFrom(abi: _second)
}
}
internal enum __x_ABI_C__FIMapView_2_HSTRING_HSTRINGBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIMapView_2_HSTRING_HSTRING
internal typealias SwiftABI = IMapViewString_String
internal typealias SwiftProjection = WindowsFoundation.AnyIMapView<String, String>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIMapView_2_HSTRING_HSTRINGImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIMapView_2_HSTRING_HSTRINGVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIMapView_2_HSTRING_HSTRINGImpl : IMapView, AbiInterfaceImpl {
typealias T = WindowsFoundation.AnyIKeyValuePair<String, String>?
typealias K = String
typealias V = String
typealias Bridge = __x_ABI_C__FIMapView_2_HSTRING_HSTRINGBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imapview-2.lookup)
fileprivate func lookup(_ key: String) -> String {
try! _default.LookupImpl(key)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imapview-2.haskey)
fileprivate func hasKey(_ key: String) -> Bool {
try! _default.HasKeyImpl(key)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imapview-2.split)
fileprivate func split(_ first: inout WindowsFoundation.AnyIMapView<String, String>?, _ second: inout WindowsFoundation.AnyIMapView<String, String>?) {
try! _default.SplitImpl(&first, &second)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imapview-2.size)
fileprivate var size : UInt32 {
get { try! _default.get_SizeImpl() }
}
private lazy var _IIterable: IIterableIKeyValuePairString_String! = getInterfaceForCaching()
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imapview-2.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WindowsFoundation.AnyIKeyValuePair<String, String>?>? {
try! _IIterable.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase: WindowsFoundation.IID {
.init(Data1: 0x6a91806a, Data2: 0x8668, Data3: 0x5938, Data4: ( 0x93,0xf9,0x75,0x9d,0x00,0x21,0xab,0x9b ))// 6a91806a-8668-5938-93f9-759d0021ab9b
}
internal var __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVTable: __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVtbl = .init(
QueryInterface: { __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.addRef($0) },
Release: { __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.IID
iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.IID
$1!.pointee = 4
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IMap`2<String, Microsoft.UI.Composition.ICompositionAnimationBase>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
Lookup: {
guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let key: String = .init(from: $1)
let result = __unwrapped__instance.lookup(key)
let resultWrapper = __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper(result)
resultWrapper?.copyTo($2)
return S_OK
},
get_Size: {
guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.size
$1?.initialize(to: result)
return S_OK
},
HasKey: {
guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let key: String = .init(from: $1)
let result = __unwrapped__instance.hasKey(key)
$2?.initialize(to: .init(from: result))
return S_OK
},
GetView: {
guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.getView()
let resultWrapper = WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
},
Insert: {
guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let key: String = .init(from: $1)
let value: WinAppSDK.AnyICompositionAnimationBase? = __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper.unwrapFrom(abi: ComPtr($2))
let result = __unwrapped__instance.insert(key, value)
$3?.initialize(to: .init(from: result))
return S_OK
},
Remove: {
guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let key: String = .init(from: $1)
__unwrapped__instance.remove(key)
return S_OK
},
Clear: {
guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
__unwrapped__instance.clear()
return S_OK
}
)
typealias __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge>
internal class IMapString_ICompositionAnimationBase: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase }
internal func LookupImpl(_ key: String) throws -> WinAppSDK.AnyICompositionAnimationBase? {
let (result) = try ComPtrs.initialize { resultAbi in
let _key = try! HString(key)
_ = try perform(as: __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Lookup(pThis, _key.get(), &resultAbi))
}
}
return __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper.unwrapFrom(abi: result)
}
internal func get_SizeImpl() throws -> UInt32 {
var result: UINT32 = 0
_ = try perform(as: __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result))
}
return result
}
internal func HasKeyImpl(_ key: String) throws -> Bool {
var result: boolean = 0
let _key = try! HString(key)
_ = try perform(as: __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.HasKey(pThis, _key.get(), &result))
}
return .init(from: result)
}
internal func GetViewImpl() throws -> WindowsFoundation.AnyIMapView<String, WinAppSDK.AnyICompositionAnimationBase?>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseWrapper.unwrapFrom(abi: result)
}
internal func InsertImpl(_ key: String, _ value: WinAppSDK.AnyICompositionAnimationBase?) throws -> Bool {
var result: boolean = 0
let _key = try! HString(key)
let valueWrapper = __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper(value)
let _value = try! valueWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Insert(pThis, _key.get(), _value, &result))
}
return .init(from: result)
}
internal func RemoveImpl(_ key: String) throws {
let _key = try! HString(key)
_ = try perform(as: __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Remove(pThis, _key.get()))
}
}
internal func ClearImpl() throws {
_ = try perform(as: __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis))
}
}
}
internal enum __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBase
internal typealias SwiftABI = IMapString_ICompositionAnimationBase
internal typealias SwiftProjection = WindowsFoundation.AnyIMap<String, WinAppSDK.AnyICompositionAnimationBase?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseImpl : IMap, AbiInterfaceImpl {
typealias T = WindowsFoundation.AnyIKeyValuePair<String, WinAppSDK.AnyICompositionAnimationBase?>?
typealias K = String
typealias V = WinAppSDK.AnyICompositionAnimationBase?
typealias Bridge = __x_ABI_C__FIMap_2_HSTRING___x_ABI_CMicrosoft__CUI__CComposition__CICompositionAnimationBaseBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.lookup)
fileprivate func lookup(_ key: String) -> WinAppSDK.AnyICompositionAnimationBase? {
try! _default.LookupImpl(key)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.haskey)
fileprivate func hasKey(_ key: String) -> Bool {
try! _default.HasKeyImpl(key)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.getview)
fileprivate func getView() -> WindowsFoundation.AnyIMapView<String, WinAppSDK.AnyICompositionAnimationBase?>? {
try! _default.GetViewImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.insert)
fileprivate func insert(_ key: String, _ value: WinAppSDK.AnyICompositionAnimationBase?) -> Bool {
try! _default.InsertImpl(key, value)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.remove)
fileprivate func remove(_ key: String) {
try! _default.RemoveImpl(key)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.clear)
fileprivate func clear() {
try! _default.ClearImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.size)
fileprivate var size : UInt32 {
get { try! _default.get_SizeImpl() }
}
private lazy var _IIterable: IIterableIKeyValuePairString_ICompositionAnimationBase! = getInterfaceForCaching()
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WindowsFoundation.AnyIKeyValuePair<String, WinAppSDK.AnyICompositionAnimationBase?>?>? {
try! _IIterable.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIMap_2_HSTRING_HSTRING: WindowsFoundation.IID {
.init(Data1: 0xf6d1f700, Data2: 0x49c2, Data3: 0x52ae, Data4: ( 0x81,0x54,0x82,0x6f,0x99,0x08,0x77,0x3c ))// f6d1f700-49c2-52ae-8154-826f9908773c
}
internal var __x_ABI_C__FIMap_2_HSTRING_HSTRINGVTable: __x_ABI_C__FIMap_2_HSTRING_HSTRINGVtbl = .init(
QueryInterface: { __x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper.addRef($0) },
Release: { __x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper.IID
iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_HSTRINGWrapper.IID
$1!.pointee = 4
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IMap`2<String, String>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
Lookup: {
guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let key: String = .init(from: $1)
let result = __unwrapped__instance.lookup(key)
$2?.initialize(to: try! HString(result).detach())
return S_OK
},
get_Size: {
guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.size
$1?.initialize(to: result)
return S_OK
},
HasKey: {
guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let key: String = .init(from: $1)
let result = __unwrapped__instance.hasKey(key)
$2?.initialize(to: .init(from: result))
return S_OK
},
GetView: {
guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.getView()
let resultWrapper = WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
},
Insert: {
guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let key: String = .init(from: $1)
let value: String = .init(from: $2)
let result = __unwrapped__instance.insert(key, value)
$3?.initialize(to: .init(from: result))
return S_OK
},
Remove: {
guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let key: String = .init(from: $1)
__unwrapped__instance.remove(key)
return S_OK
},
Clear: {
guard let __unwrapped__instance = __x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
__unwrapped__instance.clear()
return S_OK
}
)
typealias __x_ABI_C__FIMap_2_HSTRING_HSTRINGWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIMap_2_HSTRING_HSTRINGBridge>
internal class IMapString_String: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIMap_2_HSTRING_HSTRING }
internal func LookupImpl(_ key: String) throws -> String {
var result: HSTRING?
let _key = try! HString(key)
_ = try perform(as: __x_ABI_C__FIMap_2_HSTRING_HSTRING.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Lookup(pThis, _key.get(), &result))
}
return .init(from: result)
}
internal func get_SizeImpl() throws -> UInt32 {
var result: UINT32 = 0
_ = try perform(as: __x_ABI_C__FIMap_2_HSTRING_HSTRING.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result))
}
return result
}
internal func HasKeyImpl(_ key: String) throws -> Bool {
var result: boolean = 0
let _key = try! HString(key)
_ = try perform(as: __x_ABI_C__FIMap_2_HSTRING_HSTRING.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.HasKey(pThis, _key.get(), &result))
}
return .init(from: result)
}
internal func GetViewImpl() throws -> WindowsFoundation.AnyIMapView<String, String>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIMap_2_HSTRING_HSTRING.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIMapView_2_HSTRING_HSTRINGWrapper.unwrapFrom(abi: result)
}
internal func InsertImpl(_ key: String, _ value: String) throws -> Bool {
var result: boolean = 0
let _key = try! HString(key)
let _value = try! HString(value)
_ = try perform(as: __x_ABI_C__FIMap_2_HSTRING_HSTRING.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Insert(pThis, _key.get(), _value.get(), &result))
}
return .init(from: result)
}
internal func RemoveImpl(_ key: String) throws {
let _key = try! HString(key)
_ = try perform(as: __x_ABI_C__FIMap_2_HSTRING_HSTRING.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Remove(pThis, _key.get()))
}
}
internal func ClearImpl() throws {
_ = try perform(as: __x_ABI_C__FIMap_2_HSTRING_HSTRING.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis))
}
}
}
internal enum __x_ABI_C__FIMap_2_HSTRING_HSTRINGBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIMap_2_HSTRING_HSTRING
internal typealias SwiftABI = IMapString_String
internal typealias SwiftProjection = WindowsFoundation.AnyIMap<String, String>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIMap_2_HSTRING_HSTRINGImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIMap_2_HSTRING_HSTRINGVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIMap_2_HSTRING_HSTRINGImpl : IMap, AbiInterfaceImpl {
typealias T = WindowsFoundation.AnyIKeyValuePair<String, String>?
typealias K = String
typealias V = String
typealias Bridge = __x_ABI_C__FIMap_2_HSTRING_HSTRINGBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.lookup)
fileprivate func lookup(_ key: String) -> String {
try! _default.LookupImpl(key)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.haskey)
fileprivate func hasKey(_ key: String) -> Bool {
try! _default.HasKeyImpl(key)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.getview)
fileprivate func getView() -> WindowsFoundation.AnyIMapView<String, String>? {
try! _default.GetViewImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.insert)
fileprivate func insert(_ key: String, _ value: String) -> Bool {
try! _default.InsertImpl(key, value)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.remove)
fileprivate func remove(_ key: String) {
try! _default.RemoveImpl(key)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.clear)
fileprivate func clear() {
try! _default.ClearImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.size)
fileprivate var size : UInt32 {
get { try! _default.get_SizeImpl() }
}
private lazy var _IIterable: IIterableIKeyValuePairString_String! = getInterfaceForCaching()
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WindowsFoundation.AnyIKeyValuePair<String, String>?>? {
try! _IIterable.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIVectorView_1_float: WindowsFoundation.IID {
.init(Data1: 0x7bca64fd, Data2: 0x150c, Data3: 0x5d50, Data4: ( 0xb5,0x6b,0x9f,0x4f,0x47,0x4c,0x59,0x30 ))// 7bca64fd-150c-5d50-b56b-9f4f474c5930
}
internal var __x_ABI_C__FIVectorView_1_floatVTable: __x_ABI_C__FIVectorView_1_floatVtbl = .init(
QueryInterface: { __x_ABI_C__FIVectorView_1_floatWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIVectorView_1_floatWrapper.addRef($0) },
Release: { __x_ABI_C__FIVectorView_1_floatWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIVectorView_1_floatWrapper.IID
iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1_floatWrapper.IID
$1!.pointee = 4
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IVectorView`1<Float>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
GetAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
let result = __unwrapped__instance.getAt(index)
$2?.initialize(to: result)
return S_OK
},
get_Size: {
guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.size
$1?.initialize(to: result)
return S_OK
},
IndexOf: {
guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let value: Float = $1
var index: UInt32 = 0
let result = __unwrapped__instance.indexOf(value, &index)
$2?.initialize(to: index)
$3?.initialize(to: .init(from: result))
return S_OK
},
GetMany: { _, _, _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIVectorView_1_floatWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIVectorView_1_floatBridge>
internal class IVectorViewFloat: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1_float }
internal func GetAtImpl(_ index: UInt32) throws -> Float {
var result: FLOAT = 0.0
_ = try perform(as: __x_ABI_C__FIVectorView_1_float.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &result))
}
return result
}
internal func get_SizeImpl() throws -> UInt32 {
var result: UINT32 = 0
_ = try perform(as: __x_ABI_C__FIVectorView_1_float.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result))
}
return result
}
internal func IndexOfImpl(_ value: Float, _ index: inout UInt32) throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIVectorView_1_float.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, value, &index, &result))
}
return .init(from: result)
}
}
internal enum __x_ABI_C__FIVectorView_1_floatBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIVectorView_1_float
internal typealias SwiftABI = IVectorViewFloat
internal typealias SwiftProjection = WindowsFoundation.AnyIVectorView<Float>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIVectorView_1_floatImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1_floatVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIVectorView_1_floatImpl : IVectorView, AbiInterfaceImpl {
typealias T = Float
typealias Bridge = __x_ABI_C__FIVectorView_1_floatBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: Collection
typealias Element = T
var startIndex: Int { 0 }
var endIndex: Int { Int(size) }
func index(after i: Int) -> Int {
i+1
}
func index(of: Element) -> Int? {
var index: UInt32 = 0
let result = indexOf(of, &index)
guard result else { return nil }
return Int(index)
}
var count: Int { Int(size) }
subscript(position: Int) -> Element {
get {
getAt(UInt32(position))
}
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.getat)
fileprivate func getAt(_ index: UInt32) -> Float {
try! _default.GetAtImpl(index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof)
fileprivate func indexOf(_ value: Float, _ index: inout UInt32) -> Bool {
try! _default.IndexOfImpl(value, &index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.size)
fileprivate var size : UInt32 {
get { try! _default.get_SizeImpl() }
}
private lazy var _IIterable: IIterableFloat! = getInterfaceForCaching()
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<Float>? {
try! _IIterable.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop: WindowsFoundation.IID {
.init(Data1: 0xb3f66d8c, Data2: 0x130e, Data3: 0x52d4, Data4: ( 0x80,0x3e,0x53,0x05,0x51,0x9d,0x50,0x56 ))// b3f66d8c-130e-52d4-803e-5305519d5056
}
internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopVtbl = .init(
QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.addRef($0) },
Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.IID
iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.IID
$1!.pointee = 4
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IVectorView`1<Microsoft.UI.Composition.CompositionColorGradientStop>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
GetAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
let result = __unwrapped__instance.getAt(index)
result?.copyTo($2)
return S_OK
},
get_Size: {
guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.size
$1?.initialize(to: result)
return S_OK
},
IndexOf: {
guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let value: WinAppSDK.CompositionColorGradientStop? = .from(abi: ComPtr($1))
var index: UInt32 = 0
let result = __unwrapped__instance.indexOf(value, &index)
$2?.initialize(to: index)
$3?.initialize(to: .init(from: result))
return S_OK
},
GetMany: { _, _, _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopBridge>
internal class IVectorViewCompositionColorGradientStop: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop }
internal func GetAtImpl(_ index: UInt32) throws -> WinAppSDK.CompositionColorGradientStop? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &resultAbi))
}
}
return .from(abi: result)
}
internal func get_SizeImpl() throws -> UInt32 {
var result: UINT32 = 0
_ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result))
}
return result
}
internal func IndexOfImpl(_ value: WinAppSDK.CompositionColorGradientStop?, _ index: inout UInt32) throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, RawPointer(value), &index, &result))
}
return .init(from: result)
}
}
internal enum __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop
internal typealias SwiftABI = IVectorViewCompositionColorGradientStop
internal typealias SwiftProjection = WindowsFoundation.AnyIVectorView<WinAppSDK.CompositionColorGradientStop?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopImpl : IVectorView, AbiInterfaceImpl {
typealias T = WinAppSDK.CompositionColorGradientStop?
typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: Collection
typealias Element = T
var startIndex: Int { 0 }
var endIndex: Int { Int(size) }
func index(after i: Int) -> Int {
i+1
}
func index(of: Element) -> Int? {
var index: UInt32 = 0
let result = indexOf(of, &index)
guard result else { return nil }
return Int(index)
}
var count: Int { Int(size) }
subscript(position: Int) -> Element {
get {
getAt(UInt32(position))
}
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.getat)
fileprivate func getAt(_ index: UInt32) -> WinAppSDK.CompositionColorGradientStop? {
try! _default.GetAtImpl(index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof)
fileprivate func indexOf(_ value: WinAppSDK.CompositionColorGradientStop?, _ index: inout UInt32) -> Bool {
try! _default.IndexOfImpl(value, &index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.size)
fileprivate var size : UInt32 {
get { try! _default.get_SizeImpl() }
}
private lazy var _IIterable: IIterableCompositionColorGradientStop! = getInterfaceForCaching()
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WinAppSDK.CompositionColorGradientStop?>? {
try! _IIterable.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape: WindowsFoundation.IID {
.init(Data1: 0x7c3d1b0a, Data2: 0x2533, Data3: 0x568b, Data4: ( 0x96,0x3c,0x7f,0xdb,0x57,0x69,0xdb,0xe8 ))// 7c3d1b0a-2533-568b-963c-7fdb5769dbe8
}
internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeVtbl = .init(
QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.addRef($0) },
Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.IID
iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.IID
$1!.pointee = 4
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IVectorView`1<Microsoft.UI.Composition.CompositionShape>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
GetAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
let result = __unwrapped__instance.getAt(index)
result?.copyTo($2)
return S_OK
},
get_Size: {
guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.size
$1?.initialize(to: result)
return S_OK
},
IndexOf: {
guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let value: WinAppSDK.CompositionShape? = .from(abi: ComPtr($1))
var index: UInt32 = 0
let result = __unwrapped__instance.indexOf(value, &index)
$2?.initialize(to: index)
$3?.initialize(to: .init(from: result))
return S_OK
},
GetMany: { _, _, _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeBridge>
internal class IVectorViewCompositionShape: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape }
internal func GetAtImpl(_ index: UInt32) throws -> WinAppSDK.CompositionShape? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &resultAbi))
}
}
return .from(abi: result)
}
internal func get_SizeImpl() throws -> UInt32 {
var result: UINT32 = 0
_ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result))
}
return result
}
internal func IndexOfImpl(_ value: WinAppSDK.CompositionShape?, _ index: inout UInt32) throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, RawPointer(value), &index, &result))
}
return .init(from: result)
}
}
internal enum __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape
internal typealias SwiftABI = IVectorViewCompositionShape
internal typealias SwiftProjection = WindowsFoundation.AnyIVectorView<WinAppSDK.CompositionShape?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeImpl : IVectorView, AbiInterfaceImpl {
typealias T = WinAppSDK.CompositionShape?
typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: Collection
typealias Element = T
var startIndex: Int { 0 }
var endIndex: Int { Int(size) }
func index(after i: Int) -> Int {
i+1
}
func index(of: Element) -> Int? {
var index: UInt32 = 0
let result = indexOf(of, &index)
guard result else { return nil }
return Int(index)
}
var count: Int { Int(size) }
subscript(position: Int) -> Element {
get {
getAt(UInt32(position))
}
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.getat)
fileprivate func getAt(_ index: UInt32) -> WinAppSDK.CompositionShape? {
try! _default.GetAtImpl(index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof)
fileprivate func indexOf(_ value: WinAppSDK.CompositionShape?, _ index: inout UInt32) -> Bool {
try! _default.IndexOfImpl(value, &index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.size)
fileprivate var size : UInt32 {
get { try! _default.get_SizeImpl() }
}
private lazy var _IIterable: IIterableCompositionShape! = getInterfaceForCaching()
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WinAppSDK.CompositionShape?>? {
try! _IIterable.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint: WindowsFoundation.IID {
.init(Data1: 0x5fbb224b, Data2: 0x8430, Data3: 0x5086, Data4: ( 0xab,0x85,0xe7,0x1d,0xfa,0xa8,0x4c,0x90 ))// 5fbb224b-8430-5086-ab85-e71dfaa84c90
}
internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointVtbl = .init(
QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.addRef($0) },
Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.IID
iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.IID
$1!.pointee = 4
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IVectorView`1<Microsoft.UI.Input.PointerPoint>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
GetAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
let result = __unwrapped__instance.getAt(index)
result?.copyTo($2)
return S_OK
},
get_Size: {
guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.size
$1?.initialize(to: result)
return S_OK
},
IndexOf: {
guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let value: WinAppSDK.PointerPoint? = .from(abi: ComPtr($1))
var index: UInt32 = 0
let result = __unwrapped__instance.indexOf(value, &index)
$2?.initialize(to: index)
$3?.initialize(to: .init(from: result))
return S_OK
},
GetMany: { _, _, _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointBridge>
internal class IVectorViewPointerPoint: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint }
internal func GetAtImpl(_ index: UInt32) throws -> WinAppSDK.PointerPoint? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &resultAbi))
}
}
return .from(abi: result)
}
internal func get_SizeImpl() throws -> UInt32 {
var result: UINT32 = 0
_ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result))
}
return result
}
internal func IndexOfImpl(_ value: WinAppSDK.PointerPoint?, _ index: inout UInt32) throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, RawPointer(value), &index, &result))
}
return .init(from: result)
}
}
internal enum __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint
internal typealias SwiftABI = IVectorViewPointerPoint
internal typealias SwiftProjection = WindowsFoundation.AnyIVectorView<WinAppSDK.PointerPoint?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointImpl : IVectorView, AbiInterfaceImpl {
typealias T = WinAppSDK.PointerPoint?
typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: Collection
typealias Element = T
var startIndex: Int { 0 }
var endIndex: Int { Int(size) }
func index(after i: Int) -> Int {
i+1
}
func index(of: Element) -> Int? {
var index: UInt32 = 0
let result = indexOf(of, &index)
guard result else { return nil }
return Int(index)
}
var count: Int { Int(size) }
subscript(position: Int) -> Element {
get {
getAt(UInt32(position))
}
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.getat)
fileprivate func getAt(_ index: UInt32) -> WinAppSDK.PointerPoint? {
try! _default.GetAtImpl(index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof)
fileprivate func indexOf(_ value: WinAppSDK.PointerPoint?, _ index: inout UInt32) -> Bool {
try! _default.IndexOfImpl(value, &index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.size)
fileprivate var size : UInt32 {
get { try! _default.get_SizeImpl() }
}
private lazy var _IIterable: IIterablePointerPoint! = getInterfaceForCaching()
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WinAppSDK.PointerPoint?>? {
try! _IIterable.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea: WindowsFoundation.IID {
.init(Data1: 0x63490e13, Data2: 0xd075, Data3: 0x5fe2, Data4: ( 0xb6,0xa4,0x86,0xa4,0x40,0x95,0x21,0x5f ))// 63490e13-d075-5fe2-b6a4-86a44095215f
}
internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaVtbl = .init(
QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.addRef($0) },
Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.IID
iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.IID
$1!.pointee = 4
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IVectorView`1<Microsoft.UI.Windowing.DisplayArea>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
GetAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
let result = __unwrapped__instance.getAt(index)
result?.copyTo($2)
return S_OK
},
get_Size: {
guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.size
$1?.initialize(to: result)
return S_OK
},
IndexOf: {
guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let value: WinAppSDK.DisplayArea? = .from(abi: ComPtr($1))
var index: UInt32 = 0
let result = __unwrapped__instance.indexOf(value, &index)
$2?.initialize(to: index)
$3?.initialize(to: .init(from: result))
return S_OK
},
GetMany: { _, _, _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaBridge>
internal class IVectorViewDisplayArea: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea }
internal func GetAtImpl(_ index: UInt32) throws -> WinAppSDK.DisplayArea? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &resultAbi))
}
}
return .from(abi: result)
}
internal func get_SizeImpl() throws -> UInt32 {
var result: UINT32 = 0
_ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result))
}
return result
}
internal func IndexOfImpl(_ value: WinAppSDK.DisplayArea?, _ index: inout UInt32) throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, RawPointer(value), &index, &result))
}
return .init(from: result)
}
}
internal enum __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea
internal typealias SwiftABI = IVectorViewDisplayArea
internal typealias SwiftProjection = WindowsFoundation.AnyIVectorView<WinAppSDK.DisplayArea?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaImpl : IVectorView, AbiInterfaceImpl {
typealias T = WinAppSDK.DisplayArea?
typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: Collection
typealias Element = T
var startIndex: Int { 0 }
var endIndex: Int { Int(size) }
func index(after i: Int) -> Int {
i+1
}
func index(of: Element) -> Int? {
var index: UInt32 = 0
let result = indexOf(of, &index)
guard result else { return nil }
return Int(index)
}
var count: Int { Int(size) }
subscript(position: Int) -> Element {
get {
getAt(UInt32(position))
}
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.getat)
fileprivate func getAt(_ index: UInt32) -> WinAppSDK.DisplayArea? {
try! _default.GetAtImpl(index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof)
fileprivate func indexOf(_ value: WinAppSDK.DisplayArea?, _ index: inout UInt32) -> Bool {
try! _default.IndexOfImpl(value, &index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.size)
fileprivate var size : UInt32 {
get { try! _default.get_SizeImpl() }
}
private lazy var _IIterable: IIterableDisplayArea! = getInterfaceForCaching()
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WinAppSDK.DisplayArea?>? {
try! _IIterable.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance: WindowsFoundation.IID {
.init(Data1: 0x1520072b, Data2: 0xd6f2, Data3: 0x5a95, Data4: ( 0x98,0x8d,0xe6,0xc4,0xa6,0xeb,0x66,0xa4 ))// 1520072b-d6f2-5a95-988d-e6c4a6eb66a4
}
internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceVtbl = .init(
QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.addRef($0) },
Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.IID
iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.IID
$1!.pointee = 4
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IVectorView`1<Microsoft.Windows.AppLifecycle.AppInstance>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
GetAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
let result = __unwrapped__instance.getAt(index)
result?.copyTo($2)
return S_OK
},
get_Size: {
guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.size
$1?.initialize(to: result)
return S_OK
},
IndexOf: {
guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let value: WinAppSDK.AppInstance? = .from(abi: ComPtr($1))
var index: UInt32 = 0
let result = __unwrapped__instance.indexOf(value, &index)
$2?.initialize(to: index)
$3?.initialize(to: .init(from: result))
return S_OK
},
GetMany: { _, _, _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceBridge>
internal class IVectorViewAppInstance: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance }
internal func GetAtImpl(_ index: UInt32) throws -> WinAppSDK.AppInstance? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &resultAbi))
}
}
return .from(abi: result)
}
internal func get_SizeImpl() throws -> UInt32 {
var result: UINT32 = 0
_ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result))
}
return result
}
internal func IndexOfImpl(_ value: WinAppSDK.AppInstance?, _ index: inout UInt32) throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, RawPointer(value), &index, &result))
}
return .init(from: result)
}
}
internal enum __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance
internal typealias SwiftABI = IVectorViewAppInstance
internal typealias SwiftProjection = WindowsFoundation.AnyIVectorView<WinAppSDK.AppInstance?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceImpl : IVectorView, AbiInterfaceImpl {
typealias T = WinAppSDK.AppInstance?
typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: Collection
typealias Element = T
var startIndex: Int { 0 }
var endIndex: Int { Int(size) }
func index(after i: Int) -> Int {
i+1
}
func index(of: Element) -> Int? {
var index: UInt32 = 0
let result = indexOf(of, &index)
guard result else { return nil }
return Int(index)
}
var count: Int { Int(size) }
subscript(position: Int) -> Element {
get {
getAt(UInt32(position))
}
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.getat)
fileprivate func getAt(_ index: UInt32) -> WinAppSDK.AppInstance? {
try! _default.GetAtImpl(index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof)
fileprivate func indexOf(_ value: WinAppSDK.AppInstance?, _ index: inout UInt32) -> Bool {
try! _default.IndexOfImpl(value, &index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.size)
fileprivate var size : UInt32 {
get { try! _default.get_SizeImpl() }
}
private lazy var _IIterable: IIterableAppInstance! = getInterfaceForCaching()
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WinAppSDK.AppInstance?>? {
try! _IIterable.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIVector_1_float: WindowsFoundation.IID {
.init(Data1: 0x61cf693f, Data2: 0xdb4c, Data3: 0x579f, Data4: ( 0xb9,0x05,0x5d,0xd3,0xd2,0x3c,0xfd,0x4d ))// 61cf693f-db4c-579f-b905-5dd3d23cfd4d
}
internal var __x_ABI_C__FIVector_1_floatVTable: __x_ABI_C__FIVector_1_floatVtbl = .init(
QueryInterface: { __x_ABI_C__FIVector_1_floatWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIVector_1_floatWrapper.addRef($0) },
Release: { __x_ABI_C__FIVector_1_floatWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIVector_1_floatWrapper.IID
iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1_floatWrapper.IID
$1!.pointee = 4
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IVector`1<Float>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
GetAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
let result = __unwrapped__instance.getAt(index)
$2?.initialize(to: result)
return S_OK
},
get_Size: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.size
$1?.initialize(to: result)
return S_OK
},
GetView: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.getView()
let resultWrapper = WinAppSDK.__x_ABI_C__FIVectorView_1_floatWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
},
IndexOf: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let value: Float = $1
var index: UInt32 = 0
let result = __unwrapped__instance.indexOf(value, &index)
$2?.initialize(to: index)
$3?.initialize(to: .init(from: result))
return S_OK
},
SetAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
let value: Float = $2
__unwrapped__instance.setAt(index, value)
return S_OK
},
InsertAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
let value: Float = $2
__unwrapped__instance.insertAt(index, value)
return S_OK
},
RemoveAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
__unwrapped__instance.removeAt(index)
return S_OK
},
Append: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let value: Float = $1
__unwrapped__instance.append(value)
return S_OK
},
RemoveAtEnd: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
__unwrapped__instance.removeAtEnd()
return S_OK
},
Clear: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
__unwrapped__instance.clear()
return S_OK
},
GetMany: { _, _, _, _, _ in return failWith(err: E_NOTIMPL) },
ReplaceAll: { _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIVector_1_floatWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIVector_1_floatBridge>
internal class IVectorFloat: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1_float }
internal func GetAtImpl(_ index: UInt32) throws -> Float {
var result: FLOAT = 0.0
_ = try perform(as: __x_ABI_C__FIVector_1_float.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &result))
}
return result
}
internal func get_SizeImpl() throws -> UInt32 {
var result: UINT32 = 0
_ = try perform(as: __x_ABI_C__FIVector_1_float.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result))
}
return result
}
internal func GetViewImpl() throws -> WindowsFoundation.AnyIVectorView<Float>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIVector_1_float.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIVectorView_1_floatWrapper.unwrapFrom(abi: result)
}
internal func IndexOfImpl(_ value: Float, _ index: inout UInt32) throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIVector_1_float.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, value, &index, &result))
}
return .init(from: result)
}
internal func SetAtImpl(_ index: UInt32, _ value: Float) throws {
_ = try perform(as: __x_ABI_C__FIVector_1_float.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, value))
}
}
internal func InsertAtImpl(_ index: UInt32, _ value: Float) throws {
_ = try perform(as: __x_ABI_C__FIVector_1_float.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.InsertAt(pThis, index, value))
}
}
internal func RemoveAtImpl(_ index: UInt32) throws {
_ = try perform(as: __x_ABI_C__FIVector_1_float.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index))
}
}
internal func AppendImpl(_ value: Float) throws {
_ = try perform(as: __x_ABI_C__FIVector_1_float.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Append(pThis, value))
}
}
internal func RemoveAtEndImpl() throws {
_ = try perform(as: __x_ABI_C__FIVector_1_float.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAtEnd(pThis))
}
}
internal func ClearImpl() throws {
_ = try perform(as: __x_ABI_C__FIVector_1_float.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis))
}
}
}
internal enum __x_ABI_C__FIVector_1_floatBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIVector_1_float
internal typealias SwiftABI = IVectorFloat
internal typealias SwiftProjection = WindowsFoundation.AnyIVector<Float>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIVector_1_floatImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1_floatVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIVector_1_floatImpl : IVector, AbiInterfaceImpl {
typealias T = Float
typealias Bridge = __x_ABI_C__FIVector_1_floatBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: Collection
typealias Element = T
var startIndex: Int { 0 }
var endIndex: Int { Int(size) }
func index(after i: Int) -> Int {
i+1
}
func index(of: Element) -> Int? {
var index: UInt32 = 0
let result = indexOf(of, &index)
guard result else { return nil }
return Int(index)
}
var count: Int { Int(size) }
subscript(position: Int) -> Element {
get {
getAt(UInt32(position))
}
set(newValue) {
setAt(UInt32(position), newValue)
}
}
func removeLast() {
removeAtEnd()
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.getat)
fileprivate func getAt(_ index: UInt32) -> Float {
try! _default.GetAtImpl(index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.getview)
fileprivate func getView() -> WindowsFoundation.AnyIVectorView<Float>? {
try! _default.GetViewImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.indexof)
fileprivate func indexOf(_ value: Float, _ index: inout UInt32) -> Bool {
try! _default.IndexOfImpl(value, &index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.setat)
fileprivate func setAt(_ index: UInt32, _ value: Float) {
try! _default.SetAtImpl(index, value)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.insertat)
fileprivate func insertAt(_ index: UInt32, _ value: Float) {
try! _default.InsertAtImpl(index, value)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.removeat)
fileprivate func removeAt(_ index: UInt32) {
try! _default.RemoveAtImpl(index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.append)
fileprivate func append(_ value: Float) {
try! _default.AppendImpl(value)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.removeatend)
fileprivate func removeAtEnd() {
try! _default.RemoveAtEndImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.clear)
fileprivate func clear() {
try! _default.ClearImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.size)
fileprivate var size : UInt32 {
get { try! _default.get_SizeImpl() }
}
private lazy var _IIterable: IIterableFloat! = getInterfaceForCaching()
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<Float>? {
try! _IIterable.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop: WindowsFoundation.IID {
.init(Data1: 0x77fa9267, Data2: 0xb867, Data3: 0x5f77, Data4: ( 0x8c,0x02,0x7d,0x85,0x81,0x9d,0x56,0x3b ))// 77fa9267-b867-5f77-8c02-7d85819d563b
}
internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopVtbl = .init(
QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.addRef($0) },
Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.IID
iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.IID
$1!.pointee = 4
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IVector`1<Microsoft.UI.Composition.CompositionColorGradientStop>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
GetAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
let result = __unwrapped__instance.getAt(index)
result?.copyTo($2)
return S_OK
},
get_Size: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.size
$1?.initialize(to: result)
return S_OK
},
GetView: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.getView()
let resultWrapper = WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
},
IndexOf: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let value: WinAppSDK.CompositionColorGradientStop? = .from(abi: ComPtr($1))
var index: UInt32 = 0
let result = __unwrapped__instance.indexOf(value, &index)
$2?.initialize(to: index)
$3?.initialize(to: .init(from: result))
return S_OK
},
SetAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
let value: WinAppSDK.CompositionColorGradientStop? = .from(abi: ComPtr($2))
__unwrapped__instance.setAt(index, value)
return S_OK
},
InsertAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
let value: WinAppSDK.CompositionColorGradientStop? = .from(abi: ComPtr($2))
__unwrapped__instance.insertAt(index, value)
return S_OK
},
RemoveAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
__unwrapped__instance.removeAt(index)
return S_OK
},
Append: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let value: WinAppSDK.CompositionColorGradientStop? = .from(abi: ComPtr($1))
__unwrapped__instance.append(value)
return S_OK
},
RemoveAtEnd: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
__unwrapped__instance.removeAtEnd()
return S_OK
},
Clear: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
__unwrapped__instance.clear()
return S_OK
},
GetMany: { _, _, _, _, _ in return failWith(err: E_NOTIMPL) },
ReplaceAll: { _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopBridge>
internal class IVectorCompositionColorGradientStop: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop }
internal func GetAtImpl(_ index: UInt32) throws -> WinAppSDK.CompositionColorGradientStop? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &resultAbi))
}
}
return .from(abi: result)
}
internal func get_SizeImpl() throws -> UInt32 {
var result: UINT32 = 0
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result))
}
return result
}
internal func GetViewImpl() throws -> WindowsFoundation.AnyIVectorView<WinAppSDK.CompositionColorGradientStop?>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopWrapper.unwrapFrom(abi: result)
}
internal func IndexOfImpl(_ value: WinAppSDK.CompositionColorGradientStop?, _ index: inout UInt32) throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, RawPointer(value), &index, &result))
}
return .init(from: result)
}
internal func SetAtImpl(_ index: UInt32, _ value: WinAppSDK.CompositionColorGradientStop?) throws {
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value)))
}
}
internal func InsertAtImpl(_ index: UInt32, _ value: WinAppSDK.CompositionColorGradientStop?) throws {
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.InsertAt(pThis, index, RawPointer(value)))
}
}
internal func RemoveAtImpl(_ index: UInt32) throws {
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index))
}
}
internal func AppendImpl(_ value: WinAppSDK.CompositionColorGradientStop?) throws {
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Append(pThis, RawPointer(value)))
}
}
internal func RemoveAtEndImpl() throws {
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAtEnd(pThis))
}
}
internal func ClearImpl() throws {
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis))
}
}
}
internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStop
internal typealias SwiftABI = IVectorCompositionColorGradientStop
internal typealias SwiftProjection = WindowsFoundation.AnyIVector<WinAppSDK.CompositionColorGradientStop?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopImpl : IVector, AbiInterfaceImpl {
typealias T = WinAppSDK.CompositionColorGradientStop?
typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionColorGradientStopBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: Collection
typealias Element = T
var startIndex: Int { 0 }
var endIndex: Int { Int(size) }
func index(after i: Int) -> Int {
i+1
}
func index(of: Element) -> Int? {
var index: UInt32 = 0
let result = indexOf(of, &index)
guard result else { return nil }
return Int(index)
}
var count: Int { Int(size) }
subscript(position: Int) -> Element {
get {
getAt(UInt32(position))
}
set(newValue) {
setAt(UInt32(position), newValue)
}
}
func removeLast() {
removeAtEnd()
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.getat)
fileprivate func getAt(_ index: UInt32) -> WinAppSDK.CompositionColorGradientStop? {
try! _default.GetAtImpl(index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.getview)
fileprivate func getView() -> WindowsFoundation.AnyIVectorView<WinAppSDK.CompositionColorGradientStop?>? {
try! _default.GetViewImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.indexof)
fileprivate func indexOf(_ value: WinAppSDK.CompositionColorGradientStop?, _ index: inout UInt32) -> Bool {
try! _default.IndexOfImpl(value, &index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.setat)
fileprivate func setAt(_ index: UInt32, _ value: WinAppSDK.CompositionColorGradientStop?) {
try! _default.SetAtImpl(index, value)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.insertat)
fileprivate func insertAt(_ index: UInt32, _ value: WinAppSDK.CompositionColorGradientStop?) {
try! _default.InsertAtImpl(index, value)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.removeat)
fileprivate func removeAt(_ index: UInt32) {
try! _default.RemoveAtImpl(index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.append)
fileprivate func append(_ value: WinAppSDK.CompositionColorGradientStop?) {
try! _default.AppendImpl(value)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.removeatend)
fileprivate func removeAtEnd() {
try! _default.RemoveAtEndImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.clear)
fileprivate func clear() {
try! _default.ClearImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.size)
fileprivate var size : UInt32 {
get { try! _default.get_SizeImpl() }
}
private lazy var _IIterable: IIterableCompositionColorGradientStop! = getInterfaceForCaching()
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WinAppSDK.CompositionColorGradientStop?>? {
try! _IIterable.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape: WindowsFoundation.IID {
.init(Data1: 0x7397ef7a, Data2: 0xaabd, Data3: 0x50a3, Data4: ( 0x93,0x08,0x06,0xd2,0xa7,0x05,0x06,0x21 ))// 7397ef7a-aabd-50a3-9308-06d2a7050621
}
internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeVtbl = .init(
QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.addRef($0) },
Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.IID
iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.IID
$1!.pointee = 4
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IVector`1<Microsoft.UI.Composition.CompositionShape>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
GetAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
let result = __unwrapped__instance.getAt(index)
result?.copyTo($2)
return S_OK
},
get_Size: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.size
$1?.initialize(to: result)
return S_OK
},
GetView: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.getView()
let resultWrapper = WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
},
IndexOf: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let value: WinAppSDK.CompositionShape? = .from(abi: ComPtr($1))
var index: UInt32 = 0
let result = __unwrapped__instance.indexOf(value, &index)
$2?.initialize(to: index)
$3?.initialize(to: .init(from: result))
return S_OK
},
SetAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
let value: WinAppSDK.CompositionShape? = .from(abi: ComPtr($2))
__unwrapped__instance.setAt(index, value)
return S_OK
},
InsertAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
let value: WinAppSDK.CompositionShape? = .from(abi: ComPtr($2))
__unwrapped__instance.insertAt(index, value)
return S_OK
},
RemoveAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
__unwrapped__instance.removeAt(index)
return S_OK
},
Append: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let value: WinAppSDK.CompositionShape? = .from(abi: ComPtr($1))
__unwrapped__instance.append(value)
return S_OK
},
RemoveAtEnd: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
__unwrapped__instance.removeAtEnd()
return S_OK
},
Clear: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
__unwrapped__instance.clear()
return S_OK
},
GetMany: { _, _, _, _, _ in return failWith(err: E_NOTIMPL) },
ReplaceAll: { _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeBridge>
internal class IVectorCompositionShape: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape }
internal func GetAtImpl(_ index: UInt32) throws -> WinAppSDK.CompositionShape? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &resultAbi))
}
}
return .from(abi: result)
}
internal func get_SizeImpl() throws -> UInt32 {
var result: UINT32 = 0
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result))
}
return result
}
internal func GetViewImpl() throws -> WindowsFoundation.AnyIVectorView<WinAppSDK.CompositionShape?>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeWrapper.unwrapFrom(abi: result)
}
internal func IndexOfImpl(_ value: WinAppSDK.CompositionShape?, _ index: inout UInt32) throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, RawPointer(value), &index, &result))
}
return .init(from: result)
}
internal func SetAtImpl(_ index: UInt32, _ value: WinAppSDK.CompositionShape?) throws {
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value)))
}
}
internal func InsertAtImpl(_ index: UInt32, _ value: WinAppSDK.CompositionShape?) throws {
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.InsertAt(pThis, index, RawPointer(value)))
}
}
internal func RemoveAtImpl(_ index: UInt32) throws {
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index))
}
}
internal func AppendImpl(_ value: WinAppSDK.CompositionShape?) throws {
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Append(pThis, RawPointer(value)))
}
}
internal func RemoveAtEndImpl() throws {
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAtEnd(pThis))
}
}
internal func ClearImpl() throws {
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis))
}
}
}
internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShape
internal typealias SwiftABI = IVectorCompositionShape
internal typealias SwiftProjection = WindowsFoundation.AnyIVector<WinAppSDK.CompositionShape?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeImpl : IVector, AbiInterfaceImpl {
typealias T = WinAppSDK.CompositionShape?
typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CComposition__CCompositionShapeBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: Collection
typealias Element = T
var startIndex: Int { 0 }
var endIndex: Int { Int(size) }
func index(after i: Int) -> Int {
i+1
}
func index(of: Element) -> Int? {
var index: UInt32 = 0
let result = indexOf(of, &index)
guard result else { return nil }
return Int(index)
}
var count: Int { Int(size) }
subscript(position: Int) -> Element {
get {
getAt(UInt32(position))
}
set(newValue) {
setAt(UInt32(position), newValue)
}
}
func removeLast() {
removeAtEnd()
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.getat)
fileprivate func getAt(_ index: UInt32) -> WinAppSDK.CompositionShape? {
try! _default.GetAtImpl(index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.getview)
fileprivate func getView() -> WindowsFoundation.AnyIVectorView<WinAppSDK.CompositionShape?>? {
try! _default.GetViewImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.indexof)
fileprivate func indexOf(_ value: WinAppSDK.CompositionShape?, _ index: inout UInt32) -> Bool {
try! _default.IndexOfImpl(value, &index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.setat)
fileprivate func setAt(_ index: UInt32, _ value: WinAppSDK.CompositionShape?) {
try! _default.SetAtImpl(index, value)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.insertat)
fileprivate func insertAt(_ index: UInt32, _ value: WinAppSDK.CompositionShape?) {
try! _default.InsertAtImpl(index, value)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.removeat)
fileprivate func removeAt(_ index: UInt32) {
try! _default.RemoveAtImpl(index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.append)
fileprivate func append(_ value: WinAppSDK.CompositionShape?) {
try! _default.AppendImpl(value)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.removeatend)
fileprivate func removeAtEnd() {
try! _default.RemoveAtEndImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.clear)
fileprivate func clear() {
try! _default.ClearImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.size)
fileprivate var size : UInt32 {
get { try! _default.get_SizeImpl() }
}
private lazy var _IIterable: IIterableCompositionShape! = getInterfaceForCaching()
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WinAppSDK.CompositionShape?>? {
try! _IIterable.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint: WindowsFoundation.IID {
.init(Data1: 0x8220cf33, Data2: 0x5d76, Data3: 0x5607, Data4: ( 0xbb,0x7d,0xb7,0xcd,0x07,0xd2,0x7f,0x33 ))// 8220cf33-5d76-5607-bb7d-b7cd07d27f33
}
internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointVtbl = .init(
QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.addRef($0) },
Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.IID
iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.IID
$1!.pointee = 4
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IVector`1<Microsoft.UI.Input.PointerPoint>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
GetAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
let result = __unwrapped__instance.getAt(index)
result?.copyTo($2)
return S_OK
},
get_Size: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.size
$1?.initialize(to: result)
return S_OK
},
GetView: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.getView()
let resultWrapper = WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
},
IndexOf: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let value: WinAppSDK.PointerPoint? = .from(abi: ComPtr($1))
var index: UInt32 = 0
let result = __unwrapped__instance.indexOf(value, &index)
$2?.initialize(to: index)
$3?.initialize(to: .init(from: result))
return S_OK
},
SetAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
let value: WinAppSDK.PointerPoint? = .from(abi: ComPtr($2))
__unwrapped__instance.setAt(index, value)
return S_OK
},
InsertAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
let value: WinAppSDK.PointerPoint? = .from(abi: ComPtr($2))
__unwrapped__instance.insertAt(index, value)
return S_OK
},
RemoveAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
__unwrapped__instance.removeAt(index)
return S_OK
},
Append: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let value: WinAppSDK.PointerPoint? = .from(abi: ComPtr($1))
__unwrapped__instance.append(value)
return S_OK
},
RemoveAtEnd: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
__unwrapped__instance.removeAtEnd()
return S_OK
},
Clear: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
__unwrapped__instance.clear()
return S_OK
},
GetMany: { _, _, _, _, _ in return failWith(err: E_NOTIMPL) },
ReplaceAll: { _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointBridge>
internal class IVectorPointerPoint: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint }
internal func GetAtImpl(_ index: UInt32) throws -> WinAppSDK.PointerPoint? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &resultAbi))
}
}
return .from(abi: result)
}
internal func get_SizeImpl() throws -> UInt32 {
var result: UINT32 = 0
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result))
}
return result
}
internal func GetViewImpl() throws -> WindowsFoundation.AnyIVectorView<WinAppSDK.PointerPoint?>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.unwrapFrom(abi: result)
}
internal func IndexOfImpl(_ value: WinAppSDK.PointerPoint?, _ index: inout UInt32) throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, RawPointer(value), &index, &result))
}
return .init(from: result)
}
internal func SetAtImpl(_ index: UInt32, _ value: WinAppSDK.PointerPoint?) throws {
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value)))
}
}
internal func InsertAtImpl(_ index: UInt32, _ value: WinAppSDK.PointerPoint?) throws {
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.InsertAt(pThis, index, RawPointer(value)))
}
}
internal func RemoveAtImpl(_ index: UInt32) throws {
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index))
}
}
internal func AppendImpl(_ value: WinAppSDK.PointerPoint?) throws {
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Append(pThis, RawPointer(value)))
}
}
internal func RemoveAtEndImpl() throws {
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAtEnd(pThis))
}
}
internal func ClearImpl() throws {
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis))
}
}
}
internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPoint
internal typealias SwiftABI = IVectorPointerPoint
internal typealias SwiftProjection = WindowsFoundation.AnyIVector<WinAppSDK.PointerPoint?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointImpl : IVector, AbiInterfaceImpl {
typealias T = WinAppSDK.PointerPoint?
typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: Collection
typealias Element = T
var startIndex: Int { 0 }
var endIndex: Int { Int(size) }
func index(after i: Int) -> Int {
i+1
}
func index(of: Element) -> Int? {
var index: UInt32 = 0
let result = indexOf(of, &index)
guard result else { return nil }
return Int(index)
}
var count: Int { Int(size) }
subscript(position: Int) -> Element {
get {
getAt(UInt32(position))
}
set(newValue) {
setAt(UInt32(position), newValue)
}
}
func removeLast() {
removeAtEnd()
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.getat)
fileprivate func getAt(_ index: UInt32) -> WinAppSDK.PointerPoint? {
try! _default.GetAtImpl(index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.getview)
fileprivate func getView() -> WindowsFoundation.AnyIVectorView<WinAppSDK.PointerPoint?>? {
try! _default.GetViewImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.indexof)
fileprivate func indexOf(_ value: WinAppSDK.PointerPoint?, _ index: inout UInt32) -> Bool {
try! _default.IndexOfImpl(value, &index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.setat)
fileprivate func setAt(_ index: UInt32, _ value: WinAppSDK.PointerPoint?) {
try! _default.SetAtImpl(index, value)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.insertat)
fileprivate func insertAt(_ index: UInt32, _ value: WinAppSDK.PointerPoint?) {
try! _default.InsertAtImpl(index, value)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.removeat)
fileprivate func removeAt(_ index: UInt32) {
try! _default.RemoveAtImpl(index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.append)
fileprivate func append(_ value: WinAppSDK.PointerPoint?) {
try! _default.AppendImpl(value)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.removeatend)
fileprivate func removeAtEnd() {
try! _default.RemoveAtEndImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.clear)
fileprivate func clear() {
try! _default.ClearImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.size)
fileprivate var size : UInt32 {
get { try! _default.get_SizeImpl() }
}
private lazy var _IIterable: IIterablePointerPoint! = getInterfaceForCaching()
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WinAppSDK.PointerPoint?>? {
try! _IIterable.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance: WindowsFoundation.IID {
.init(Data1: 0xf37e92bb, Data2: 0xb953, Data3: 0x5d1e, Data4: ( 0xae,0x0b,0x15,0xe4,0x9c,0x19,0x4c,0x98 ))// f37e92bb-b953-5d1e-ae0b-15e49c194c98
}
internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceVtbl = .init(
QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.addRef($0) },
Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.IID
iids[3] = WinAppSDK.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.IID
$1!.pointee = 4
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.Collections.IVector`1<Microsoft.Windows.AppLifecycle.AppInstance>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
GetAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
let result = __unwrapped__instance.getAt(index)
result?.copyTo($2)
return S_OK
},
get_Size: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.size
$1?.initialize(to: result)
return S_OK
},
GetView: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.getView()
let resultWrapper = WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
},
IndexOf: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let value: WinAppSDK.AppInstance? = .from(abi: ComPtr($1))
var index: UInt32 = 0
let result = __unwrapped__instance.indexOf(value, &index)
$2?.initialize(to: index)
$3?.initialize(to: .init(from: result))
return S_OK
},
SetAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
let value: WinAppSDK.AppInstance? = .from(abi: ComPtr($2))
__unwrapped__instance.setAt(index, value)
return S_OK
},
InsertAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
let value: WinAppSDK.AppInstance? = .from(abi: ComPtr($2))
__unwrapped__instance.insertAt(index, value)
return S_OK
},
RemoveAt: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let index: UInt32 = $1
__unwrapped__instance.removeAt(index)
return S_OK
},
Append: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let value: WinAppSDK.AppInstance? = .from(abi: ComPtr($1))
__unwrapped__instance.append(value)
return S_OK
},
RemoveAtEnd: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
__unwrapped__instance.removeAtEnd()
return S_OK
},
Clear: {
guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
__unwrapped__instance.clear()
return S_OK
},
GetMany: { _, _, _, _, _ in return failWith(err: E_NOTIMPL) },
ReplaceAll: { _, _, _ in return failWith(err: E_NOTIMPL) }
)
typealias __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceBridge>
internal class IVectorAppInstance: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance }
internal func GetAtImpl(_ index: UInt32) throws -> WinAppSDK.AppInstance? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &resultAbi))
}
}
return .from(abi: result)
}
internal func get_SizeImpl() throws -> UInt32 {
var result: UINT32 = 0
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result))
}
return result
}
internal func GetViewImpl() throws -> WindowsFoundation.AnyIVectorView<WinAppSDK.AppInstance?>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceWrapper.unwrapFrom(abi: result)
}
internal func IndexOfImpl(_ value: WinAppSDK.AppInstance?, _ index: inout UInt32) throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, RawPointer(value), &index, &result))
}
return .init(from: result)
}
internal func SetAtImpl(_ index: UInt32, _ value: WinAppSDK.AppInstance?) throws {
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value)))
}
}
internal func InsertAtImpl(_ index: UInt32, _ value: WinAppSDK.AppInstance?) throws {
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.InsertAt(pThis, index, RawPointer(value)))
}
}
internal func RemoveAtImpl(_ index: UInt32) throws {
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index))
}
}
internal func AppendImpl(_ value: WinAppSDK.AppInstance?) throws {
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Append(pThis, RawPointer(value)))
}
}
internal func RemoveAtEndImpl() throws {
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAtEnd(pThis))
}
}
internal func ClearImpl() throws {
_ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis))
}
}
}
internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstance
internal typealias SwiftABI = IVectorAppInstance
internal typealias SwiftProjection = WindowsFoundation.AnyIVector<WinAppSDK.AppInstance?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceImpl : IVector, AbiInterfaceImpl {
typealias T = WinAppSDK.AppInstance?
typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppInstanceBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: Collection
typealias Element = T
var startIndex: Int { 0 }
var endIndex: Int { Int(size) }
func index(after i: Int) -> Int {
i+1
}
func index(of: Element) -> Int? {
var index: UInt32 = 0
let result = indexOf(of, &index)
guard result else { return nil }
return Int(index)
}
var count: Int { Int(size) }
subscript(position: Int) -> Element {
get {
getAt(UInt32(position))
}
set(newValue) {
setAt(UInt32(position), newValue)
}
}
func removeLast() {
removeAtEnd()
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.getat)
fileprivate func getAt(_ index: UInt32) -> WinAppSDK.AppInstance? {
try! _default.GetAtImpl(index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.getview)
fileprivate func getView() -> WindowsFoundation.AnyIVectorView<WinAppSDK.AppInstance?>? {
try! _default.GetViewImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.indexof)
fileprivate func indexOf(_ value: WinAppSDK.AppInstance?, _ index: inout UInt32) -> Bool {
try! _default.IndexOfImpl(value, &index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.setat)
fileprivate func setAt(_ index: UInt32, _ value: WinAppSDK.AppInstance?) {
try! _default.SetAtImpl(index, value)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.insertat)
fileprivate func insertAt(_ index: UInt32, _ value: WinAppSDK.AppInstance?) {
try! _default.InsertAtImpl(index, value)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.removeat)
fileprivate func removeAt(_ index: UInt32) {
try! _default.RemoveAtImpl(index)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.append)
fileprivate func append(_ value: WinAppSDK.AppInstance?) {
try! _default.AppendImpl(value)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.removeatend)
fileprivate func removeAtEnd() {
try! _default.RemoveAtEndImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.clear)
fileprivate func clear() {
try! _default.ClearImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.size)
fileprivate var size : UInt32 {
get { try! _default.get_SizeImpl() }
}
private lazy var _IIterable: IIterableAppInstance! = getInterfaceForCaching()
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivector-1.first)
fileprivate func first() -> WindowsFoundation.AnyIIterator<WinAppSDK.AppInstance?>? {
try! _IIterable.FirstImpl()
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArguments: WindowsFoundation.IID {
.init(Data1: 0x37d74b33, Data2: 0x9510, Data3: 0x5748, Data4: ( 0xb3,0x3d,0x46,0x76,0xee,0x2b,0x48,0xa7 ))// 37d74b33-9510-5748-b33d-4676ee2b48a7
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArguments {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArgumentsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArgumentsVTable: __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArgumentsVtbl = .init(
QueryInterface: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArgumentsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArgumentsWrapper.addRef($0) },
Release: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArgumentsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArgumentsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1))
let args: WinAppSDK.AppActivationArguments? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArgumentsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArgumentsBridge>
internal class EventHandlerAppActivationArguments: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArguments }
internal func InvokeImpl(_ sender: Any?, _ args: WinAppSDK.AppActivationArguments?) throws {
let senderWrapper = __ABI_.AnyWrapper(sender)
let _sender = try! senderWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArguments.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(args)))
}
}
}
internal class __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArgumentsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.EventHandler<WinAppSDK.AppActivationArguments?>
internal typealias CABI = __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CWindows__CAppLifecycle__CAppActivationArguments
internal typealias SwiftABI = WinAppSDK.EventHandlerAppActivationArguments
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurface: WindowsFoundation.IID {
.init(Data1: 0x92ceaa5d, Data2: 0xb255, Data3: 0x57d9, Data4: ( 0xab,0x7c,0x0f,0x30,0x44,0x85,0xc1,0xbd ))// 92ceaa5d-b255-57d9-ab7c-0f304485c1bd
}
internal var __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceVTable: __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceVtbl = .init(
QueryInterface: { __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.addRef($0) },
Release: { __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.IID
iids[3] = __ABI_Windows_Foundation.IAsyncInfoWrapper.IID
$1!.pointee = 4
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.IAsyncOperation`1<Microsoft.UI.Composition.ICompositionSurface>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
put_Completed: {
guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
guard let handler = WinAppSDK.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.unwrapFrom(abi: ComPtr($1)) else { return E_INVALIDARG }
__unwrapped__instance.completed = handler
return S_OK
},
get_Completed: {
guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance.completed
let resultWrapper = WinAppSDK.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
},
GetResults: {
do {
guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = try __unwrapped__instance.getResults()
let resultWrapper = __ABI_Microsoft_UI_Composition.ICompositionSurfaceWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
} catch { return failWith(err: E_FAIL) }
}
)
typealias __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceBridge>
internal class IAsyncOperationICompositionSurface: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurface }
internal func put_CompletedImpl(_ handler: AsyncOperationCompletedHandler<WinAppSDK.AnyICompositionSurface?>?) throws {
let handlerWrapper = WinAppSDK.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurface.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Completed(pThis, _handler))
}
}
internal func get_CompletedImpl() throws -> AsyncOperationCompletedHandler<WinAppSDK.AnyICompositionSurface?>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurface.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Completed(pThis, &resultAbi))
}
}
return WinAppSDK.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceWrapper.unwrapFrom(abi: result)
}
internal func GetResultsImpl() throws -> WinAppSDK.AnyICompositionSurface? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurface.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetResults(pThis, &resultAbi))
}
}
return __ABI_Microsoft_UI_Composition.ICompositionSurfaceWrapper.unwrapFrom(abi: result)
}
}
internal enum __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceBridge : AbiInterfaceBridge {
internal typealias CABI = __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurface
internal typealias SwiftABI = IAsyncOperationICompositionSurface
internal typealias SwiftProjection = WindowsFoundation.AnyIAsyncOperation<WinAppSDK.AnyICompositionSurface?>
internal static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceImpl(abi)
}
internal static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceImpl : IAsyncOperation, AbiInterfaceImpl {
typealias TResult = WinAppSDK.AnyICompositionSurface?
typealias Bridge = __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CComposition__CICompositionSurfaceBridge
let _default: Bridge.SwiftABI
init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
// MARK: WinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.iasyncoperation-1.getresults)
fileprivate func getResults() throws -> WinAppSDK.AnyICompositionSurface? {
try _default.GetResultsImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.iasyncoperation-1.completed)
fileprivate var completed : AsyncOperationCompletedHandler<WinAppSDK.AnyICompositionSurface?>? {
get { try! _default.get_CompletedImpl() }
set { try! _default.put_CompletedImpl(newValue) }
}
private lazy var _IAsyncInfo: __ABI_Windows_Foundation.IAsyncInfo! = getInterfaceForCaching()
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.iasyncoperation-1.cancel)
fileprivate func cancel() throws {
try _IAsyncInfo.CancelImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.iasyncoperation-1.close)
fileprivate func close() throws {
try _IAsyncInfo.CloseImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.iasyncoperation-1.errorcode)
fileprivate var errorCode : HRESULT {
get { try! _IAsyncInfo.get_ErrorCodeImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.iasyncoperation-1.id)
fileprivate var id : UInt32 {
get { try! _IAsyncInfo.get_IdImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.iasyncoperation-1.status)
fileprivate var status : WindowsFoundation.AsyncStatus {
get { try! _IAsyncInfo.get_StatusImpl() }
}
public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil }
}
private var IID___x_ABI_C__FIReference_1_float: WindowsFoundation.IID {
.init(Data1: 0x719cc2ba, Data2: 0x3e76, Data3: 0x5def, Data4: ( 0x9f,0x1a,0x38,0xd8,0x5a,0x14,0x5e,0xa8 ))// 719cc2ba-3e76-5def-9f1a-38d85a145ea8
}
internal enum __x_ABI_C__FIReference_1_floatBridge: ReferenceBridge {
typealias CABI = __x_ABI_C__FIReference_1_float
typealias SwiftProjection = Float
static var IID: WindowsFoundation.IID { IID___x_ABI_C__FIReference_1_float }
static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let val = abi else { return nil }
var result: FLOAT = 0.0
try! CHECKED(val.get().pointee.lpVtbl.pointee.get_Value(val.get(), &result))
return result
}
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIReference_1_floatVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
internal var __x_ABI_C__FIReference_1_floatVTable: __x_ABI_C__FIReference_1_floatVtbl = .init(
QueryInterface: { __x_ABI_C__FIReference_1_floatWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIReference_1_floatWrapper.addRef($0) },
Release: { __x_ABI_C__FIReference_1_floatWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIReference_1_floatWrapper.IID
iids[3] = __ABI_Windows_Foundation.IPropertyValueWrapper.IID
$1!.pointee = 4
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.IReference`1<Float>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Value: {
guard let __unwrapped__instance = __x_ABI_C__FIReference_1_floatWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance
$1?.initialize(to: result)
return S_OK
}
)
typealias __x_ABI_C__FIReference_1_floatWrapper = ReferenceWrapperBase<WinAppSDK.__x_ABI_C__FIReference_1_floatBridge>
private var IID___x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirection: WindowsFoundation.IID {
.init(Data1: 0x76e53eed, Data2: 0x3539, Data3: 0x540b, Data4: ( 0x8d,0x51,0x42,0x06,0xbc,0xa6,0x3f,0x5f ))// 76e53eed-3539-540b-8d51-4206bca63f5f
}
internal enum __x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionBridge: ReferenceBridge {
typealias CABI = __x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirection
typealias SwiftProjection = WinAppSDK.ContentLayoutDirection
static var IID: WindowsFoundation.IID { IID___x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirection }
static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let val = abi else { return nil }
var result: __x_ABI_CMicrosoft_CUI_CContent_CContentLayoutDirection = .init(0)
try! CHECKED(val.get().pointee.lpVtbl.pointee.get_Value(val.get(), &result))
return result
}
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
internal var __x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionVTable: __x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionVtbl = .init(
QueryInterface: { __x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionWrapper.addRef($0) },
Release: { __x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionWrapper.IID
iids[3] = __ABI_Windows_Foundation.IPropertyValueWrapper.IID
$1!.pointee = 4
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.IReference`1<Microsoft.UI.Content.ContentLayoutDirection>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Value: {
guard let __unwrapped__instance = __x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance
$1?.initialize(to: result)
return S_OK
}
)
typealias __x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionWrapper = ReferenceWrapperBase<WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionBridge>
private var IID___x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2: WindowsFoundation.IID {
.init(Data1: 0x48f6a69e, Data2: 0x8465, Data3: 0x57ae, Data4: ( 0x94,0x00,0x97,0x64,0x08,0x7f,0x65,0xad ))// 48f6a69e-8465-57ae-9400-9764087f65ad
}
internal enum __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Bridge: ReferenceBridge {
typealias CABI = __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2
typealias SwiftProjection = WindowsFoundation.Vector2
static var IID: WindowsFoundation.IID { IID___x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2 }
static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let val = abi else { return nil }
var result: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init()
try! CHECKED(val.get().pointee.lpVtbl.pointee.get_Value(val.get(), &result))
return .from(abi: result)
}
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2VTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
internal var __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2VTable: __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Vtbl = .init(
QueryInterface: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper.addRef($0) },
Release: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper.IID
iids[3] = __ABI_Windows_Foundation.IPropertyValueWrapper.IID
$1!.pointee = 4
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.IReference`1<Windows.Foundation.Numerics.Vector2>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Value: {
guard let __unwrapped__instance = __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance
$1?.initialize(to: .from(swift: result))
return S_OK
}
)
typealias __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper = ReferenceWrapperBase<WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Bridge>
private var IID___x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3: WindowsFoundation.IID {
.init(Data1: 0x1ee770ff, Data2: 0xc954, Data3: 0x59ca, Data4: ( 0xa7,0x54,0x61,0x99,0xa9,0xbe,0x28,0x2c ))// 1ee770ff-c954-59ca-a754-6199a9be282c
}
internal enum __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3Bridge: ReferenceBridge {
typealias CABI = __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3
typealias SwiftProjection = WindowsFoundation.Vector3
static var IID: WindowsFoundation.IID { IID___x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3 }
static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let val = abi else { return nil }
var result: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init()
try! CHECKED(val.get().pointee.lpVtbl.pointee.get_Value(val.get(), &result))
return .from(abi: result)
}
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3VTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
internal var __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3VTable: __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3Vtbl = .init(
QueryInterface: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3Wrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3Wrapper.addRef($0) },
Release: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3Wrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3Wrapper.IID
iids[3] = __ABI_Windows_Foundation.IPropertyValueWrapper.IID
$1!.pointee = 4
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.IReference`1<Windows.Foundation.Numerics.Vector3>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Value: {
guard let __unwrapped__instance = __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3Wrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance
$1?.initialize(to: .from(swift: result))
return S_OK
}
)
typealias __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3Wrapper = ReferenceWrapperBase<WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector3Bridge>
private var IID___x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRect: WindowsFoundation.IID {
.init(Data1: 0x80423f11, Data2: 0x054f, Data3: 0x5eac, Data4: ( 0xaf,0xd3,0x63,0xb6,0xce,0x15,0xe7,0x7b ))// 80423f11-054f-5eac-afd3-63b6ce15e77b
}
internal enum __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectBridge: ReferenceBridge {
typealias CABI = __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRect
typealias SwiftProjection = WindowsFoundation.Rect
static var IID: WindowsFoundation.IID { IID___x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRect }
static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let val = abi else { return nil }
var result: __x_ABI_CWindows_CFoundation_CRect = .init()
try! CHECKED(val.get().pointee.lpVtbl.pointee.get_Value(val.get(), &result))
return .from(abi: result)
}
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
internal var __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectVTable: __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectVtbl = .init(
QueryInterface: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectWrapper.addRef($0) },
Release: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectWrapper.IID
iids[3] = __ABI_Windows_Foundation.IPropertyValueWrapper.IID
$1!.pointee = 4
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.IReference`1<Windows.Foundation.Rect>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Value: {
guard let __unwrapped__instance = __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance
$1?.initialize(to: .from(swift: result))
return S_OK
}
)
typealias __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectWrapper = ReferenceWrapperBase<WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectBridge>
private var IID___x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColor: WindowsFoundation.IID {
.init(Data1: 0xab8e5d11, Data2: 0xb0c1, Data3: 0x5a21, Data4: ( 0x95,0xae,0xf1,0x6b,0xf3,0xa3,0x76,0x24 ))// ab8e5d11-b0c1-5a21-95ae-f16bf3a37624
}
internal enum __x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorBridge: ReferenceBridge {
typealias CABI = __x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColor
typealias SwiftProjection = UWP.Color
static var IID: WindowsFoundation.IID { IID___x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColor }
static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let val = abi else { return nil }
var result: __x_ABI_CWindows_CUI_CColor = .init()
try! CHECKED(val.get().pointee.lpVtbl.pointee.get_Value(val.get(), &result))
return .from(abi: result)
}
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
internal var __x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorVTable: __x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorVtbl = .init(
QueryInterface: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.addRef($0) },
Release: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.IID
iids[3] = __ABI_Windows_Foundation.IPropertyValueWrapper.IID
$1!.pointee = 4
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Foundation.IReference`1<Windows.UI.Color>").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
get_Value: {
guard let __unwrapped__instance = __x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance
$1?.initialize(to: .from(swift: result))
return S_OK
}
)
typealias __x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper = ReferenceWrapperBase<WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorBridge>
private var IID___x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgs: WindowsFoundation.IID {
.init(Data1: 0xde522e05, Data2: 0x2e72, Data3: 0x52ee, Data4: ( 0xbd,0x1f,0xac,0x25,0xa0,0x70,0x80,0x03 ))// de522e05-2e72-52ee-bd1f-ac25a0708003
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1))
let args: WinAppSDK.CompositionBatchCompletedEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgsBridge>
internal class TypedEventHandlerAny_CompositionBatchCompletedEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgs }
internal func InvokeImpl(_ sender: Any?, _ args: WinAppSDK.CompositionBatchCompletedEventArgs?) throws {
let senderWrapper = __ABI_.AnyWrapper(sender)
let _sender = try! senderWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<Any?, WinAppSDK.CompositionBatchCompletedEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CComposition__CCompositionBatchCompletedEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerAny_CompositionBatchCompletedEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectable: WindowsFoundation.IID {
.init(Data1: 0xd81e5eac, Data2: 0xc5ba, Data3: 0x59aa, Data4: ( 0xae,0xd3,0xf8,0xaf,0xdd,0x07,0xa3,0x51 ))// d81e5eac-c5ba-59aa-aed3-f8afdd07a351
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectable {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectableVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectableVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectableVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectableWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectableWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectableWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.CompositionCapabilities? = .from(abi: ComPtr($1))
let args: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectableWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectableBridge>
internal class TypedEventHandlerCompositionCapabilities_Any: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectable }
internal func InvokeImpl(_ sender: WinAppSDK.CompositionCapabilities?, _ args: Any?) throws {
let argsWrapper = __ABI_.AnyWrapper(args)
let _args = try! argsWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectable.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), _args))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectableBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.CompositionCapabilities?, Any?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionCapabilities_IInspectable
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerCompositionCapabilities_Any
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgs: WindowsFoundation.IID {
.init(Data1: 0x2a8eb053, Data2: 0x059a, Data3: 0x54a0, Data4: ( 0x92,0x04,0x66,0x58,0x6a,0xb4,0xc8,0xd6 ))// 2a8eb053-059a-54a0-9204-66586ab4c8d6
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.CompositionGraphicsDevice? = .from(abi: ComPtr($1))
let args: WinAppSDK.RenderingDeviceReplacedEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgsBridge>
internal class TypedEventHandlerCompositionGraphicsDevice_RenderingDeviceReplacedEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.CompositionGraphicsDevice?, _ args: WinAppSDK.RenderingDeviceReplacedEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.CompositionGraphicsDevice?, WinAppSDK.RenderingDeviceReplacedEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CCompositionGraphicsDevice___x_ABI_CMicrosoft__CUI__CComposition__CRenderingDeviceReplacedEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerCompositionGraphicsDevice_RenderingDeviceReplacedEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectable: WindowsFoundation.IID {
.init(Data1: 0x4c245142, Data2: 0x08e6, Data3: 0x5719, Data4: ( 0xba,0xcb,0xa2,0xd2,0xf1,0x89,0x47,0xc6 ))// 4c245142-08e6-5719-bacb-a2d2f18947c6
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectable {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectableVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectableVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectableVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectableWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectableWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectableWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.AnyISystemBackdropControllerWithTargets? = __ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropControllerWithTargetsWrapper.unwrapFrom(abi: ComPtr($1))
let args: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectableWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectableBridge>
internal class TypedEventHandlerISystemBackdropControllerWithTargets_Any: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectable }
internal func InvokeImpl(_ sender: WinAppSDK.AnyISystemBackdropControllerWithTargets?, _ args: Any?) throws {
let senderWrapper = __ABI_Microsoft_UI_Composition_SystemBackdrops.ISystemBackdropControllerWithTargetsWrapper(sender)
let _sender = try! senderWrapper?.toABI { $0 }
let argsWrapper = __ABI_.AnyWrapper(args)
let _args = try! argsWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectable.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, _args))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectableBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.AnyISystemBackdropControllerWithTargets?, Any?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CComposition__CSystemBackdrops__CISystemBackdropControllerWithTargets_IInspectable
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerISystemBackdropControllerWithTargets_Any
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgs: WindowsFoundation.IID {
.init(Data1: 0x3b44f287, Data2: 0xf0ef, Data3: 0x5d10, Data4: ( 0xab,0x5f,0x1b,0x32,0x4f,0x45,0xf7,0xda ))// 3b44f287-f0ef-5d10-ab5f-1b324f45f7da
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.ContentIsland? = .from(abi: ComPtr($1))
let args: WinAppSDK.ContentIslandAutomationProviderRequestedEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgsBridge>
internal class TypedEventHandlerContentIsland_ContentIslandAutomationProviderRequestedEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.ContentIsland?, _ args: WinAppSDK.ContentIslandAutomationProviderRequestedEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.ContentIsland?, WinAppSDK.ContentIslandAutomationProviderRequestedEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerContentIsland_ContentIslandAutomationProviderRequestedEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgs: WindowsFoundation.IID {
.init(Data1: 0xceb771a4, Data2: 0xbf66, Data3: 0x529d, Data4: ( 0x88,0x3a,0x60,0x2d,0x59,0x2f,0x39,0x0c ))// ceb771a4-bf66-529d-883a-602d592f390c
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.ContentIsland? = .from(abi: ComPtr($1))
let args: WinAppSDK.ContentIslandStateChangedEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgsBridge>
internal class TypedEventHandlerContentIsland_ContentIslandStateChangedEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.ContentIsland?, _ args: WinAppSDK.ContentIslandStateChangedEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.ContentIsland?, WinAppSDK.ContentIslandStateChangedEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerContentIsland_ContentIslandStateChangedEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgs: WindowsFoundation.IID {
.init(Data1: 0x1ad20c79, Data2: 0x1495, Data3: 0x5501, Data4: ( 0xac,0x8a,0xa3,0x88,0x45,0xe8,0xf2,0x18 ))// 1ad20c79-1495-5501-ac8a-a38845e8f218
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.ContentIslandEnvironment? = .from(abi: ComPtr($1))
let args: WinAppSDK.ContentEnvironmentSettingChangedEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgsBridge>
internal class TypedEventHandlerContentIslandEnvironment_ContentEnvironmentSettingChangedEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.ContentIslandEnvironment?, _ args: WinAppSDK.ContentEnvironmentSettingChangedEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.ContentIslandEnvironment?, WinAppSDK.ContentEnvironmentSettingChangedEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerContentIslandEnvironment_ContentEnvironmentSettingChangedEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgs: WindowsFoundation.IID {
.init(Data1: 0xc7742341, Data2: 0xcfd5, Data3: 0x5ef6, Data4: ( 0xab,0x2a,0xd3,0x8c,0x65,0xb7,0x80,0xb5 ))// c7742341-cfd5-5ef6-ab2a-d38c65b780b5
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.ContentIslandEnvironment? = .from(abi: ComPtr($1))
let args: WinAppSDK.ContentEnvironmentStateChangedEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgsBridge>
internal class TypedEventHandlerContentIslandEnvironment_ContentEnvironmentStateChangedEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.ContentIslandEnvironment?, _ args: WinAppSDK.ContentEnvironmentStateChangedEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.ContentIslandEnvironment?, WinAppSDK.ContentEnvironmentStateChangedEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerContentIslandEnvironment_ContentEnvironmentStateChangedEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectable: WindowsFoundation.IID {
.init(Data1: 0x3bdaf5dd, Data2: 0x3da4, Data3: 0x5b44, Data4: ( 0xad,0xb3,0x69,0x90,0x54,0x0a,0xfa,0xc6 ))// 3bdaf5dd-3da4-5b44-adb3-6990540afac6
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectable {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectableVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectableVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectableVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectableWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectableWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectableWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.DispatcherQueue? = .from(abi: ComPtr($1))
let args: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectableWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectableBridge>
internal class TypedEventHandlerDispatcherQueue_Any: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectable }
internal func InvokeImpl(_ sender: WinAppSDK.DispatcherQueue?, _ args: Any?) throws {
let argsWrapper = __ABI_.AnyWrapper(args)
let _args = try! argsWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectable.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), _args))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectableBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.DispatcherQueue?, Any?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue_IInspectable
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerDispatcherQueue_Any
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgs: WindowsFoundation.IID {
.init(Data1: 0xecd63a61, Data2: 0x4dbf, Data3: 0x57bc, Data4: ( 0x88,0x0c,0xa2,0x55,0xdf,0xe3,0x52,0xc3 ))// ecd63a61-4dbf-57bc-880c-a255dfe352c3
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.DispatcherQueue? = .from(abi: ComPtr($1))
let args: WinAppSDK.DispatcherQueueShutdownStartingEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgsBridge>
internal class TypedEventHandlerDispatcherQueue_DispatcherQueueShutdownStartingEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.DispatcherQueue?, _ args: WinAppSDK.DispatcherQueueShutdownStartingEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.DispatcherQueue?, WinAppSDK.DispatcherQueueShutdownStartingEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueue___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueShutdownStartingEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerDispatcherQueue_DispatcherQueueShutdownStartingEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectable: WindowsFoundation.IID {
.init(Data1: 0x2182a2ac, Data2: 0x7545, Data3: 0x566a, Data4: ( 0x98,0x4f,0xb1,0x0f,0x07,0xba,0xb0,0x89 ))// 2182a2ac-7545-566a-984f-b10f07bab089
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectable {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectableVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectableVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectableVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectableWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectableWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectableWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.DispatcherQueueTimer? = .from(abi: ComPtr($1))
let args: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectableWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectableBridge>
internal class TypedEventHandlerDispatcherQueueTimer_Any: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectable }
internal func InvokeImpl(_ sender: WinAppSDK.DispatcherQueueTimer?, _ args: Any?) throws {
let argsWrapper = __ABI_.AnyWrapper(args)
let _args = try! argsWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectable.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), _args))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectableBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.DispatcherQueueTimer?, Any?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CDispatching__CDispatcherQueueTimer_IInspectable
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerDispatcherQueueTimer_Any
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgs: WindowsFoundation.IID {
.init(Data1: 0x2c68b524, Data2: 0xbff5, Data3: 0x5b9e, Data4: ( 0xab,0x2d,0x9b,0x1c,0xac,0x2d,0x38,0x76 ))// 2c68b524-bff5-5b9e-ab2d-9b1cac2d3876
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.GestureRecognizer? = .from(abi: ComPtr($1))
let args: WinAppSDK.CrossSlidingEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgsBridge>
internal class TypedEventHandlerGestureRecognizer_CrossSlidingEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.GestureRecognizer?, _ args: WinAppSDK.CrossSlidingEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.GestureRecognizer?, WinAppSDK.CrossSlidingEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CCrossSlidingEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerGestureRecognizer_CrossSlidingEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgs: WindowsFoundation.IID {
.init(Data1: 0x7fc18fed, Data2: 0x898b, Data3: 0x58cf, Data4: ( 0x99,0x96,0x2b,0xaa,0x40,0xe7,0xdd,0x3d ))// 7fc18fed-898b-58cf-9996-2baa40e7dd3d
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.GestureRecognizer? = .from(abi: ComPtr($1))
let args: WinAppSDK.DraggingEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgsBridge>
internal class TypedEventHandlerGestureRecognizer_DraggingEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.GestureRecognizer?, _ args: WinAppSDK.DraggingEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.GestureRecognizer?, WinAppSDK.DraggingEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CDraggingEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerGestureRecognizer_DraggingEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgs: WindowsFoundation.IID {
.init(Data1: 0x41508cc9, Data2: 0x7826, Data3: 0x58f9, Data4: ( 0xa6,0xe9,0x63,0xbe,0x53,0x1e,0x95,0xd3 ))// 41508cc9-7826-58f9-a6e9-63be531e95d3
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.GestureRecognizer? = .from(abi: ComPtr($1))
let args: WinAppSDK.HoldingEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgsBridge>
internal class TypedEventHandlerGestureRecognizer_HoldingEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.GestureRecognizer?, _ args: WinAppSDK.HoldingEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.GestureRecognizer?, WinAppSDK.HoldingEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CHoldingEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerGestureRecognizer_HoldingEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgs: WindowsFoundation.IID {
.init(Data1: 0x14bbef09, Data2: 0xd8fd, Data3: 0x56a9, Data4: ( 0xab,0x2f,0x01,0xdb,0xf0,0x18,0x75,0x93 ))// 14bbef09-d8fd-56a9-ab2f-01dbf0187593
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.GestureRecognizer? = .from(abi: ComPtr($1))
let args: WinAppSDK.ManipulationCompletedEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgsBridge>
internal class TypedEventHandlerGestureRecognizer_ManipulationCompletedEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.GestureRecognizer?, _ args: WinAppSDK.ManipulationCompletedEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.GestureRecognizer?, WinAppSDK.ManipulationCompletedEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationCompletedEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerGestureRecognizer_ManipulationCompletedEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgs: WindowsFoundation.IID {
.init(Data1: 0x5e7f485a, Data2: 0x4248, Data3: 0x574a, Data4: ( 0xae,0xe5,0x62,0xff,0x0c,0xf2,0xd8,0x81 ))// 5e7f485a-4248-574a-aee5-62ff0cf2d881
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.GestureRecognizer? = .from(abi: ComPtr($1))
let args: WinAppSDK.ManipulationInertiaStartingEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgsBridge>
internal class TypedEventHandlerGestureRecognizer_ManipulationInertiaStartingEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.GestureRecognizer?, _ args: WinAppSDK.ManipulationInertiaStartingEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.GestureRecognizer?, WinAppSDK.ManipulationInertiaStartingEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationInertiaStartingEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerGestureRecognizer_ManipulationInertiaStartingEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgs: WindowsFoundation.IID {
.init(Data1: 0x44900647, Data2: 0x40d5, Data3: 0x5897, Data4: ( 0x89,0x57,0x31,0x0e,0x22,0x0d,0xa5,0x55 ))// 44900647-40d5-5897-8957-310e220da555
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.GestureRecognizer? = .from(abi: ComPtr($1))
let args: WinAppSDK.ManipulationStartedEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgsBridge>
internal class TypedEventHandlerGestureRecognizer_ManipulationStartedEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.GestureRecognizer?, _ args: WinAppSDK.ManipulationStartedEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.GestureRecognizer?, WinAppSDK.ManipulationStartedEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationStartedEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerGestureRecognizer_ManipulationStartedEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgs: WindowsFoundation.IID {
.init(Data1: 0xdd71c5ac, Data2: 0x5ae1, Data3: 0x5069, Data4: ( 0x87,0x7a,0xac,0xe3,0x7b,0x5a,0x47,0x20 ))// dd71c5ac-5ae1-5069-877a-ace37b5a4720
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.GestureRecognizer? = .from(abi: ComPtr($1))
let args: WinAppSDK.ManipulationUpdatedEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgsBridge>
internal class TypedEventHandlerGestureRecognizer_ManipulationUpdatedEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.GestureRecognizer?, _ args: WinAppSDK.ManipulationUpdatedEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.GestureRecognizer?, WinAppSDK.ManipulationUpdatedEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CManipulationUpdatedEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerGestureRecognizer_ManipulationUpdatedEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgs: WindowsFoundation.IID {
.init(Data1: 0x71b4ad41, Data2: 0x872a, Data3: 0x5afd, Data4: ( 0x93,0x32,0x70,0x43,0x11,0xf2,0x61,0xb5 ))// 71b4ad41-872a-5afd-9332-704311f261b5
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.GestureRecognizer? = .from(abi: ComPtr($1))
let args: WinAppSDK.RightTappedEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgsBridge>
internal class TypedEventHandlerGestureRecognizer_RightTappedEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.GestureRecognizer?, _ args: WinAppSDK.RightTappedEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.GestureRecognizer?, WinAppSDK.RightTappedEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CRightTappedEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerGestureRecognizer_RightTappedEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgs: WindowsFoundation.IID {
.init(Data1: 0x43cfd88f, Data2: 0x74b1, Data3: 0x570b, Data4: ( 0xa7,0x1c,0xd7,0x8e,0x68,0x15,0xcf,0x0a ))// 43cfd88f-74b1-570b-a71c-d78e6815cf0a
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.GestureRecognizer? = .from(abi: ComPtr($1))
let args: WinAppSDK.TappedEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgsBridge>
internal class TypedEventHandlerGestureRecognizer_TappedEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.GestureRecognizer?, _ args: WinAppSDK.TappedEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.GestureRecognizer?, WinAppSDK.TappedEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CGestureRecognizer___x_ABI_CMicrosoft__CUI__CInput__CTappedEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerGestureRecognizer_TappedEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgs: WindowsFoundation.IID {
.init(Data1: 0x25b49081, Data2: 0x1922, Data3: 0x5447, Data4: ( 0xb9,0x0f,0xcd,0x4f,0x9b,0x03,0x16,0x1b ))// 25b49081-1922-5447-b90f-cd4f9b03161b
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.InputActivationListener? = .from(abi: ComPtr($1))
let args: WinAppSDK.InputActivationListenerActivationChangedEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgsBridge>
internal class TypedEventHandlerInputActivationListener_InputActivationListenerActivationChangedEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.InputActivationListener?, _ args: WinAppSDK.InputActivationListenerActivationChangedEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.InputActivationListener?, WinAppSDK.InputActivationListenerActivationChangedEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListener___x_ABI_CMicrosoft__CUI__CInput__CInputActivationListenerActivationChangedEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerInputActivationListener_InputActivationListenerActivationChangedEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgs: WindowsFoundation.IID {
.init(Data1: 0xb3380568, Data2: 0x350a, Data3: 0x53e8, Data4: ( 0xac,0x5f,0x45,0x6b,0x5e,0x38,0xf7,0xf6 ))// b3380568-350a-53e8-ac5f-456b5e38f7f6
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.InputFocusController? = .from(abi: ComPtr($1))
let args: WinAppSDK.FocusChangedEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgsBridge>
internal class TypedEventHandlerInputFocusController_FocusChangedEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.InputFocusController?, _ args: WinAppSDK.FocusChangedEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.InputFocusController?, WinAppSDK.FocusChangedEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusChangedEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerInputFocusController_FocusChangedEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgs: WindowsFoundation.IID {
.init(Data1: 0xea47f828, Data2: 0xdeae, Data3: 0x54f1, Data4: ( 0x91,0xa2,0x63,0xf7,0xf0,0x02,0x63,0x38 ))// ea47f828-deae-54f1-91a2-63f7f0026338
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.InputFocusController? = .from(abi: ComPtr($1))
let args: WinAppSDK.FocusNavigationRequestEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsBridge>
internal class TypedEventHandlerInputFocusController_FocusNavigationRequestEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.InputFocusController?, _ args: WinAppSDK.FocusNavigationRequestEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.InputFocusController?, WinAppSDK.FocusNavigationRequestEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusController___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerInputFocusController_FocusNavigationRequestEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgs: WindowsFoundation.IID {
.init(Data1: 0x06f646e8, Data2: 0xdc03, Data3: 0x597c, Data4: ( 0x80,0xec,0xbe,0x97,0x57,0xb6,0xa0,0x13 ))// 06f646e8-dc03-597c-80ec-be9757b6a013
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.InputFocusNavigationHost? = .from(abi: ComPtr($1))
let args: WinAppSDK.FocusNavigationRequestEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsBridge>
internal class TypedEventHandlerInputFocusNavigationHost_FocusNavigationRequestEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.InputFocusNavigationHost?, _ args: WinAppSDK.FocusNavigationRequestEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.InputFocusNavigationHost?, WinAppSDK.FocusNavigationRequestEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputFocusNavigationHost___x_ABI_CMicrosoft__CUI__CInput__CFocusNavigationRequestEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerInputFocusNavigationHost_FocusNavigationRequestEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgs: WindowsFoundation.IID {
.init(Data1: 0xdafb15ae, Data2: 0x4643, Data3: 0x5b53, Data4: ( 0xa0,0xb0,0x43,0x65,0x7c,0x81,0xb2,0x5f ))// dafb15ae-4643-5b53-a0b0-43657c81b25f
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.InputKeyboardSource? = .from(abi: ComPtr($1))
let args: WinAppSDK.CharacterReceivedEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgsBridge>
internal class TypedEventHandlerInputKeyboardSource_CharacterReceivedEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.InputKeyboardSource?, _ args: WinAppSDK.CharacterReceivedEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.InputKeyboardSource?, WinAppSDK.CharacterReceivedEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CCharacterReceivedEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerInputKeyboardSource_CharacterReceivedEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgs: WindowsFoundation.IID {
.init(Data1: 0x9a2a4782, Data2: 0x52ed, Data3: 0x54bf, Data4: ( 0x89,0x2c,0xd6,0x60,0x0d,0x75,0xe1,0xb7 ))// 9a2a4782-52ed-54bf-892c-d6600d75e1b7
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.InputKeyboardSource? = .from(abi: ComPtr($1))
let args: WinAppSDK.ContextMenuKeyEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgsBridge>
internal class TypedEventHandlerInputKeyboardSource_ContextMenuKeyEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.InputKeyboardSource?, _ args: WinAppSDK.ContextMenuKeyEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.InputKeyboardSource?, WinAppSDK.ContextMenuKeyEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CContextMenuKeyEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerInputKeyboardSource_ContextMenuKeyEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgs: WindowsFoundation.IID {
.init(Data1: 0xf988374a, Data2: 0x72f8, Data3: 0x5418, Data4: ( 0xbc,0xa2,0x32,0x3b,0x63,0x9e,0x2b,0x72 ))// f988374a-72f8-5418-bca2-323b639e2b72
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.InputKeyboardSource? = .from(abi: ComPtr($1))
let args: WinAppSDK.KeyEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgsBridge>
internal class TypedEventHandlerInputKeyboardSource_KeyEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.InputKeyboardSource?, _ args: WinAppSDK.KeyEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.InputKeyboardSource?, WinAppSDK.KeyEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputKeyboardSource___x_ABI_CMicrosoft__CUI__CInput__CKeyEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerInputKeyboardSource_KeyEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgs: WindowsFoundation.IID {
.init(Data1: 0x91cb240d, Data2: 0xf32c, Data3: 0x5efb, Data4: ( 0x80,0x90,0x5a,0xb5,0xf1,0x73,0x3d,0x21 ))// 91cb240d-f32c-5efb-8090-5ab5f1733d21
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.InputLightDismissAction? = .from(abi: ComPtr($1))
let args: WinAppSDK.InputLightDismissEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgsBridge>
internal class TypedEventHandlerInputLightDismissAction_InputLightDismissEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.InputLightDismissAction?, _ args: WinAppSDK.InputLightDismissEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.InputLightDismissAction?, WinAppSDK.InputLightDismissEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissAction___x_ABI_CMicrosoft__CUI__CInput__CInputLightDismissEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerInputLightDismissAction_InputLightDismissEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgs: WindowsFoundation.IID {
.init(Data1: 0xb0ae5c41, Data2: 0x7993, Data3: 0x5fc3, Data4: ( 0x93,0x59,0xbf,0xdc,0xe9,0x84,0xc7,0x90 ))// b0ae5c41-7993-5fc3-9359-bfdce984c790
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.InputNonClientPointerSource? = .from(abi: ComPtr($1))
let args: WinAppSDK.NonClientCaptionTappedEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgsBridge>
internal class TypedEventHandlerInputNonClientPointerSource_NonClientCaptionTappedEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.InputNonClientPointerSource?, _ args: WinAppSDK.NonClientCaptionTappedEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.InputNonClientPointerSource?, WinAppSDK.NonClientCaptionTappedEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientCaptionTappedEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerInputNonClientPointerSource_NonClientCaptionTappedEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgs: WindowsFoundation.IID {
.init(Data1: 0x4e6be81d, Data2: 0x96c4, Data3: 0x5865, Data4: ( 0x82,0x3b,0x0e,0xfd,0xf1,0xda,0xf9,0x88 ))// 4e6be81d-96c4-5865-823b-0efdf1daf988
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.InputNonClientPointerSource? = .from(abi: ComPtr($1))
let args: WinAppSDK.NonClientPointerEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgsBridge>
internal class TypedEventHandlerInputNonClientPointerSource_NonClientPointerEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.InputNonClientPointerSource?, _ args: WinAppSDK.NonClientPointerEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.InputNonClientPointerSource?, WinAppSDK.NonClientPointerEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientPointerEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerInputNonClientPointerSource_NonClientPointerEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgs: WindowsFoundation.IID {
.init(Data1: 0xa6fecba1, Data2: 0x0759, Data3: 0x54d5, Data4: ( 0xba,0xc3,0xd3,0x61,0xf6,0xc9,0xce,0xc9 ))// a6fecba1-0759-54d5-bac3-d361f6c9cec9
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.InputNonClientPointerSource? = .from(abi: ComPtr($1))
let args: WinAppSDK.NonClientRegionsChangedEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgsBridge>
internal class TypedEventHandlerInputNonClientPointerSource_NonClientRegionsChangedEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.InputNonClientPointerSource?, _ args: WinAppSDK.NonClientRegionsChangedEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.InputNonClientPointerSource?, WinAppSDK.NonClientRegionsChangedEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputNonClientPointerSource___x_ABI_CMicrosoft__CUI__CInput__CNonClientRegionsChangedEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerInputNonClientPointerSource_NonClientRegionsChangedEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgs: WindowsFoundation.IID {
.init(Data1: 0x040480be, Data2: 0x4741, Data3: 0x587d, Data4: ( 0x98,0x88,0x86,0x94,0x41,0x4a,0x26,0x50 ))// 040480be-4741-587d-9888-8694414a2650
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.InputPointerSource? = .from(abi: ComPtr($1))
let args: WinAppSDK.PointerEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsBridge>
internal class TypedEventHandlerInputPointerSource_PointerEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.InputPointerSource?, _ args: WinAppSDK.PointerEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.InputPointerSource?, WinAppSDK.PointerEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CInput__CInputPointerSource___x_ABI_CMicrosoft__CUI__CInput__CPointerEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerInputPointerSource_PointerEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectable: WindowsFoundation.IID {
.init(Data1: 0xeddd665f, Data2: 0x7d53, Data3: 0x5b2d, Data4: ( 0x90,0x1d,0x9c,0x12,0x01,0x08,0x16,0xe7 ))// eddd665f-7d53-5b2d-901d-9c12010816e7
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectable {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectableVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectableVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectableVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectableWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectableWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectableWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.AppWindow? = .from(abi: ComPtr($1))
let args: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectableWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectableBridge>
internal class TypedEventHandlerAppWindow_Any: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectable }
internal func InvokeImpl(_ sender: WinAppSDK.AppWindow?, _ args: Any?) throws {
let argsWrapper = __ABI_.AnyWrapper(args)
let _args = try! argsWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectable.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), _args))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectableBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.AppWindow?, Any?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow_IInspectable
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerAppWindow_Any
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgs: WindowsFoundation.IID {
.init(Data1: 0xcda07756, Data2: 0x1584, Data3: 0x5049, Data4: ( 0x9a,0xd1,0xcc,0xa7,0x82,0x24,0x2d,0x34 ))// cda07756-1584-5049-9ad1-cca782242d34
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.AppWindow? = .from(abi: ComPtr($1))
let args: WinAppSDK.AppWindowChangedEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgsBridge>
internal class TypedEventHandlerAppWindow_AppWindowChangedEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.AppWindow?, _ args: WinAppSDK.AppWindowChangedEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.AppWindow?, WinAppSDK.AppWindowChangedEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowChangedEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerAppWindow_AppWindowChangedEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgs: WindowsFoundation.IID {
.init(Data1: 0xfd0e72c8, Data2: 0x8daa, Data3: 0x50a2, Data4: ( 0x95,0x9f,0x4d,0x41,0x44,0x6f,0x1f,0xc7 ))// fd0e72c8-8daa-50a2-959f-4d41446f1fc7
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.AppWindow? = .from(abi: ComPtr($1))
let args: WinAppSDK.AppWindowClosingEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgsBridge>
internal class TypedEventHandlerAppWindow_AppWindowClosingEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.AppWindow?, _ args: WinAppSDK.AppWindowClosingEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.AppWindow?, WinAppSDK.AppWindowClosingEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindow___x_ABI_CMicrosoft__CUI__CWindowing__CAppWindowClosingEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerAppWindow_AppWindowClosingEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectable: WindowsFoundation.IID {
.init(Data1: 0x2ddb3359, Data2: 0x9837, Data3: 0x5ba8, Data4: ( 0x80,0x3e,0xeb,0x5a,0xb1,0xcc,0xb6,0x7f ))// 2ddb3359-9837-5ba8-803e-eb5ab1ccb67f
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectable {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectableVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectableVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectableVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectableWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectableWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectableWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.DisplayAreaWatcher? = .from(abi: ComPtr($1))
let args: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectableWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectableBridge>
internal class TypedEventHandlerDisplayAreaWatcher_Any: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectable }
internal func InvokeImpl(_ sender: WinAppSDK.DisplayAreaWatcher?, _ args: Any?) throws {
let argsWrapper = __ABI_.AnyWrapper(args)
let _args = try! argsWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectable.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), _args))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectableBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.DisplayAreaWatcher?, Any?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher_IInspectable
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerDisplayAreaWatcher_Any
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea: WindowsFoundation.IID {
.init(Data1: 0x1ab60859, Data2: 0xcaaf, Data3: 0x5b34, Data4: ( 0xba,0xb0,0x3d,0x90,0x35,0xeb,0x80,0xcb ))// 1ab60859-caaf-5b34-bab0-3d9035eb80cb
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.DisplayAreaWatcher? = .from(abi: ComPtr($1))
let args: WinAppSDK.DisplayArea? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaBridge>
internal class TypedEventHandlerDisplayAreaWatcher_DisplayArea: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea }
internal func InvokeImpl(_ sender: WinAppSDK.DisplayAreaWatcher?, _ args: WinAppSDK.DisplayArea?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.DisplayAreaWatcher?, WinAppSDK.DisplayArea?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayAreaWatcher___x_ABI_CMicrosoft__CUI__CWindowing__CDisplayArea
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerDisplayAreaWatcher_DisplayArea
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
private var IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgs: WindowsFoundation.IID {
.init(Data1: 0x30bb9803, Data2: 0x2b8a, Data3: 0x58e0, Data4: ( 0x88,0x12,0x93,0x96,0x78,0x22,0xd6,0xd0 ))// 30bb9803-2b8a-58e0-8812-93967822d6d0
}
internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgs {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgsVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgsVtbl = .init(
QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgsWrapper.queryInterface($0, $1, $2) },
AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgsWrapper.addRef($0) },
Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgsWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinAppSDK.ResourceManager? = .from(abi: ComPtr($1))
let args: WinAppSDK.ResourceNotFoundEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, args)
return S_OK
}
)
typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgsWrapper = InterfaceWrapperBase<WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgsBridge>
internal class TypedEventHandlerResourceManager_ResourceNotFoundEventArgs: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgs }
internal func InvokeImpl(_ sender: WinAppSDK.ResourceManager?, _ args: WinAppSDK.ResourceNotFoundEventArgs?) throws {
_ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(args)))
}
}
}
internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgsBridge : WinRTDelegateBridge {
internal typealias Handler = WindowsFoundation.TypedEventHandler<WinAppSDK.ResourceManager?, WinAppSDK.ResourceNotFoundEventArgs?>
internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceManager___x_ABI_CMicrosoft__CWindows__CApplicationModel__CResources__CResourceNotFoundEventArgs
internal typealias SwiftABI = WinAppSDK.TypedEventHandlerResourceManager_ResourceNotFoundEventArgs
internal static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { (sender, args) in
try! _default.InvokeImpl(sender, args)
}
return handler
}
}
public extension EventSource where Handler == TypedEventHandler<ISystemBackdropControllerWithTargets?, Any?> {
func invoke(_ sender: WinAppSDK.AnyISystemBackdropControllerWithTargets!, _ args: Any!) {
for handler in getInvocationList() {
handler(sender, args)
}
}
}
public extension EventSource where Handler == TypedEventHandler<ResourceManager?, ResourceNotFoundEventArgs?> {
func invoke(_ sender: WinAppSDK.ResourceManager!, _ args: WinAppSDK.ResourceNotFoundEventArgs!) {
for handler in getInvocationList() {
handler(sender, args)
}
}
}