54 lines
2.2 KiB
Swift
54 lines
2.2 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_System {
|
|
public enum ILauncherViewOptionsBridge : AbiInterfaceBridge {
|
|
public typealias CABI = __x_ABI_CWindows_CSystem_CILauncherViewOptions
|
|
public typealias SwiftABI = __ABI_Windows_System.ILauncherViewOptions
|
|
public typealias SwiftProjection = AnyILauncherViewOptions
|
|
public static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
|
|
guard let abi = abi else { return nil }
|
|
return ILauncherViewOptionsImpl(abi)
|
|
}
|
|
|
|
public static func makeAbi() -> CABI {
|
|
let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Windows_System.ILauncherViewOptionsVTable) { $0 }
|
|
return .init(lpVtbl: vtblPtr)
|
|
}
|
|
}
|
|
|
|
fileprivate class ILauncherViewOptionsImpl: ILauncherViewOptions, WinRTAbiImpl {
|
|
fileprivate typealias Bridge = ILauncherViewOptionsBridge
|
|
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.system.ilauncherviewoptions.desiredremainingview)
|
|
fileprivate var desiredRemainingView : UWP.ViewSizePreference {
|
|
get { try! _default.get_DesiredRemainingViewImpl() }
|
|
set { try! _default.put_DesiredRemainingViewImpl(newValue) }
|
|
}
|
|
|
|
}
|
|
|
|
public class DispatcherQueueHandlerBridge : WinRTDelegateBridge {
|
|
public typealias Handler = DispatcherQueueHandler
|
|
public typealias CABI = __x_ABI_CWindows_CSystem_CIDispatcherQueueHandler
|
|
public typealias SwiftABI = __ABI_Windows_System.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
|
|
}
|
|
}
|
|
}
|