1483 lines
73 KiB
Swift
1483 lines
73 KiB
Swift
// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1
|
|
// swiftlint:disable all
|
|
import Foundation
|
|
@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation
|
|
import CWinRT
|
|
|
|
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer: WindowsFoundation.IID {
|
|
.init(Data1: 0xE51D3E4E, Data2: 0x34F0, Data3: 0x568C, Data4: ( 0x99,0x9F,0x62,0x77,0xE2,0xAF,0xE6,0xD7 ))// E51D3E4E-34F0-568C-999F-6277E2AFE6D7
|
|
}
|
|
|
|
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotation: WindowsFoundation.IID {
|
|
.init(Data1: 0x2738B92A, Data2: 0x2528, Data3: 0x5B63, Data4: ( 0x97,0x3D,0xD2,0x9E,0xB0,0x59,0x36,0x47 ))// 2738B92A-2528-5B63-973D-D29EB0593647
|
|
}
|
|
|
|
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotationFactory: WindowsFoundation.IID {
|
|
.init(Data1: 0x25A1A202, Data2: 0xBD68, Data3: 0x5D41, Data4: ( 0xA3,0x11,0xF8,0x4A,0xF9,0xC8,0xC4,0x40 ))// 25A1A202-BD68-5D41-A311-F84AF9C8C440
|
|
}
|
|
|
|
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotationStatics: WindowsFoundation.IID {
|
|
.init(Data1: 0xC46105D7, Data2: 0x8CA3, Data3: 0x50E3, Data4: ( 0xA1,0xBC,0xB6,0xBB,0x2F,0x9C,0xE1,0xCD ))// C46105D7-8CA3-50E3-A1BC-B6BB2F9CE1CD
|
|
}
|
|
|
|
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerFactory: WindowsFoundation.IID {
|
|
.init(Data1: 0xA1AF86A0, Data2: 0x6EC6, Data3: 0x5BE2, Data4: ( 0x85,0x8F,0x72,0x80,0x8B,0xE6,0xFD,0xDD ))// A1AF86A0-6EC6-5BE2-858F-72808BE6FDDD
|
|
}
|
|
|
|
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides: WindowsFoundation.IID {
|
|
.init(Data1: 0x44F8F6DF, Data2: 0x1B60, Data3: 0x512D, Data4: ( 0xA2,0x95,0xDD,0x8C,0x27,0x6C,0x46,0x18 ))// 44F8F6DF-1B60-512D-A295-DD8C276C4618
|
|
}
|
|
|
|
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerProtected: WindowsFoundation.IID {
|
|
.init(Data1: 0x9663B2C3, Data2: 0x8C1F, Data3: 0x56D4, Data4: ( 0xAB,0xD9,0x26,0x80,0x82,0xA9,0xE8,0xBC ))// 9663B2C3-8C1F-56D4-ABD9-268082A9E8BC
|
|
}
|
|
|
|
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerStatics: WindowsFoundation.IID {
|
|
.init(Data1: 0x90B157FF, Data2: 0x18D5, Data3: 0x5623, Data4: ( 0x85,0x0C,0x61,0x2C,0xEA,0xE5,0x76,0xBD ))// 90B157FF-18D5-5623-850C-612CEAE576BD
|
|
}
|
|
|
|
public enum __ABI_Microsoft_UI_Xaml_Automation_Peers {
|
|
public class IAutomationPeer: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer }
|
|
|
|
internal func get_EventsSourceImpl() throws -> WinUI.AutomationPeer? {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_EventsSource(pThis, &valueAbi))
|
|
}
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
internal func put_EventsSourceImpl(_ value: WinUI.AutomationPeer?) throws {
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.put_EventsSource(pThis, RawPointer(value)))
|
|
}
|
|
}
|
|
|
|
internal func GetPatternImpl(_ patternInterface: WinUI.PatternInterface) throws -> Any? {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetPattern(pThis, patternInterface, &resultAbi))
|
|
}
|
|
}
|
|
return __ABI_.AnyWrapper.unwrapFrom(abi: result)
|
|
}
|
|
|
|
internal func RaiseAutomationEventImpl(_ eventId: WinUI.AutomationEvents) throws {
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.RaiseAutomationEvent(pThis, eventId))
|
|
}
|
|
}
|
|
|
|
internal func RaisePropertyChangedEventImpl(_ automationProperty: WinUI.AutomationProperty?, _ oldValue: Any?, _ newValue: Any?) throws {
|
|
let oldValueWrapper = __ABI_.AnyWrapper(oldValue)
|
|
let _oldValue = try! oldValueWrapper?.toABI { $0 }
|
|
let newValueWrapper = __ABI_.AnyWrapper(newValue)
|
|
let _newValue = try! newValueWrapper?.toABI { $0 }
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.RaisePropertyChangedEvent(pThis, RawPointer(automationProperty), _oldValue, _newValue))
|
|
}
|
|
}
|
|
|
|
internal func GetAcceleratorKeyImpl() throws -> String {
|
|
var result: HSTRING?
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetAcceleratorKey(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func GetAccessKeyImpl() throws -> String {
|
|
var result: HSTRING?
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetAccessKey(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func GetAutomationControlTypeImpl() throws -> WinUI.AutomationControlType {
|
|
var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType = .init(0)
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetAutomationControlType(pThis, &result))
|
|
}
|
|
return result
|
|
}
|
|
|
|
internal func GetAutomationIdImpl() throws -> String {
|
|
var result: HSTRING?
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetAutomationId(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func GetBoundingRectangleImpl() throws -> WindowsFoundation.Rect {
|
|
var result: __x_ABI_CWindows_CFoundation_CRect = .init()
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetBoundingRectangle(pThis, &result))
|
|
}
|
|
return .from(abi: result)
|
|
}
|
|
|
|
internal func GetChildrenImpl() throws -> WindowsFoundation.AnyIVector<WinUI.AutomationPeer?>? {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetChildren(pThis, &resultAbi))
|
|
}
|
|
}
|
|
return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.unwrapFrom(abi: result)
|
|
}
|
|
|
|
internal func NavigateImpl(_ direction: WinUI.AutomationNavigationDirection) throws -> Any? {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.Navigate(pThis, direction, &resultAbi))
|
|
}
|
|
}
|
|
return __ABI_.AnyWrapper.unwrapFrom(abi: result)
|
|
}
|
|
|
|
internal func GetClassNameImpl() throws -> String {
|
|
var result: HSTRING?
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetClassName(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func GetClickablePointImpl() throws -> WindowsFoundation.Point {
|
|
var result: __x_ABI_CWindows_CFoundation_CPoint = .init()
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetClickablePoint(pThis, &result))
|
|
}
|
|
return .from(abi: result)
|
|
}
|
|
|
|
internal func GetHelpTextImpl() throws -> String {
|
|
var result: HSTRING?
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetHelpText(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func GetItemStatusImpl() throws -> String {
|
|
var result: HSTRING?
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetItemStatus(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func GetItemTypeImpl() throws -> String {
|
|
var result: HSTRING?
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetItemType(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func GetLabeledByImpl() throws -> WinUI.AutomationPeer? {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetLabeledBy(pThis, &resultAbi))
|
|
}
|
|
}
|
|
return .from(abi: result)
|
|
}
|
|
|
|
internal func GetLocalizedControlTypeImpl() throws -> String {
|
|
var result: HSTRING?
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetLocalizedControlType(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func GetNameImpl() throws -> String {
|
|
var result: HSTRING?
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetName(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func GetOrientationImpl() throws -> WinUI.AutomationOrientation {
|
|
var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationOrientation = .init(0)
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetOrientation(pThis, &result))
|
|
}
|
|
return result
|
|
}
|
|
|
|
internal func HasKeyboardFocusImpl() throws -> Bool {
|
|
var result: boolean = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.HasKeyboardFocus(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func IsContentElementImpl() throws -> Bool {
|
|
var result: boolean = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.IsContentElement(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func IsControlElementImpl() throws -> Bool {
|
|
var result: boolean = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.IsControlElement(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func IsEnabledImpl() throws -> Bool {
|
|
var result: boolean = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.IsEnabled(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func IsKeyboardFocusableImpl() throws -> Bool {
|
|
var result: boolean = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.IsKeyboardFocusable(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func IsOffscreenImpl() throws -> Bool {
|
|
var result: boolean = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.IsOffscreen(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func IsPasswordImpl() throws -> Bool {
|
|
var result: boolean = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.IsPassword(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func IsRequiredForFormImpl() throws -> Bool {
|
|
var result: boolean = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.IsRequiredForForm(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func SetFocusImpl() throws {
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.SetFocus(pThis))
|
|
}
|
|
}
|
|
|
|
internal func GetParentImpl() throws -> WinUI.AutomationPeer? {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetParent(pThis, &resultAbi))
|
|
}
|
|
}
|
|
return .from(abi: result)
|
|
}
|
|
|
|
internal func InvalidatePeerImpl() throws {
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.InvalidatePeer(pThis))
|
|
}
|
|
}
|
|
|
|
internal func GetPeerFromPointImpl(_ point: WindowsFoundation.Point) throws -> WinUI.AutomationPeer? {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetPeerFromPoint(pThis, .from(swift: point), &resultAbi))
|
|
}
|
|
}
|
|
return .from(abi: result)
|
|
}
|
|
|
|
internal func GetElementFromPointImpl(_ pointInWindowCoordinates: WindowsFoundation.Point) throws -> Any? {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetElementFromPoint(pThis, .from(swift: pointInWindowCoordinates), &resultAbi))
|
|
}
|
|
}
|
|
return __ABI_.AnyWrapper.unwrapFrom(abi: result)
|
|
}
|
|
|
|
internal func GetFocusedElementImpl() throws -> Any? {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetFocusedElement(pThis, &resultAbi))
|
|
}
|
|
}
|
|
return __ABI_.AnyWrapper.unwrapFrom(abi: result)
|
|
}
|
|
|
|
internal func GetLiveSettingImpl() throws -> WinUI.AutomationLiveSetting {
|
|
var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationLiveSetting = .init(0)
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetLiveSetting(pThis, &result))
|
|
}
|
|
return result
|
|
}
|
|
|
|
internal func ShowContextMenuImpl() throws {
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.ShowContextMenu(pThis))
|
|
}
|
|
}
|
|
|
|
internal func GetControlledPeersImpl() throws -> WindowsFoundation.AnyIVectorView<WinUI.AutomationPeer?>? {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetControlledPeers(pThis, &resultAbi))
|
|
}
|
|
}
|
|
return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.unwrapFrom(abi: result)
|
|
}
|
|
|
|
internal func GetAnnotationsImpl() throws -> WindowsFoundation.AnyIVector<WinUI.AutomationPeerAnnotation?>? {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetAnnotations(pThis, &resultAbi))
|
|
}
|
|
}
|
|
return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.unwrapFrom(abi: result)
|
|
}
|
|
|
|
internal func SetParentImpl(_ peer: WinUI.AutomationPeer?) throws {
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.SetParent(pThis, RawPointer(peer)))
|
|
}
|
|
}
|
|
|
|
internal func RaiseTextEditTextChangedEventImpl(_ automationTextEditChangeType: WinUI.AutomationTextEditChangeType, _ changedData: WindowsFoundation.AnyIVectorView<String>?) throws {
|
|
let changedDataWrapper = WinUI.__x_ABI_C__FIVectorView_1_HSTRINGWrapper(changedData)
|
|
let _changedData = try! changedDataWrapper?.toABI { $0 }
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.RaiseTextEditTextChangedEvent(pThis, automationTextEditChangeType, _changedData))
|
|
}
|
|
}
|
|
|
|
internal func GetPositionInSetImpl() throws -> Int32 {
|
|
var result: INT32 = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetPositionInSet(pThis, &result))
|
|
}
|
|
return result
|
|
}
|
|
|
|
internal func GetSizeOfSetImpl() throws -> Int32 {
|
|
var result: INT32 = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetSizeOfSet(pThis, &result))
|
|
}
|
|
return result
|
|
}
|
|
|
|
internal func GetLevelImpl() throws -> Int32 {
|
|
var result: INT32 = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetLevel(pThis, &result))
|
|
}
|
|
return result
|
|
}
|
|
|
|
internal func RaiseStructureChangedEventImpl(_ structureChangeType: WinUI.AutomationStructureChangeType, _ child: WinUI.AutomationPeer?) throws {
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.RaiseStructureChangedEvent(pThis, structureChangeType, RawPointer(child)))
|
|
}
|
|
}
|
|
|
|
internal func GetLandmarkTypeImpl() throws -> WinUI.AutomationLandmarkType {
|
|
var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationLandmarkType = .init(0)
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetLandmarkType(pThis, &result))
|
|
}
|
|
return result
|
|
}
|
|
|
|
internal func GetLocalizedLandmarkTypeImpl() throws -> String {
|
|
var result: HSTRING?
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetLocalizedLandmarkType(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func IsPeripheralImpl() throws -> Bool {
|
|
var result: boolean = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.IsPeripheral(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func IsDataValidForFormImpl() throws -> Bool {
|
|
var result: boolean = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.IsDataValidForForm(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func GetFullDescriptionImpl() throws -> String {
|
|
var result: HSTRING?
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetFullDescription(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func GetCultureImpl() throws -> Int32 {
|
|
var result: INT32 = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetCulture(pThis, &result))
|
|
}
|
|
return result
|
|
}
|
|
|
|
internal func RaiseNotificationEventImpl(_ notificationKind: WinUI.AutomationNotificationKind, _ notificationProcessing: WinUI.AutomationNotificationProcessing, _ displayString: String, _ activityId: String) throws {
|
|
let _displayString = try! HString(displayString)
|
|
let _activityId = try! HString(activityId)
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.RaiseNotificationEvent(pThis, notificationKind, notificationProcessing, _displayString.get(), _activityId.get()))
|
|
}
|
|
}
|
|
|
|
internal func GetHeadingLevelImpl() throws -> WinUI.AutomationHeadingLevel {
|
|
var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationHeadingLevel = .init(0)
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetHeadingLevel(pThis, &result))
|
|
}
|
|
return result
|
|
}
|
|
|
|
internal func IsDialogImpl() throws -> Bool {
|
|
var result: boolean = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.IsDialog(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
}
|
|
|
|
public class IAutomationPeerAnnotation: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotation }
|
|
|
|
internal func get_TypeImpl() throws -> WinUI.AnnotationType {
|
|
var value: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType = .init(0)
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotation.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Type(pThis, &value))
|
|
}
|
|
return value
|
|
}
|
|
|
|
internal func put_TypeImpl(_ value: WinUI.AnnotationType) throws {
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotation.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Type(pThis, value))
|
|
}
|
|
}
|
|
|
|
internal func get_PeerImpl() throws -> WinUI.AutomationPeer? {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotation.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Peer(pThis, &valueAbi))
|
|
}
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
internal func put_PeerImpl(_ value: WinUI.AutomationPeer?) throws {
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotation.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Peer(pThis, RawPointer(value)))
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public class IAutomationPeerAnnotationFactory: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotationFactory }
|
|
|
|
internal func CreateInstanceImpl(_ type: WinUI.AnnotationType) throws -> IAutomationPeerAnnotation {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotationFactory.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, type, &valueAbi))
|
|
}
|
|
}
|
|
return IAutomationPeerAnnotation(value!)
|
|
}
|
|
|
|
internal func CreateWithPeerParameterImpl(_ type: WinUI.AnnotationType, _ peer: WinUI.AutomationPeer?) throws -> IAutomationPeerAnnotation {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotationFactory.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateWithPeerParameter(pThis, type, RawPointer(peer), &valueAbi))
|
|
}
|
|
}
|
|
return IAutomationPeerAnnotation(value!)
|
|
}
|
|
|
|
}
|
|
|
|
public class IAutomationPeerAnnotationStatics: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotationStatics }
|
|
|
|
internal func get_TypePropertyImpl() throws -> WinUI.DependencyProperty? {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotationStatics.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_TypeProperty(pThis, &valueAbi))
|
|
}
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
internal func get_PeerPropertyImpl() throws -> WinUI.DependencyProperty? {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotationStatics.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_PeerProperty(pThis, &valueAbi))
|
|
}
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
}
|
|
|
|
public class IAutomationPeerFactory: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerFactory }
|
|
|
|
internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper<WinUI.AutomationPeer.Composable>?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IAutomationPeer {
|
|
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_CAutomation_CPeers_CIAutomationPeerFactory.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi))
|
|
}
|
|
}
|
|
innerInterface = WindowsFoundation.IInspectable(_innerInterface!)
|
|
}
|
|
return IAutomationPeer(value!)
|
|
}
|
|
|
|
}
|
|
|
|
public class IAutomationPeerOverrides: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides }
|
|
|
|
internal func GetPatternCoreImpl(_ patternInterface: WinUI.PatternInterface) throws -> Any? {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetPatternCore(pThis, patternInterface, &resultAbi))
|
|
}
|
|
}
|
|
return __ABI_.AnyWrapper.unwrapFrom(abi: result)
|
|
}
|
|
|
|
internal func GetAcceleratorKeyCoreImpl() throws -> String {
|
|
var result: HSTRING?
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetAcceleratorKeyCore(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func GetAccessKeyCoreImpl() throws -> String {
|
|
var result: HSTRING?
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetAccessKeyCore(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func GetAutomationControlTypeCoreImpl() throws -> WinUI.AutomationControlType {
|
|
var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType = .init(0)
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetAutomationControlTypeCore(pThis, &result))
|
|
}
|
|
return result
|
|
}
|
|
|
|
internal func GetAutomationIdCoreImpl() throws -> String {
|
|
var result: HSTRING?
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetAutomationIdCore(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func GetBoundingRectangleCoreImpl() throws -> WindowsFoundation.Rect {
|
|
var result: __x_ABI_CWindows_CFoundation_CRect = .init()
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetBoundingRectangleCore(pThis, &result))
|
|
}
|
|
return .from(abi: result)
|
|
}
|
|
|
|
internal func GetChildrenCoreImpl() throws -> WindowsFoundation.AnyIVector<WinUI.AutomationPeer?>? {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetChildrenCore(pThis, &resultAbi))
|
|
}
|
|
}
|
|
return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.unwrapFrom(abi: result)
|
|
}
|
|
|
|
internal func NavigateCoreImpl(_ direction: WinUI.AutomationNavigationDirection) throws -> Any? {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.NavigateCore(pThis, direction, &resultAbi))
|
|
}
|
|
}
|
|
return __ABI_.AnyWrapper.unwrapFrom(abi: result)
|
|
}
|
|
|
|
internal func GetClassNameCoreImpl() throws -> String {
|
|
var result: HSTRING?
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetClassNameCore(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func GetClickablePointCoreImpl() throws -> WindowsFoundation.Point {
|
|
var result: __x_ABI_CWindows_CFoundation_CPoint = .init()
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetClickablePointCore(pThis, &result))
|
|
}
|
|
return .from(abi: result)
|
|
}
|
|
|
|
internal func GetHelpTextCoreImpl() throws -> String {
|
|
var result: HSTRING?
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetHelpTextCore(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func GetItemStatusCoreImpl() throws -> String {
|
|
var result: HSTRING?
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetItemStatusCore(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func GetItemTypeCoreImpl() throws -> String {
|
|
var result: HSTRING?
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetItemTypeCore(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func GetLabeledByCoreImpl() throws -> WinUI.AutomationPeer? {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetLabeledByCore(pThis, &resultAbi))
|
|
}
|
|
}
|
|
return .from(abi: result)
|
|
}
|
|
|
|
internal func GetLocalizedControlTypeCoreImpl() throws -> String {
|
|
var result: HSTRING?
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetLocalizedControlTypeCore(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func GetNameCoreImpl() throws -> String {
|
|
var result: HSTRING?
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetNameCore(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func GetOrientationCoreImpl() throws -> WinUI.AutomationOrientation {
|
|
var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationOrientation = .init(0)
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetOrientationCore(pThis, &result))
|
|
}
|
|
return result
|
|
}
|
|
|
|
internal func HasKeyboardFocusCoreImpl() throws -> Bool {
|
|
var result: boolean = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.HasKeyboardFocusCore(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func IsContentElementCoreImpl() throws -> Bool {
|
|
var result: boolean = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.IsContentElementCore(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func IsControlElementCoreImpl() throws -> Bool {
|
|
var result: boolean = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.IsControlElementCore(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func IsEnabledCoreImpl() throws -> Bool {
|
|
var result: boolean = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.IsEnabledCore(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func IsKeyboardFocusableCoreImpl() throws -> Bool {
|
|
var result: boolean = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.IsKeyboardFocusableCore(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func IsOffscreenCoreImpl() throws -> Bool {
|
|
var result: boolean = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.IsOffscreenCore(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func IsPasswordCoreImpl() throws -> Bool {
|
|
var result: boolean = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.IsPasswordCore(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func IsRequiredForFormCoreImpl() throws -> Bool {
|
|
var result: boolean = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.IsRequiredForFormCore(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func SetFocusCoreImpl() throws {
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.SetFocusCore(pThis))
|
|
}
|
|
}
|
|
|
|
internal func GetPeerFromPointCoreImpl(_ point: WindowsFoundation.Point) throws -> WinUI.AutomationPeer? {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetPeerFromPointCore(pThis, .from(swift: point), &resultAbi))
|
|
}
|
|
}
|
|
return .from(abi: result)
|
|
}
|
|
|
|
internal func GetElementFromPointCoreImpl(_ pointInWindowCoordinates: WindowsFoundation.Point) throws -> Any? {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetElementFromPointCore(pThis, .from(swift: pointInWindowCoordinates), &resultAbi))
|
|
}
|
|
}
|
|
return __ABI_.AnyWrapper.unwrapFrom(abi: result)
|
|
}
|
|
|
|
internal func GetFocusedElementCoreImpl() throws -> Any? {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetFocusedElementCore(pThis, &resultAbi))
|
|
}
|
|
}
|
|
return __ABI_.AnyWrapper.unwrapFrom(abi: result)
|
|
}
|
|
|
|
internal func GetLiveSettingCoreImpl() throws -> WinUI.AutomationLiveSetting {
|
|
var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationLiveSetting = .init(0)
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetLiveSettingCore(pThis, &result))
|
|
}
|
|
return result
|
|
}
|
|
|
|
internal func ShowContextMenuCoreImpl() throws {
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.ShowContextMenuCore(pThis))
|
|
}
|
|
}
|
|
|
|
internal func GetControlledPeersCoreImpl() throws -> WindowsFoundation.AnyIVectorView<WinUI.AutomationPeer?>? {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetControlledPeersCore(pThis, &resultAbi))
|
|
}
|
|
}
|
|
return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.unwrapFrom(abi: result)
|
|
}
|
|
|
|
internal func GetAnnotationsCoreImpl() throws -> WindowsFoundation.AnyIVector<WinUI.AutomationPeerAnnotation?>? {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetAnnotationsCore(pThis, &resultAbi))
|
|
}
|
|
}
|
|
return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.unwrapFrom(abi: result)
|
|
}
|
|
|
|
internal func GetPositionInSetCoreImpl() throws -> Int32 {
|
|
var result: INT32 = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetPositionInSetCore(pThis, &result))
|
|
}
|
|
return result
|
|
}
|
|
|
|
internal func GetSizeOfSetCoreImpl() throws -> Int32 {
|
|
var result: INT32 = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetSizeOfSetCore(pThis, &result))
|
|
}
|
|
return result
|
|
}
|
|
|
|
internal func GetLevelCoreImpl() throws -> Int32 {
|
|
var result: INT32 = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetLevelCore(pThis, &result))
|
|
}
|
|
return result
|
|
}
|
|
|
|
internal func GetLandmarkTypeCoreImpl() throws -> WinUI.AutomationLandmarkType {
|
|
var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationLandmarkType = .init(0)
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetLandmarkTypeCore(pThis, &result))
|
|
}
|
|
return result
|
|
}
|
|
|
|
internal func GetLocalizedLandmarkTypeCoreImpl() throws -> String {
|
|
var result: HSTRING?
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetLocalizedLandmarkTypeCore(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func IsPeripheralCoreImpl() throws -> Bool {
|
|
var result: boolean = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.IsPeripheralCore(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func IsDataValidForFormCoreImpl() throws -> Bool {
|
|
var result: boolean = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.IsDataValidForFormCore(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func GetFullDescriptionCoreImpl() throws -> String {
|
|
var result: HSTRING?
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetFullDescriptionCore(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func GetDescribedByCoreImpl() throws -> WindowsFoundation.AnyIIterable<WinUI.AutomationPeer?>? {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetDescribedByCore(pThis, &resultAbi))
|
|
}
|
|
}
|
|
return WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.unwrapFrom(abi: result)
|
|
}
|
|
|
|
internal func GetFlowsToCoreImpl() throws -> WindowsFoundation.AnyIIterable<WinUI.AutomationPeer?>? {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetFlowsToCore(pThis, &resultAbi))
|
|
}
|
|
}
|
|
return WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.unwrapFrom(abi: result)
|
|
}
|
|
|
|
internal func GetFlowsFromCoreImpl() throws -> WindowsFoundation.AnyIIterable<WinUI.AutomationPeer?>? {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetFlowsFromCore(pThis, &resultAbi))
|
|
}
|
|
}
|
|
return WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.unwrapFrom(abi: result)
|
|
}
|
|
|
|
internal func GetCultureCoreImpl() throws -> Int32 {
|
|
var result: INT32 = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetCultureCore(pThis, &result))
|
|
}
|
|
return result
|
|
}
|
|
|
|
internal func GetHeadingLevelCoreImpl() throws -> WinUI.AutomationHeadingLevel {
|
|
var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationHeadingLevel = .init(0)
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetHeadingLevelCore(pThis, &result))
|
|
}
|
|
return result
|
|
}
|
|
|
|
internal func IsDialogCoreImpl() throws -> Bool {
|
|
var result: boolean = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.IsDialogCore(pThis, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
}
|
|
|
|
public class IAutomationPeerProtected: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerProtected }
|
|
|
|
internal func PeerFromProviderImpl(_ provider: WinUI.IRawElementProviderSimple?) throws -> WinUI.AutomationPeer? {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerProtected.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.PeerFromProvider(pThis, RawPointer(provider), &resultAbi))
|
|
}
|
|
}
|
|
return .from(abi: result)
|
|
}
|
|
|
|
internal func ProviderFromPeerImpl(_ peer: WinUI.AutomationPeer?) throws -> WinUI.IRawElementProviderSimple? {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerProtected.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.ProviderFromPeer(pThis, RawPointer(peer), &resultAbi))
|
|
}
|
|
}
|
|
return .from(abi: result)
|
|
}
|
|
|
|
}
|
|
|
|
public class IAutomationPeerStatics: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerStatics }
|
|
|
|
internal func ListenerExistsImpl(_ eventId: WinUI.AutomationEvents) throws -> Bool {
|
|
var result: boolean = 0
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerStatics.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.ListenerExists(pThis, eventId, &result))
|
|
}
|
|
return .init(from: result)
|
|
}
|
|
|
|
internal func GenerateRawElementProviderRuntimeIdImpl() throws -> WinUI.RawElementProviderRuntimeId {
|
|
var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CRawElementProviderRuntimeId = .init()
|
|
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerStatics.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GenerateRawElementProviderRuntimeId(pThis, &result))
|
|
}
|
|
return .from(abi: result)
|
|
}
|
|
|
|
}
|
|
|
|
internal typealias IAutomationPeerOverridesWrapper = UnsealedWinRTClassWrapper<WinUI.AutomationPeer.IAutomationPeerOverrides>
|
|
internal static var IAutomationPeerOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverridesVtbl = .init(
|
|
QueryInterface: { IAutomationPeerOverridesWrapper.queryInterface($0, $1, $2) },
|
|
AddRef: { IAutomationPeerOverridesWrapper.addRef($0) },
|
|
Release: { IAutomationPeerOverridesWrapper.release($0) },
|
|
GetIids: {
|
|
let size = MemoryLayout<WindowsFoundation.IID>.size
|
|
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
|
|
iids[0] = IUnknown.IID
|
|
iids[1] = IInspectable.IID
|
|
iids[2] = __ABI_Microsoft_UI_Xaml_Automation_Peers.IAutomationPeerOverridesWrapper.IID
|
|
$1!.pointee = 3
|
|
$2!.pointee = iids
|
|
return S_OK
|
|
},
|
|
|
|
GetRuntimeClassName: {
|
|
guard let instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let hstring = instance.GetRuntimeClassName().detach()
|
|
$1!.pointee = hstring
|
|
return S_OK
|
|
},
|
|
|
|
GetTrustLevel: {
|
|
_ = $0
|
|
$1!.pointee = TrustLevel(rawValue: 0)
|
|
return S_OK
|
|
},
|
|
|
|
GetPatternCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let patternInterface: WinUI.PatternInterface = $1
|
|
let result = try __unwrapped__instance.getPatternCore(patternInterface)
|
|
let resultWrapper = __ABI_.AnyWrapper(result)
|
|
resultWrapper?.copyTo($2)
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetAcceleratorKeyCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getAcceleratorKeyCore()
|
|
$1?.initialize(to: try! HString(result).detach())
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetAccessKeyCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getAccessKeyCore()
|
|
$1?.initialize(to: try! HString(result).detach())
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetAutomationControlTypeCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getAutomationControlTypeCore()
|
|
$1?.initialize(to: result)
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetAutomationIdCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getAutomationIdCore()
|
|
$1?.initialize(to: try! HString(result).detach())
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetBoundingRectangleCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getBoundingRectangleCore()
|
|
$1?.initialize(to: .from(swift: result))
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetChildrenCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getChildrenCore()
|
|
let resultWrapper = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper(result)
|
|
resultWrapper?.copyTo($1)
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
NavigateCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let direction: WinUI.AutomationNavigationDirection = $1
|
|
let result = try __unwrapped__instance.navigateCore(direction)
|
|
let resultWrapper = __ABI_.AnyWrapper(result)
|
|
resultWrapper?.copyTo($2)
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetClassNameCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getClassNameCore()
|
|
$1?.initialize(to: try! HString(result).detach())
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetClickablePointCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getClickablePointCore()
|
|
$1?.initialize(to: .from(swift: result))
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetHelpTextCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getHelpTextCore()
|
|
$1?.initialize(to: try! HString(result).detach())
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetItemStatusCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getItemStatusCore()
|
|
$1?.initialize(to: try! HString(result).detach())
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetItemTypeCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getItemTypeCore()
|
|
$1?.initialize(to: try! HString(result).detach())
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetLabeledByCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getLabeledByCore()
|
|
result?.copyTo($1)
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetLocalizedControlTypeCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getLocalizedControlTypeCore()
|
|
$1?.initialize(to: try! HString(result).detach())
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetNameCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getNameCore()
|
|
$1?.initialize(to: try! HString(result).detach())
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetOrientationCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getOrientationCore()
|
|
$1?.initialize(to: result)
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
HasKeyboardFocusCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.hasKeyboardFocusCore()
|
|
$1?.initialize(to: .init(from: result))
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
IsContentElementCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.isContentElementCore()
|
|
$1?.initialize(to: .init(from: result))
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
IsControlElementCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.isControlElementCore()
|
|
$1?.initialize(to: .init(from: result))
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
IsEnabledCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.isEnabledCore()
|
|
$1?.initialize(to: .init(from: result))
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
IsKeyboardFocusableCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.isKeyboardFocusableCore()
|
|
$1?.initialize(to: .init(from: result))
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
IsOffscreenCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.isOffscreenCore()
|
|
$1?.initialize(to: .init(from: result))
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
IsPasswordCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.isPasswordCore()
|
|
$1?.initialize(to: .init(from: result))
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
IsRequiredForFormCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.isRequiredForFormCore()
|
|
$1?.initialize(to: .init(from: result))
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
SetFocusCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
try __unwrapped__instance.setFocusCore()
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetPeerFromPointCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let point: WindowsFoundation.Point = .from(abi: $1)
|
|
let result = try __unwrapped__instance.getPeerFromPointCore(point)
|
|
result?.copyTo($2)
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetElementFromPointCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let pointInWindowCoordinates: WindowsFoundation.Point = .from(abi: $1)
|
|
let result = try __unwrapped__instance.getElementFromPointCore(pointInWindowCoordinates)
|
|
let resultWrapper = __ABI_.AnyWrapper(result)
|
|
resultWrapper?.copyTo($2)
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetFocusedElementCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getFocusedElementCore()
|
|
let resultWrapper = __ABI_.AnyWrapper(result)
|
|
resultWrapper?.copyTo($1)
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetLiveSettingCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getLiveSettingCore()
|
|
$1?.initialize(to: result)
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
ShowContextMenuCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
try __unwrapped__instance.showContextMenuCore()
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetControlledPeersCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getControlledPeersCore()
|
|
let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper(result)
|
|
resultWrapper?.copyTo($1)
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetAnnotationsCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getAnnotationsCore()
|
|
let resultWrapper = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper(result)
|
|
resultWrapper?.copyTo($1)
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetPositionInSetCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getPositionInSetCore()
|
|
$1?.initialize(to: result)
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetSizeOfSetCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getSizeOfSetCore()
|
|
$1?.initialize(to: result)
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetLevelCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getLevelCore()
|
|
$1?.initialize(to: result)
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetLandmarkTypeCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getLandmarkTypeCore()
|
|
$1?.initialize(to: result)
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetLocalizedLandmarkTypeCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getLocalizedLandmarkTypeCore()
|
|
$1?.initialize(to: try! HString(result).detach())
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
IsPeripheralCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.isPeripheralCore()
|
|
$1?.initialize(to: .init(from: result))
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
IsDataValidForFormCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.isDataValidForFormCore()
|
|
$1?.initialize(to: .init(from: result))
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetFullDescriptionCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getFullDescriptionCore()
|
|
$1?.initialize(to: try! HString(result).detach())
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetDescribedByCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getDescribedByCore()
|
|
let resultWrapper = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper(result)
|
|
resultWrapper?.copyTo($1)
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetFlowsToCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getFlowsToCore()
|
|
let resultWrapper = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper(result)
|
|
resultWrapper?.copyTo($1)
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetFlowsFromCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getFlowsFromCore()
|
|
let resultWrapper = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper(result)
|
|
resultWrapper?.copyTo($1)
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetCultureCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getCultureCore()
|
|
$1?.initialize(to: result)
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
GetHeadingLevelCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.getHeadingLevelCore()
|
|
$1?.initialize(to: result)
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
},
|
|
|
|
IsDialogCore: {
|
|
do {
|
|
guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
|
|
let result = try __unwrapped__instance.isDialogCore()
|
|
$1?.initialize(to: .init(from: result))
|
|
return S_OK
|
|
} catch { return failWith(err: E_FAIL) }
|
|
}
|
|
)
|
|
}
|
|
extension __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CRawElementProviderRuntimeId {
|
|
public static func from(swift: WinUI.RawElementProviderRuntimeId) -> __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CRawElementProviderRuntimeId {
|
|
.init(Part1: swift.part1, Part2: swift.part2)
|
|
}
|
|
}
|
|
extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides {
|
|
public static func makeAbi() -> CABI {
|
|
let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Automation_Peers.IAutomationPeerOverridesVTable) { $0 }
|
|
return .init(lpVtbl: vtblPtr)
|
|
}
|
|
}
|