swift-windowsappsdk/Sources/WinAppSDK/Generated/Microsoft.UI.Dispatching+Impl.swift
2024-02-15 17:18:14 -08:00

23 lines
869 B
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 WindowsFoundation
import CWinRT
public enum __IMPL_Microsoft_UI_Dispatching {
public class DispatcherQueueHandlerBridge : WinRTDelegateBridge {
public typealias Handler = DispatcherQueueHandler
public typealias CABI = __x_ABI_CMicrosoft_CUI_CDispatching_CIDispatcherQueueHandler
public typealias SwiftABI = __ABI_Microsoft_UI_Dispatching.DispatcherQueueHandler
public static func from(abi: ComPtr<CABI>?) -> Handler? {
guard let abi = abi else { return nil }
let _default = SwiftABI(abi)
let handler: Handler = { () in
try! _default.InvokeImpl()
}
return handler
}
}
}