add desktopchildsite bridge projection

This commit is contained in:
Steve Kirbach 2024-02-14 00:02:20 -08:00
parent 30f8c569b9
commit 396fd48cb3
4 changed files with 776 additions and 0 deletions

View File

@ -61,6 +61,42 @@ private var IID___x_ABI_CMicrosoft_CUI_CContent_CIContentSiteBridge: WindowsFoun
.init(Data1: 0xFAAAB99E, Data2: 0xA42B, Data3: 0x549C, Data4: ( 0x92,0xDF,0x3B,0x6D,0x6E,0x1E,0x36,0x8B ))// FAAAB99E-A42B-549C-92DF-3B6D6E1E368B .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 enum __ABI_Microsoft_UI_Content {
public class IContentCoordinateConverter: WindowsFoundation.IInspectable { public class IContentCoordinateConverter: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverter } override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CContent_CIContentCoordinateConverter }
@ -663,4 +699,298 @@ public enum __ABI_Microsoft_UI_Content {
) )
public typealias IContentSiteBridgeWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Content.IContentSiteBridgeBridge> 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)
}
}
} }

View File

@ -9,6 +9,8 @@ import CWinRT
public typealias ContentCoordinateRoundingMode = __x_ABI_CMicrosoft_CUI_CContent_CContentCoordinateRoundingMode public typealias ContentCoordinateRoundingMode = __x_ABI_CMicrosoft_CUI_CContent_CContentCoordinateRoundingMode
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentlayoutdirection) /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentlayoutdirection)
public typealias ContentLayoutDirection = __x_ABI_CMicrosoft_CUI_CContent_CContentLayoutDirection public typealias ContentLayoutDirection = __x_ABI_CMicrosoft_CUI_CContent_CContentLayoutDirection
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentsizepolicy)
public typealias ContentSizePolicy = __x_ABI_CMicrosoft_CUI_CContent_CContentSizePolicy
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentcoordinateconverter) /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentcoordinateconverter)
open class ContentCoordinateConverter : WinRTClass { open class ContentCoordinateConverter : WinRTClass {
private typealias SwiftABI = __ABI_Microsoft_UI_Content.IContentCoordinateConverter private typealias SwiftABI = __ABI_Microsoft_UI_Content.IContentCoordinateConverter
@ -616,6 +618,416 @@ public final class ContentIslandStateChangedEventArgs : WinRTClass {
} }
} }
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentsiteenvironmentview)
open class ContentSiteEnvironmentView : WinRTClass {
private typealias SwiftABI = __ABI_Microsoft_UI_Content.IContentSiteEnvironmentView
private typealias CABI = __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteEnvironmentView
private lazy var _default: SwiftABI! = getInterfaceForCaching()
@_spi(WinRTInternal)
override open func _getABI<T>() -> UnsafeMutablePointer<T>? {
if T.self == CABI.self {
return RawPointer(_default)
}
return super._getABI()
}
@_spi(WinRTInternal)
public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CContent_CIContentSiteEnvironmentView>?) -> ContentSiteEnvironmentView? {
guard let abi = abi else { return nil }
return UnsealedWinRTClassWrapper<Composable>.unwrapFrom(base: abi)
}
@_spi(WinRTInternal)
public init(fromAbi: WindowsFoundation.IInspectable) {
super.init(fromAbi)
}
@_spi(WinRTInternal)
public init<Composable: ComposableImpl>(
composing: Composable.Type,
_ createCallback: (UnsealedWinRTClassWrapper<Composable>?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI)
{
super.init()
MakeComposed(composing: composing, (self as! Composable.Class), createCallback)
}
override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? {
return super.queryInterface(iid)
}
private static var _IContentSiteEnvironmentViewFactory : __ABI_Microsoft_UI_Content.IContentSiteEnvironmentViewFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Content.ContentSiteEnvironmentView"))
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentsiteenvironmentview.appwindowid)
public var appWindowId : WinAppSDK.WindowId {
get { try! _default.get_AppWindowIdImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentsiteenvironmentview.displayid)
public var displayId : WinAppSDK.DisplayId {
get { try! _default.get_DisplayIdImpl() }
}
internal enum IContentSiteEnvironmentView : ComposableImpl {
internal typealias CABI = C_IInspectable
internal typealias SwiftABI = WindowsFoundation.IInspectable
internal typealias Class = ContentSiteEnvironmentView
internal typealias SwiftProjection = WinRTClassWeakReference<Class>
internal enum Default : AbiInterface {
internal typealias CABI = __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteEnvironmentView
internal typealias SwiftABI = __ABI_Microsoft_UI_Content.IContentSiteEnvironmentView
}
}
internal typealias Composable = IContentSiteEnvironmentView
deinit {
_default = nil
}
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentsiteview)
open class ContentSiteView : WinRTClass {
private typealias SwiftABI = __ABI_Microsoft_UI_Content.IContentSiteView
private typealias CABI = __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteView
private lazy var _default: SwiftABI! = getInterfaceForCaching()
@_spi(WinRTInternal)
override open func _getABI<T>() -> UnsafeMutablePointer<T>? {
if T.self == CABI.self {
return RawPointer(_default)
}
return super._getABI()
}
@_spi(WinRTInternal)
public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CContent_CIContentSiteView>?) -> ContentSiteView? {
guard let abi = abi else { return nil }
return UnsealedWinRTClassWrapper<Composable>.unwrapFrom(base: abi)
}
@_spi(WinRTInternal)
public init(fromAbi: WindowsFoundation.IInspectable) {
super.init(fromAbi)
}
@_spi(WinRTInternal)
public init<Composable: ComposableImpl>(
composing: Composable.Type,
_ createCallback: (UnsealedWinRTClassWrapper<Composable>?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI)
{
super.init()
MakeComposed(composing: composing, (self as! Composable.Class), createCallback)
}
override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? {
return super.queryInterface(iid)
}
private static var _IContentSiteViewFactory : __ABI_Microsoft_UI_Content.IContentSiteViewFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Content.ContentSiteView"))
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentsiteview.actualsize)
public var actualSize : WindowsFoundation.Vector2 {
get { try! _default.get_ActualSizeImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentsiteview.clientsize)
public var clientSize : UWP.SizeInt32 {
get { try! _default.get_ClientSizeImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentsiteview.coordinateconverter)
public var coordinateConverter : ContentCoordinateConverter! {
get { try! _default.get_CoordinateConverterImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentsiteview.dispatcherqueue)
public var dispatcherQueue : WinAppSDK.DispatcherQueue! {
get { try! _default.get_DispatcherQueueImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentsiteview.environmentview)
public var environmentView : ContentSiteEnvironmentView! {
get { try! _default.get_EnvironmentViewImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentsiteview.isconnected)
public var isConnected : Bool {
get { try! _default.get_IsConnectedImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentsiteview.issiteenabled)
public var isSiteEnabled : Bool {
get { try! _default.get_IsSiteEnabledImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentsiteview.issitevisible)
public var isSiteVisible : Bool {
get { try! _default.get_IsSiteVisibleImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentsiteview.layoutdirection)
public var layoutDirection : ContentLayoutDirection {
get { try! _default.get_LayoutDirectionImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentsiteview.overridescale)
public var overrideScale : Float {
get { try! _default.get_OverrideScaleImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentsiteview.parentscale)
public var parentScale : Float {
get { try! _default.get_ParentScaleImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentsiteview.rasterizationscale)
public var rasterizationScale : Float {
get { try! _default.get_RasterizationScaleImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentsiteview.requestedsize)
public var requestedSize : WindowsFoundation.Vector2 {
get { try! _default.get_RequestedSizeImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentsiteview.shouldapplyrasterizationscale)
public var shouldApplyRasterizationScale : Bool {
get { try! _default.get_ShouldApplyRasterizationScaleImpl() }
}
internal enum IContentSiteView : ComposableImpl {
internal typealias CABI = C_IInspectable
internal typealias SwiftABI = WindowsFoundation.IInspectable
internal typealias Class = ContentSiteView
internal typealias SwiftProjection = WinRTClassWeakReference<Class>
internal enum Default : AbiInterface {
internal typealias CABI = __x_ABI_CMicrosoft_CUI_CContent_CIContentSiteView
internal typealias SwiftABI = __ABI_Microsoft_UI_Content.IContentSiteView
}
}
internal typealias Composable = IContentSiteView
deinit {
_default = nil
}
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopchildsitebridge)
public final class DesktopChildSiteBridge : WinAppSDK.DesktopSiteBridge {
private typealias SwiftABI = __ABI_Microsoft_UI_Content.IDesktopChildSiteBridge
private typealias CABI = __x_ABI_CMicrosoft_CUI_CContent_CIDesktopChildSiteBridge
private lazy var _default: SwiftABI! = getInterfaceForCaching()
@_spi(WinRTInternal)
override public func _getABI<T>() -> UnsafeMutablePointer<T>? {
if T.self == CABI.self {
return RawPointer(_default)
}
return super._getABI()
}
@_spi(WinRTInternal)
public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CContent_CIDesktopChildSiteBridge>?) -> DesktopChildSiteBridge? {
guard let abi = abi else { return nil }
return .init(fromAbi: WindowsFoundation.IInspectable(abi))
}
@_spi(WinRTInternal)
override public init(fromAbi: WindowsFoundation.IInspectable) {
super.init(fromAbi: fromAbi)
}
private static let _IDesktopChildSiteBridgeStatics: __ABI_Microsoft_UI_Content.IDesktopChildSiteBridgeStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Content.DesktopChildSiteBridge"))
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopchildsitebridge.create)
public static func create(_ compositor: WinAppSDK.Compositor!, _ parentWindowId: WinAppSDK.WindowId) -> DesktopChildSiteBridge! {
return try! _IDesktopChildSiteBridgeStatics.CreateImpl(compositor, parentWindowId)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopchildsitebridge.resizepolicy)
public var resizePolicy : ContentSizePolicy {
get { try! _default.get_ResizePolicyImpl() }
set { try! _default.put_ResizePolicyImpl(newValue) }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopchildsitebridge.siteview)
public var siteView : ContentSiteView! {
get { try! _default.get_SiteViewImpl() }
}
deinit {
_default = nil
}
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopsitebridge)
open class DesktopSiteBridge : WinRTClass, WinAppSDK.IClosableNotifier, WindowsFoundation.IClosable, IContentSiteBridge {
private typealias SwiftABI = __ABI_Microsoft_UI_Content.IDesktopSiteBridge
private typealias CABI = __x_ABI_CMicrosoft_CUI_CContent_CIDesktopSiteBridge
private lazy var _default: SwiftABI! = getInterfaceForCaching()
@_spi(WinRTInternal)
override open func _getABI<T>() -> UnsafeMutablePointer<T>? {
if T.self == CABI.self {
return RawPointer(_default)
}
return super._getABI()
}
@_spi(WinRTInternal)
public static func from(abi: ComPtr<__x_ABI_CMicrosoft_CUI_CContent_CIDesktopSiteBridge>?) -> DesktopSiteBridge? {
guard let abi = abi else { return nil }
return UnsealedWinRTClassWrapper<Composable>.unwrapFrom(base: abi)
}
@_spi(WinRTInternal)
public init(fromAbi: WindowsFoundation.IInspectable) {
super.init(fromAbi)
}
@_spi(WinRTInternal)
public init<Composable: ComposableImpl>(
composing: Composable.Type,
_ createCallback: (UnsealedWinRTClassWrapper<Composable>?, inout WindowsFoundation.IInspectable?) -> Composable.Default.SwiftABI)
{
super.init()
MakeComposed(composing: composing, (self as! Composable.Class), createCallback)
}
override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? {
return super.queryInterface(iid)
}
private static var _IDesktopSiteBridgeFactory : __ABI_Microsoft_UI_Content.IDesktopSiteBridgeFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Content.DesktopSiteBridge"))
private static let _IDesktopSiteBridgeStatics: __ABI_Microsoft_UI_Content.IDesktopSiteBridgeStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Content.DesktopSiteBridge"))
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopsitebridge.issupported)
public class func isSupported() -> Bool {
return try! _IDesktopSiteBridgeStatics.IsSupportedImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopsitebridge.connect)
public func connect(_ content: ContentIsland!) throws {
try _default.ConnectImpl(content)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopsitebridge.disable)
public func disable() throws {
try _default.DisableImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopsitebridge.enable)
public func enable() throws {
try _default.EnableImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopsitebridge.hide)
public func hide() throws {
try _default.HideImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopsitebridge.moveandresize)
public func moveAndResize(_ rect: UWP.RectInt32) throws {
try _default.MoveAndResizeImpl(rect)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopsitebridge.moveinzorderatbottom)
public func moveInZOrderAtBottom() throws {
try _default.MoveInZOrderAtBottomImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopsitebridge.moveinzorderattop)
public func moveInZOrderAtTop() throws {
try _default.MoveInZOrderAtTopImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopsitebridge.moveinzorderbelow)
public func moveInZOrderBelow(_ windowId: WinAppSDK.WindowId) throws {
try _default.MoveInZOrderBelowImpl(windowId)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopsitebridge.show)
public func show() throws {
try _default.ShowImpl()
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopsitebridge.isenabled)
public var isEnabled : Bool {
get { try! _default.get_IsEnabledImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopsitebridge.isvisible)
public var isVisible : Bool {
get { try! _default.get_IsVisibleImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopsitebridge.windowid)
public var windowId : WinAppSDK.WindowId {
get { try! _default.get_WindowIdImpl() }
}
private lazy var _IClosableNotifier: __ABI_Microsoft_UI.IClosableNotifier! = getInterfaceForCaching()
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopsitebridge.isclosed)
public var isClosed : Bool {
get { try! _IClosableNotifier.get_IsClosedImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopsitebridge.closed)
public lazy var closed : Event<WinAppSDK.ClosableNotifierHandler> = {
.init(
add: { [weak self] in
guard let this = self?._IClosableNotifier else { return .init() }
return try! this.add_ClosedImpl($0)
},
remove: { [weak self] in
try? self?._IClosableNotifier.remove_ClosedImpl($0)
}
)
}()
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopsitebridge.frameworkclosed)
public lazy var frameworkClosed : Event<WinAppSDK.ClosableNotifierHandler> = {
.init(
add: { [weak self] in
guard let this = self?._IClosableNotifier else { return .init() }
return try! this.add_FrameworkClosedImpl($0)
},
remove: { [weak self] in
try? self?._IClosableNotifier.remove_FrameworkClosedImpl($0)
}
)
}()
private lazy var _IClosable: __ABI_Windows_Foundation.IClosable! = getInterfaceForCaching()
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopsitebridge.close)
public func close() throws {
try _IClosable.CloseImpl()
}
private lazy var _IContentSiteBridge: __ABI_Microsoft_UI_Content.IContentSiteBridge! = getInterfaceForCaching()
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopsitebridge.dispatcherqueue)
public var dispatcherQueue : WinAppSDK.DispatcherQueue! {
get { try! _IContentSiteBridge.get_DispatcherQueueImpl() }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopsitebridge.layoutdirectionoverride)
public var layoutDirectionOverride : ContentLayoutDirection? {
get { try! _IContentSiteBridge.get_LayoutDirectionOverrideImpl() }
set { try! _IContentSiteBridge.put_LayoutDirectionOverrideImpl(newValue) }
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.desktopsitebridge.overridescale)
public var overrideScale : Float {
get { try! _IContentSiteBridge.get_OverrideScaleImpl() }
set { try! _IContentSiteBridge.put_OverrideScaleImpl(newValue) }
}
internal enum IDesktopSiteBridge : ComposableImpl {
internal typealias CABI = C_IInspectable
internal typealias SwiftABI = WindowsFoundation.IInspectable
internal typealias Class = DesktopSiteBridge
internal typealias SwiftProjection = WinRTClassWeakReference<Class>
internal enum Default : AbiInterface {
internal typealias CABI = __x_ABI_CMicrosoft_CUI_CContent_CIDesktopSiteBridge
internal typealias SwiftABI = __ABI_Microsoft_UI_Content.IDesktopSiteBridge
}
}
internal typealias Composable = IDesktopSiteBridge
deinit {
_default = nil
_IClosableNotifier = nil
_IClosable = nil
_IContentSiteBridge = nil
}
}
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.icontentsitebridge) /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.icontentsitebridge)
public protocol IContentSiteBridge : WindowsFoundation.IClosable { public protocol IContentSiteBridge : WindowsFoundation.IClosable {
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.icontentsitebridge.dispatcherqueue) /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.content.icontentsitebridge.dispatcherqueue)
@ -667,3 +1079,16 @@ extension WinAppSDK.ContentLayoutDirection {
} }
extension WinAppSDK.ContentLayoutDirection: @retroactive Hashable, @retroactive Codable {} extension WinAppSDK.ContentLayoutDirection: @retroactive Hashable, @retroactive Codable {}
extension WinAppSDK.ContentSizePolicy {
public static var none : WinAppSDK.ContentSizePolicy {
__x_ABI_CMicrosoft_CUI_CContent_CContentSizePolicy_None
}
public static var resizeContentToParentWindow : WinAppSDK.ContentSizePolicy {
__x_ABI_CMicrosoft_CUI_CContent_CContentSizePolicy_ResizeContentToParentWindow
}
public static var resizeParentWindowToContent : WinAppSDK.ContentSizePolicy {
__x_ABI_CMicrosoft_CUI_CContent_CContentSizePolicy_ResizeParentWindowToContent
}
}
extension WinAppSDK.ContentSizePolicy: @retroactive Hashable, @retroactive Codable {}

View File

@ -604,6 +604,22 @@ fileprivate func makeContentIslandStateChangedEventArgsFrom(abi: WindowsFoundati
return ContentIslandStateChangedEventArgs(fromAbi: abi) return ContentIslandStateChangedEventArgs(fromAbi: abi)
} }
fileprivate func makeContentSiteEnvironmentViewFrom(abi: WindowsFoundation.IInspectable) -> Any {
return ContentSiteEnvironmentView(fromAbi: abi)
}
fileprivate func makeContentSiteViewFrom(abi: WindowsFoundation.IInspectable) -> Any {
return ContentSiteView(fromAbi: abi)
}
fileprivate func makeDesktopChildSiteBridgeFrom(abi: WindowsFoundation.IInspectable) -> Any {
return DesktopChildSiteBridge(fromAbi: abi)
}
fileprivate func makeDesktopSiteBridgeFrom(abi: WindowsFoundation.IInspectable) -> Any {
return DesktopSiteBridge(fromAbi: abi)
}
fileprivate func makeDispatcherExitDeferralFrom(abi: WindowsFoundation.IInspectable) -> Any { fileprivate func makeDispatcherExitDeferralFrom(abi: WindowsFoundation.IInspectable) -> Any {
return DispatcherExitDeferral(fromAbi: abi) return DispatcherExitDeferral(fromAbi: abi)
} }
@ -998,6 +1014,10 @@ public class __MakeFromAbi: MakeFromAbi {
case "ContentIslandAutomationProviderRequestedEventArgs": return makeContentIslandAutomationProviderRequestedEventArgsFrom(abi: abi) case "ContentIslandAutomationProviderRequestedEventArgs": return makeContentIslandAutomationProviderRequestedEventArgsFrom(abi: abi)
case "ContentIslandEnvironment": return makeContentIslandEnvironmentFrom(abi: abi) case "ContentIslandEnvironment": return makeContentIslandEnvironmentFrom(abi: abi)
case "ContentIslandStateChangedEventArgs": return makeContentIslandStateChangedEventArgsFrom(abi: abi) case "ContentIslandStateChangedEventArgs": return makeContentIslandStateChangedEventArgsFrom(abi: abi)
case "ContentSiteEnvironmentView": return makeContentSiteEnvironmentViewFrom(abi: abi)
case "ContentSiteView": return makeContentSiteViewFrom(abi: abi)
case "DesktopChildSiteBridge": return makeDesktopChildSiteBridgeFrom(abi: abi)
case "DesktopSiteBridge": return makeDesktopSiteBridgeFrom(abi: abi)
case "DispatcherExitDeferral": return makeDispatcherExitDeferralFrom(abi: abi) case "DispatcherExitDeferral": return makeDispatcherExitDeferralFrom(abi: abi)
case "DispatcherQueue": return makeDispatcherQueueFrom(abi: abi) case "DispatcherQueue": return makeDispatcherQueueFrom(abi: abi)
case "DispatcherQueueController": return makeDispatcherQueueControllerFrom(abi: abi) case "DispatcherQueueController": return makeDispatcherQueueControllerFrom(abi: abi)

View File

@ -9,6 +9,7 @@
"Microsoft.UI.Composition.Interactions", "Microsoft.UI.Composition.Interactions",
"Microsoft.UI.Composition.SpringVector3NaturalMotionAnimation", "Microsoft.UI.Composition.SpringVector3NaturalMotionAnimation",
"Microsoft.UI.Composition.SystemBackdrops", "Microsoft.UI.Composition.SystemBackdrops",
"Microsoft.UI.Content.DesktopChildSiteBridge",
"Microsoft.UI.Dispatching.DispatcherQueueController", "Microsoft.UI.Dispatching.DispatcherQueueController",
"Microsoft.UI.Input", "Microsoft.UI.Input",
"Microsoft.UI.Windowing.AppWindow", "Microsoft.UI.Windowing.AppWindow",