// 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 } 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> }