// 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_CMicrosoft_CUI_CContent_CIContentCoordinateConverter: WindowsFoundation.IID { .init(Data1: 0x10A11230, Data2: 0x5EB4, Data3: 0x5840, Data4: ( 0xA3,0x46,0x57,0x0F,0x4A,0x49,0x04,0x0F ))// 10A11230-5EB4-5840-A346-570F4A49040F } private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverterFactory: WindowsFoundation.IID { .init(Data1: 0xA4B216EE, Data2: 0x0E26, Data3: 0x56BD, Data4: ( 0x92,0x09,0xA7,0x5C,0xF9,0xD8,0x0F,0x27 ))// A4B216EE-0E26-56BD-9209-A75CF9D80F27 } private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverterStatics: WindowsFoundation.IID { .init(Data1: 0xF56374CE, Data2: 0xB6DF, Data3: 0x5B42, Data4: ( 0xA5,0x8F,0x4E,0x3B,0xB0,0x39,0xE3,0xA9 ))// F56374CE-B6DF-5B42-A58F-4E3BB039E3A9 } private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentDeferral: WindowsFoundation.IID { .init(Data1: 0x470529F5, Data2: 0xCD93, Data3: 0x599B, Data4: ( 0x96,0x8E,0xF8,0xA6,0x89,0xBC,0x3A,0x07 ))// 470529F5-CD93-599B-968E-F8A689BC3A07 } private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentEnvironmentSettingChangedEventArgs: WindowsFoundation.IID { .init(Data1: 0x76478051, Data2: 0xFC80, Data3: 0x5EEC, Data4: ( 0xA3,0xF3,0x62,0x60,0x6A,0xBE,0x06,0xB7 ))// 76478051-FC80-5EEC-A3F3-62606ABE06B7 } private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentEnvironmentStateChangedEventArgs: WindowsFoundation.IID { .init(Data1: 0x8970FA4F, Data2: 0x10BA, Data3: 0x5F67, Data4: ( 0x97,0x0B,0x8C,0x72,0xBC,0x00,0x9B,0x67 ))// 8970FA4F-10BA-5F67-970B-8C72BC009B67 } private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIsland: WindowsFoundation.IID { .init(Data1: 0x5B2504BA, Data2: 0x361C, Data3: 0x50AA, Data4: ( 0xBD,0x6E,0x41,0x22,0xC6,0xD9,0x38,0x89 ))// 5B2504BA-361C-50AA-BD6E-4122C6D93889 } private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIslandAutomationProviderRequestedEventArgs: WindowsFoundation.IID { .init(Data1: 0x9FE24BED, Data2: 0x2B9C, Data3: 0x5137, Data4: ( 0x88,0x7F,0x40,0x3C,0x94,0x84,0x18,0x24 ))// 9FE24BED-2B9C-5137-887F-403C94841824 } private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIslandEnvironment: WindowsFoundation.IID { .init(Data1: 0xC334236D, Data2: 0xDA88, Data3: 0x566D, Data4: ( 0x81,0x1D,0x74,0xAE,0xF2,0xEB,0xA9,0x78 ))// C334236D-DA88-566D-811D-74AEF2EBA978 } private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIslandEnvironmentFactory: WindowsFoundation.IID { .init(Data1: 0x47A782D6, Data2: 0xB177, Data3: 0x5C1E, Data4: ( 0xBF,0x87,0x90,0x43,0x7D,0xD8,0x09,0xD0 ))// 47A782D6-B177-5C1E-BF87-90437DD809D0 } private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIslandFactory: WindowsFoundation.IID { .init(Data1: 0x82383F52, Data2: 0xE81A, Data3: 0x5EC9, Data4: ( 0xA9,0x54,0xBA,0xC8,0xA9,0x31,0xBA,0x7D ))// 82383F52-E81A-5EC9-A954-BAC8A931BA7D } private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStateChangedEventArgs: WindowsFoundation.IID { .init(Data1: 0xC828EEB2, Data2: 0x0C62, Data3: 0x5B40, Data4: ( 0x9D,0x48,0x77,0xC0,0x60,0x83,0xC2,0x78 ))// C828EEB2-0C62-5B40-9D48-77C06083C278 } private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStatics: WindowsFoundation.IID { .init(Data1: 0x7B9EB7CC, Data2: 0x8C43, Data3: 0x5E0A, Data4: ( 0xAB,0x23,0xAB,0x48,0x62,0x8F,0xD2,0x23 ))// 7B9EB7CC-8C43-5E0A-AB23-AB48628FD223 } private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentSiteBridge: WindowsFoundation.IID { .init(Data1: 0xFAAAB99E, Data2: 0xA42B, Data3: 0x549C, Data4: ( 0x92,0xDF,0x3B,0x6D,0x6E,0x1E,0x36,0x8B ))// FAAAB99E-A42B-549C-92DF-3B6D6E1E368B } private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentSiteEnvironmentView: WindowsFoundation.IID { .init(Data1: 0x5B6FE420, Data2: 0x0BB3, Data3: 0x54DD, Data4: ( 0x85,0x89,0x78,0x6C,0xF0,0x2E,0x38,0xF1 ))// 5B6FE420-0BB3-54DD-8589-786CF02E38F1 } private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentSiteEnvironmentViewFactory: WindowsFoundation.IID { .init(Data1: 0xC901EDF2, Data2: 0xF184, Data3: 0x5A64, Data4: ( 0x8D,0x58,0x8C,0xF8,0xEF,0xA8,0xB6,0x78 ))// C901EDF2-F184-5A64-8D58-8CF8EFA8B678 } private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentSiteView: WindowsFoundation.IID { .init(Data1: 0x2D5D8DD5, Data2: 0x358E, Data3: 0x5B05, Data4: ( 0x99,0x3B,0xB2,0x66,0x6D,0x17,0x86,0xB3 ))// 2D5D8DD5-358E-5B05-993B-B2666D1786B3 } private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentSiteViewFactory: WindowsFoundation.IID { .init(Data1: 0x9EFD72F0, Data2: 0x63EF, Data3: 0x5B6A, Data4: ( 0xA5,0x0C,0x56,0x85,0xBD,0x81,0x00,0xF1 ))// 9EFD72F0-63EF-5B6A-A50C-5685BD8100F1 } private var IID___x_ABI_CMicrosoft_CUI_CContent_CIDesktopChildSiteBridge: WindowsFoundation.IID { .init(Data1: 0xB2F2FF7B, Data2: 0x1825, Data3: 0x51B0, Data4: ( 0xB8,0x0B,0x75,0x99,0x88,0x9C,0x56,0x9F ))// B2F2FF7B-1825-51B0-B80B-7599889C569F } private var IID___x_ABI_CMicrosoft_CUI_CContent_CIDesktopChildSiteBridgeStatics: WindowsFoundation.IID { .init(Data1: 0xAB6B82DE, Data2: 0x6A47, Data3: 0x5DE3, Data4: ( 0xA8,0x60,0x61,0x3C,0x8D,0xB6,0x79,0xAB ))// AB6B82DE-6A47-5DE3-A860-613C8DB679AB } private var IID___x_ABI_CMicrosoft_CUI_CContent_CIDesktopSiteBridge: WindowsFoundation.IID { .init(Data1: 0xF0AE8750, Data2: 0x905C, Data3: 0x50A2, Data4: ( 0x8A,0x12,0x45,0x45,0xC6,0x24,0x5B,0xB4 ))// F0AE8750-905C-50A2-8A12-4545C6245BB4 } private var IID___x_ABI_CMicrosoft_CUI_CContent_CIDesktopSiteBridgeFactory: WindowsFoundation.IID { .init(Data1: 0xD94EE1FF, Data2: 0x3AF1, Data3: 0x54D0, Data4: ( 0x93,0x11,0x65,0x2B,0x29,0xC5,0x7C,0x5B ))// D94EE1FF-3AF1-54D0-9311-652B29C57C5B } private var IID___x_ABI_CMicrosoft_CUI_CContent_CIDesktopSiteBridgeStatics: WindowsFoundation.IID { .init(Data1: 0xE0B38DAF, Data2: 0x9CD4, Data3: 0x50C5, Data4: ( 0x83,0xEE,0xC7,0x6E,0x3C,0xF3,0x4E,0xBA ))// E0B38DAF-9CD4-50C5-83EE-C76E3CF34EBA } public enum __ABI_Microsoft_UI_Content { public class IContentCoordinateConverter: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverter } internal func ConvertLocalToScreenWithPointImpl(_ localPoint: WindowsFoundation.Point) throws -> UWP.PointInt32 { var result: __x_ABI_CWindows_CGraphics_CPointInt32 = .init() _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverter.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.ConvertLocalToScreenWithPoint(pThis, .from(swift: localPoint), &result)) } return .from(abi: result) } internal func ConvertLocalToScreenWithRectImpl(_ localRect: WindowsFoundation.Rect) throws -> UWP.RectInt32 { var result: __x_ABI_CWindows_CGraphics_CRectInt32 = .init() _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverter.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.ConvertLocalToScreenWithRect(pThis, .from(swift: localRect), &result)) } return .from(abi: result) } internal func ConvertScreenToLocalWithPointImpl(_ screenPoint: UWP.PointInt32) throws -> WindowsFoundation.Point { var result: __x_ABI_CWindows_CFoundation_CPoint = .init() _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverter.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.ConvertScreenToLocalWithPoint(pThis, .from(swift: screenPoint), &result)) } return .from(abi: result) } internal func ConvertScreenToLocalWithRectImpl(_ screenRect: UWP.RectInt32) throws -> WindowsFoundation.Rect { var result: __x_ABI_CWindows_CFoundation_CRect = .init() _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverter.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.ConvertScreenToLocalWithRect(pThis, .from(swift: screenRect), &result)) } return .from(abi: result) } } public class IContentCoordinateConverterFactory: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverterFactory } } public class IContentCoordinateConverterStatics: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverterStatics } internal func CreateForWindowIdImpl(_ windowId: WinAppSDK.WindowId) throws -> WinAppSDK.ContentCoordinateConverter? { let (result) = try ComPtrs.initialize { resultAbi in _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverterStatics.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.CreateForWindowId(pThis, .from(swift: windowId), &resultAbi)) } } return .from(abi: result) } } public class IContentDeferral: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentDeferral } internal func CompleteImpl() throws { _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentDeferral.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.Complete(pThis)) } } } public class IContentEnvironmentSettingChangedEventArgs: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentEnvironmentSettingChangedEventArgs } internal func get_SettingNameImpl() throws -> String { var value: HSTRING? _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentEnvironmentSettingChangedEventArgs.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_SettingName(pThis, &value)) } return .init(from: value) } } public class IContentEnvironmentStateChangedEventArgs: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentEnvironmentStateChangedEventArgs } internal func get_DidAppWindowIdChangeImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentEnvironmentStateChangedEventArgs.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_DidAppWindowIdChange(pThis, &value)) } return .init(from: value) } internal func get_DidDisplayIdChangeImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentEnvironmentStateChangedEventArgs.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_DidDisplayIdChange(pThis, &value)) } return .init(from: value) } } public class IContentIsland: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIsland } internal func get_ActualSizeImpl() throws -> WindowsFoundation.Vector2 { var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActualSize(pThis, &value)) } return .from(abi: value) } internal func get_AppDataImpl() throws -> Any? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_AppData(pThis, &valueAbi)) } } return __ABI_.AnyWrapper.unwrapFrom(abi: value) } internal func put_AppDataImpl(_ value: Any?) throws { let valueWrapper = __ABI_.AnyWrapper(value) let _value = try! valueWrapper?.toABI { $0 } _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.put_AppData(pThis, _value)) } } internal func get_CoordinateConverterImpl() throws -> WinAppSDK.ContentCoordinateConverter? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_CoordinateConverter(pThis, &valueAbi)) } } return .from(abi: value) } internal func get_CustomPropertiesImpl() throws -> WindowsFoundation.AnyIPropertySet? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_CustomProperties(pThis, &valueAbi)) } } return __ABI_Windows_Foundation_Collections.IPropertySetWrapper.unwrapFrom(abi: value) } internal func get_DispatcherQueueImpl() throws -> WinAppSDK.DispatcherQueue? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_DispatcherQueue(pThis, &valueAbi)) } } return .from(abi: value) } internal func get_EnvironmentImpl() throws -> WinAppSDK.ContentIslandEnvironment? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Environment(pThis, &valueAbi)) } } return .from(abi: value) } internal func get_IdImpl() throws -> UInt64 { var value: UINT64 = 0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Id(pThis, &value)) } return value } internal func get_IsConnectedImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsConnected(pThis, &value)) } return .init(from: value) } internal func get_IsHitTestVisibleWhenTransparentImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsHitTestVisibleWhenTransparent(pThis, &value)) } return .init(from: value) } internal func put_IsHitTestVisibleWhenTransparentImpl(_ value: Bool) throws { _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsHitTestVisibleWhenTransparent(pThis, .init(from: value))) } } internal func get_IsIslandEnabledImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsIslandEnabled(pThis, &value)) } return .init(from: value) } internal func put_IsIslandEnabledImpl(_ value: Bool) throws { _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsIslandEnabled(pThis, .init(from: value))) } } internal func get_IsIslandVisibleImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsIslandVisible(pThis, &value)) } return .init(from: value) } internal func put_IsIslandVisibleImpl(_ value: Bool) throws { _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsIslandVisible(pThis, .init(from: value))) } } internal func get_IsSiteEnabledImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSiteEnabled(pThis, &value)) } return .init(from: value) } internal func get_IsSiteVisibleImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSiteVisible(pThis, &value)) } return .init(from: value) } internal func get_LayoutDirectionImpl() throws -> WinAppSDK.ContentLayoutDirection { var value: __x_ABI_CMicrosoft_CUI_CContent_CContentLayoutDirection = .init(0) _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_LayoutDirection(pThis, &value)) } return value } internal func get_RasterizationScaleImpl() throws -> Float { var value: FLOAT = 0.0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_RasterizationScale(pThis, &value)) } return value } internal func GetAutomationHostProviderImpl() throws -> Any? { let (result) = try ComPtrs.initialize { resultAbi in _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.GetAutomationHostProvider(pThis, &resultAbi)) } } return __ABI_.AnyWrapper.unwrapFrom(abi: result) } internal func GetStateChangeDeferralImpl() throws -> WinAppSDK.ContentDeferral? { let (result) = try ComPtrs.initialize { resultAbi in _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.GetStateChangeDeferral(pThis, &resultAbi)) } } return .from(abi: result) } internal func RequestSizeImpl(_ size: WindowsFoundation.Vector2) throws { _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.RequestSize(pThis, .from(swift: size))) } } internal func add_AutomationProviderRequestedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { var token: EventRegistrationToken = .init() let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandAutomationProviderRequestedEventArgsWrapper(handler) let _handler = try! handlerWrapper?.toABI { $0 } _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.add_AutomationProviderRequested(pThis, _handler, &token)) } return token } internal func remove_AutomationProviderRequestedImpl(_ token: EventRegistrationToken) throws { _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.remove_AutomationProviderRequested(pThis, token)) } } internal func add_StateChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { var token: EventRegistrationToken = .init() let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIsland___x_ABI_CMicrosoft__CUI__CContent__CContentIslandStateChangedEventArgsWrapper(handler) let _handler = try! handlerWrapper?.toABI { $0 } _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.add_StateChanged(pThis, _handler, &token)) } return token } internal func remove_StateChangedImpl(_ token: EventRegistrationToken) throws { _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIsland.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.remove_StateChanged(pThis, token)) } } } public class IContentIslandAutomationProviderRequestedEventArgs: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIslandAutomationProviderRequestedEventArgs } internal func get_AutomationProviderImpl() throws -> Any? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandAutomationProviderRequestedEventArgs.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_AutomationProvider(pThis, &valueAbi)) } } return __ABI_.AnyWrapper.unwrapFrom(abi: value) } internal func put_AutomationProviderImpl(_ value: Any?) throws { let valueWrapper = __ABI_.AnyWrapper(value) let _value = try! valueWrapper?.toABI { $0 } _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandAutomationProviderRequestedEventArgs.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.put_AutomationProvider(pThis, _value)) } } internal func get_HandledImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandAutomationProviderRequestedEventArgs.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_Handled(pThis, &value)) } return .init(from: value) } internal func put_HandledImpl(_ value: Bool) throws { _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandAutomationProviderRequestedEventArgs.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) } } } public class IContentIslandEnvironment: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIslandEnvironment } internal func get_AppWindowIdImpl() throws -> WinAppSDK.WindowId { var value: __x_ABI_CMicrosoft_CUI_CWindowId = .init() _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandEnvironment.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_AppWindowId(pThis, &value)) } return .from(abi: value) } internal func get_DisplayIdImpl() throws -> WinAppSDK.DisplayId { var value: __x_ABI_CMicrosoft_CUI_CDisplayId = .init() _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandEnvironment.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_DisplayId(pThis, &value)) } return .from(abi: value) } internal func add_SettingChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { var token: EventRegistrationToken = .init() let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentSettingChangedEventArgsWrapper(handler) let _handler = try! handlerWrapper?.toABI { $0 } _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandEnvironment.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.add_SettingChanged(pThis, _handler, &token)) } return token } internal func remove_SettingChangedImpl(_ token: EventRegistrationToken) throws { _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandEnvironment.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.remove_SettingChanged(pThis, token)) } } internal func add_StateChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { var token: EventRegistrationToken = .init() let handlerWrapper = WinAppSDK.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CContent__CContentIslandEnvironment___x_ABI_CMicrosoft__CUI__CContent__CContentEnvironmentStateChangedEventArgsWrapper(handler) let _handler = try! handlerWrapper?.toABI { $0 } _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandEnvironment.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.add_StateChanged(pThis, _handler, &token)) } return token } internal func remove_StateChangedImpl(_ token: EventRegistrationToken) throws { _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandEnvironment.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.remove_StateChanged(pThis, token)) } } } public class IContentIslandEnvironmentFactory: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIslandEnvironmentFactory } } public class IContentIslandFactory: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIslandFactory } } public class IContentIslandStateChangedEventArgs: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStateChangedEventArgs } internal func get_DidActualSizeChangeImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStateChangedEventArgs.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_DidActualSizeChange(pThis, &value)) } return .init(from: value) } internal func get_DidSiteEnabledChangeImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStateChangedEventArgs.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_DidSiteEnabledChange(pThis, &value)) } return .init(from: value) } internal func get_DidSiteVisibleChangeImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStateChangedEventArgs.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_DidSiteVisibleChange(pThis, &value)) } return .init(from: value) } internal func get_DidLayoutDirectionChangeImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStateChangedEventArgs.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_DidLayoutDirectionChange(pThis, &value)) } return .init(from: value) } internal func get_DidRasterizationScaleChangeImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStateChangedEventArgs.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_DidRasterizationScaleChange(pThis, &value)) } return .init(from: value) } } public class IContentIslandStatics: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStatics } internal func CreateImpl(_ Root: WinAppSDK.Visual?) throws -> WinAppSDK.ContentIsland? { let (result) = try ComPtrs.initialize { resultAbi in _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStatics.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.Create(pThis, RawPointer(Root), &resultAbi)) } } return .from(abi: result) } internal func GetByVisualImpl(_ child: WinAppSDK.Visual?) throws -> WinAppSDK.ContentIsland? { let (result) = try ComPtrs.initialize { resultAbi in _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStatics.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.GetByVisual(pThis, RawPointer(child), &resultAbi)) } } return .from(abi: result) } internal func GetFromIdImpl(_ id: UInt64) throws -> WinAppSDK.ContentIsland? { let (result) = try ComPtrs.initialize { resultAbi in _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentIslandStatics.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.GetFromId(pThis, id, &resultAbi)) } } return .from(abi: result) } } public class IContentSiteBridge: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentSiteBridge } open func get_DispatcherQueueImpl() throws -> WinAppSDK.DispatcherQueue? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteBridge.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_DispatcherQueue(pThis, &valueAbi)) } } return .from(abi: value) } open func get_LayoutDirectionOverrideImpl() throws -> WinAppSDK.ContentLayoutDirection? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteBridge.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_LayoutDirectionOverride(pThis, &valueAbi)) } } return WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionWrapper.unwrapFrom(abi: value) } open func put_LayoutDirectionOverrideImpl(_ value: WinAppSDK.ContentLayoutDirection?) throws { let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionWrapper(value) let _value = try! valueWrapper?.toABI { $0 } _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteBridge.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.put_LayoutDirectionOverride(pThis, _value)) } } open func get_OverrideScaleImpl() throws -> Float { var value: FLOAT = 0.0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteBridge.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_OverrideScale(pThis, &value)) } return value } open func put_OverrideScaleImpl(_ value: Float) throws { _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteBridge.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.put_OverrideScale(pThis, value)) } } } internal static var IContentSiteBridgeVTable: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteBridgeVtbl = .init( QueryInterface: { IContentSiteBridgeWrapper.queryInterface($0, $1, $2) }, AddRef: { IContentSiteBridgeWrapper.addRef($0) }, Release: { IContentSiteBridgeWrapper.release($0) }, GetIids: { let size = MemoryLayout.size let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self) iids[0] = IUnknown.IID iids[1] = IInspectable.IID iids[2] = __ABI_Microsoft_UI_Content.IContentSiteBridgeWrapper.IID iids[3] = __ABI_Windows_Foundation.IClosableWrapper.IID $1!.pointee = 4 $2!.pointee = iids return S_OK }, GetRuntimeClassName: { _ = $0 let hstring = try! HString("Microsoft.UI.Content.IContentSiteBridge").detach() $1!.pointee = hstring return S_OK }, GetTrustLevel: { _ = $0 $1!.pointee = TrustLevel(rawValue: 0) return S_OK }, get_DispatcherQueue: { guard let __unwrapped__instance = IContentSiteBridgeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } let value = __unwrapped__instance.dispatcherQueue value?.copyTo($1) return S_OK }, get_LayoutDirectionOverride: { guard let __unwrapped__instance = IContentSiteBridgeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } let value = __unwrapped__instance.layoutDirectionOverride let valueWrapper = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionWrapper(value) valueWrapper?.copyTo($1) return S_OK }, put_LayoutDirectionOverride: { guard let __unwrapped__instance = IContentSiteBridgeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } let value: WinAppSDK.ContentLayoutDirection? = WinAppSDK.__x_ABI_C__FIReference_1___x_ABI_CMicrosoft__CUI__CContent__CContentLayoutDirectionWrapper.unwrapFrom(abi: ComPtr($1)) __unwrapped__instance.layoutDirectionOverride = value return S_OK }, get_OverrideScale: { guard let __unwrapped__instance = IContentSiteBridgeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } let value = __unwrapped__instance.overrideScale $1?.initialize(to: value) return S_OK }, put_OverrideScale: { guard let __unwrapped__instance = IContentSiteBridgeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } let value: Float = $1 __unwrapped__instance.overrideScale = value return S_OK } ) public typealias IContentSiteBridgeWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Content.IContentSiteBridgeBridge> public class IContentSiteEnvironmentView: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentSiteEnvironmentView } internal func get_AppWindowIdImpl() throws -> WinAppSDK.WindowId { var value: __x_ABI_CMicrosoft_CUI_CWindowId = .init() _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteEnvironmentView.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_AppWindowId(pThis, &value)) } return .from(abi: value) } internal func get_DisplayIdImpl() throws -> WinAppSDK.DisplayId { var value: __x_ABI_CMicrosoft_CUI_CDisplayId = .init() _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteEnvironmentView.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_DisplayId(pThis, &value)) } return .from(abi: value) } } public class IContentSiteEnvironmentViewFactory: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentSiteEnvironmentViewFactory } } public class IContentSiteView: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentSiteView } internal func get_ActualSizeImpl() throws -> WindowsFoundation.Vector2 { var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteView.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActualSize(pThis, &value)) } return .from(abi: value) } internal func get_ClientSizeImpl() throws -> UWP.SizeInt32 { var value: __x_ABI_CWindows_CGraphics_CSizeInt32 = .init() _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteView.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_ClientSize(pThis, &value)) } return .from(abi: value) } internal func get_CoordinateConverterImpl() throws -> WinAppSDK.ContentCoordinateConverter? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteView.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_CoordinateConverter(pThis, &valueAbi)) } } return .from(abi: value) } internal func get_DispatcherQueueImpl() throws -> WinAppSDK.DispatcherQueue? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteView.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_DispatcherQueue(pThis, &valueAbi)) } } return .from(abi: value) } internal func get_EnvironmentViewImpl() throws -> WinAppSDK.ContentSiteEnvironmentView? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteView.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_EnvironmentView(pThis, &valueAbi)) } } return .from(abi: value) } internal func get_IsConnectedImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteView.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsConnected(pThis, &value)) } return .init(from: value) } internal func get_IsSiteEnabledImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteView.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSiteEnabled(pThis, &value)) } return .init(from: value) } internal func get_IsSiteVisibleImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteView.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSiteVisible(pThis, &value)) } return .init(from: value) } internal func get_LayoutDirectionImpl() throws -> WinAppSDK.ContentLayoutDirection { var value: __x_ABI_CMicrosoft_CUI_CContent_CContentLayoutDirection = .init(0) _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteView.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_LayoutDirection(pThis, &value)) } return value } internal func get_OverrideScaleImpl() throws -> Float { var value: FLOAT = 0.0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteView.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_OverrideScale(pThis, &value)) } return value } internal func get_ParentScaleImpl() throws -> Float { var value: FLOAT = 0.0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteView.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_ParentScale(pThis, &value)) } return value } internal func get_RasterizationScaleImpl() throws -> Float { var value: FLOAT = 0.0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteView.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_RasterizationScale(pThis, &value)) } return value } internal func get_RequestedSizeImpl() throws -> WindowsFoundation.Vector2 { var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteView.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_RequestedSize(pThis, &value)) } return .from(abi: value) } internal func get_ShouldApplyRasterizationScaleImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteView.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_ShouldApplyRasterizationScale(pThis, &value)) } return .init(from: value) } } public class IContentSiteViewFactory: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentSiteViewFactory } } public class IDesktopChildSiteBridge: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIDesktopChildSiteBridge } internal func get_ResizePolicyImpl() throws -> WinAppSDK.ContentSizePolicy { var value: __x_ABI_CMicrosoft_CUI_CContent_CContentSizePolicy = .init(0) _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIDesktopChildSiteBridge.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_ResizePolicy(pThis, &value)) } return value } internal func put_ResizePolicyImpl(_ value: WinAppSDK.ContentSizePolicy) throws { _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIDesktopChildSiteBridge.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.put_ResizePolicy(pThis, value)) } } internal func get_SiteViewImpl() throws -> WinAppSDK.ContentSiteView? { let (value) = try ComPtrs.initialize { valueAbi in _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIDesktopChildSiteBridge.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_SiteView(pThis, &valueAbi)) } } return .from(abi: value) } } public class IDesktopChildSiteBridgeStatics: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIDesktopChildSiteBridgeStatics } internal func CreateImpl(_ compositor: WinAppSDK.Compositor?, _ parentWindowId: WinAppSDK.WindowId) throws -> WinAppSDK.DesktopChildSiteBridge? { let (result) = try ComPtrs.initialize { resultAbi in _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIDesktopChildSiteBridgeStatics.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.Create(pThis, RawPointer(compositor), .from(swift: parentWindowId), &resultAbi)) } } return .from(abi: result) } } public class IDesktopSiteBridge: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIDesktopSiteBridge } internal func get_IsEnabledImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIDesktopSiteBridge.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsEnabled(pThis, &value)) } return .init(from: value) } internal func get_IsVisibleImpl() throws -> Bool { var value: boolean = 0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIDesktopSiteBridge.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsVisible(pThis, &value)) } return .init(from: value) } internal func get_WindowIdImpl() throws -> WinAppSDK.WindowId { var value: __x_ABI_CMicrosoft_CUI_CWindowId = .init() _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIDesktopSiteBridge.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.get_WindowId(pThis, &value)) } return .from(abi: value) } internal func ConnectImpl(_ content: WinAppSDK.ContentIsland?) throws { _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIDesktopSiteBridge.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.Connect(pThis, RawPointer(content))) } } internal func DisableImpl() throws { _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIDesktopSiteBridge.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.Disable(pThis)) } } internal func EnableImpl() throws { _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIDesktopSiteBridge.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.Enable(pThis)) } } internal func HideImpl() throws { _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIDesktopSiteBridge.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.Hide(pThis)) } } internal func MoveAndResizeImpl(_ rect: UWP.RectInt32) throws { _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIDesktopSiteBridge.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.MoveAndResize(pThis, .from(swift: rect))) } } internal func MoveInZOrderAtBottomImpl() throws { _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIDesktopSiteBridge.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.MoveInZOrderAtBottom(pThis)) } } internal func MoveInZOrderAtTopImpl() throws { _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIDesktopSiteBridge.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.MoveInZOrderAtTop(pThis)) } } internal func MoveInZOrderBelowImpl(_ windowId: WinAppSDK.WindowId) throws { _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIDesktopSiteBridge.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.MoveInZOrderBelow(pThis, .from(swift: windowId))) } } internal func ShowImpl() throws { _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIDesktopSiteBridge.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.Show(pThis)) } } } public class IDesktopSiteBridgeFactory: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIDesktopSiteBridgeFactory } } public class IDesktopSiteBridgeStatics: WindowsFoundation.IInspectable { override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIDesktopSiteBridgeStatics } internal func IsSupportedImpl() throws -> Bool { var result: boolean = 0 _ = try perform(as: __x_ABI_CMicrosoft_CUI_CContent_CIDesktopSiteBridgeStatics.self) { pThis in try CHECKED(pThis.pointee.lpVtbl.pointee.IsSupported(pThis, &result)) } return .init(from: result) } } }