Add support for app bar elements
This commit is contained in:
parent
c7a5cf4881
commit
75d53738b5
File diff suppressed because it is too large
Load Diff
@ -5,6 +5,48 @@ import Foundation
|
||||
import CWinRT
|
||||
|
||||
public enum __IMPL_Microsoft_UI_Xaml_Controls {
|
||||
public enum ICommandBarElementBridge : AbiInterfaceBridge {
|
||||
public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CICommandBarElement
|
||||
public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ICommandBarElement
|
||||
public typealias SwiftProjection = AnyICommandBarElement
|
||||
public static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
|
||||
guard let abi = abi else { return nil }
|
||||
return ICommandBarElementImpl(abi)
|
||||
}
|
||||
|
||||
public static func makeAbi() -> CABI {
|
||||
let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.ICommandBarElementVTable) { $0 }
|
||||
return .init(lpVtbl: vtblPtr)
|
||||
}
|
||||
}
|
||||
|
||||
fileprivate class ICommandBarElementImpl: ICommandBarElement, WinRTAbiImpl {
|
||||
fileprivate typealias Bridge = ICommandBarElementBridge
|
||||
fileprivate let _default: Bridge.SwiftABI
|
||||
fileprivate var thisPtr: WindowsFoundation.IInspectable { _default }
|
||||
fileprivate init(_ fromAbi: ComPtr<Bridge.CABI>) {
|
||||
_default = Bridge.SwiftABI(fromAbi)
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.icommandbarelement.dynamicoverfloworder)
|
||||
fileprivate var dynamicOverflowOrder : Int32 {
|
||||
get { try! _default.get_DynamicOverflowOrderImpl() }
|
||||
set { try! _default.put_DynamicOverflowOrderImpl(newValue) }
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.icommandbarelement.iscompact)
|
||||
fileprivate var isCompact : Bool {
|
||||
get { try! _default.get_IsCompactImpl() }
|
||||
set { try! _default.put_IsCompactImpl(newValue) }
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.icommandbarelement.isinoverflow)
|
||||
fileprivate var isInOverflow : Bool {
|
||||
get { try! _default.get_IsInOverflowImpl() }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public enum IInsertionPanelBridge : AbiInterfaceBridge {
|
||||
public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInsertionPanel
|
||||
public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IInsertionPanel
|
||||
|
||||
@ -5,10 +5,18 @@ import Foundation
|
||||
@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation
|
||||
import CWinRT
|
||||
|
||||
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIAppBarButtonTemplateSettings: WindowsFoundation.IID {
|
||||
.init(Data1: 0x6FC13525, Data2: 0xBF03, Data3: 0x5190, Data4: ( 0xA1,0xD5,0xEB,0xD6,0xA1,0xBC,0xB6,0xB4 ))// 6FC13525-BF03-5190-A1D5-EBD6A1BCB6B4
|
||||
}
|
||||
|
||||
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIAppBarTemplateSettings: WindowsFoundation.IID {
|
||||
.init(Data1: 0xFE60E73F, Data2: 0x9A52, Data3: 0x5E0A, Data4: ( 0xB7,0x38,0x42,0x6F,0x97,0xD0,0x97,0x68 ))// FE60E73F-9A52-5E0A-B738-426F97D09768
|
||||
}
|
||||
|
||||
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIAppBarToggleButtonTemplateSettings: WindowsFoundation.IID {
|
||||
.init(Data1: 0x32AA9F11, Data2: 0x2F5E, Data3: 0x57AB, Data4: ( 0xA5,0x70,0xB0,0x3B,0xCE,0xEE,0x83,0x5D ))// 32AA9F11-2F5E-57AB-A570-B03BCEEE835D
|
||||
}
|
||||
|
||||
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBase: WindowsFoundation.IID {
|
||||
.init(Data1: 0x65714269, Data2: 0x2473, Data3: 0x5327, Data4: ( 0xA6,0x52,0x0E,0xA6,0xBC,0xE7,0xF4,0x03 ))// 65714269-2473-5327-A652-0EA6BCE7F403
|
||||
}
|
||||
@ -25,6 +33,10 @@ private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIComboBoxTem
|
||||
.init(Data1: 0xF2DC5E7F, Data2: 0x8D3F, Data3: 0x5C20, Data4: ( 0xB3,0x56,0xAF,0x6F,0x1F,0xF8,0x24,0x2A ))// F2DC5E7F-8D3F-5C20-B356-AF6F1FF8242A
|
||||
}
|
||||
|
||||
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CICommandBarTemplateSettings: WindowsFoundation.IID {
|
||||
.init(Data1: 0xAE9535F6, Data2: 0x1678, Data3: 0x5066, Data4: ( 0x90,0xBF,0x14,0x7A,0xA6,0x10,0xC5,0xDD ))// AE9535F6-1678-5066-90BF-147AA610C5DD
|
||||
}
|
||||
|
||||
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase: WindowsFoundation.IID {
|
||||
.init(Data1: 0xBB6603BF, Data2: 0x744D, Data3: 0x5C31, Data4: ( 0xA8,0x7D,0x74,0x43,0x94,0x63,0x4D,0x77 ))// BB6603BF-744D-5C31-A87D-744394634D77
|
||||
}
|
||||
@ -258,6 +270,19 @@ private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseVa
|
||||
}
|
||||
|
||||
public enum __ABI_Microsoft_UI_Xaml_Controls_Primitives {
|
||||
public class IAppBarButtonTemplateSettings: WindowsFoundation.IInspectable {
|
||||
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIAppBarButtonTemplateSettings }
|
||||
|
||||
internal func get_KeyboardAcceleratorTextMinWidthImpl() throws -> Double {
|
||||
var value: DOUBLE = 0.0
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIAppBarButtonTemplateSettings.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyboardAcceleratorTextMinWidth(pThis, &value))
|
||||
}
|
||||
return value
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class IAppBarTemplateSettings: WindowsFoundation.IInspectable {
|
||||
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIAppBarTemplateSettings }
|
||||
|
||||
@ -343,6 +368,19 @@ public enum __ABI_Microsoft_UI_Xaml_Controls_Primitives {
|
||||
|
||||
}
|
||||
|
||||
public class IAppBarToggleButtonTemplateSettings: WindowsFoundation.IInspectable {
|
||||
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIAppBarToggleButtonTemplateSettings }
|
||||
|
||||
internal func get_KeyboardAcceleratorTextMinWidthImpl() throws -> Double {
|
||||
var value: DOUBLE = 0.0
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIAppBarToggleButtonTemplateSettings.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyboardAcceleratorTextMinWidth(pThis, &value))
|
||||
}
|
||||
return value
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class IButtonBase: WindowsFoundation.IInspectable {
|
||||
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBase }
|
||||
|
||||
@ -541,6 +579,107 @@ public enum __ABI_Microsoft_UI_Xaml_Controls_Primitives {
|
||||
|
||||
}
|
||||
|
||||
public class ICommandBarTemplateSettings: WindowsFoundation.IInspectable {
|
||||
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CICommandBarTemplateSettings }
|
||||
|
||||
internal func get_ContentHeightImpl() throws -> Double {
|
||||
var value: DOUBLE = 0.0
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CICommandBarTemplateSettings.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentHeight(pThis, &value))
|
||||
}
|
||||
return value
|
||||
}
|
||||
|
||||
internal func get_OverflowContentClipRectImpl() throws -> WindowsFoundation.Rect {
|
||||
var value: __x_ABI_CWindows_CFoundation_CRect = .init()
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CICommandBarTemplateSettings.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.get_OverflowContentClipRect(pThis, &value))
|
||||
}
|
||||
return .from(abi: value)
|
||||
}
|
||||
|
||||
internal func get_OverflowContentMinWidthImpl() throws -> Double {
|
||||
var value: DOUBLE = 0.0
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CICommandBarTemplateSettings.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.get_OverflowContentMinWidth(pThis, &value))
|
||||
}
|
||||
return value
|
||||
}
|
||||
|
||||
internal func get_OverflowContentMaxWidthImpl() throws -> Double {
|
||||
var value: DOUBLE = 0.0
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CICommandBarTemplateSettings.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.get_OverflowContentMaxWidth(pThis, &value))
|
||||
}
|
||||
return value
|
||||
}
|
||||
|
||||
internal func get_OverflowContentMaxHeightImpl() throws -> Double {
|
||||
var value: DOUBLE = 0.0
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CICommandBarTemplateSettings.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.get_OverflowContentMaxHeight(pThis, &value))
|
||||
}
|
||||
return value
|
||||
}
|
||||
|
||||
internal func get_OverflowContentHorizontalOffsetImpl() throws -> Double {
|
||||
var value: DOUBLE = 0.0
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CICommandBarTemplateSettings.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.get_OverflowContentHorizontalOffset(pThis, &value))
|
||||
}
|
||||
return value
|
||||
}
|
||||
|
||||
internal func get_OverflowContentHeightImpl() throws -> Double {
|
||||
var value: DOUBLE = 0.0
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CICommandBarTemplateSettings.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.get_OverflowContentHeight(pThis, &value))
|
||||
}
|
||||
return value
|
||||
}
|
||||
|
||||
internal func get_NegativeOverflowContentHeightImpl() throws -> Double {
|
||||
var value: DOUBLE = 0.0
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CICommandBarTemplateSettings.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.get_NegativeOverflowContentHeight(pThis, &value))
|
||||
}
|
||||
return value
|
||||
}
|
||||
|
||||
internal func get_EffectiveOverflowButtonVisibilityImpl() throws -> WinUI.Visibility {
|
||||
var value: __x_ABI_CMicrosoft_CUI_CXaml_CVisibility = .init(0)
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CICommandBarTemplateSettings.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.get_EffectiveOverflowButtonVisibility(pThis, &value))
|
||||
}
|
||||
return value
|
||||
}
|
||||
|
||||
internal func get_OverflowContentCompactYTranslationImpl() throws -> Double {
|
||||
var value: DOUBLE = 0.0
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CICommandBarTemplateSettings.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.get_OverflowContentCompactYTranslation(pThis, &value))
|
||||
}
|
||||
return value
|
||||
}
|
||||
|
||||
internal func get_OverflowContentMinimalYTranslationImpl() throws -> Double {
|
||||
var value: DOUBLE = 0.0
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CICommandBarTemplateSettings.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.get_OverflowContentMinimalYTranslation(pThis, &value))
|
||||
}
|
||||
return value
|
||||
}
|
||||
|
||||
internal func get_OverflowContentHiddenYTranslationImpl() throws -> Double {
|
||||
var value: DOUBLE = 0.0
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CICommandBarTemplateSettings.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.get_OverflowContentHiddenYTranslation(pThis, &value))
|
||||
}
|
||||
return value
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class IFlyoutBase: WindowsFoundation.IInspectable {
|
||||
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase }
|
||||
|
||||
|
||||
@ -29,6 +29,40 @@ public typealias SliderSnapsTo = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimiti
|
||||
public typealias SnapPointsAlignment = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CSnapPointsAlignment
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.tickplacement)
|
||||
public typealias TickPlacement = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CTickPlacement
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.appbarbuttontemplatesettings)
|
||||
public final class AppBarButtonTemplateSettings : WinUI.DependencyObject {
|
||||
private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IAppBarButtonTemplateSettings
|
||||
private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIAppBarButtonTemplateSettings
|
||||
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_CXaml_CControls_CPrimitives_CIAppBarButtonTemplateSettings>?) -> AppBarButtonTemplateSettings? {
|
||||
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)
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.appbarbuttontemplatesettings.keyboardacceleratortextminwidth)
|
||||
public var keyboardAcceleratorTextMinWidth : Double {
|
||||
get { try! _default.get_KeyboardAcceleratorTextMinWidthImpl() }
|
||||
}
|
||||
|
||||
deinit {
|
||||
_default = nil
|
||||
}
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.appbartemplatesettings)
|
||||
public final class AppBarTemplateSettings : WinUI.DependencyObject {
|
||||
private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IAppBarTemplateSettings
|
||||
@ -108,6 +142,40 @@ public final class AppBarTemplateSettings : WinUI.DependencyObject {
|
||||
}
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.appbartogglebuttontemplatesettings)
|
||||
public final class AppBarToggleButtonTemplateSettings : WinUI.DependencyObject {
|
||||
private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IAppBarToggleButtonTemplateSettings
|
||||
private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIAppBarToggleButtonTemplateSettings
|
||||
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_CXaml_CControls_CPrimitives_CIAppBarToggleButtonTemplateSettings>?) -> AppBarToggleButtonTemplateSettings? {
|
||||
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)
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.appbartogglebuttontemplatesettings.keyboardacceleratortextminwidth)
|
||||
public var keyboardAcceleratorTextMinWidth : Double {
|
||||
get { try! _default.get_KeyboardAcceleratorTextMinWidthImpl() }
|
||||
}
|
||||
|
||||
deinit {
|
||||
_default = nil
|
||||
}
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.buttonbase)
|
||||
open class ButtonBase : WinUI.ContentControl {
|
||||
private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IButtonBase
|
||||
@ -287,6 +355,95 @@ public final class ComboBoxTemplateSettings : WinUI.DependencyObject {
|
||||
}
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.commandbartemplatesettings)
|
||||
public final class CommandBarTemplateSettings : WinUI.DependencyObject {
|
||||
private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.ICommandBarTemplateSettings
|
||||
private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CICommandBarTemplateSettings
|
||||
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_CXaml_CControls_CPrimitives_CICommandBarTemplateSettings>?) -> CommandBarTemplateSettings? {
|
||||
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)
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.commandbartemplatesettings.contentheight)
|
||||
public var contentHeight : Double {
|
||||
get { try! _default.get_ContentHeightImpl() }
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.commandbartemplatesettings.effectiveoverflowbuttonvisibility)
|
||||
public var effectiveOverflowButtonVisibility : WinUI.Visibility {
|
||||
get { try! _default.get_EffectiveOverflowButtonVisibilityImpl() }
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.commandbartemplatesettings.negativeoverflowcontentheight)
|
||||
public var negativeOverflowContentHeight : Double {
|
||||
get { try! _default.get_NegativeOverflowContentHeightImpl() }
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.commandbartemplatesettings.overflowcontentcliprect)
|
||||
public var overflowContentClipRect : WindowsFoundation.Rect {
|
||||
get { try! _default.get_OverflowContentClipRectImpl() }
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.commandbartemplatesettings.overflowcontentcompactytranslation)
|
||||
public var overflowContentCompactYTranslation : Double {
|
||||
get { try! _default.get_OverflowContentCompactYTranslationImpl() }
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.commandbartemplatesettings.overflowcontentheight)
|
||||
public var overflowContentHeight : Double {
|
||||
get { try! _default.get_OverflowContentHeightImpl() }
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.commandbartemplatesettings.overflowcontenthiddenytranslation)
|
||||
public var overflowContentHiddenYTranslation : Double {
|
||||
get { try! _default.get_OverflowContentHiddenYTranslationImpl() }
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.commandbartemplatesettings.overflowcontenthorizontaloffset)
|
||||
public var overflowContentHorizontalOffset : Double {
|
||||
get { try! _default.get_OverflowContentHorizontalOffsetImpl() }
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.commandbartemplatesettings.overflowcontentmaxheight)
|
||||
public var overflowContentMaxHeight : Double {
|
||||
get { try! _default.get_OverflowContentMaxHeightImpl() }
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.commandbartemplatesettings.overflowcontentmaxwidth)
|
||||
public var overflowContentMaxWidth : Double {
|
||||
get { try! _default.get_OverflowContentMaxWidthImpl() }
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.commandbartemplatesettings.overflowcontentminwidth)
|
||||
public var overflowContentMinWidth : Double {
|
||||
get { try! _default.get_OverflowContentMinWidthImpl() }
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.commandbartemplatesettings.overflowcontentminimalytranslation)
|
||||
public var overflowContentMinimalYTranslation : Double {
|
||||
get { try! _default.get_OverflowContentMinimalYTranslationImpl() }
|
||||
}
|
||||
|
||||
deinit {
|
||||
_default = nil
|
||||
}
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase)
|
||||
open class FlyoutBase : WinUI.DependencyObject {
|
||||
private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IFlyoutBase
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,444 +0,0 @@
|
||||
// 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 WinAppSDK
|
||||
@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation
|
||||
import CWinRT
|
||||
|
||||
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource: WindowsFoundation.IID {
|
||||
.init(Data1: 0x553AF92C, Data2: 0x1381, Data3: 0x51D6, Data4: ( 0xBE,0xE0,0xF3,0x4B,0xEB,0x04,0x2E,0xA8 ))// 553AF92C-1381-51D6-BEE0-F34BEB042EA8
|
||||
}
|
||||
|
||||
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSourceFactory: WindowsFoundation.IID {
|
||||
.init(Data1: 0x7D2DB617, Data2: 0x14E7, Data3: 0x5D49, Data4: ( 0xAE,0xEC,0xAE,0x10,0x88,0x7E,0x59,0x5D ))// 7D2DB617-14E7-5D49-AEEC-AE10887E595D
|
||||
}
|
||||
|
||||
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSourceGotFocusEventArgs: WindowsFoundation.IID {
|
||||
.init(Data1: 0xCC63D863, Data2: 0x2071, Data3: 0x5F6B, Data4: ( 0xAE,0xF9,0xC0,0xBA,0x35,0xF3,0xB8,0xDF ))// CC63D863-2071-5F6B-AEF9-C0BA35F3B8DF
|
||||
}
|
||||
|
||||
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSourceTakeFocusRequestedEventArgs: WindowsFoundation.IID {
|
||||
.init(Data1: 0x4F5A0E2C, Data2: 0x4DDC, Data3: 0x5C03, Data4: ( 0x93,0x9F,0x6F,0x3B,0xDA,0x56,0x03,0x63 ))// 4F5A0E2C-4DDC-5C03-939F-6F3BDA560363
|
||||
}
|
||||
|
||||
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreview: WindowsFoundation.IID {
|
||||
.init(Data1: 0xC8AD1EF4, Data2: 0xA93F, Data3: 0x5A25, Data4: ( 0x85,0xBD,0x7C,0x49,0x8D,0x98,0x56,0xD3 ))// C8AD1EF4-A93F-5A25-85BD-7C498D9856D3
|
||||
}
|
||||
|
||||
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreviewStatics: WindowsFoundation.IID {
|
||||
.init(Data1: 0x84DA5A6C, Data2: 0x0CFA, Data3: 0x532B, Data4: ( 0x9B,0x15,0xCC,0xD9,0x86,0x37,0x43,0x42 ))// 84DA5A6C-0CFA-532B-9B15-CCD986374342
|
||||
}
|
||||
|
||||
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManager: WindowsFoundation.IID {
|
||||
.init(Data1: 0x85A2E562, Data2: 0x7E8F, Data3: 0x5333, Data4: ( 0xA1,0x04,0xA3,0xE6,0x72,0xA2,0xFF,0xEE ))// 85A2E562-7E8F-5333-A104-A3E672A2FFEE
|
||||
}
|
||||
|
||||
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManager2: WindowsFoundation.IID {
|
||||
.init(Data1: 0xBD67CFF5, Data2: 0xB887, Data3: 0x56DA, Data4: ( 0xB0,0xA2,0xDA,0xD1,0x0A,0x65,0x20,0xE9 ))// BD67CFF5-B887-56DA-B0A2-DAD10A6520E9
|
||||
}
|
||||
|
||||
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManagerStatics: WindowsFoundation.IID {
|
||||
.init(Data1: 0x56CB591D, Data2: 0xDE97, Data3: 0x539F, Data4: ( 0x88,0x1D,0x8C,0xCD,0xC4,0x4F,0xA6,0xC4 ))// 56CB591D-DE97-539F-881D-8CCDC44FA6C4
|
||||
}
|
||||
|
||||
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManagerStatics2: WindowsFoundation.IID {
|
||||
.init(Data1: 0x1062430E, Data2: 0x0898, Data3: 0x5240, Data4: ( 0xBA,0x52,0x89,0xD9,0x22,0x5E,0x7E,0x58 ))// 1062430E-0898-5240-BA52-89D9225E7E58
|
||||
}
|
||||
|
||||
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlShutdownCompletedOnThreadEventArgs: WindowsFoundation.IID {
|
||||
.init(Data1: 0xACCD20E5, Data2: 0x3576, Data3: 0x5262, Data4: ( 0xA3,0xDD,0x99,0x06,0x57,0x68,0x1F,0x1F ))// ACCD20E5-3576-5262-A3DD-990657681F1F
|
||||
}
|
||||
|
||||
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationRequest: WindowsFoundation.IID {
|
||||
.init(Data1: 0xC883EA8B, Data2: 0x4CE2, Data3: 0x58BE, Data4: ( 0xB5,0x47,0x66,0xDE,0xDF,0x62,0x03,0x12 ))// C883EA8B-4CE2-58BE-B547-66DEDF620312
|
||||
}
|
||||
|
||||
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationRequestFactory: WindowsFoundation.IID {
|
||||
.init(Data1: 0x7A5124DD, Data2: 0x2876, Data3: 0x5ED8, Data4: ( 0xB5,0x64,0x58,0x67,0x73,0x1D,0x7F,0x1E ))// 7A5124DD-2876-5ED8-B564-5867731D7F1E
|
||||
}
|
||||
|
||||
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationResult: WindowsFoundation.IID {
|
||||
.init(Data1: 0xD6BF378E, Data2: 0x2AAC, Data3: 0x5E5B, Data4: ( 0xAC,0x8A,0x6C,0x5D,0x9A,0x4C,0x1C,0xB8 ))// D6BF378E-2AAC-5E5B-AC8A-6C5D9A4C1CB8
|
||||
}
|
||||
|
||||
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationResultFactory: WindowsFoundation.IID {
|
||||
.init(Data1: 0xF533F53B, Data2: 0x5C00, Data3: 0x5C88, Data4: ( 0x9A,0x41,0x38,0x88,0xCB,0x86,0xE4,0x95 ))// F533F53B-5C00-5C88-9A41-3888CB86E495
|
||||
}
|
||||
|
||||
public enum __ABI_Microsoft_UI_Xaml_Hosting {
|
||||
public class IDesktopWindowXamlSource: WindowsFoundation.IInspectable {
|
||||
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource }
|
||||
|
||||
internal func get_ContentImpl() throws -> WinUI.UIElement? {
|
||||
let (value) = try ComPtrs.initialize { valueAbi in
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Content(pThis, &valueAbi))
|
||||
}
|
||||
}
|
||||
return .from(abi: value)
|
||||
}
|
||||
|
||||
internal func put_ContentImpl(_ value: WinUI.UIElement?) throws {
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Content(pThis, RawPointer(value)))
|
||||
}
|
||||
}
|
||||
|
||||
internal func get_HasFocusImpl() throws -> Bool {
|
||||
var value: boolean = 0
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasFocus(pThis, &value))
|
||||
}
|
||||
return .init(from: value)
|
||||
}
|
||||
|
||||
internal func get_SystemBackdropImpl() throws -> WinUI.SystemBackdrop? {
|
||||
let (value) = try ComPtrs.initialize { valueAbi in
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.get_SystemBackdrop(pThis, &valueAbi))
|
||||
}
|
||||
}
|
||||
return .from(abi: value)
|
||||
}
|
||||
|
||||
internal func put_SystemBackdropImpl(_ value: WinUI.SystemBackdrop?) throws {
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.put_SystemBackdrop(pThis, RawPointer(value)))
|
||||
}
|
||||
}
|
||||
|
||||
internal func get_SiteBridgeImpl() throws -> WinAppSDK.DesktopChildSiteBridge? {
|
||||
let (value) = try ComPtrs.initialize { valueAbi in
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.get_SiteBridge(pThis, &valueAbi))
|
||||
}
|
||||
}
|
||||
return .from(abi: value)
|
||||
}
|
||||
|
||||
internal func add_TakeFocusRequestedImpl(_ handler: TypedEventHandler<WinUI.DesktopWindowXamlSource?, WinUI.DesktopWindowXamlSourceTakeFocusRequestedEventArgs?>?) throws -> EventRegistrationToken {
|
||||
var token: EventRegistrationToken = .init()
|
||||
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceTakeFocusRequestedEventArgsWrapper(handler)
|
||||
let _handler = try! handlerWrapper?.toABI { $0 }
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.add_TakeFocusRequested(pThis, _handler, &token))
|
||||
}
|
||||
return token
|
||||
}
|
||||
|
||||
internal func remove_TakeFocusRequestedImpl(_ token: EventRegistrationToken) throws {
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_TakeFocusRequested(pThis, token))
|
||||
}
|
||||
}
|
||||
|
||||
internal func add_GotFocusImpl(_ handler: TypedEventHandler<WinUI.DesktopWindowXamlSource?, WinUI.DesktopWindowXamlSourceGotFocusEventArgs?>?) throws -> EventRegistrationToken {
|
||||
var token: EventRegistrationToken = .init()
|
||||
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceGotFocusEventArgsWrapper(handler)
|
||||
let _handler = try! handlerWrapper?.toABI { $0 }
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.add_GotFocus(pThis, _handler, &token))
|
||||
}
|
||||
return token
|
||||
}
|
||||
|
||||
internal func remove_GotFocusImpl(_ token: EventRegistrationToken) throws {
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_GotFocus(pThis, token))
|
||||
}
|
||||
}
|
||||
|
||||
internal func NavigateFocusImpl(_ request: WinUI.XamlSourceFocusNavigationRequest?) throws -> WinUI.XamlSourceFocusNavigationResult? {
|
||||
let (result) = try ComPtrs.initialize { resultAbi in
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.NavigateFocus(pThis, RawPointer(request), &resultAbi))
|
||||
}
|
||||
}
|
||||
return .from(abi: result)
|
||||
}
|
||||
|
||||
internal func InitializeImpl(_ parentWindowId: WinAppSDK.WindowId) throws {
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.Initialize(pThis, .from(swift: parentWindowId)))
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class IDesktopWindowXamlSourceFactory: WindowsFoundation.IInspectable {
|
||||
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSourceFactory }
|
||||
|
||||
internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper<WinUI.DesktopWindowXamlSource.Composable>?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IDesktopWindowXamlSource {
|
||||
let (value) = try ComPtrs.initialize { valueAbi in
|
||||
let _baseInterface = baseInterface?.toIInspectableABI { $0 }
|
||||
let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSourceFactory.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi))
|
||||
}
|
||||
}
|
||||
innerInterface = WindowsFoundation.IInspectable(_innerInterface!)
|
||||
}
|
||||
return IDesktopWindowXamlSource(value!)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class IDesktopWindowXamlSourceGotFocusEventArgs: WindowsFoundation.IInspectable {
|
||||
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSourceGotFocusEventArgs }
|
||||
|
||||
internal func get_RequestImpl() throws -> WinUI.XamlSourceFocusNavigationRequest? {
|
||||
let (value) = try ComPtrs.initialize { valueAbi in
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSourceGotFocusEventArgs.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Request(pThis, &valueAbi))
|
||||
}
|
||||
}
|
||||
return .from(abi: value)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class IDesktopWindowXamlSourceTakeFocusRequestedEventArgs: WindowsFoundation.IInspectable {
|
||||
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSourceTakeFocusRequestedEventArgs }
|
||||
|
||||
internal func get_RequestImpl() throws -> WinUI.XamlSourceFocusNavigationRequest? {
|
||||
let (value) = try ComPtrs.initialize { valueAbi in
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSourceTakeFocusRequestedEventArgs.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Request(pThis, &valueAbi))
|
||||
}
|
||||
}
|
||||
return .from(abi: value)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class IElementCompositionPreview: WindowsFoundation.IInspectable {
|
||||
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreview }
|
||||
|
||||
}
|
||||
|
||||
public class IElementCompositionPreviewStatics: WindowsFoundation.IInspectable {
|
||||
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreviewStatics }
|
||||
|
||||
internal func GetElementVisualImpl(_ element: WinUI.UIElement?) throws -> WinAppSDK.Visual? {
|
||||
let (result) = try ComPtrs.initialize { resultAbi in
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreviewStatics.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.GetElementVisual(pThis, RawPointer(element), &resultAbi))
|
||||
}
|
||||
}
|
||||
return .from(abi: result)
|
||||
}
|
||||
|
||||
internal func GetElementChildVisualImpl(_ element: WinUI.UIElement?) throws -> WinAppSDK.Visual? {
|
||||
let (result) = try ComPtrs.initialize { resultAbi in
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreviewStatics.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.GetElementChildVisual(pThis, RawPointer(element), &resultAbi))
|
||||
}
|
||||
}
|
||||
return .from(abi: result)
|
||||
}
|
||||
|
||||
internal func SetElementChildVisualImpl(_ element: WinUI.UIElement?, _ visual: WinAppSDK.Visual?) throws {
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreviewStatics.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.SetElementChildVisual(pThis, RawPointer(element), RawPointer(visual)))
|
||||
}
|
||||
}
|
||||
|
||||
internal func GetScrollViewerManipulationPropertySetImpl(_ scrollViewer: WinUI.ScrollViewer?) throws -> WinAppSDK.CompositionPropertySet? {
|
||||
let (result) = try ComPtrs.initialize { resultAbi in
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreviewStatics.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.GetScrollViewerManipulationPropertySet(pThis, RawPointer(scrollViewer), &resultAbi))
|
||||
}
|
||||
}
|
||||
return .from(abi: result)
|
||||
}
|
||||
|
||||
internal func SetImplicitShowAnimationImpl(_ element: WinUI.UIElement?, _ animation: WinAppSDK.AnyICompositionAnimationBase?) throws {
|
||||
let animationWrapper = __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper(animation)
|
||||
let _animation = try! animationWrapper?.toABI { $0 }
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreviewStatics.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.SetImplicitShowAnimation(pThis, RawPointer(element), _animation))
|
||||
}
|
||||
}
|
||||
|
||||
internal func SetImplicitHideAnimationImpl(_ element: WinUI.UIElement?, _ animation: WinAppSDK.AnyICompositionAnimationBase?) throws {
|
||||
let animationWrapper = __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper(animation)
|
||||
let _animation = try! animationWrapper?.toABI { $0 }
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreviewStatics.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.SetImplicitHideAnimation(pThis, RawPointer(element), _animation))
|
||||
}
|
||||
}
|
||||
|
||||
internal func SetIsTranslationEnabledImpl(_ element: WinUI.UIElement?, _ value: Bool) throws {
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreviewStatics.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.SetIsTranslationEnabled(pThis, RawPointer(element), .init(from: value)))
|
||||
}
|
||||
}
|
||||
|
||||
internal func GetPointerPositionPropertySetImpl(_ targetElement: WinUI.UIElement?) throws -> WinAppSDK.CompositionPropertySet? {
|
||||
let (result) = try ComPtrs.initialize { resultAbi in
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreviewStatics.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.GetPointerPositionPropertySet(pThis, RawPointer(targetElement), &resultAbi))
|
||||
}
|
||||
}
|
||||
return .from(abi: result)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class IWindowsXamlManager: WindowsFoundation.IInspectable {
|
||||
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManager }
|
||||
|
||||
}
|
||||
|
||||
public class IWindowsXamlManager2: WindowsFoundation.IInspectable {
|
||||
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManager2 }
|
||||
|
||||
internal func add_XamlShutdownCompletedOnThreadImpl(_ handler: TypedEventHandler<WinUI.WindowsXamlManager?, WinUI.XamlShutdownCompletedOnThreadEventArgs?>?) throws -> EventRegistrationToken {
|
||||
var token: EventRegistrationToken = .init()
|
||||
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CWindowsXamlManager___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CXamlShutdownCompletedOnThreadEventArgsWrapper(handler)
|
||||
let _handler = try! handlerWrapper?.toABI { $0 }
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManager2.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.add_XamlShutdownCompletedOnThread(pThis, _handler, &token))
|
||||
}
|
||||
return token
|
||||
}
|
||||
|
||||
internal func remove_XamlShutdownCompletedOnThreadImpl(_ token: EventRegistrationToken) throws {
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManager2.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_XamlShutdownCompletedOnThread(pThis, token))
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class IWindowsXamlManagerStatics: WindowsFoundation.IInspectable {
|
||||
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManagerStatics }
|
||||
|
||||
internal func InitializeForCurrentThreadImpl() throws -> WinUI.WindowsXamlManager? {
|
||||
let (result) = try ComPtrs.initialize { resultAbi in
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManagerStatics.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.InitializeForCurrentThread(pThis, &resultAbi))
|
||||
}
|
||||
}
|
||||
return .from(abi: result)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class IWindowsXamlManagerStatics2: WindowsFoundation.IInspectable {
|
||||
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManagerStatics2 }
|
||||
|
||||
internal func GetForCurrentThreadImpl() throws -> WinUI.WindowsXamlManager? {
|
||||
let (result) = try ComPtrs.initialize { resultAbi in
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManagerStatics2.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.GetForCurrentThread(pThis, &resultAbi))
|
||||
}
|
||||
}
|
||||
return .from(abi: result)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class IXamlShutdownCompletedOnThreadEventArgs: WindowsFoundation.IInspectable {
|
||||
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlShutdownCompletedOnThreadEventArgs }
|
||||
|
||||
internal func GetDispatcherQueueDeferralImpl() throws -> WindowsFoundation.Deferral? {
|
||||
let (result) = try ComPtrs.initialize { resultAbi in
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlShutdownCompletedOnThreadEventArgs.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.GetDispatcherQueueDeferral(pThis, &resultAbi))
|
||||
}
|
||||
}
|
||||
return .from(abi: result)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class IXamlSourceFocusNavigationRequest: WindowsFoundation.IInspectable {
|
||||
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationRequest }
|
||||
|
||||
internal func get_ReasonImpl() throws -> WinUI.XamlSourceFocusNavigationReason {
|
||||
var value: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CXamlSourceFocusNavigationReason = .init(0)
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationRequest.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Reason(pThis, &value))
|
||||
}
|
||||
return value
|
||||
}
|
||||
|
||||
internal func get_HintRectImpl() throws -> WindowsFoundation.Rect {
|
||||
var value: __x_ABI_CWindows_CFoundation_CRect = .init()
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationRequest.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HintRect(pThis, &value))
|
||||
}
|
||||
return .from(abi: value)
|
||||
}
|
||||
|
||||
internal func get_CorrelationIdImpl() throws -> Foundation.UUID {
|
||||
var value: WindowsFoundation.GUID = .init()
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationRequest.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.get_CorrelationId(pThis, &value))
|
||||
}
|
||||
return .init(from: value)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class IXamlSourceFocusNavigationRequestFactory: WindowsFoundation.IInspectable {
|
||||
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationRequestFactory }
|
||||
|
||||
internal func CreateInstanceImpl(_ reason: WinUI.XamlSourceFocusNavigationReason) throws -> IXamlSourceFocusNavigationRequest {
|
||||
let (value) = try ComPtrs.initialize { valueAbi in
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationRequestFactory.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, reason, &valueAbi))
|
||||
}
|
||||
}
|
||||
return IXamlSourceFocusNavigationRequest(value!)
|
||||
}
|
||||
|
||||
internal func CreateInstanceWithHintRectImpl(_ reason: WinUI.XamlSourceFocusNavigationReason, _ hintRect: WindowsFoundation.Rect) throws -> IXamlSourceFocusNavigationRequest {
|
||||
let (value) = try ComPtrs.initialize { valueAbi in
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationRequestFactory.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstanceWithHintRect(pThis, reason, .from(swift: hintRect), &valueAbi))
|
||||
}
|
||||
}
|
||||
return IXamlSourceFocusNavigationRequest(value!)
|
||||
}
|
||||
|
||||
internal func CreateInstanceWithHintRectAndCorrelationIdImpl(_ reason: WinUI.XamlSourceFocusNavigationReason, _ hintRect: WindowsFoundation.Rect, _ correlationId: Foundation.UUID) throws -> IXamlSourceFocusNavigationRequest {
|
||||
let (value) = try ComPtrs.initialize { valueAbi in
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationRequestFactory.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstanceWithHintRectAndCorrelationId(pThis, reason, .from(swift: hintRect), .init(from: correlationId), &valueAbi))
|
||||
}
|
||||
}
|
||||
return IXamlSourceFocusNavigationRequest(value!)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class IXamlSourceFocusNavigationResult: WindowsFoundation.IInspectable {
|
||||
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationResult }
|
||||
|
||||
internal func get_WasFocusMovedImpl() throws -> Bool {
|
||||
var value: boolean = 0
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationResult.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.get_WasFocusMoved(pThis, &value))
|
||||
}
|
||||
return .init(from: value)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class IXamlSourceFocusNavigationResultFactory: WindowsFoundation.IInspectable {
|
||||
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationResultFactory }
|
||||
|
||||
internal func CreateInstanceImpl(_ focusMoved: Bool) throws -> IXamlSourceFocusNavigationResult {
|
||||
let (value) = try ComPtrs.initialize { valueAbi in
|
||||
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationResultFactory.self) { pThis in
|
||||
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, .init(from: focusMoved), &valueAbi))
|
||||
}
|
||||
}
|
||||
return IXamlSourceFocusNavigationResult(value!)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,8 +0,0 @@
|
||||
// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1
|
||||
// swiftlint:disable all
|
||||
import Foundation
|
||||
@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation
|
||||
import CWinRT
|
||||
|
||||
public enum __IMPL_Microsoft_UI_Xaml_Hosting {
|
||||
}
|
||||
@ -1,496 +0,0 @@
|
||||
// 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 WinAppSDK
|
||||
@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation
|
||||
import CWinRT
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.xamlsourcefocusnavigationreason)
|
||||
public typealias XamlSourceFocusNavigationReason = __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CXamlSourceFocusNavigationReason
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.desktopwindowxamlsource)
|
||||
open class DesktopWindowXamlSource : WinRTClass, WindowsFoundation.IClosable {
|
||||
private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Hosting.IDesktopWindowXamlSource
|
||||
private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource
|
||||
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_CXaml_CHosting_CIDesktopWindowXamlSource>?) -> DesktopWindowXamlSource? {
|
||||
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 _IDesktopWindowXamlSourceFactory : __ABI_Microsoft_UI_Xaml_Hosting.IDesktopWindowXamlSourceFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Hosting.DesktopWindowXamlSource"))
|
||||
|
||||
override public init() {
|
||||
super.init()
|
||||
MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in
|
||||
try! Self._IDesktopWindowXamlSourceFactory.CreateInstanceImpl(baseInterface, &innerInterface)
|
||||
}
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.desktopwindowxamlsource.navigatefocus)
|
||||
public func navigateFocus(_ request: XamlSourceFocusNavigationRequest!) throws -> XamlSourceFocusNavigationResult! {
|
||||
try _default.NavigateFocusImpl(request)
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.desktopwindowxamlsource.initialize)
|
||||
public func initialize(_ parentWindowId: WinAppSDK.WindowId) throws {
|
||||
try _default.InitializeImpl(parentWindowId)
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.desktopwindowxamlsource.content)
|
||||
public var content : WinUI.UIElement! {
|
||||
get { try! _default.get_ContentImpl() }
|
||||
set { try! _default.put_ContentImpl(newValue) }
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.desktopwindowxamlsource.hasfocus)
|
||||
public var hasFocus : Bool {
|
||||
get { try! _default.get_HasFocusImpl() }
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.desktopwindowxamlsource.sitebridge)
|
||||
public var siteBridge : WinAppSDK.DesktopChildSiteBridge! {
|
||||
get { try! _default.get_SiteBridgeImpl() }
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.desktopwindowxamlsource.systembackdrop)
|
||||
public var systemBackdrop : WinUI.SystemBackdrop! {
|
||||
get { try! _default.get_SystemBackdropImpl() }
|
||||
set { try! _default.put_SystemBackdropImpl(newValue) }
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.desktopwindowxamlsource.gotfocus)
|
||||
public lazy var gotFocus : Event<TypedEventHandler<DesktopWindowXamlSource?, DesktopWindowXamlSourceGotFocusEventArgs?>> = {
|
||||
.init(
|
||||
add: { [weak self] in
|
||||
guard let this = self?._default else { return .init() }
|
||||
return try! this.add_GotFocusImpl($0)
|
||||
},
|
||||
remove: { [weak self] in
|
||||
try? self?._default.remove_GotFocusImpl($0)
|
||||
}
|
||||
)
|
||||
}()
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.desktopwindowxamlsource.takefocusrequested)
|
||||
public lazy var takeFocusRequested : Event<TypedEventHandler<DesktopWindowXamlSource?, DesktopWindowXamlSourceTakeFocusRequestedEventArgs?>> = {
|
||||
.init(
|
||||
add: { [weak self] in
|
||||
guard let this = self?._default else { return .init() }
|
||||
return try! this.add_TakeFocusRequestedImpl($0)
|
||||
},
|
||||
remove: { [weak self] in
|
||||
try? self?._default.remove_TakeFocusRequestedImpl($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.xaml.hosting.desktopwindowxamlsource.close)
|
||||
public func close() throws {
|
||||
try _IClosable.CloseImpl()
|
||||
}
|
||||
|
||||
internal enum IDesktopWindowXamlSource : ComposableImpl {
|
||||
internal typealias CABI = C_IInspectable
|
||||
internal typealias SwiftABI = WindowsFoundation.IInspectable
|
||||
internal typealias Class = DesktopWindowXamlSource
|
||||
internal typealias SwiftProjection = WinRTClassWeakReference<Class>
|
||||
internal enum Default : AbiInterface {
|
||||
internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource
|
||||
internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Hosting.IDesktopWindowXamlSource
|
||||
}
|
||||
}
|
||||
internal typealias Composable = IDesktopWindowXamlSource
|
||||
deinit {
|
||||
_default = nil
|
||||
_IClosable = nil
|
||||
}
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.desktopwindowxamlsourcegotfocuseventargs)
|
||||
public final class DesktopWindowXamlSourceGotFocusEventArgs : WinRTClass {
|
||||
private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Hosting.IDesktopWindowXamlSourceGotFocusEventArgs
|
||||
private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSourceGotFocusEventArgs
|
||||
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_CXaml_CHosting_CIDesktopWindowXamlSourceGotFocusEventArgs>?) -> DesktopWindowXamlSourceGotFocusEventArgs? {
|
||||
guard let abi = abi else { return nil }
|
||||
return .init(fromAbi: WindowsFoundation.IInspectable(abi))
|
||||
}
|
||||
|
||||
@_spi(WinRTInternal)
|
||||
public init(fromAbi: WindowsFoundation.IInspectable) {
|
||||
super.init(fromAbi)
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.desktopwindowxamlsourcegotfocuseventargs.request)
|
||||
public var request : XamlSourceFocusNavigationRequest! {
|
||||
get { try! _default.get_RequestImpl() }
|
||||
}
|
||||
|
||||
deinit {
|
||||
_default = nil
|
||||
}
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.desktopwindowxamlsourcetakefocusrequestedeventargs)
|
||||
public final class DesktopWindowXamlSourceTakeFocusRequestedEventArgs : WinRTClass {
|
||||
private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Hosting.IDesktopWindowXamlSourceTakeFocusRequestedEventArgs
|
||||
private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSourceTakeFocusRequestedEventArgs
|
||||
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_CXaml_CHosting_CIDesktopWindowXamlSourceTakeFocusRequestedEventArgs>?) -> DesktopWindowXamlSourceTakeFocusRequestedEventArgs? {
|
||||
guard let abi = abi else { return nil }
|
||||
return .init(fromAbi: WindowsFoundation.IInspectable(abi))
|
||||
}
|
||||
|
||||
@_spi(WinRTInternal)
|
||||
public init(fromAbi: WindowsFoundation.IInspectable) {
|
||||
super.init(fromAbi)
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.desktopwindowxamlsourcetakefocusrequestedeventargs.request)
|
||||
public var request : XamlSourceFocusNavigationRequest! {
|
||||
get { try! _default.get_RequestImpl() }
|
||||
}
|
||||
|
||||
deinit {
|
||||
_default = nil
|
||||
}
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.elementcompositionpreview)
|
||||
public final class ElementCompositionPreview : WinRTClass {
|
||||
private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Hosting.IElementCompositionPreview
|
||||
private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreview
|
||||
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_CXaml_CHosting_CIElementCompositionPreview>?) -> ElementCompositionPreview? {
|
||||
guard let abi = abi else { return nil }
|
||||
return .init(fromAbi: WindowsFoundation.IInspectable(abi))
|
||||
}
|
||||
|
||||
@_spi(WinRTInternal)
|
||||
public init(fromAbi: WindowsFoundation.IInspectable) {
|
||||
super.init(fromAbi)
|
||||
}
|
||||
|
||||
private static let _IElementCompositionPreviewStatics: __ABI_Microsoft_UI_Xaml_Hosting.IElementCompositionPreviewStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Hosting.ElementCompositionPreview"))
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.elementcompositionpreview.getelementvisual)
|
||||
public static func getElementVisual(_ element: WinUI.UIElement!) -> WinAppSDK.Visual! {
|
||||
return try! _IElementCompositionPreviewStatics.GetElementVisualImpl(element)
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.elementcompositionpreview.getelementchildvisual)
|
||||
public static func getElementChildVisual(_ element: WinUI.UIElement!) -> WinAppSDK.Visual! {
|
||||
return try! _IElementCompositionPreviewStatics.GetElementChildVisualImpl(element)
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.elementcompositionpreview.setelementchildvisual)
|
||||
public static func setElementChildVisual(_ element: WinUI.UIElement!, _ visual: WinAppSDK.Visual!) {
|
||||
try! _IElementCompositionPreviewStatics.SetElementChildVisualImpl(element, visual)
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.elementcompositionpreview.getscrollviewermanipulationpropertyset)
|
||||
public static func getScrollViewerManipulationPropertySet(_ scrollViewer: WinUI.ScrollViewer!) -> WinAppSDK.CompositionPropertySet! {
|
||||
return try! _IElementCompositionPreviewStatics.GetScrollViewerManipulationPropertySetImpl(scrollViewer)
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.elementcompositionpreview.setimplicitshowanimation)
|
||||
public static func setImplicitShowAnimation(_ element: WinUI.UIElement!, _ animation: WinAppSDK.AnyICompositionAnimationBase!) {
|
||||
try! _IElementCompositionPreviewStatics.SetImplicitShowAnimationImpl(element, animation)
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.elementcompositionpreview.setimplicithideanimation)
|
||||
public static func setImplicitHideAnimation(_ element: WinUI.UIElement!, _ animation: WinAppSDK.AnyICompositionAnimationBase!) {
|
||||
try! _IElementCompositionPreviewStatics.SetImplicitHideAnimationImpl(element, animation)
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.elementcompositionpreview.setistranslationenabled)
|
||||
public static func setIsTranslationEnabled(_ element: WinUI.UIElement!, _ value: Bool) {
|
||||
try! _IElementCompositionPreviewStatics.SetIsTranslationEnabledImpl(element, value)
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.elementcompositionpreview.getpointerpositionpropertyset)
|
||||
public static func getPointerPositionPropertySet(_ targetElement: WinUI.UIElement!) -> WinAppSDK.CompositionPropertySet! {
|
||||
return try! _IElementCompositionPreviewStatics.GetPointerPositionPropertySetImpl(targetElement)
|
||||
}
|
||||
|
||||
deinit {
|
||||
_default = nil
|
||||
}
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.windowsxamlmanager)
|
||||
public final class WindowsXamlManager : WinRTClass, WindowsFoundation.IClosable {
|
||||
private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Hosting.IWindowsXamlManager
|
||||
private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManager
|
||||
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_CXaml_CHosting_CIWindowsXamlManager>?) -> WindowsXamlManager? {
|
||||
guard let abi = abi else { return nil }
|
||||
return .init(fromAbi: WindowsFoundation.IInspectable(abi))
|
||||
}
|
||||
|
||||
@_spi(WinRTInternal)
|
||||
public init(fromAbi: WindowsFoundation.IInspectable) {
|
||||
super.init(fromAbi)
|
||||
}
|
||||
|
||||
override public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? {
|
||||
return super.queryInterface(iid)
|
||||
}
|
||||
private static let _IWindowsXamlManagerStatics: __ABI_Microsoft_UI_Xaml_Hosting.IWindowsXamlManagerStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Hosting.WindowsXamlManager"))
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.windowsxamlmanager.initializeforcurrentthread)
|
||||
public static func initializeForCurrentThread() -> WindowsXamlManager! {
|
||||
return try! _IWindowsXamlManagerStatics.InitializeForCurrentThreadImpl()
|
||||
}
|
||||
|
||||
private static let _IWindowsXamlManagerStatics2: __ABI_Microsoft_UI_Xaml_Hosting.IWindowsXamlManagerStatics2 = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Hosting.WindowsXamlManager"))
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.windowsxamlmanager.getforcurrentthread)
|
||||
public static func getForCurrentThread() -> WindowsXamlManager! {
|
||||
return try! _IWindowsXamlManagerStatics2.GetForCurrentThreadImpl()
|
||||
}
|
||||
|
||||
private lazy var _IWindowsXamlManager2: __ABI_Microsoft_UI_Xaml_Hosting.IWindowsXamlManager2! = getInterfaceForCaching()
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.windowsxamlmanager.xamlshutdowncompletedonthread)
|
||||
public lazy var xamlShutdownCompletedOnThread : Event<TypedEventHandler<WindowsXamlManager?, XamlShutdownCompletedOnThreadEventArgs?>> = {
|
||||
.init(
|
||||
add: { [weak self] in
|
||||
guard let this = self?._IWindowsXamlManager2 else { return .init() }
|
||||
return try! this.add_XamlShutdownCompletedOnThreadImpl($0)
|
||||
},
|
||||
remove: { [weak self] in
|
||||
try? self?._IWindowsXamlManager2.remove_XamlShutdownCompletedOnThreadImpl($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.xaml.hosting.windowsxamlmanager.close)
|
||||
public func close() throws {
|
||||
try _IClosable.CloseImpl()
|
||||
}
|
||||
|
||||
deinit {
|
||||
_default = nil
|
||||
_IWindowsXamlManager2 = nil
|
||||
_IClosable = nil
|
||||
}
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.xamlshutdowncompletedonthreadeventargs)
|
||||
public final class XamlShutdownCompletedOnThreadEventArgs : WinRTClass {
|
||||
private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Hosting.IXamlShutdownCompletedOnThreadEventArgs
|
||||
private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlShutdownCompletedOnThreadEventArgs
|
||||
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_CXaml_CHosting_CIXamlShutdownCompletedOnThreadEventArgs>?) -> XamlShutdownCompletedOnThreadEventArgs? {
|
||||
guard let abi = abi else { return nil }
|
||||
return .init(fromAbi: WindowsFoundation.IInspectable(abi))
|
||||
}
|
||||
|
||||
@_spi(WinRTInternal)
|
||||
public init(fromAbi: WindowsFoundation.IInspectable) {
|
||||
super.init(fromAbi)
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.xamlshutdowncompletedonthreadeventargs.getdispatcherqueuedeferral)
|
||||
public func getDispatcherQueueDeferral() throws -> WindowsFoundation.Deferral! {
|
||||
try _default.GetDispatcherQueueDeferralImpl()
|
||||
}
|
||||
|
||||
deinit {
|
||||
_default = nil
|
||||
}
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.xamlsourcefocusnavigationrequest)
|
||||
public final class XamlSourceFocusNavigationRequest : WinRTClass {
|
||||
private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Hosting.IXamlSourceFocusNavigationRequest
|
||||
private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationRequest
|
||||
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_CXaml_CHosting_CIXamlSourceFocusNavigationRequest>?) -> XamlSourceFocusNavigationRequest? {
|
||||
guard let abi = abi else { return nil }
|
||||
return .init(fromAbi: WindowsFoundation.IInspectable(abi))
|
||||
}
|
||||
|
||||
@_spi(WinRTInternal)
|
||||
public init(fromAbi: WindowsFoundation.IInspectable) {
|
||||
super.init(fromAbi)
|
||||
}
|
||||
|
||||
private static let _IXamlSourceFocusNavigationRequestFactory: __ABI_Microsoft_UI_Xaml_Hosting.IXamlSourceFocusNavigationRequestFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Hosting.XamlSourceFocusNavigationRequest"))
|
||||
public init(_ reason: XamlSourceFocusNavigationReason) {
|
||||
super.init(try! Self._IXamlSourceFocusNavigationRequestFactory.CreateInstanceImpl(reason))
|
||||
}
|
||||
|
||||
public init(_ reason: XamlSourceFocusNavigationReason, _ hintRect: WindowsFoundation.Rect) {
|
||||
super.init(try! Self._IXamlSourceFocusNavigationRequestFactory.CreateInstanceWithHintRectImpl(reason, hintRect))
|
||||
}
|
||||
|
||||
public init(_ reason: XamlSourceFocusNavigationReason, _ hintRect: WindowsFoundation.Rect, _ correlationId: Foundation.UUID) {
|
||||
super.init(try! Self._IXamlSourceFocusNavigationRequestFactory.CreateInstanceWithHintRectAndCorrelationIdImpl(reason, hintRect, correlationId))
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.xamlsourcefocusnavigationrequest.correlationid)
|
||||
public var correlationId : Foundation.UUID {
|
||||
get { try! _default.get_CorrelationIdImpl() }
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.xamlsourcefocusnavigationrequest.hintrect)
|
||||
public var hintRect : WindowsFoundation.Rect {
|
||||
get { try! _default.get_HintRectImpl() }
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.xamlsourcefocusnavigationrequest.reason)
|
||||
public var reason : XamlSourceFocusNavigationReason {
|
||||
get { try! _default.get_ReasonImpl() }
|
||||
}
|
||||
|
||||
deinit {
|
||||
_default = nil
|
||||
}
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.xamlsourcefocusnavigationresult)
|
||||
public final class XamlSourceFocusNavigationResult : WinRTClass {
|
||||
private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Hosting.IXamlSourceFocusNavigationResult
|
||||
private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationResult
|
||||
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_CXaml_CHosting_CIXamlSourceFocusNavigationResult>?) -> XamlSourceFocusNavigationResult? {
|
||||
guard let abi = abi else { return nil }
|
||||
return .init(fromAbi: WindowsFoundation.IInspectable(abi))
|
||||
}
|
||||
|
||||
@_spi(WinRTInternal)
|
||||
public init(fromAbi: WindowsFoundation.IInspectable) {
|
||||
super.init(fromAbi)
|
||||
}
|
||||
|
||||
private static let _IXamlSourceFocusNavigationResultFactory: __ABI_Microsoft_UI_Xaml_Hosting.IXamlSourceFocusNavigationResultFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Hosting.XamlSourceFocusNavigationResult"))
|
||||
public init(_ focusMoved: Bool) {
|
||||
super.init(try! Self._IXamlSourceFocusNavigationResultFactory.CreateInstanceImpl(focusMoved))
|
||||
}
|
||||
|
||||
/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.xamlsourcefocusnavigationresult.wasfocusmoved)
|
||||
public var wasFocusMoved : Bool {
|
||||
get { try! _default.get_WasFocusMovedImpl() }
|
||||
}
|
||||
|
||||
deinit {
|
||||
_default = nil
|
||||
}
|
||||
}
|
||||
|
||||
extension WinUI.XamlSourceFocusNavigationReason {
|
||||
public static var programmatic : WinUI.XamlSourceFocusNavigationReason {
|
||||
__x_ABI_CMicrosoft_CUI_CXaml_CHosting_CXamlSourceFocusNavigationReason_Programmatic
|
||||
}
|
||||
public static var restore : WinUI.XamlSourceFocusNavigationReason {
|
||||
__x_ABI_CMicrosoft_CUI_CXaml_CHosting_CXamlSourceFocusNavigationReason_Restore
|
||||
}
|
||||
public static var first : WinUI.XamlSourceFocusNavigationReason {
|
||||
__x_ABI_CMicrosoft_CUI_CXaml_CHosting_CXamlSourceFocusNavigationReason_First
|
||||
}
|
||||
public static var last : WinUI.XamlSourceFocusNavigationReason {
|
||||
__x_ABI_CMicrosoft_CUI_CXaml_CHosting_CXamlSourceFocusNavigationReason_Last
|
||||
}
|
||||
public static var left : WinUI.XamlSourceFocusNavigationReason {
|
||||
__x_ABI_CMicrosoft_CUI_CXaml_CHosting_CXamlSourceFocusNavigationReason_Left
|
||||
}
|
||||
public static var up : WinUI.XamlSourceFocusNavigationReason {
|
||||
__x_ABI_CMicrosoft_CUI_CXaml_CHosting_CXamlSourceFocusNavigationReason_Up
|
||||
}
|
||||
public static var right : WinUI.XamlSourceFocusNavigationReason {
|
||||
__x_ABI_CMicrosoft_CUI_CXaml_CHosting_CXamlSourceFocusNavigationReason_Right
|
||||
}
|
||||
public static var down : WinUI.XamlSourceFocusNavigationReason {
|
||||
__x_ABI_CMicrosoft_CUI_CXaml_CHosting_CXamlSourceFocusNavigationReason_Down
|
||||
}
|
||||
}
|
||||
extension WinUI.XamlSourceFocusNavigationReason: @retroactive Hashable, @retroactive Codable {}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -14,6 +14,11 @@ fileprivate func makeIElementFactoryFrom(abi: WindowsFoundation.IInspectable) ->
|
||||
return __IMPL_Microsoft_UI_Xaml.IElementFactoryBridge.from(abi: RawPointer(swiftAbi))!
|
||||
}
|
||||
|
||||
fileprivate func makeICommandBarElementFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
let swiftAbi: __ABI_Microsoft_UI_Xaml_Controls.ICommandBarElement = try! abi.QueryInterface()
|
||||
return __IMPL_Microsoft_UI_Xaml_Controls.ICommandBarElementBridge.from(abi: RawPointer(swiftAbi))!
|
||||
}
|
||||
|
||||
fileprivate func makeIInsertionPanelFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
let swiftAbi: __ABI_Microsoft_UI_Xaml_Controls.IInsertionPanel = try! abi.QueryInterface()
|
||||
return __IMPL_Microsoft_UI_Xaml_Controls.IInsertionPanelBridge.from(abi: RawPointer(swiftAbi))!
|
||||
@ -360,14 +365,22 @@ fileprivate func makeIRawElementProviderSimpleFrom(abi: WindowsFoundation.IInspe
|
||||
return IRawElementProviderSimple(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeAnchorRequestedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return AnchorRequestedEventArgs(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeAppBarFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return AppBar(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeAppBarButtonFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return AppBarButton(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeAppBarSeparatorFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return AppBarSeparator(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeAppBarToggleButtonFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return AppBarToggleButton(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeAutoSuggestBoxFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return AutoSuggestBox(fromAbi: abi)
|
||||
}
|
||||
@ -432,6 +445,10 @@ fileprivate func makeComboBoxTextSubmittedEventArgsFrom(abi: WindowsFoundation.I
|
||||
return ComboBoxTextSubmittedEventArgs(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeCommandBarFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return CommandBar(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeContainerContentChangingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return ContainerContentChangingEventArgs(fromAbi: abi)
|
||||
}
|
||||
@ -496,6 +513,10 @@ fileprivate func makeDragItemsStartingEventArgsFrom(abi: WindowsFoundation.IInsp
|
||||
return DragItemsStartingEventArgs(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeDynamicOverflowItemsChangingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return DynamicOverflowItemsChangingEventArgs(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeFlipViewFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return FlipView(fromAbi: abi)
|
||||
}
|
||||
@ -836,22 +857,6 @@ fileprivate func makeScrollViewFrom(abi: WindowsFoundation.IInspectable) -> Any
|
||||
return ScrollView(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeScrollViewerFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return ScrollViewer(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeScrollViewerViewFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return ScrollViewerView(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeScrollViewerViewChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return ScrollViewerViewChangedEventArgs(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeScrollViewerViewChangingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return ScrollViewerViewChangingEventArgs(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeScrollingAnchorRequestedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return ScrollingAnchorRequestedEventArgs(fromAbi: abi)
|
||||
}
|
||||
@ -1076,10 +1081,18 @@ fileprivate func makeXamlControlsResourcesFrom(abi: WindowsFoundation.IInspectab
|
||||
return XamlControlsResources(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeAppBarButtonTemplateSettingsFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return AppBarButtonTemplateSettings(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeAppBarTemplateSettingsFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return AppBarTemplateSettings(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeAppBarToggleButtonTemplateSettingsFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return AppBarToggleButtonTemplateSettings(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeButtonBaseFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return ButtonBase(fromAbi: abi)
|
||||
}
|
||||
@ -1088,6 +1101,10 @@ fileprivate func makeComboBoxTemplateSettingsFrom(abi: WindowsFoundation.IInspec
|
||||
return ComboBoxTemplateSettings(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeCommandBarTemplateSettingsFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return CommandBarTemplateSettings(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeFlyoutBaseFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return FlyoutBase(fromAbi: abi)
|
||||
}
|
||||
@ -1244,38 +1261,6 @@ fileprivate func makeTextPointerFrom(abi: WindowsFoundation.IInspectable) -> Any
|
||||
return TextPointer(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeDesktopWindowXamlSourceFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return DesktopWindowXamlSource(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeDesktopWindowXamlSourceGotFocusEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return DesktopWindowXamlSourceGotFocusEventArgs(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeDesktopWindowXamlSourceTakeFocusRequestedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return DesktopWindowXamlSourceTakeFocusRequestedEventArgs(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeElementCompositionPreviewFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return ElementCompositionPreview(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeWindowsXamlManagerFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return WindowsXamlManager(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeXamlShutdownCompletedOnThreadEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return XamlShutdownCompletedOnThreadEventArgs(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeXamlSourceFocusNavigationRequestFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return XamlSourceFocusNavigationRequest(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeXamlSourceFocusNavigationResultFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return XamlSourceFocusNavigationResult(fromAbi: abi)
|
||||
}
|
||||
|
||||
fileprivate func makeAccessKeyDisplayDismissedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any {
|
||||
return AccessKeyDisplayDismissedEventArgs(fromAbi: abi)
|
||||
}
|
||||
@ -2014,6 +1999,7 @@ public class __MakeFromAbi: MakeFromAbi {
|
||||
switch typeName {
|
||||
case "IDataTemplateExtension": return makeIDataTemplateExtensionFrom(abi: abi)
|
||||
case "IElementFactory": return makeIElementFactoryFrom(abi: abi)
|
||||
case "ICommandBarElement": return makeICommandBarElementFrom(abi: abi)
|
||||
case "IInsertionPanel": return makeIInsertionPanelFrom(abi: abi)
|
||||
case "IItemContainerMapping": return makeIItemContainerMappingFrom(abi: abi)
|
||||
case "IKeyIndexMapping": return makeIKeyIndexMappingFrom(abi: abi)
|
||||
@ -2095,8 +2081,10 @@ public class __MakeFromAbi: MakeFromAbi {
|
||||
case "AutomationPeer": return makeAutomationPeerFrom(abi: abi)
|
||||
case "AutomationPeerAnnotation": return makeAutomationPeerAnnotationFrom(abi: abi)
|
||||
case "IRawElementProviderSimple": return makeIRawElementProviderSimpleFrom(abi: abi)
|
||||
case "AnchorRequestedEventArgs": return makeAnchorRequestedEventArgsFrom(abi: abi)
|
||||
case "AppBar": return makeAppBarFrom(abi: abi)
|
||||
case "AppBarButton": return makeAppBarButtonFrom(abi: abi)
|
||||
case "AppBarSeparator": return makeAppBarSeparatorFrom(abi: abi)
|
||||
case "AppBarToggleButton": return makeAppBarToggleButtonFrom(abi: abi)
|
||||
case "AutoSuggestBox": return makeAutoSuggestBoxFrom(abi: abi)
|
||||
case "AutoSuggestBoxQuerySubmittedEventArgs": return makeAutoSuggestBoxQuerySubmittedEventArgsFrom(abi: abi)
|
||||
case "AutoSuggestBoxSuggestionChosenEventArgs": return makeAutoSuggestBoxSuggestionChosenEventArgsFrom(abi: abi)
|
||||
@ -2113,6 +2101,7 @@ public class __MakeFromAbi: MakeFromAbi {
|
||||
case "ColumnDefinitionCollection": return makeColumnDefinitionCollectionFrom(abi: abi)
|
||||
case "ComboBox": return makeComboBoxFrom(abi: abi)
|
||||
case "ComboBoxTextSubmittedEventArgs": return makeComboBoxTextSubmittedEventArgsFrom(abi: abi)
|
||||
case "CommandBar": return makeCommandBarFrom(abi: abi)
|
||||
case "ContainerContentChangingEventArgs": return makeContainerContentChangingEventArgsFrom(abi: abi)
|
||||
case "ContentControl": return makeContentControlFrom(abi: abi)
|
||||
case "ContentDialog": return makeContentDialogFrom(abi: abi)
|
||||
@ -2129,6 +2118,7 @@ public class __MakeFromAbi: MakeFromAbi {
|
||||
case "DataTemplateSelector": return makeDataTemplateSelectorFrom(abi: abi)
|
||||
case "DragItemsCompletedEventArgs": return makeDragItemsCompletedEventArgsFrom(abi: abi)
|
||||
case "DragItemsStartingEventArgs": return makeDragItemsStartingEventArgsFrom(abi: abi)
|
||||
case "DynamicOverflowItemsChangingEventArgs": return makeDynamicOverflowItemsChangingEventArgsFrom(abi: abi)
|
||||
case "FlipView": return makeFlipViewFrom(abi: abi)
|
||||
case "FlipViewItem": return makeFlipViewItemFrom(abi: abi)
|
||||
case "Flyout": return makeFlyoutFrom(abi: abi)
|
||||
@ -2214,10 +2204,6 @@ public class __MakeFromAbi: MakeFromAbi {
|
||||
case "RowDefinition": return makeRowDefinitionFrom(abi: abi)
|
||||
case "RowDefinitionCollection": return makeRowDefinitionCollectionFrom(abi: abi)
|
||||
case "ScrollView": return makeScrollViewFrom(abi: abi)
|
||||
case "ScrollViewer": return makeScrollViewerFrom(abi: abi)
|
||||
case "ScrollViewerView": return makeScrollViewerViewFrom(abi: abi)
|
||||
case "ScrollViewerViewChangedEventArgs": return makeScrollViewerViewChangedEventArgsFrom(abi: abi)
|
||||
case "ScrollViewerViewChangingEventArgs": return makeScrollViewerViewChangingEventArgsFrom(abi: abi)
|
||||
case "ScrollingAnchorRequestedEventArgs": return makeScrollingAnchorRequestedEventArgsFrom(abi: abi)
|
||||
case "ScrollingBringingIntoViewEventArgs": return makeScrollingBringingIntoViewEventArgsFrom(abi: abi)
|
||||
case "ScrollingScrollAnimationStartingEventArgs": return makeScrollingScrollAnimationStartingEventArgsFrom(abi: abi)
|
||||
@ -2274,9 +2260,12 @@ public class __MakeFromAbi: MakeFromAbi {
|
||||
case "VirtualizingLayout": return makeVirtualizingLayoutFrom(abi: abi)
|
||||
case "VirtualizingLayoutContext": return makeVirtualizingLayoutContextFrom(abi: abi)
|
||||
case "XamlControlsResources": return makeXamlControlsResourcesFrom(abi: abi)
|
||||
case "AppBarButtonTemplateSettings": return makeAppBarButtonTemplateSettingsFrom(abi: abi)
|
||||
case "AppBarTemplateSettings": return makeAppBarTemplateSettingsFrom(abi: abi)
|
||||
case "AppBarToggleButtonTemplateSettings": return makeAppBarToggleButtonTemplateSettingsFrom(abi: abi)
|
||||
case "ButtonBase": return makeButtonBaseFrom(abi: abi)
|
||||
case "ComboBoxTemplateSettings": return makeComboBoxTemplateSettingsFrom(abi: abi)
|
||||
case "CommandBarTemplateSettings": return makeCommandBarTemplateSettingsFrom(abi: abi)
|
||||
case "FlyoutBase": return makeFlyoutBaseFrom(abi: abi)
|
||||
case "FlyoutBaseClosingEventArgs": return makeFlyoutBaseClosingEventArgsFrom(abi: abi)
|
||||
case "FlyoutShowOptions": return makeFlyoutShowOptionsFrom(abi: abi)
|
||||
@ -2316,14 +2305,6 @@ public class __MakeFromAbi: MakeFromAbi {
|
||||
case "TextElement": return makeTextElementFrom(abi: abi)
|
||||
case "TextHighlighter": return makeTextHighlighterFrom(abi: abi)
|
||||
case "TextPointer": return makeTextPointerFrom(abi: abi)
|
||||
case "DesktopWindowXamlSource": return makeDesktopWindowXamlSourceFrom(abi: abi)
|
||||
case "DesktopWindowXamlSourceGotFocusEventArgs": return makeDesktopWindowXamlSourceGotFocusEventArgsFrom(abi: abi)
|
||||
case "DesktopWindowXamlSourceTakeFocusRequestedEventArgs": return makeDesktopWindowXamlSourceTakeFocusRequestedEventArgsFrom(abi: abi)
|
||||
case "ElementCompositionPreview": return makeElementCompositionPreviewFrom(abi: abi)
|
||||
case "WindowsXamlManager": return makeWindowsXamlManagerFrom(abi: abi)
|
||||
case "XamlShutdownCompletedOnThreadEventArgs": return makeXamlShutdownCompletedOnThreadEventArgsFrom(abi: abi)
|
||||
case "XamlSourceFocusNavigationRequest": return makeXamlSourceFocusNavigationRequestFrom(abi: abi)
|
||||
case "XamlSourceFocusNavigationResult": return makeXamlSourceFocusNavigationResultFrom(abi: abi)
|
||||
case "AccessKeyDisplayDismissedEventArgs": return makeAccessKeyDisplayDismissedEventArgsFrom(abi: abi)
|
||||
case "AccessKeyDisplayRequestedEventArgs": return makeAccessKeyDisplayRequestedEventArgsFrom(abi: abi)
|
||||
case "AccessKeyInvokedEventArgs": return makeAccessKeyInvokedEventArgsFrom(abi: abi)
|
||||
|
||||
@ -13,6 +13,9 @@
|
||||
"Microsoft.UI.Colors",
|
||||
"Microsoft.UI.Xaml.Application",
|
||||
"Microsoft.UI.Xaml.Automation.AutomationProperties",
|
||||
"Microsoft.UI.Xaml.Controls.AppBarButton",
|
||||
"Microsoft.UI.Xaml.Controls.AppBarSeparator",
|
||||
"Microsoft.UI.Xaml.Controls.AppBarToggleButton",
|
||||
"Microsoft.UI.Xaml.Controls.BitmapIcon",
|
||||
"Microsoft.UI.Xaml.Controls.Border",
|
||||
"Microsoft.UI.Xaml.Controls.Button",
|
||||
@ -20,6 +23,7 @@
|
||||
"Microsoft.UI.Xaml.Controls.CheckBox",
|
||||
"Microsoft.UI.Xaml.Controls.ColumnDefinition",
|
||||
"Microsoft.UI.Xaml.Controls.ComboBox",
|
||||
"Microsoft.UI.Xaml.Controls.CommandBar",
|
||||
"Microsoft.UI.Xaml.Controls.ContentDialog",
|
||||
"Microsoft.UI.Xaml.Controls.ContentPresenter",
|
||||
"Microsoft.UI.Xaml.Controls.FlipView",
|
||||
@ -75,9 +79,6 @@
|
||||
"Microsoft.UI.Xaml.Controls.XamlControlsResources",
|
||||
"Microsoft.UI.Xaml.Documents.Run",
|
||||
"Microsoft.UI.Xaml.Documents.Hyperlink",
|
||||
"Microsoft.UI.Xaml.Hosting.DesktopWindowXamlSource",
|
||||
"Microsoft.UI.Xaml.Hosting.ElementCompositionPreview",
|
||||
"Microsoft.UI.Xaml.Hosting.WindowsXamlManager",
|
||||
"Microsoft.UI.Xaml.Input.FocusManager",
|
||||
"Microsoft.UI.Xaml.Interop.INotifyCollectionChanged",
|
||||
"Microsoft.UI.Xaml.Markup.IComponentConnector",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user