494 lines
22 KiB
Swift
494 lines
22 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 WindowsFoundation
|
|
import CWinRT
|
|
|
|
public enum __IMPL_Windows_UI_Core {
|
|
public enum ICoreAcceleratorKeysBridge : AbiInterfaceBridge {
|
|
public typealias CABI = __x_ABI_CWindows_CUI_CCore_CICoreAcceleratorKeys
|
|
public typealias SwiftABI = __ABI_Windows_UI_Core.ICoreAcceleratorKeys
|
|
public typealias SwiftProjection = AnyICoreAcceleratorKeys
|
|
public static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
|
|
guard let abi = abi else { return nil }
|
|
return ICoreAcceleratorKeysImpl(abi)
|
|
}
|
|
|
|
public static func makeAbi() -> CABI {
|
|
let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Windows_UI_Core.ICoreAcceleratorKeysVTable) { $0 }
|
|
return .init(lpVtbl: vtblPtr)
|
|
}
|
|
}
|
|
|
|
fileprivate class ICoreAcceleratorKeysImpl: ICoreAcceleratorKeys, WinRTAbiImpl {
|
|
fileprivate typealias Bridge = ICoreAcceleratorKeysBridge
|
|
fileprivate let _default: Bridge.SwiftABI
|
|
fileprivate var thisPtr: WindowsFoundation.IInspectable { _default }
|
|
fileprivate init(_ fromAbi: ComPtr<Bridge.CABI>) {
|
|
_default = Bridge.SwiftABI(fromAbi)
|
|
}
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icoreacceleratorkeys.acceleratorkeyactivated)
|
|
fileprivate lazy var acceleratorKeyActivated : Event<TypedEventHandler<CoreDispatcher?, AcceleratorKeyEventArgs?>> = {
|
|
.init(
|
|
add: { [weak self] in
|
|
guard let this = self?._default else { return .init() }
|
|
return try! this.add_AcceleratorKeyActivatedImpl($0)
|
|
},
|
|
remove: { [weak self] in
|
|
try? self?._default.remove_AcceleratorKeyActivatedImpl($0)
|
|
}
|
|
)
|
|
}()
|
|
|
|
}
|
|
|
|
public enum ICorePointerRedirectorBridge : AbiInterfaceBridge {
|
|
public typealias CABI = __x_ABI_CWindows_CUI_CCore_CICorePointerRedirector
|
|
public typealias SwiftABI = __ABI_Windows_UI_Core.ICorePointerRedirector
|
|
public typealias SwiftProjection = AnyICorePointerRedirector
|
|
public static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
|
|
guard let abi = abi else { return nil }
|
|
return ICorePointerRedirectorImpl(abi)
|
|
}
|
|
|
|
public static func makeAbi() -> CABI {
|
|
let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Windows_UI_Core.ICorePointerRedirectorVTable) { $0 }
|
|
return .init(lpVtbl: vtblPtr)
|
|
}
|
|
}
|
|
|
|
fileprivate class ICorePointerRedirectorImpl: ICorePointerRedirector, WinRTAbiImpl {
|
|
fileprivate typealias Bridge = ICorePointerRedirectorBridge
|
|
fileprivate let _default: Bridge.SwiftABI
|
|
fileprivate var thisPtr: WindowsFoundation.IInspectable { _default }
|
|
fileprivate init(_ fromAbi: ComPtr<Bridge.CABI>) {
|
|
_default = Bridge.SwiftABI(fromAbi)
|
|
}
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorepointerredirector.pointerroutedaway)
|
|
fileprivate lazy var pointerRoutedAway : Event<TypedEventHandler<ICorePointerRedirector?, PointerEventArgs?>> = {
|
|
.init(
|
|
add: { [weak self] in
|
|
guard let this = self?._default else { return .init() }
|
|
return try! this.add_PointerRoutedAwayImpl($0)
|
|
},
|
|
remove: { [weak self] in
|
|
try? self?._default.remove_PointerRoutedAwayImpl($0)
|
|
}
|
|
)
|
|
}()
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorepointerredirector.pointerroutedreleased)
|
|
fileprivate lazy var pointerRoutedReleased : Event<TypedEventHandler<ICorePointerRedirector?, PointerEventArgs?>> = {
|
|
.init(
|
|
add: { [weak self] in
|
|
guard let this = self?._default else { return .init() }
|
|
return try! this.add_PointerRoutedReleasedImpl($0)
|
|
},
|
|
remove: { [weak self] in
|
|
try? self?._default.remove_PointerRoutedReleasedImpl($0)
|
|
}
|
|
)
|
|
}()
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorepointerredirector.pointerroutedto)
|
|
fileprivate lazy var pointerRoutedTo : Event<TypedEventHandler<ICorePointerRedirector?, PointerEventArgs?>> = {
|
|
.init(
|
|
add: { [weak self] in
|
|
guard let this = self?._default else { return .init() }
|
|
return try! this.add_PointerRoutedToImpl($0)
|
|
},
|
|
remove: { [weak self] in
|
|
try? self?._default.remove_PointerRoutedToImpl($0)
|
|
}
|
|
)
|
|
}()
|
|
|
|
}
|
|
|
|
public enum ICoreWindowBridge : AbiInterfaceBridge {
|
|
public typealias CABI = __x_ABI_CWindows_CUI_CCore_CICoreWindow
|
|
public typealias SwiftABI = __ABI_Windows_UI_Core.ICoreWindow
|
|
public typealias SwiftProjection = AnyICoreWindow
|
|
public static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
|
|
guard let abi = abi else { return nil }
|
|
return ICoreWindowImpl(abi)
|
|
}
|
|
|
|
public static func makeAbi() -> CABI {
|
|
let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Windows_UI_Core.ICoreWindowVTable) { $0 }
|
|
return .init(lpVtbl: vtblPtr)
|
|
}
|
|
}
|
|
|
|
fileprivate class ICoreWindowImpl: ICoreWindow, WinRTAbiImpl {
|
|
fileprivate typealias Bridge = ICoreWindowBridge
|
|
fileprivate let _default: Bridge.SwiftABI
|
|
fileprivate var thisPtr: WindowsFoundation.IInspectable { _default }
|
|
fileprivate init(_ fromAbi: ComPtr<Bridge.CABI>) {
|
|
_default = Bridge.SwiftABI(fromAbi)
|
|
}
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.activate)
|
|
fileprivate func activate() throws {
|
|
try _default.ActivateImpl()
|
|
}
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.close)
|
|
fileprivate func close() throws {
|
|
try _default.CloseImpl()
|
|
}
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.getasynckeystate)
|
|
fileprivate func getAsyncKeyState(_ virtualKey: UWP.VirtualKey) throws -> CoreVirtualKeyStates {
|
|
try _default.GetAsyncKeyStateImpl(virtualKey)
|
|
}
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.getkeystate)
|
|
fileprivate func getKeyState(_ virtualKey: UWP.VirtualKey) throws -> CoreVirtualKeyStates {
|
|
try _default.GetKeyStateImpl(virtualKey)
|
|
}
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.releasepointercapture)
|
|
fileprivate func releasePointerCapture() throws {
|
|
try _default.ReleasePointerCaptureImpl()
|
|
}
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.setpointercapture)
|
|
fileprivate func setPointerCapture() throws {
|
|
try _default.SetPointerCaptureImpl()
|
|
}
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.automationhostprovider)
|
|
fileprivate var automationHostProvider : Any! {
|
|
get { try! _default.get_AutomationHostProviderImpl() }
|
|
}
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.bounds)
|
|
fileprivate var bounds : WindowsFoundation.Rect {
|
|
get { try! _default.get_BoundsImpl() }
|
|
}
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.customproperties)
|
|
fileprivate var customProperties : WindowsFoundation.AnyIPropertySet! {
|
|
get { try! _default.get_CustomPropertiesImpl() }
|
|
}
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.dispatcher)
|
|
fileprivate var dispatcher : CoreDispatcher! {
|
|
get { try! _default.get_DispatcherImpl() }
|
|
}
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.flowdirection)
|
|
fileprivate var flowDirection : CoreWindowFlowDirection {
|
|
get { try! _default.get_FlowDirectionImpl() }
|
|
set { try! _default.put_FlowDirectionImpl(newValue) }
|
|
}
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.isinputenabled)
|
|
fileprivate var isInputEnabled : Bool {
|
|
get { try! _default.get_IsInputEnabledImpl() }
|
|
set { try! _default.put_IsInputEnabledImpl(newValue) }
|
|
}
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.pointercursor)
|
|
fileprivate var pointerCursor : CoreCursor! {
|
|
get { try! _default.get_PointerCursorImpl() }
|
|
set { try! _default.put_PointerCursorImpl(newValue) }
|
|
}
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.pointerposition)
|
|
fileprivate var pointerPosition : WindowsFoundation.Point {
|
|
get { try! _default.get_PointerPositionImpl() }
|
|
}
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.visible)
|
|
fileprivate var visible : Bool {
|
|
get { try! _default.get_VisibleImpl() }
|
|
}
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.activated)
|
|
fileprivate lazy var activated : Event<TypedEventHandler<CoreWindow?, WindowActivatedEventArgs?>> = {
|
|
.init(
|
|
add: { [weak self] in
|
|
guard let this = self?._default else { return .init() }
|
|
return try! this.add_ActivatedImpl($0)
|
|
},
|
|
remove: { [weak self] in
|
|
try? self?._default.remove_ActivatedImpl($0)
|
|
}
|
|
)
|
|
}()
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.automationproviderrequested)
|
|
fileprivate lazy var automationProviderRequested : Event<TypedEventHandler<CoreWindow?, AutomationProviderRequestedEventArgs?>> = {
|
|
.init(
|
|
add: { [weak self] in
|
|
guard let this = self?._default else { return .init() }
|
|
return try! this.add_AutomationProviderRequestedImpl($0)
|
|
},
|
|
remove: { [weak self] in
|
|
try? self?._default.remove_AutomationProviderRequestedImpl($0)
|
|
}
|
|
)
|
|
}()
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.characterreceived)
|
|
fileprivate lazy var characterReceived : Event<TypedEventHandler<CoreWindow?, CharacterReceivedEventArgs?>> = {
|
|
.init(
|
|
add: { [weak self] in
|
|
guard let this = self?._default else { return .init() }
|
|
return try! this.add_CharacterReceivedImpl($0)
|
|
},
|
|
remove: { [weak self] in
|
|
try? self?._default.remove_CharacterReceivedImpl($0)
|
|
}
|
|
)
|
|
}()
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.closed)
|
|
fileprivate lazy var closed : Event<TypedEventHandler<CoreWindow?, CoreWindowEventArgs?>> = {
|
|
.init(
|
|
add: { [weak self] in
|
|
guard let this = self?._default else { return .init() }
|
|
return try! this.add_ClosedImpl($0)
|
|
},
|
|
remove: { [weak self] in
|
|
try? self?._default.remove_ClosedImpl($0)
|
|
}
|
|
)
|
|
}()
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.inputenabled)
|
|
fileprivate lazy var inputEnabled : Event<TypedEventHandler<CoreWindow?, InputEnabledEventArgs?>> = {
|
|
.init(
|
|
add: { [weak self] in
|
|
guard let this = self?._default else { return .init() }
|
|
return try! this.add_InputEnabledImpl($0)
|
|
},
|
|
remove: { [weak self] in
|
|
try? self?._default.remove_InputEnabledImpl($0)
|
|
}
|
|
)
|
|
}()
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.keydown)
|
|
fileprivate lazy var keyDown : Event<TypedEventHandler<CoreWindow?, KeyEventArgs?>> = {
|
|
.init(
|
|
add: { [weak self] in
|
|
guard let this = self?._default else { return .init() }
|
|
return try! this.add_KeyDownImpl($0)
|
|
},
|
|
remove: { [weak self] in
|
|
try? self?._default.remove_KeyDownImpl($0)
|
|
}
|
|
)
|
|
}()
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.keyup)
|
|
fileprivate lazy var keyUp : Event<TypedEventHandler<CoreWindow?, KeyEventArgs?>> = {
|
|
.init(
|
|
add: { [weak self] in
|
|
guard let this = self?._default else { return .init() }
|
|
return try! this.add_KeyUpImpl($0)
|
|
},
|
|
remove: { [weak self] in
|
|
try? self?._default.remove_KeyUpImpl($0)
|
|
}
|
|
)
|
|
}()
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.pointercapturelost)
|
|
fileprivate lazy var pointerCaptureLost : Event<TypedEventHandler<CoreWindow?, PointerEventArgs?>> = {
|
|
.init(
|
|
add: { [weak self] in
|
|
guard let this = self?._default else { return .init() }
|
|
return try! this.add_PointerCaptureLostImpl($0)
|
|
},
|
|
remove: { [weak self] in
|
|
try? self?._default.remove_PointerCaptureLostImpl($0)
|
|
}
|
|
)
|
|
}()
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.pointerentered)
|
|
fileprivate lazy var pointerEntered : Event<TypedEventHandler<CoreWindow?, PointerEventArgs?>> = {
|
|
.init(
|
|
add: { [weak self] in
|
|
guard let this = self?._default else { return .init() }
|
|
return try! this.add_PointerEnteredImpl($0)
|
|
},
|
|
remove: { [weak self] in
|
|
try? self?._default.remove_PointerEnteredImpl($0)
|
|
}
|
|
)
|
|
}()
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.pointerexited)
|
|
fileprivate lazy var pointerExited : Event<TypedEventHandler<CoreWindow?, PointerEventArgs?>> = {
|
|
.init(
|
|
add: { [weak self] in
|
|
guard let this = self?._default else { return .init() }
|
|
return try! this.add_PointerExitedImpl($0)
|
|
},
|
|
remove: { [weak self] in
|
|
try? self?._default.remove_PointerExitedImpl($0)
|
|
}
|
|
)
|
|
}()
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.pointermoved)
|
|
fileprivate lazy var pointerMoved : Event<TypedEventHandler<CoreWindow?, PointerEventArgs?>> = {
|
|
.init(
|
|
add: { [weak self] in
|
|
guard let this = self?._default else { return .init() }
|
|
return try! this.add_PointerMovedImpl($0)
|
|
},
|
|
remove: { [weak self] in
|
|
try? self?._default.remove_PointerMovedImpl($0)
|
|
}
|
|
)
|
|
}()
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.pointerpressed)
|
|
fileprivate lazy var pointerPressed : Event<TypedEventHandler<CoreWindow?, PointerEventArgs?>> = {
|
|
.init(
|
|
add: { [weak self] in
|
|
guard let this = self?._default else { return .init() }
|
|
return try! this.add_PointerPressedImpl($0)
|
|
},
|
|
remove: { [weak self] in
|
|
try? self?._default.remove_PointerPressedImpl($0)
|
|
}
|
|
)
|
|
}()
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.pointerreleased)
|
|
fileprivate lazy var pointerReleased : Event<TypedEventHandler<CoreWindow?, PointerEventArgs?>> = {
|
|
.init(
|
|
add: { [weak self] in
|
|
guard let this = self?._default else { return .init() }
|
|
return try! this.add_PointerReleasedImpl($0)
|
|
},
|
|
remove: { [weak self] in
|
|
try? self?._default.remove_PointerReleasedImpl($0)
|
|
}
|
|
)
|
|
}()
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.pointerwheelchanged)
|
|
fileprivate lazy var pointerWheelChanged : Event<TypedEventHandler<CoreWindow?, PointerEventArgs?>> = {
|
|
.init(
|
|
add: { [weak self] in
|
|
guard let this = self?._default else { return .init() }
|
|
return try! this.add_PointerWheelChangedImpl($0)
|
|
},
|
|
remove: { [weak self] in
|
|
try? self?._default.remove_PointerWheelChangedImpl($0)
|
|
}
|
|
)
|
|
}()
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.sizechanged)
|
|
fileprivate lazy var sizeChanged : Event<TypedEventHandler<CoreWindow?, WindowSizeChangedEventArgs?>> = {
|
|
.init(
|
|
add: { [weak self] in
|
|
guard let this = self?._default else { return .init() }
|
|
return try! this.add_SizeChangedImpl($0)
|
|
},
|
|
remove: { [weak self] in
|
|
try? self?._default.remove_SizeChangedImpl($0)
|
|
}
|
|
)
|
|
}()
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.touchhittesting)
|
|
fileprivate lazy var touchHitTesting : Event<TypedEventHandler<CoreWindow?, TouchHitTestingEventArgs?>> = {
|
|
.init(
|
|
add: { [weak self] in
|
|
guard let this = self?._default else { return .init() }
|
|
return try! this.add_TouchHitTestingImpl($0)
|
|
},
|
|
remove: { [weak self] in
|
|
try? self?._default.remove_TouchHitTestingImpl($0)
|
|
}
|
|
)
|
|
}()
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindow.visibilitychanged)
|
|
fileprivate lazy var visibilityChanged : Event<TypedEventHandler<CoreWindow?, VisibilityChangedEventArgs?>> = {
|
|
.init(
|
|
add: { [weak self] in
|
|
guard let this = self?._default else { return .init() }
|
|
return try! this.add_VisibilityChangedImpl($0)
|
|
},
|
|
remove: { [weak self] in
|
|
try? self?._default.remove_VisibilityChangedImpl($0)
|
|
}
|
|
)
|
|
}()
|
|
|
|
}
|
|
|
|
public enum ICoreWindowEventArgsBridge : AbiInterfaceBridge {
|
|
public typealias CABI = __x_ABI_CWindows_CUI_CCore_CICoreWindowEventArgs
|
|
public typealias SwiftABI = __ABI_Windows_UI_Core.ICoreWindowEventArgs
|
|
public typealias SwiftProjection = AnyICoreWindowEventArgs
|
|
public static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
|
|
guard let abi = abi else { return nil }
|
|
return ICoreWindowEventArgsImpl(abi)
|
|
}
|
|
|
|
public static func makeAbi() -> CABI {
|
|
let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Windows_UI_Core.ICoreWindowEventArgsVTable) { $0 }
|
|
return .init(lpVtbl: vtblPtr)
|
|
}
|
|
}
|
|
|
|
fileprivate class ICoreWindowEventArgsImpl: ICoreWindowEventArgs, WinRTAbiImpl {
|
|
fileprivate typealias Bridge = ICoreWindowEventArgsBridge
|
|
fileprivate let _default: Bridge.SwiftABI
|
|
fileprivate var thisPtr: WindowsFoundation.IInspectable { _default }
|
|
fileprivate init(_ fromAbi: ComPtr<Bridge.CABI>) {
|
|
_default = Bridge.SwiftABI(fromAbi)
|
|
}
|
|
|
|
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.core.icorewindoweventargs.handled)
|
|
fileprivate var handled : Bool {
|
|
get { try! _default.get_HandledImpl() }
|
|
set { try! _default.put_HandledImpl(newValue) }
|
|
}
|
|
|
|
}
|
|
|
|
public class DispatchedHandlerBridge : WinRTDelegateBridge {
|
|
public typealias Handler = DispatchedHandler
|
|
public typealias CABI = __x_ABI_CWindows_CUI_CCore_CIDispatchedHandler
|
|
public typealias SwiftABI = __ABI_Windows_UI_Core.DispatchedHandler
|
|
|
|
public static func from(abi: ComPtr<CABI>?) -> Handler? {
|
|
guard let abi = abi else { return nil }
|
|
let _default = SwiftABI(abi)
|
|
let handler: Handler = { () in
|
|
try! _default.InvokeImpl()
|
|
}
|
|
return handler
|
|
}
|
|
}
|
|
public class IdleDispatchedHandlerBridge : WinRTDelegateBridge {
|
|
public typealias Handler = IdleDispatchedHandler
|
|
public typealias CABI = __x_ABI_CWindows_CUI_CCore_CIIdleDispatchedHandler
|
|
public typealias SwiftABI = __ABI_Windows_UI_Core.IdleDispatchedHandler
|
|
|
|
public static func from(abi: ComPtr<CABI>?) -> Handler? {
|
|
guard let abi = abi else { return nil }
|
|
let _default = SwiftABI(abi)
|
|
let handler: Handler = { (e) in
|
|
try! _default.InvokeImpl(e)
|
|
}
|
|
return handler
|
|
}
|
|
}
|
|
}
|