swift-winui/Sources/WinUI/Generated/Microsoft.UI.Xaml+ABI.swift
2024-02-15 17:16:00 -08:00

7110 lines
356 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 UWP
@_spi(WinRTInternal) @_spi(WinRTImplements) import WinAppSDK
@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation
import CWinRT
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplication: WindowsFoundation.IID {
.init(Data1: 0x06A8F4E7, Data2: 0x1146, Data3: 0x55AF, Data4: ( 0x82,0x0D,0xEB,0xD5,0x56,0x43,0xB0,0x21 ))// 06A8F4E7-1146-55AF-820D-EBD55643B021
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplication2: WindowsFoundation.IID {
.init(Data1: 0x469E6D36, Data2: 0x2E11, Data3: 0x5B06, Data4: ( 0x9E,0x0A,0xC5,0xEE,0xF0,0xCF,0x8F,0x12 ))// 469E6D36-2E11-5B06-9E0A-C5EEF0CF8F12
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplication3: WindowsFoundation.IID {
.init(Data1: 0xBE941595, Data2: 0x61FE, Data3: 0x5B36, Data4: ( 0xA3,0xD3,0x96,0x2A,0x64,0x7D,0x7C,0x6F ))// BE941595-61FE-5B36-A3D3-962A647D7C6F
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplicationFactory: WindowsFoundation.IID {
.init(Data1: 0x9FD96657, Data2: 0x5294, Data3: 0x5A65, Data4: ( 0xA1,0xDB,0x4F,0xEA,0x14,0x35,0x97,0xDA ))// 9FD96657-5294-5A65-A1DB-4FEA143597DA
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplicationInitializationCallbackParams: WindowsFoundation.IID {
.init(Data1: 0x1B1906EA, Data2: 0x5B7B, Data3: 0x5876, Data4: ( 0x81,0xAB,0x7C,0x22,0x81,0xAC,0x3D,0x20 ))// 1B1906EA-5B7B-5876-81AB-7C2281AC3D20
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplicationOverrides: WindowsFoundation.IID {
.init(Data1: 0xA33E81EF, Data2: 0xC665, Data3: 0x503B, Data4: ( 0x88,0x27,0xD2,0x7E,0xF1,0x72,0x0A,0x06 ))// A33E81EF-C665-503B-8827-D27EF1720A06
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplicationStatics: WindowsFoundation.IID {
.init(Data1: 0x4E0D09F5, Data2: 0x4358, Data3: 0x512C, Data4: ( 0xA9,0x87,0x50,0x3B,0x52,0x84,0x8E,0x95 ))// 4E0D09F5-4358-512C-A987-503B52848E95
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIBindingFailedEventArgs: WindowsFoundation.IID {
.init(Data1: 0xA7BF50F3, Data2: 0xDBC0, Data3: 0x5B44, Data4: ( 0xBE,0x74,0x56,0xE8,0xF8,0x0F,0xD7,0x16 ))// A7BF50F3-DBC0-5B44-BE74-56E8F80FD716
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions: WindowsFoundation.IID {
.init(Data1: 0xEEB4A447, Data2: 0xEB9E, Data3: 0x5003, Data4: ( 0xA4,0x79,0xB9,0xE3,0xA8,0x86,0xB7,0x08 ))// EEB4A447-EB9E-5003-A479-B9E3A886B708
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs: WindowsFoundation.IID {
.init(Data1: 0x807DE8F9, Data2: 0xB1DC, Data3: 0x5A63, Data4: ( 0x81,0x01,0x5E,0xE9,0x66,0x84,0x1A,0x27 ))// 807DE8F9-B1DC-5A63-8101-5EE966841A27
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIBrushTransition: WindowsFoundation.IID {
.init(Data1: 0xA996A7BA, Data2: 0x4567, Data3: 0x5963, Data4: ( 0xA1,0x12,0x76,0xE3,0xC0,0x00,0x02,0x04 ))// A996A7BA-4567-5963-A112-76E3C0000204
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIBrushTransitionFactory: WindowsFoundation.IID {
.init(Data1: 0x13735998, Data2: 0xC3B6, Data3: 0x5C24, Data4: ( 0xB4,0x0A,0x7B,0x16,0x6A,0x6F,0xFC,0x2C ))// 13735998-C3B6-5C24-B40A-7B166A6FFC2C
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDataContextChangedEventArgs: WindowsFoundation.IID {
.init(Data1: 0xA1BE80F4, Data2: 0xCF83, Data3: 0x5022, Data4: ( 0xB1,0x13,0x92,0x33,0xF1,0xD4,0xFA,0xFA ))// A1BE80F4-CF83-5022-B113-9233F1D4FAFA
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplate: WindowsFoundation.IID {
.init(Data1: 0x08FA70FA, Data2: 0xEE75, Data3: 0x5E92, Data4: ( 0xA1,0x01,0xF5,0x2D,0x0E,0x1E,0x9F,0xAB ))// 08FA70FA-EE75-5E92-A101-F52D0E1E9FAB
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateExtension: WindowsFoundation.IID {
.init(Data1: 0x351E63C4, Data2: 0x8FA3, Data3: 0x5CC3, Data4: ( 0xB0,0x73,0x7F,0x84,0xBA,0xA6,0x48,0x5D ))// 351E63C4-8FA3-5CC3-B073-7F84BAA6485D
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateFactory: WindowsFoundation.IID {
.init(Data1: 0xD8E8249D, Data2: 0x305B, Data3: 0x5CA5, Data4: ( 0xAC,0xF8,0x3E,0x1B,0xEF,0xFD,0x02,0x19 ))// D8E8249D-305B-5CA5-ACF8-3E1BEFFD0219
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateStatics: WindowsFoundation.IID {
.init(Data1: 0xCF6ADA69, Data2: 0x4BF1, Data3: 0x5F2D, Data4: ( 0x8B,0xDB,0x09,0xEA,0x1A,0x26,0xF9,0x75 ))// CF6ADA69-4BF1-5F2D-8BDB-09EA1A26F975
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings: WindowsFoundation.IID {
.init(Data1: 0x4004943B, Data2: 0x2509, Data3: 0x5476, Data4: ( 0xBB,0xA2,0x3F,0xE0,0x5E,0xCF,0x61,0x5D ))// 4004943B-2509-5476-BBA2-3FE05ECF615D
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings2: WindowsFoundation.IID {
.init(Data1: 0x6DFB6F51, Data2: 0xD2F8, Data3: 0x59C4, Data4: ( 0x8B,0xCA,0x44,0x10,0x92,0x95,0x77,0xD0 ))// 6DFB6F51-D2F8-59C4-8BCA-4410929577D0
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings3: WindowsFoundation.IID {
.init(Data1: 0x36135BD5, Data2: 0x3917, Data3: 0x5C8D, Data4: ( 0xA3,0xC6,0x2F,0xC8,0x9A,0x50,0x3F,0x26 ))// 36135BD5-3917-5C8D-A3C6-2FC89A503F26
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObject: WindowsFoundation.IID {
.init(Data1: 0xE7BEAEE7, Data2: 0x160E, Data3: 0x50F7, Data4: ( 0x87,0x89,0xD6,0x34,0x63,0xF9,0x79,0xFA ))// E7BEAEE7-160E-50F7-8789-D63463F979FA
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObjectFactory: WindowsFoundation.IID {
.init(Data1: 0x936B614C, Data2: 0x475F, Data3: 0x5D7D, Data4: ( 0xB3,0xF7,0xBF,0x1F,0xBE,0xA2,0x81,0x26 ))// 936B614C-475F-5D7D-B3F7-BF1FBEA28126
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyProperty: WindowsFoundation.IID {
.init(Data1: 0x960EAB49, Data2: 0x9672, Data3: 0x58A0, Data4: ( 0x99,0x5B,0x3A,0x42,0xE5,0xEA,0x62,0x78 ))// 960EAB49-9672-58A0-995B-3A42E5EA6278
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedEventArgs: WindowsFoundation.IID {
.init(Data1: 0x84EAD020, Data2: 0x7849, Data3: 0x5E98, Data4: ( 0x80,0x30,0x48,0x8A,0x80,0xD1,0x64,0xEC ))// 84EAD020-7849-5E98-8030-488A80D164EC
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyStatics: WindowsFoundation.IID {
.init(Data1: 0x61DDC651, Data2: 0x0383, Data3: 0x5D6F, Data4: ( 0x98,0xCE,0x5C,0x04,0x6A,0xAA,0xAA,0x8F ))// 61DDC651-0383-5D6F-98CE-5C046AAAAA8F
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs: WindowsFoundation.IID {
.init(Data1: 0x47AC5757, Data2: 0xE4BC, Data3: 0x52BA, Data4: ( 0x8A,0xB9,0x1B,0xF8,0x1A,0xAD,0x79,0x00 ))// 47AC5757-E4BC-52BA-8AB9-1BF81AAD7900
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDragOperationDeferral: WindowsFoundation.IID {
.init(Data1: 0x462C1880, Data2: 0xFC6A, Data3: 0x5035, Data4: ( 0x8A,0xBF,0x56,0x4B,0xAC,0xB7,0x81,0x58 ))// 462C1880-FC6A-5035-8ABF-564BACB78158
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDragStartingEventArgs: WindowsFoundation.IID {
.init(Data1: 0xAD17BACE, Data2: 0x9613, Data3: 0x5666, Data4: ( 0xA3,0x1B,0x79,0xA7,0x3F,0xBA,0x77,0xCF ))// AD17BACE-9613-5666-A31B-79A73FBA77CF
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDragUI: WindowsFoundation.IID {
.init(Data1: 0x35F170E0, Data2: 0x93BF, Data3: 0x58DA, Data4: ( 0x87,0x7A,0x8E,0xC7,0x7D,0x8D,0x9F,0x00 ))// 35F170E0-93BF-58DA-877A-8EC77D8D9F00
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride: WindowsFoundation.IID {
.init(Data1: 0x3260B18B, Data2: 0x70DF, Data3: 0x5DF2, Data4: ( 0xB9,0x8A,0x56,0xBE,0xB0,0x60,0x1F,0x79 ))// 3260B18B-70DF-5DF2-B98A-56BEB0601F79
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDropCompletedEventArgs: WindowsFoundation.IID {
.init(Data1: 0xE700082D, Data2: 0xC640, Data3: 0x5D44, Data4: ( 0xB2,0x3A,0xF2,0x13,0xDF,0xBE,0xB2,0x45 ))// E700082D-C640-5D44-B23A-F213DFBEB245
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIEffectiveViewportChangedEventArgs: WindowsFoundation.IID {
.init(Data1: 0x636E8159, Data2: 0x2D82, Data3: 0x538A, Data4: ( 0x84,0x83,0xCD,0x57,0x6E,0x41,0xD0,0xDF ))// 636E8159-2D82-538A-8483-CD576E41D0DF
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIElementFactory: WindowsFoundation.IID {
.init(Data1: 0x75FABA47, Data2: 0x2CF2, Data3: 0x54AE, Data4: ( 0x91,0xE6,0x05,0x81,0x55,0x6F,0xDD,0xAA ))// 75FABA47-2CF2-54AE-91E6-0581556FDDAA
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryGetArgs: WindowsFoundation.IID {
.init(Data1: 0xB7017D68, Data2: 0xEC9E, Data3: 0x5435, Data4: ( 0xB0,0x78,0xBE,0x6F,0x90,0x6F,0x09,0x53 ))// B7017D68-EC9E-5435-B078-BE6F906F0953
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryGetArgsFactory: WindowsFoundation.IID {
.init(Data1: 0xA88E401B, Data2: 0x9FE5, Data3: 0x5960, Data4: ( 0x87,0xA3,0x89,0xA3,0xCF,0xE2,0x53,0x1C ))// A88E401B-9FE5-5960-87A3-89A3CFE2531C
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryRecycleArgs: WindowsFoundation.IID {
.init(Data1: 0x46E444F7, Data2: 0x05D3, Data3: 0x5C5E, Data4: ( 0x9B,0x7A,0x55,0x41,0xF6,0x3E,0x4E,0xF9 ))// 46E444F7-05D3-5C5E-9B7A-5541F63E4EF9
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryRecycleArgsFactory: WindowsFoundation.IID {
.init(Data1: 0x30EE194A, Data2: 0xFE4D, Data3: 0x53E7, Data4: ( 0xA8,0x4A,0xCD,0x34,0xFA,0xB0,0xD4,0xEF ))// 30EE194A-FE4D-53E7-A84A-CD34FAB0D4EF
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIExceptionRoutedEventArgs: WindowsFoundation.IID {
.init(Data1: 0xE8BCB6D2, Data2: 0xD3F5, Data3: 0x5393, Data4: ( 0xA8,0x4F,0xDF,0xCD,0x44,0xA2,0xDF,0x34 ))// E8BCB6D2-D3F5-5393-A84F-DFCD44A2DF34
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIExceptionRoutedEventArgsFactory: WindowsFoundation.IID {
.init(Data1: 0xE1E71FB6, Data2: 0x2AD0, Data3: 0x5189, Data4: ( 0x8D,0x96,0x33,0xBA,0xE4,0x88,0xC5,0xFB ))// E1E71FB6-2AD0-5189-8D96-33BAE488C5FB
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement: WindowsFoundation.IID {
.init(Data1: 0xFE08F13D, Data2: 0xDC6A, Data3: 0x5495, Data4: ( 0xAD,0x44,0xC2,0xD8,0xD2,0x18,0x63,0xB0 ))// FE08F13D-DC6A-5495-AD44-C2D8D21863B0
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementFactory: WindowsFoundation.IID {
.init(Data1: 0xBD3F2272, Data2: 0x3EFA, Data3: 0x5F92, Data4: ( 0xB7,0x59,0x90,0xB1,0xCC,0x3E,0x78,0x4C ))// BD3F2272-3EFA-5F92-B759-90B1CC3E784C
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides: WindowsFoundation.IID {
.init(Data1: 0xFFC6FD98, Data2: 0xF38C, Data3: 0x5904, Data4: ( 0x9C,0xE4,0x97,0xA3,0x42,0x7C,0xF4,0xBA ))// FFC6FD98-F38C-5904-9CE4-97A3427CF4BA
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementProtected: WindowsFoundation.IID {
.init(Data1: 0xE59A3DB0, Data2: 0x91E5, Data3: 0x5903, Data4: ( 0x9C,0xAF,0xD1,0xBB,0x9F,0x45,0x8B,0xF2 ))// E59A3DB0-91E5-5903-9CAF-D1BB9F458BF2
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics: WindowsFoundation.IID {
.init(Data1: 0x894E2704, Data2: 0x14E7, Data3: 0x569A, Data4: ( 0xB2,0x1E,0xAF,0xC7,0xDF,0x71,0x45,0xA1 ))// 894E2704-14E7-569A-B21E-AFC7DF7145A1
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkTemplate: WindowsFoundation.IID {
.init(Data1: 0x0084C7C2, Data2: 0xDE48, Data3: 0x5B0B, Data4: ( 0x8A,0x5A,0xE4,0xFB,0x76,0xB7,0xF7,0xD1 ))// 0084C7C2-DE48-5B0B-8A5A-E4FB76B7F7D1
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkTemplateFactory: WindowsFoundation.IID {
.init(Data1: 0x616DD6DB, Data2: 0xB064, Data3: 0x561D, Data4: ( 0xB1,0x62,0x46,0xCE,0xB4,0x5D,0xC5,0x62 ))// 616DD6DB-B064-561D-B162-46CEB45DC562
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CILaunchActivatedEventArgs: WindowsFoundation.IID {
.init(Data1: 0xD505CEA9, Data2: 0x1BCB, Data3: 0x5B29, Data4: ( 0xA8,0xBE,0x94,0x4E,0x00,0xF0,0x6F,0x78 ))// D505CEA9-1BCB-5B29-A8BE-944E00F06F78
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadata: WindowsFoundation.IID {
.init(Data1: 0xB3644425, Data2: 0x9464, Data3: 0x5434, Data4: ( 0xB0,0xAE,0xAF,0xF8,0xD3,0x15,0x9F,0xE1 ))// B3644425-9464-5434-B0AE-AFF8D3159FE1
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadataFactory: WindowsFoundation.IID {
.init(Data1: 0x9F420906, Data2: 0x111A, Data3: 0x5465, Data4: ( 0x91,0xEE,0xBE,0xD1,0x4B,0x3E,0x7F,0xEC ))// 9F420906-111A-5465-91EE-BED14B3E7FEC
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadataStatics: WindowsFoundation.IID {
.init(Data1: 0x37B8ADD4, Data2: 0x7A4A, Data3: 0x5CF7, Data4: ( 0xA1,0x74,0x23,0x51,0x82,0xCD,0x08,0x2E ))// 37B8ADD4-7A4A-5CF7-A174-235182CD082E
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIPropertyPath: WindowsFoundation.IID {
.init(Data1: 0x8B0712F6, Data2: 0x9E57, Data3: 0x53B0, Data4: ( 0x80,0xB1,0x96,0x6A,0x79,0xF6,0x0B,0x96 ))// 8B0712F6-9E57-53B0-80B1-966A79F60B96
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIPropertyPathFactory: WindowsFoundation.IID {
.init(Data1: 0x08A8CCAB, Data2: 0x7FF8, Data3: 0x5CEC, Data4: ( 0xBD,0x3C,0x72,0xC9,0x88,0x04,0xD9,0x89 ))// 08A8CCAB-7FF8-5CEC-BD3C-72C98804D989
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIResourceDictionary: WindowsFoundation.IID {
.init(Data1: 0x1B690975, Data2: 0xA710, Data3: 0x5783, Data4: ( 0xA6,0xE1,0x15,0x83,0x6F,0x61,0x86,0xC2 ))// 1B690975-A710-5783-A6E1-15836F6186C2
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIResourceDictionaryFactory: WindowsFoundation.IID {
.init(Data1: 0xEA22A48F, Data2: 0xAB71, Data3: 0x56F6, Data4: ( 0xA3,0x92,0xD8,0x23,0x10,0xC8,0xAA,0x7B ))// EA22A48F-AB71-56F6-A392-D82310C8AA7B
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIResourceManagerRequestedEventArgs: WindowsFoundation.IID {
.init(Data1: 0xC35F4CF1, Data2: 0xFCD6, Data3: 0x5C6B, Data4: ( 0x9B,0xE2,0x4C,0xFA,0xEF,0xB6,0x8B,0x2A ))// C35F4CF1-FCD6-5C6B-9BE2-4CFAEFB68B2A
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEvent: WindowsFoundation.IID {
.init(Data1: 0xB2B432BC, Data2: 0xEFCA, Data3: 0x575E, Data4: ( 0x9D,0x2A,0x70,0x3F,0x8B,0x9C,0x38,0x0F ))// B2B432BC-EFCA-575E-9D2A-703F8B9C380F
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEventArgs: WindowsFoundation.IID {
.init(Data1: 0x0908C407, Data2: 0x1C7D, Data3: 0x5DE3, Data4: ( 0x9C,0x50,0xD9,0x71,0xC6,0x2E,0xC8,0xEC ))// 0908C407-1C7D-5DE3-9C50-D971C62EC8EC
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEventArgsFactory: WindowsFoundation.IID {
.init(Data1: 0x914B02C7, Data2: 0x076B, Data3: 0x5B89, Data4: ( 0x98,0xE7,0x6C,0x37,0x33,0x79,0xE9,0xAF ))// 914B02C7-076B-5B89-98E7-6C373379E9AF
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIScalarTransition: WindowsFoundation.IID {
.init(Data1: 0xC2DA2AC8, Data2: 0x814C, Data3: 0x5889, Data4: ( 0xB2,0xF4,0x4E,0xBE,0x4B,0x00,0x1E,0xE3 ))// C2DA2AC8-814C-5889-B2F4-4EBE4B001EE3
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIScalarTransitionFactory: WindowsFoundation.IID {
.init(Data1: 0xA1650CF8, Data2: 0xA15B, Data3: 0x54FC, Data4: ( 0xB5,0x95,0xC5,0x24,0x91,0x31,0x8F,0x58 ))// A1650CF8-A15B-54FC-B595-C52491318F58
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CISetter: WindowsFoundation.IID {
.init(Data1: 0xBBD6074D, Data2: 0x686F, Data3: 0x5AE1, Data4: ( 0xB8,0xDE,0x5F,0x16,0xAA,0x30,0xB8,0x0A ))// BBD6074D-686F-5AE1-B8DE-5F16AA30B80A
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CISetterBase: WindowsFoundation.IID {
.init(Data1: 0x5A7C1347, Data2: 0xCDA3, Data3: 0x55BE, Data4: ( 0xBF,0xEF,0x5C,0x75,0x82,0x21,0x39,0x80 ))// 5A7C1347-CDA3-55BE-BFEF-5C7582213980
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CISetterBaseCollection: WindowsFoundation.IID {
.init(Data1: 0x63BF7C0F, Data2: 0xB290, Data3: 0x5C0C, Data4: ( 0x91,0x85,0x33,0x38,0xCD,0x35,0x0D,0x7F ))// 63BF7C0F-B290-5C0C-9185-3338CD350D7F
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CISetterBaseFactory: WindowsFoundation.IID {
.init(Data1: 0x780A1D2F, Data2: 0xC4BE, Data3: 0x5707, Data4: ( 0x8A,0x8A,0x45,0x50,0xDC,0x22,0x58,0x3E ))// 780A1D2F-C4BE-5707-8A8A-4550DC22583E
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CISetterFactory: WindowsFoundation.IID {
.init(Data1: 0x13910A06, Data2: 0xA327, Data3: 0x5407, Data4: ( 0xAE,0x91,0xB9,0xD2,0xCC,0x3A,0x7A,0xB5 ))// 13910A06-A327-5407-AE91-B9D2CC3A7AB5
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CISizeChangedEventArgs: WindowsFoundation.IID {
.init(Data1: 0xFE76324E, Data2: 0x6DFB, Data3: 0x58B1, Data4: ( 0x9D,0xCD,0x88,0x6C,0xA8,0xF9,0xA2,0xEA ))// FE76324E-6DFB-58B1-9DCD-886CA8F9A2EA
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIStyle: WindowsFoundation.IID {
.init(Data1: 0x65E1D164, Data2: 0x572F, Data3: 0x5B0E, Data4: ( 0xA8,0x0F,0x9C,0x02,0x44,0x1F,0xAC,0x49 ))// 65E1D164-572F-5B0E-A80F-9C02441FAC49
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIStyleFactory: WindowsFoundation.IID {
.init(Data1: 0xC2D924A2, Data2: 0x3862, Data3: 0x517C, Data4: ( 0xB0,0x83,0x9A,0x91,0x20,0xD7,0x30,0x2D ))// C2D924A2-3862-517C-B083-9A9120D7302D
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CITargetPropertyPath: WindowsFoundation.IID {
.init(Data1: 0xB1442F0E, Data2: 0xF66B, Data3: 0x531C, Data4: ( 0x97,0x9B,0x19,0x3F,0xD3,0x44,0xE2,0xA8 ))// B1442F0E-F66B-531C-979B-193FD344E2A8
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CITargetPropertyPathFactory: WindowsFoundation.IID {
.init(Data1: 0x894CB11D, Data2: 0x5C16, Data3: 0x555B, Data4: ( 0xB6,0x61,0xF4,0x1B,0x29,0xFD,0x9B,0x21 ))// 894CB11D-5C16-555B-B661-F41B29FD9B21
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CITriggerAction: WindowsFoundation.IID {
.init(Data1: 0x1FA35464, Data2: 0xA690, Data3: 0x586C, Data4: ( 0xAE,0xDF,0x6C,0x88,0xCA,0xC7,0xD1,0x4A ))// 1FA35464-A690-586C-AEDF-6C88CAC7D14A
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CITriggerActionFactory: WindowsFoundation.IID {
.init(Data1: 0x1E1FAF1A, Data2: 0xF614, Data3: 0x554A, Data4: ( 0x82,0x2A,0xD9,0x8F,0xE4,0x65,0x75,0xD1 ))// 1E1FAF1A-F614-554A-822A-D98FE46575D1
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CITriggerBase: WindowsFoundation.IID {
.init(Data1: 0xD37DA89D, Data2: 0x0D71, Data3: 0x58CF, Data4: ( 0xA9,0x01,0x99,0xA7,0xD3,0xE5,0xE4,0x34 ))// D37DA89D-0D71-58CF-A901-99A7D3E5E434
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CITriggerBaseFactory: WindowsFoundation.IID {
.init(Data1: 0x23088EAA, Data2: 0x17EC, Data3: 0x51B2, Data4: ( 0xB1,0x81,0x5B,0xED,0xFA,0x8B,0x8F,0xA4 ))// 23088EAA-17EC-51B2-B181-5BEDFA8B8FA4
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIUIElement: WindowsFoundation.IID {
.init(Data1: 0xC3C01020, Data2: 0x320C, Data3: 0x5CF6, Data4: ( 0x9D,0x24,0xD3,0x96,0xBB,0xFA,0x4D,0x8B ))// C3C01020-320C-5CF6-9D24-D396BBFA4D8B
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIUIElementFactory: WindowsFoundation.IID {
.init(Data1: 0x14D1D309, Data2: 0xADD0, Data3: 0x5CCB, Data4: ( 0xB9,0x46,0x77,0x48,0x8C,0xD7,0x0F,0x87 ))// 14D1D309-ADD0-5CCB-B946-77488CD70F87
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverrides: WindowsFoundation.IID {
.init(Data1: 0x9034F41E, Data2: 0xAB7B, Data3: 0x59E7, Data4: ( 0x81,0x68,0x50,0xDE,0x6B,0x68,0x9D,0xDE ))// 9034F41E-AB7B-59E7-8168-50DE6B689DDE
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIUIElementProtected: WindowsFoundation.IID {
.init(Data1: 0x8F69B9E9, Data2: 0x1F00, Data3: 0x5834, Data4: ( 0x9B,0xF1,0xA9,0x25,0x7B,0xED,0x39,0xF0 ))// 8F69B9E9-1F00-5834-9BF1-A9257BED39F0
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics: WindowsFoundation.IID {
.init(Data1: 0xD2921D87, Data2: 0x3584, Data3: 0x5E22, Data4: ( 0x8A,0x3A,0xC2,0xC7,0x8D,0xAB,0x4F,0x6E ))// D2921D87-3584-5E22-8A3A-C2C78DAB4F6E
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIUIElementWeakCollectionFactory: WindowsFoundation.IID {
.init(Data1: 0xB4D69F09, Data2: 0xD494, Data3: 0x5BC8, Data4: ( 0xAE,0x68,0xB6,0x30,0x7D,0x84,0x50,0x49 ))// B4D69F09-D494-5BC8-AE68-B6307D845049
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIUnhandledExceptionEventArgs: WindowsFoundation.IID {
.init(Data1: 0x59EAEBA9, Data2: 0x8F9C, Data3: 0x5BE7, Data4: ( 0x9B,0x3B,0x82,0x09,0x60,0xFA,0xA2,0x20 ))// 59EAEBA9-8F9C-5BE7-9B3B-820960FAA220
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIVector3Transition: WindowsFoundation.IID {
.init(Data1: 0x0C408BB9, Data2: 0xF9A2, Data3: 0x55D7, Data4: ( 0x8A,0xED,0x14,0x3D,0x36,0xD6,0x03,0xF2 ))// 0C408BB9-F9A2-55D7-8AED-143D36D603F2
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIVector3TransitionFactory: WindowsFoundation.IID {
.init(Data1: 0xA3A084FC, Data2: 0xB965, Data3: 0x534B, Data4: ( 0x90,0x0F,0x78,0xE2,0x88,0x12,0x92,0x32 ))// A3A084FC-B965-534B-900F-78E288129232
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindow: WindowsFoundation.IID {
.init(Data1: 0x61F0EC79, Data2: 0x5D52, Data3: 0x56B5, Data4: ( 0x86,0xFB,0x40,0xFA,0x4A,0xF2,0x88,0xB0 ))// 61F0EC79-5D52-56B5-86FB-40FA4AF288B0
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindow2: WindowsFoundation.IID {
.init(Data1: 0x42FEBAA5, Data2: 0x1C32, Data3: 0x522A, Data4: ( 0xA5,0x91,0x57,0x61,0x8C,0x6F,0x66,0x5D ))// 42FEBAA5-1C32-522A-A591-57618C6F665D
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindowActivatedEventArgs: WindowsFoundation.IID {
.init(Data1: 0xC723A5EA, Data2: 0x82C4, Data3: 0x5DD6, Data4: ( 0x86,0x1B,0x70,0xEF,0x57,0x3B,0x88,0xD6 ))// C723A5EA-82C4-5DD6-861B-70EF573B88D6
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindowEventArgs: WindowsFoundation.IID {
.init(Data1: 0x1140827C, Data2: 0xFE0A, Data3: 0x5268, Data4: ( 0xBC,0x2B,0xF4,0x49,0x2C,0x2C,0xCB,0x49 ))// 1140827C-FE0A-5268-BC2B-F4492C2CCB49
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindowFactory: WindowsFoundation.IID {
.init(Data1: 0xF0441536, Data2: 0xAFEF, Data3: 0x5222, Data4: ( 0x91,0x8F,0x32,0x4A,0x9B,0x2D,0xEC,0x75 ))// F0441536-AFEF-5222-918F-324A9B2DEC75
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindowSizeChangedEventArgs: WindowsFoundation.IID {
.init(Data1: 0x542F6F2C, Data2: 0x4B64, Data3: 0x5C72, Data4: ( 0xA7,0xA5,0x3A,0x7E,0x06,0x64,0xB8,0xFF ))// 542F6F2C-4B64-5C72-A7A5-3A7E0664B8FF
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindowStatics: WindowsFoundation.IID {
.init(Data1: 0x8CC985E3, Data2: 0xA41A, Data3: 0x5DF4, Data4: ( 0xB5,0x31,0xD3,0xA1,0x78,0x8D,0x86,0xC5 ))// 8CC985E3-A41A-5DF4-B531-D3A1788D86C5
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindowVisibilityChangedEventArgs: WindowsFoundation.IID {
.init(Data1: 0x7BB24A6D, Data2: 0x070C, Data3: 0x5CB6, Data4: ( 0x8E,0x9C,0x54,0x79,0x05,0xBE,0x82,0x65 ))// 7BB24A6D-070C-5CB6-8E9C-547905BE8265
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIXamlResourceReferenceFailedEventArgs: WindowsFoundation.IID {
.init(Data1: 0x1B175EE6, Data2: 0xD08B, Data3: 0x50FF, Data4: ( 0x8F,0x89,0xA1,0xFF,0x27,0xED,0xEF,0x66 ))// 1B175EE6-D08B-50FF-8F89-A1FF27EDEF66
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIXamlRoot: WindowsFoundation.IID {
.init(Data1: 0x60CB215A, Data2: 0xAD15, Data3: 0x520A, Data4: ( 0x8B,0x01,0x44,0x16,0x82,0x4F,0x04,0x41 ))// 60CB215A-AD15-520A-8B01-4416824F0441
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIXamlRoot2: WindowsFoundation.IID {
.init(Data1: 0xBDEE0F42, Data2: 0x71CB, Data3: 0x50C5, Data4: ( 0x82,0x9B,0x46,0x14,0xD9,0x8C,0x57,0x94 ))// BDEE0F42-71CB-50C5-829B-4614D98C5794
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIXamlRootChangedEventArgs: WindowsFoundation.IID {
.init(Data1: 0x61D2C719, Data2: 0xF8A1, Data3: 0x515A, Data4: ( 0x90,0x2C,0xCF,0xA4,0x98,0xBA,0x7A,0x7F ))// 61D2C719-F8A1-515A-902C-CFA498BA7A7F
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplicationInitializationCallback: WindowsFoundation.IID {
.init(Data1: 0xD8EEF1C9, Data2: 0x1234, Data3: 0x56F1, Data4: ( 0x99,0x63,0x45,0xDD,0x9C,0x80,0xA6,0x61 ))// D8EEF1C9-1234-56F1-9963-45DD9C80A661
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIBindingFailedEventHandler: WindowsFoundation.IID {
.init(Data1: 0xA3160AB0, Data2: 0xA8A9, Data3: 0x5F38, Data4: ( 0xAF,0x17,0x5C,0xD9,0x1A,0x2B,0x33,0xF5 ))// A3160AB0-A8A9-5F38-AF17-5CD91A2B33F5
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CICreateDefaultValueCallback: WindowsFoundation.IID {
.init(Data1: 0x7F808C05, Data2: 0x2AC4, Data3: 0x5AD9, Data4: ( 0xAC,0x8A,0x26,0x89,0x03,0x33,0xD8,0x1E ))// 7F808C05-2AC4-5AD9-AC8A-26890333D81E
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedCallback: WindowsFoundation.IID {
.init(Data1: 0xF055BB21, Data2: 0x219B, Data3: 0x5B0C, Data4: ( 0x80,0x5D,0xBC,0xAE,0xDA,0xE1,0x54,0x58 ))// F055BB21-219B-5B0C-805D-BCAEDAE15458
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedEventHandler: WindowsFoundation.IID {
.init(Data1: 0x4BE8DC75, Data2: 0x373D, Data3: 0x5F4E, Data4: ( 0xA0,0xB4,0x54,0xB9,0xEE,0xAF,0xB4,0xA9 ))// 4BE8DC75-373D-5F4E-A0B4-54B9EEAFB4A9
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDragEventHandler: WindowsFoundation.IID {
.init(Data1: 0x277AFC83, Data2: 0xCB67, Data3: 0x56C8, Data4: ( 0xB6,0x01,0x1B,0x9C,0x0F,0x1C,0x3D,0x32 ))// 277AFC83-CB67-56C8-B601-1B9C0F1C3D32
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIExceptionRoutedEventHandler: WindowsFoundation.IID {
.init(Data1: 0x45FBB85D, Data2: 0x54F9, Data3: 0x5A2A, Data4: ( 0x8A,0x38,0x00,0xA3,0xB7,0x76,0x1F,0x96 ))// 45FBB85D-54F9-5A2A-8A38-00A3B7761F96
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIPropertyChangedCallback: WindowsFoundation.IID {
.init(Data1: 0x5FD9243A, Data2: 0x2422, Data3: 0x53C9, Data4: ( 0x8D,0x6F,0xF1,0xBA,0x1A,0x0B,0xBA,0x9A ))// 5FD9243A-2422-53C9-8D6F-F1BA1A0BBA9A
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEventHandler: WindowsFoundation.IID {
.init(Data1: 0xDAE23D85, Data2: 0x69CA, Data3: 0x5BDF, Data4: ( 0x80,0x5B,0x61,0x61,0xA3,0xA2,0x15,0xCC ))// DAE23D85-69CA-5BDF-805B-6161A3A215CC
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CISizeChangedEventHandler: WindowsFoundation.IID {
.init(Data1: 0x8D7B1A58, Data2: 0x14C6, Data3: 0x51C9, Data4: ( 0x89,0x2C,0x9F,0xCC,0xE3,0x68,0xE7,0x7D ))// 8D7B1A58-14C6-51C9-892C-9FCCE368E77D
}
private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIUnhandledExceptionEventHandler: WindowsFoundation.IID {
.init(Data1: 0x3427C1B6, Data2: 0x5ECA, Data3: 0x5631, Data4: ( 0x84,0xB8,0x5B,0xAE,0x73,0x2F,0xB6,0x7F ))// 3427C1B6-5ECA-5631-84B8-5BAE732FB67F
}
public enum __ABI_Microsoft_UI_Xaml {
public class IApplication: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplication }
internal func get_ResourcesImpl() throws -> WinUI.ResourceDictionary? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Resources(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_ResourcesImpl(_ value: WinUI.ResourceDictionary?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Resources(pThis, RawPointer(value)))
}
}
internal func get_DebugSettingsImpl() throws -> WinUI.DebugSettings? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_DebugSettings(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_RequestedThemeImpl() throws -> WinUI.ApplicationTheme {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CApplicationTheme = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_RequestedTheme(pThis, &value))
}
return value
}
internal func put_RequestedThemeImpl(_ value: WinUI.ApplicationTheme) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_RequestedTheme(pThis, value))
}
}
internal func get_FocusVisualKindImpl() throws -> WinUI.FocusVisualKind {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CFocusVisualKind = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusVisualKind(pThis, &value))
}
return value
}
internal func put_FocusVisualKindImpl(_ value: WinUI.FocusVisualKind) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_FocusVisualKind(pThis, value))
}
}
internal func get_HighContrastAdjustmentImpl() throws -> WinUI.ApplicationHighContrastAdjustment {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CApplicationHighContrastAdjustment = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HighContrastAdjustment(pThis, &value))
}
return value
}
internal func put_HighContrastAdjustmentImpl(_ value: WinUI.ApplicationHighContrastAdjustment) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_HighContrastAdjustment(pThis, value))
}
}
internal func add_UnhandledExceptionImpl(_ handler: WinUI.UnhandledExceptionEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml.UnhandledExceptionEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_UnhandledException(pThis, _handler, &token))
}
return token
}
internal func remove_UnhandledExceptionImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_UnhandledException(pThis, token))
}
}
internal func ExitImpl() throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Exit(pThis))
}
}
}
public class IApplication2: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplication2 }
internal func add_ResourceManagerRequestedImpl(_ handler: TypedEventHandler<Any?, WinUI.ResourceManagerRequestedEventArgs?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CResourceManagerRequestedEventArgsWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication2.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_ResourceManagerRequested(pThis, _handler, &token))
}
return token
}
internal func remove_ResourceManagerRequestedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication2.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ResourceManagerRequested(pThis, token))
}
}
}
public class IApplication3: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplication3 }
internal func get_DispatcherShutdownModeImpl() throws -> WinUI.DispatcherShutdownMode {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CDispatcherShutdownMode = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication3.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_DispatcherShutdownMode(pThis, &value))
}
return value
}
internal func put_DispatcherShutdownModeImpl(_ value: WinUI.DispatcherShutdownMode) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication3.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_DispatcherShutdownMode(pThis, value))
}
}
}
public class IApplicationFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplicationFactory }
internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper<WinUI.Application.Composable>?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IApplication {
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_CIApplicationFactory.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi))
}
}
innerInterface = WindowsFoundation.IInspectable(_innerInterface!)
}
return IApplication(value!)
}
}
public class IApplicationInitializationCallbackParams: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplicationInitializationCallbackParams }
}
public class IApplicationOverrides: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplicationOverrides }
internal func OnLaunchedImpl(_ args: WinUI.LaunchActivatedEventArgs?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplicationOverrides.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.OnLaunched(pThis, RawPointer(args)))
}
}
}
public class IApplicationStatics: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplicationStatics }
internal func get_CurrentImpl() throws -> WinUI.Application? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplicationStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func StartImpl(_ callback: WinUI.ApplicationInitializationCallback?) throws {
let callbackWrapper = __ABI_Microsoft_UI_Xaml.ApplicationInitializationCallbackWrapper(callback)
let _callback = try! callbackWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplicationStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Start(pThis, _callback))
}
}
internal func LoadComponentImpl(_ component: Any?, _ resourceLocator: WindowsFoundation.Uri?) throws {
let componentWrapper = __ABI_.AnyWrapper(component)
let _component = try! componentWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplicationStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.LoadComponent(pThis, _component, RawPointer(resourceLocator)))
}
}
internal func LoadComponentWithResourceLocationImpl(_ component: Any?, _ resourceLocator: WindowsFoundation.Uri?, _ componentResourceLocation: WinUI.ComponentResourceLocation) throws {
let componentWrapper = __ABI_.AnyWrapper(component)
let _component = try! componentWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplicationStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.LoadComponentWithResourceLocation(pThis, _component, RawPointer(resourceLocator), componentResourceLocation))
}
}
}
public class IBindingFailedEventArgs: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIBindingFailedEventArgs }
internal func get_MessageImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBindingFailedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Message(pThis, &value))
}
return .init(from: value)
}
}
public class IBringIntoViewOptions: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions }
internal func get_AnimationDesiredImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_AnimationDesired(pThis, &value))
}
return .init(from: value)
}
internal func put_AnimationDesiredImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_AnimationDesired(pThis, .init(from: value)))
}
}
internal func get_TargetRectImpl() throws -> WindowsFoundation.Rect? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetRect(pThis, &valueAbi))
}
}
return WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectWrapper.unwrapFrom(abi: value)
}
internal func put_TargetRectImpl(_ value: WindowsFoundation.Rect?) throws {
let valueWrapper = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectWrapper(value)
let _value = try! valueWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_TargetRect(pThis, _value))
}
}
internal func get_HorizontalAlignmentRatioImpl() throws -> Double {
var value: DOUBLE = 0.0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalAlignmentRatio(pThis, &value))
}
return value
}
internal func put_HorizontalAlignmentRatioImpl(_ value: Double) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalAlignmentRatio(pThis, value))
}
}
internal func get_VerticalAlignmentRatioImpl() throws -> Double {
var value: DOUBLE = 0.0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalAlignmentRatio(pThis, &value))
}
return value
}
internal func put_VerticalAlignmentRatioImpl(_ value: Double) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalAlignmentRatio(pThis, value))
}
}
internal func get_HorizontalOffsetImpl() throws -> Double {
var value: DOUBLE = 0.0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalOffset(pThis, &value))
}
return value
}
internal func put_HorizontalOffsetImpl(_ value: Double) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalOffset(pThis, value))
}
}
internal func get_VerticalOffsetImpl() throws -> Double {
var value: DOUBLE = 0.0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalOffset(pThis, &value))
}
return value
}
internal func put_VerticalOffsetImpl(_ value: Double) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalOffset(pThis, value))
}
}
}
public class IBringIntoViewRequestedEventArgs: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs }
internal func get_TargetElementImpl() throws -> WinUI.UIElement? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetElement(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_TargetElementImpl(_ value: WinUI.UIElement?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_TargetElement(pThis, RawPointer(value)))
}
}
internal func get_AnimationDesiredImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_AnimationDesired(pThis, &value))
}
return .init(from: value)
}
internal func put_AnimationDesiredImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_AnimationDesired(pThis, .init(from: value)))
}
}
internal func get_TargetRectImpl() throws -> WindowsFoundation.Rect {
var value: __x_ABI_CWindows_CFoundation_CRect = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetRect(pThis, &value))
}
return .from(abi: value)
}
internal func put_TargetRectImpl(_ value: WindowsFoundation.Rect) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_TargetRect(pThis, .from(swift: value)))
}
}
internal func get_HorizontalAlignmentRatioImpl() throws -> Double {
var value: DOUBLE = 0.0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalAlignmentRatio(pThis, &value))
}
return value
}
internal func get_VerticalAlignmentRatioImpl() throws -> Double {
var value: DOUBLE = 0.0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalAlignmentRatio(pThis, &value))
}
return value
}
internal func get_HorizontalOffsetImpl() throws -> Double {
var value: DOUBLE = 0.0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalOffset(pThis, &value))
}
return value
}
internal func put_HorizontalOffsetImpl(_ value: Double) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalOffset(pThis, value))
}
}
internal func get_VerticalOffsetImpl() throws -> Double {
var value: DOUBLE = 0.0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalOffset(pThis, &value))
}
return value
}
internal func put_VerticalOffsetImpl(_ value: Double) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalOffset(pThis, value))
}
}
internal func get_HandledImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Handled(pThis, &value))
}
return .init(from: value)
}
internal func put_HandledImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value)))
}
}
}
public class IBrushTransition: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIBrushTransition }
internal func get_DurationImpl() throws -> WindowsFoundation.TimeSpan {
var value: __x_ABI_CWindows_CFoundation_CTimeSpan = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBrushTransition.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Duration(pThis, &value))
}
return .from(abi: value)
}
internal func put_DurationImpl(_ value: WindowsFoundation.TimeSpan) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBrushTransition.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Duration(pThis, .from(swift: value)))
}
}
}
public class IBrushTransitionFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIBrushTransitionFactory }
internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper<WinUI.BrushTransition.Composable>?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IBrushTransition {
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_CIBrushTransitionFactory.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi))
}
}
innerInterface = WindowsFoundation.IInspectable(_innerInterface!)
}
return IBrushTransition(value!)
}
}
public class IDataContextChangedEventArgs: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDataContextChangedEventArgs }
internal func get_NewValueImpl() throws -> Any? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDataContextChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_NewValue(pThis, &valueAbi))
}
}
return __ABI_.AnyWrapper.unwrapFrom(abi: value)
}
internal func get_HandledImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDataContextChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Handled(pThis, &value))
}
return .init(from: value)
}
internal func put_HandledImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDataContextChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value)))
}
}
}
public class IDataTemplate: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplate }
internal func LoadContentImpl() throws -> WinUI.DependencyObject? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplate.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.LoadContent(pThis, &resultAbi))
}
}
return .from(abi: result)
}
}
public class IDataTemplateExtension: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateExtension }
open func ResetTemplateImpl() throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateExtension.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.ResetTemplate(pThis))
}
}
open func ProcessBindingImpl(_ phase: UInt32) throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateExtension.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.ProcessBinding(pThis, phase, &result))
}
return .init(from: result)
}
open func ProcessBindingsImpl(_ arg: WinUI.ContainerContentChangingEventArgs?) throws -> Int32 {
var result: INT32 = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateExtension.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.ProcessBindings(pThis, RawPointer(arg), &result))
}
return result
}
}
internal static var IDataTemplateExtensionVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateExtensionVtbl = .init(
QueryInterface: { IDataTemplateExtensionWrapper.queryInterface($0, $1, $2) },
AddRef: { IDataTemplateExtensionWrapper.addRef($0) },
Release: { IDataTemplateExtensionWrapper.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.IDataTemplateExtensionWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Microsoft.UI.Xaml.IDataTemplateExtension").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
ResetTemplate: {
do {
guard let __unwrapped__instance = IDataTemplateExtensionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
try __unwrapped__instance.resetTemplate()
return S_OK
} catch { return failWith(err: E_FAIL) }
},
ProcessBinding: {
do {
guard let __unwrapped__instance = IDataTemplateExtensionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let phase: UInt32 = $1
let result = try __unwrapped__instance.processBinding(phase)
$2?.initialize(to: .init(from: result))
return S_OK
} catch { return failWith(err: E_FAIL) }
},
ProcessBindings: {
do {
guard let __unwrapped__instance = IDataTemplateExtensionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let arg: WinUI.ContainerContentChangingEventArgs? = .from(abi: ComPtr($1))
let result = try __unwrapped__instance.processBindings(arg)
$2?.initialize(to: result)
return S_OK
} catch { return failWith(err: E_FAIL) }
}
)
public typealias IDataTemplateExtensionWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.IDataTemplateExtensionBridge>
public class IDataTemplateFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateFactory }
internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper<WinUI.DataTemplate.Composable>?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IDataTemplate {
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_CIDataTemplateFactory.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi))
}
}
innerInterface = WindowsFoundation.IInspectable(_innerInterface!)
}
return IDataTemplate(value!)
}
}
public class IDataTemplateStatics: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateStatics }
internal func get_ExtensionInstancePropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExtensionInstanceProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func GetExtensionInstanceImpl(_ element: WinUI.FrameworkElement?) throws -> WinUI.AnyIDataTemplateExtension? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetExtensionInstance(pThis, RawPointer(element), &resultAbi))
}
}
return __ABI_Microsoft_UI_Xaml.IDataTemplateExtensionWrapper.unwrapFrom(abi: result)
}
internal func SetExtensionInstanceImpl(_ element: WinUI.FrameworkElement?, _ value: WinUI.AnyIDataTemplateExtension?) throws {
let valueWrapper = __ABI_Microsoft_UI_Xaml.IDataTemplateExtensionWrapper(value)
let _value = try! valueWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.SetExtensionInstance(pThis, RawPointer(element), _value))
}
}
}
public class IDebugSettings: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings }
internal func get_EnableFrameRateCounterImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_EnableFrameRateCounter(pThis, &value))
}
return .init(from: value)
}
internal func put_EnableFrameRateCounterImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_EnableFrameRateCounter(pThis, .init(from: value)))
}
}
internal func get_IsBindingTracingEnabledImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsBindingTracingEnabled(pThis, &value))
}
return .init(from: value)
}
internal func put_IsBindingTracingEnabledImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsBindingTracingEnabled(pThis, .init(from: value)))
}
}
internal func get_IsTextPerformanceVisualizationEnabledImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTextPerformanceVisualizationEnabled(pThis, &value))
}
return .init(from: value)
}
internal func put_IsTextPerformanceVisualizationEnabledImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsTextPerformanceVisualizationEnabled(pThis, .init(from: value)))
}
}
internal func get_FailFastOnErrorsImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_FailFastOnErrors(pThis, &value))
}
return .init(from: value)
}
internal func put_FailFastOnErrorsImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_FailFastOnErrors(pThis, .init(from: value)))
}
}
internal func add_BindingFailedImpl(_ handler: WinUI.BindingFailedEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml.BindingFailedEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_BindingFailed(pThis, _handler, &token))
}
return token
}
internal func remove_BindingFailedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_BindingFailed(pThis, token))
}
}
}
public class IDebugSettings2: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings2 }
internal func get_IsXamlResourceReferenceTracingEnabledImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings2.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsXamlResourceReferenceTracingEnabled(pThis, &value))
}
return .init(from: value)
}
internal func put_IsXamlResourceReferenceTracingEnabledImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings2.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsXamlResourceReferenceTracingEnabled(pThis, .init(from: value)))
}
}
internal func add_XamlResourceReferenceFailedImpl(_ handler: TypedEventHandler<WinUI.DebugSettings?, WinUI.XamlResourceReferenceFailedEventArgs?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDebugSettings___x_ABI_CMicrosoft__CUI__CXaml__CXamlResourceReferenceFailedEventArgsWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings2.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_XamlResourceReferenceFailed(pThis, _handler, &token))
}
return token
}
internal func remove_XamlResourceReferenceFailedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings2.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_XamlResourceReferenceFailed(pThis, token))
}
}
}
public class IDebugSettings3: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings3 }
internal func get_LayoutCycleTracingLevelImpl() throws -> WinUI.LayoutCycleTracingLevel {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CLayoutCycleTracingLevel = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings3.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_LayoutCycleTracingLevel(pThis, &value))
}
return value
}
internal func put_LayoutCycleTracingLevelImpl(_ value: WinUI.LayoutCycleTracingLevel) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings3.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_LayoutCycleTracingLevel(pThis, value))
}
}
internal func get_LayoutCycleDebugBreakLevelImpl() throws -> WinUI.LayoutCycleDebugBreakLevel {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CLayoutCycleDebugBreakLevel = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings3.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_LayoutCycleDebugBreakLevel(pThis, &value))
}
return value
}
internal func put_LayoutCycleDebugBreakLevelImpl(_ value: WinUI.LayoutCycleDebugBreakLevel) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings3.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_LayoutCycleDebugBreakLevel(pThis, value))
}
}
}
public class IDependencyObject: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObject }
internal func GetValueImpl(_ dp: WinUI.DependencyProperty?) throws -> Any? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObject.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetValue(pThis, RawPointer(dp), &resultAbi))
}
}
return __ABI_.AnyWrapper.unwrapFrom(abi: result)
}
internal func SetValueImpl(_ dp: WinUI.DependencyProperty?, _ value: Any?) throws {
let valueWrapper = __ABI_.AnyWrapper(value)
let _value = try! valueWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObject.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.SetValue(pThis, RawPointer(dp), _value))
}
}
internal func ClearValueImpl(_ dp: WinUI.DependencyProperty?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObject.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.ClearValue(pThis, RawPointer(dp)))
}
}
internal func ReadLocalValueImpl(_ dp: WinUI.DependencyProperty?) throws -> Any? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObject.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.ReadLocalValue(pThis, RawPointer(dp), &resultAbi))
}
}
return __ABI_.AnyWrapper.unwrapFrom(abi: result)
}
internal func GetAnimationBaseValueImpl(_ dp: WinUI.DependencyProperty?) throws -> Any? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObject.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetAnimationBaseValue(pThis, RawPointer(dp), &resultAbi))
}
}
return __ABI_.AnyWrapper.unwrapFrom(abi: result)
}
internal func RegisterPropertyChangedCallbackImpl(_ dp: WinUI.DependencyProperty?, _ callback: WinUI.DependencyPropertyChangedCallback?) throws -> Int64 {
var result: INT64 = 0
let callbackWrapper = __ABI_Microsoft_UI_Xaml.DependencyPropertyChangedCallbackWrapper(callback)
let _callback = try! callbackWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObject.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.RegisterPropertyChangedCallback(pThis, RawPointer(dp), _callback, &result))
}
return result
}
internal func UnregisterPropertyChangedCallbackImpl(_ dp: WinUI.DependencyProperty?, _ token: Int64) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObject.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.UnregisterPropertyChangedCallback(pThis, RawPointer(dp), token))
}
}
internal func get_DispatcherImpl() throws -> UWP.CoreDispatcher? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObject.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Dispatcher(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_DispatcherQueueImpl() throws -> WinAppSDK.DispatcherQueue? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObject.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_DispatcherQueue(pThis, &valueAbi))
}
}
return .from(abi: value)
}
}
public class IDependencyObjectFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObjectFactory }
internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper<WinUI.DependencyObject.Composable>?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IDependencyObject {
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_CIDependencyObjectFactory.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi))
}
}
innerInterface = WindowsFoundation.IInspectable(_innerInterface!)
}
return IDependencyObject(value!)
}
}
public class IDependencyProperty: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyProperty }
internal func GetMetadataImpl(_ forType: WinUI.TypeName) throws -> WinUI.PropertyMetadata? {
let (result) = try ComPtrs.initialize { resultAbi in
let _forType = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: forType)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyProperty.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetMetadata(pThis, _forType.val, &resultAbi))
}
}
return .from(abi: result)
}
}
public class IDependencyPropertyChangedEventArgs: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedEventArgs }
internal func get_PropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Property(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_OldValueImpl() throws -> Any? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_OldValue(pThis, &valueAbi))
}
}
return __ABI_.AnyWrapper.unwrapFrom(abi: value)
}
internal func get_NewValueImpl() throws -> Any? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_NewValue(pThis, &valueAbi))
}
}
return __ABI_.AnyWrapper.unwrapFrom(abi: value)
}
}
public class IDependencyPropertyStatics: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyStatics }
internal func get_UnsetValueImpl() throws -> Any? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_UnsetValue(pThis, &valueAbi))
}
}
return __ABI_.AnyWrapper.unwrapFrom(abi: value)
}
internal func RegisterImpl(_ name: String, _ propertyType: WinUI.TypeName, _ ownerType: WinUI.TypeName, _ typeMetadata: WinUI.PropertyMetadata?) throws -> WinUI.DependencyProperty? {
let (result) = try ComPtrs.initialize { resultAbi in
let _name = try! HString(name)
let _propertyType = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: propertyType)
let _ownerType = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: ownerType)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Register(pThis, _name.get(), _propertyType.val, _ownerType.val, RawPointer(typeMetadata), &resultAbi))
}
}
return .from(abi: result)
}
internal func RegisterAttachedImpl(_ name: String, _ propertyType: WinUI.TypeName, _ ownerType: WinUI.TypeName, _ defaultMetadata: WinUI.PropertyMetadata?) throws -> WinUI.DependencyProperty? {
let (result) = try ComPtrs.initialize { resultAbi in
let _name = try! HString(name)
let _propertyType = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: propertyType)
let _ownerType = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: ownerType)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.RegisterAttached(pThis, _name.get(), _propertyType.val, _ownerType.val, RawPointer(defaultMetadata), &resultAbi))
}
}
return .from(abi: result)
}
}
public class IDragEventArgs: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs }
internal func get_HandledImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Handled(pThis, &value))
}
return .init(from: value)
}
internal func put_HandledImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value)))
}
}
internal func get_DataImpl() throws -> UWP.DataPackage? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Data(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_DataImpl(_ value: UWP.DataPackage?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Data(pThis, RawPointer(value)))
}
}
internal func get_DataViewImpl() throws -> UWP.DataPackageView? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_DataView(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_DragUIOverrideImpl() throws -> WinUI.DragUIOverride? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_DragUIOverride(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_ModifiersImpl() throws -> UWP.DragDropModifiers {
var value: __x_ABI_CWindows_CApplicationModel_CDataTransfer_CDragDrop_CDragDropModifiers = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Modifiers(pThis, &value))
}
return value
}
internal func get_AcceptedOperationImpl() throws -> UWP.DataPackageOperation {
var value: __x_ABI_CWindows_CApplicationModel_CDataTransfer_CDataPackageOperation = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_AcceptedOperation(pThis, &value))
}
return value
}
internal func put_AcceptedOperationImpl(_ value: UWP.DataPackageOperation) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_AcceptedOperation(pThis, value))
}
}
internal func get_AllowedOperationsImpl() throws -> UWP.DataPackageOperation {
var value: __x_ABI_CWindows_CApplicationModel_CDataTransfer_CDataPackageOperation = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_AllowedOperations(pThis, &value))
}
return value
}
internal func GetDeferralImpl() throws -> WinUI.DragOperationDeferral? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetDeferral(pThis, &resultAbi))
}
}
return .from(abi: result)
}
internal func GetPositionImpl(_ relativeTo: WinUI.UIElement?) throws -> WindowsFoundation.Point {
var result: __x_ABI_CWindows_CFoundation_CPoint = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetPosition(pThis, RawPointer(relativeTo), &result))
}
return .from(abi: result)
}
}
public class IDragOperationDeferral: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDragOperationDeferral }
internal func CompleteImpl() throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragOperationDeferral.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Complete(pThis))
}
}
}
public class IDragStartingEventArgs: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDragStartingEventArgs }
internal func get_CancelImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragStartingEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Cancel(pThis, &value))
}
return .init(from: value)
}
internal func put_CancelImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragStartingEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Cancel(pThis, .init(from: value)))
}
}
internal func get_DataImpl() throws -> UWP.DataPackage? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragStartingEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Data(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_DragUIImpl() throws -> WinUI.DragUI? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragStartingEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_DragUI(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_AllowedOperationsImpl() throws -> UWP.DataPackageOperation {
var value: __x_ABI_CWindows_CApplicationModel_CDataTransfer_CDataPackageOperation = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragStartingEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_AllowedOperations(pThis, &value))
}
return value
}
internal func put_AllowedOperationsImpl(_ value: UWP.DataPackageOperation) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragStartingEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_AllowedOperations(pThis, value))
}
}
internal func GetDeferralImpl() throws -> WinUI.DragOperationDeferral? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragStartingEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetDeferral(pThis, &resultAbi))
}
}
return .from(abi: result)
}
internal func GetPositionImpl(_ relativeTo: WinUI.UIElement?) throws -> WindowsFoundation.Point {
var result: __x_ABI_CWindows_CFoundation_CPoint = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragStartingEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetPosition(pThis, RawPointer(relativeTo), &result))
}
return .from(abi: result)
}
}
public class IDragUI: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDragUI }
internal func SetContentFromBitmapImageImpl(_ bitmapImage: WinUI.BitmapImage?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUI.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.SetContentFromBitmapImage(pThis, RawPointer(bitmapImage)))
}
}
internal func SetContentFromBitmapImageWithAnchorPointImpl(_ bitmapImage: WinUI.BitmapImage?, _ anchorPoint: WindowsFoundation.Point) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUI.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.SetContentFromBitmapImageWithAnchorPoint(pThis, RawPointer(bitmapImage), .from(swift: anchorPoint)))
}
}
internal func SetContentFromSoftwareBitmapImpl(_ softwareBitmap: UWP.SoftwareBitmap?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUI.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.SetContentFromSoftwareBitmap(pThis, RawPointer(softwareBitmap)))
}
}
internal func SetContentFromSoftwareBitmapWithAnchorPointImpl(_ softwareBitmap: UWP.SoftwareBitmap?, _ anchorPoint: WindowsFoundation.Point) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUI.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.SetContentFromSoftwareBitmapWithAnchorPoint(pThis, RawPointer(softwareBitmap), .from(swift: anchorPoint)))
}
}
internal func SetContentFromDataPackageImpl() throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUI.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.SetContentFromDataPackage(pThis))
}
}
}
public class IDragUIOverride: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride }
internal func get_CaptionImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Caption(pThis, &value))
}
return .init(from: value)
}
internal func put_CaptionImpl(_ value: String) throws {
let _value = try! HString(value)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Caption(pThis, _value.get()))
}
}
internal func get_IsContentVisibleImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsContentVisible(pThis, &value))
}
return .init(from: value)
}
internal func put_IsContentVisibleImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsContentVisible(pThis, .init(from: value)))
}
}
internal func get_IsCaptionVisibleImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsCaptionVisible(pThis, &value))
}
return .init(from: value)
}
internal func put_IsCaptionVisibleImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsCaptionVisible(pThis, .init(from: value)))
}
}
internal func get_IsGlyphVisibleImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsGlyphVisible(pThis, &value))
}
return .init(from: value)
}
internal func put_IsGlyphVisibleImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsGlyphVisible(pThis, .init(from: value)))
}
}
internal func ClearImpl() throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis))
}
}
internal func SetContentFromBitmapImageImpl(_ bitmapImage: WinUI.BitmapImage?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.SetContentFromBitmapImage(pThis, RawPointer(bitmapImage)))
}
}
internal func SetContentFromBitmapImageWithAnchorPointImpl(_ bitmapImage: WinUI.BitmapImage?, _ anchorPoint: WindowsFoundation.Point) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.SetContentFromBitmapImageWithAnchorPoint(pThis, RawPointer(bitmapImage), .from(swift: anchorPoint)))
}
}
internal func SetContentFromSoftwareBitmapImpl(_ softwareBitmap: UWP.SoftwareBitmap?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.SetContentFromSoftwareBitmap(pThis, RawPointer(softwareBitmap)))
}
}
internal func SetContentFromSoftwareBitmapWithAnchorPointImpl(_ softwareBitmap: UWP.SoftwareBitmap?, _ anchorPoint: WindowsFoundation.Point) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.SetContentFromSoftwareBitmapWithAnchorPoint(pThis, RawPointer(softwareBitmap), .from(swift: anchorPoint)))
}
}
}
public class IDropCompletedEventArgs: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDropCompletedEventArgs }
internal func get_DropResultImpl() throws -> UWP.DataPackageOperation {
var value: __x_ABI_CWindows_CApplicationModel_CDataTransfer_CDataPackageOperation = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDropCompletedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_DropResult(pThis, &value))
}
return value
}
}
public class IEffectiveViewportChangedEventArgs: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIEffectiveViewportChangedEventArgs }
internal func get_EffectiveViewportImpl() throws -> WindowsFoundation.Rect {
var value: __x_ABI_CWindows_CFoundation_CRect = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIEffectiveViewportChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_EffectiveViewport(pThis, &value))
}
return .from(abi: value)
}
internal func get_MaxViewportImpl() throws -> WindowsFoundation.Rect {
var value: __x_ABI_CWindows_CFoundation_CRect = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIEffectiveViewportChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxViewport(pThis, &value))
}
return .from(abi: value)
}
internal func get_BringIntoViewDistanceXImpl() throws -> Double {
var value: DOUBLE = 0.0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIEffectiveViewportChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_BringIntoViewDistanceX(pThis, &value))
}
return value
}
internal func get_BringIntoViewDistanceYImpl() throws -> Double {
var value: DOUBLE = 0.0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIEffectiveViewportChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_BringIntoViewDistanceY(pThis, &value))
}
return value
}
}
public class IElementFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIElementFactory }
open func GetElementImpl(_ args: WinUI.ElementFactoryGetArgs?) throws -> WinUI.UIElement? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactory.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetElement(pThis, RawPointer(args), &resultAbi))
}
}
return .from(abi: result)
}
open func RecycleElementImpl(_ args: WinUI.ElementFactoryRecycleArgs?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactory.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.RecycleElement(pThis, RawPointer(args)))
}
}
}
internal static var IElementFactoryVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryVtbl = .init(
QueryInterface: { IElementFactoryWrapper.queryInterface($0, $1, $2) },
AddRef: { IElementFactoryWrapper.addRef($0) },
Release: { IElementFactoryWrapper.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.IElementFactoryWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Microsoft.UI.Xaml.IElementFactory").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
GetElement: {
do {
guard let __unwrapped__instance = IElementFactoryWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let args: WinUI.ElementFactoryGetArgs? = .from(abi: ComPtr($1))
let result = try __unwrapped__instance.getElement(args)
result?.copyTo($2)
return S_OK
} catch { return failWith(err: E_FAIL) }
},
RecycleElement: {
do {
guard let __unwrapped__instance = IElementFactoryWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let args: WinUI.ElementFactoryRecycleArgs? = .from(abi: ComPtr($1))
try __unwrapped__instance.recycleElement(args)
return S_OK
} catch { return failWith(err: E_FAIL) }
}
)
public typealias IElementFactoryWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.IElementFactoryBridge>
public class IElementFactoryGetArgs: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryGetArgs }
internal func get_DataImpl() throws -> Any? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryGetArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Data(pThis, &valueAbi))
}
}
return __ABI_.AnyWrapper.unwrapFrom(abi: value)
}
internal func put_DataImpl(_ value: Any?) throws {
let valueWrapper = __ABI_.AnyWrapper(value)
let _value = try! valueWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryGetArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Data(pThis, _value))
}
}
internal func get_ParentImpl() throws -> WinUI.UIElement? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryGetArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Parent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_ParentImpl(_ value: WinUI.UIElement?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryGetArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Parent(pThis, RawPointer(value)))
}
}
}
public class IElementFactoryGetArgsFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryGetArgsFactory }
internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper<WinUI.ElementFactoryGetArgs.Composable>?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IElementFactoryGetArgs {
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_CIElementFactoryGetArgsFactory.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi))
}
}
innerInterface = WindowsFoundation.IInspectable(_innerInterface!)
}
return IElementFactoryGetArgs(value!)
}
}
public class IElementFactoryRecycleArgs: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryRecycleArgs }
internal func get_ElementImpl() throws -> WinUI.UIElement? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryRecycleArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Element(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_ElementImpl(_ value: WinUI.UIElement?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryRecycleArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Element(pThis, RawPointer(value)))
}
}
internal func get_ParentImpl() throws -> WinUI.UIElement? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryRecycleArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Parent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_ParentImpl(_ value: WinUI.UIElement?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryRecycleArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Parent(pThis, RawPointer(value)))
}
}
}
public class IElementFactoryRecycleArgsFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryRecycleArgsFactory }
internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper<WinUI.ElementFactoryRecycleArgs.Composable>?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IElementFactoryRecycleArgs {
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_CIElementFactoryRecycleArgsFactory.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi))
}
}
innerInterface = WindowsFoundation.IInspectable(_innerInterface!)
}
return IElementFactoryRecycleArgs(value!)
}
}
public class IExceptionRoutedEventArgs: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIExceptionRoutedEventArgs }
internal func get_ErrorMessageImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIExceptionRoutedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ErrorMessage(pThis, &value))
}
return .init(from: value)
}
}
public class IExceptionRoutedEventArgsFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIExceptionRoutedEventArgsFactory }
}
public class IFrameworkElement: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement }
internal func get_TriggersImpl() throws -> WinUI.TriggerCollection? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Triggers(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_ResourcesImpl() throws -> WinUI.ResourceDictionary? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Resources(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_ResourcesImpl(_ value: WinUI.ResourceDictionary?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Resources(pThis, RawPointer(value)))
}
}
internal func get_TagImpl() throws -> Any? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Tag(pThis, &valueAbi))
}
}
return __ABI_.AnyWrapper.unwrapFrom(abi: value)
}
internal func put_TagImpl(_ value: Any?) throws {
let valueWrapper = __ABI_.AnyWrapper(value)
let _value = try! valueWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Tag(pThis, _value))
}
}
internal func get_LanguageImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Language(pThis, &value))
}
return .init(from: value)
}
internal func put_LanguageImpl(_ value: String) throws {
let _value = try! HString(value)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Language(pThis, _value.get()))
}
}
internal func get_ActualWidthImpl() throws -> Double {
var value: DOUBLE = 0.0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActualWidth(pThis, &value))
}
return value
}
internal func get_ActualHeightImpl() throws -> Double {
var value: DOUBLE = 0.0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActualHeight(pThis, &value))
}
return value
}
internal func get_WidthImpl() throws -> Double {
var value: DOUBLE = 0.0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Width(pThis, &value))
}
return value
}
internal func put_WidthImpl(_ value: Double) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Width(pThis, value))
}
}
internal func get_HeightImpl() throws -> Double {
var value: DOUBLE = 0.0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Height(pThis, &value))
}
return value
}
internal func put_HeightImpl(_ value: Double) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Height(pThis, value))
}
}
internal func get_MinWidthImpl() throws -> Double {
var value: DOUBLE = 0.0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinWidth(pThis, &value))
}
return value
}
internal func put_MinWidthImpl(_ value: Double) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_MinWidth(pThis, value))
}
}
internal func get_MaxWidthImpl() throws -> Double {
var value: DOUBLE = 0.0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxWidth(pThis, &value))
}
return value
}
internal func put_MaxWidthImpl(_ value: Double) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_MaxWidth(pThis, value))
}
}
internal func get_MinHeightImpl() throws -> Double {
var value: DOUBLE = 0.0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinHeight(pThis, &value))
}
return value
}
internal func put_MinHeightImpl(_ value: Double) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_MinHeight(pThis, value))
}
}
internal func get_MaxHeightImpl() throws -> Double {
var value: DOUBLE = 0.0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxHeight(pThis, &value))
}
return value
}
internal func put_MaxHeightImpl(_ value: Double) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_MaxHeight(pThis, value))
}
}
internal func get_HorizontalAlignmentImpl() throws -> WinUI.HorizontalAlignment {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CHorizontalAlignment = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalAlignment(pThis, &value))
}
return value
}
internal func put_HorizontalAlignmentImpl(_ value: WinUI.HorizontalAlignment) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalAlignment(pThis, value))
}
}
internal func get_VerticalAlignmentImpl() throws -> WinUI.VerticalAlignment {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CVerticalAlignment = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalAlignment(pThis, &value))
}
return value
}
internal func put_VerticalAlignmentImpl(_ value: WinUI.VerticalAlignment) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalAlignment(pThis, value))
}
}
internal func get_MarginImpl() throws -> WinUI.Thickness {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Margin(pThis, &value))
}
return .from(abi: value)
}
internal func put_MarginImpl(_ value: WinUI.Thickness) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Margin(pThis, .from(swift: value)))
}
}
internal func get_NameImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Name(pThis, &value))
}
return .init(from: value)
}
internal func put_NameImpl(_ value: String) throws {
let _value = try! HString(value)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Name(pThis, _value.get()))
}
}
internal func get_BaseUriImpl() throws -> WindowsFoundation.Uri? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_BaseUri(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_DataContextImpl() throws -> Any? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_DataContext(pThis, &valueAbi))
}
}
return __ABI_.AnyWrapper.unwrapFrom(abi: value)
}
internal func put_DataContextImpl(_ value: Any?) throws {
let valueWrapper = __ABI_.AnyWrapper(value)
let _value = try! valueWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_DataContext(pThis, _value))
}
}
internal func get_AllowFocusOnInteractionImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_AllowFocusOnInteraction(pThis, &value))
}
return .init(from: value)
}
internal func put_AllowFocusOnInteractionImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_AllowFocusOnInteraction(pThis, .init(from: value)))
}
}
internal func get_FocusVisualMarginImpl() throws -> WinUI.Thickness {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusVisualMargin(pThis, &value))
}
return .from(abi: value)
}
internal func put_FocusVisualMarginImpl(_ value: WinUI.Thickness) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_FocusVisualMargin(pThis, .from(swift: value)))
}
}
internal func get_FocusVisualSecondaryThicknessImpl() throws -> WinUI.Thickness {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusVisualSecondaryThickness(pThis, &value))
}
return .from(abi: value)
}
internal func put_FocusVisualSecondaryThicknessImpl(_ value: WinUI.Thickness) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_FocusVisualSecondaryThickness(pThis, .from(swift: value)))
}
}
internal func get_FocusVisualPrimaryThicknessImpl() throws -> WinUI.Thickness {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusVisualPrimaryThickness(pThis, &value))
}
return .from(abi: value)
}
internal func put_FocusVisualPrimaryThicknessImpl(_ value: WinUI.Thickness) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_FocusVisualPrimaryThickness(pThis, .from(swift: value)))
}
}
internal func get_FocusVisualSecondaryBrushImpl() throws -> WinUI.Brush? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusVisualSecondaryBrush(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_FocusVisualSecondaryBrushImpl(_ value: WinUI.Brush?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_FocusVisualSecondaryBrush(pThis, RawPointer(value)))
}
}
internal func get_FocusVisualPrimaryBrushImpl() throws -> WinUI.Brush? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusVisualPrimaryBrush(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_FocusVisualPrimaryBrushImpl(_ value: WinUI.Brush?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_FocusVisualPrimaryBrush(pThis, RawPointer(value)))
}
}
internal func get_AllowFocusWhenDisabledImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_AllowFocusWhenDisabled(pThis, &value))
}
return .init(from: value)
}
internal func put_AllowFocusWhenDisabledImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_AllowFocusWhenDisabled(pThis, .init(from: value)))
}
}
internal func get_StyleImpl() throws -> WinUI.Style? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Style(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_StyleImpl(_ value: WinUI.Style?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Style(pThis, RawPointer(value)))
}
}
internal func get_ParentImpl() throws -> WinUI.DependencyObject? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Parent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_FlowDirectionImpl() throws -> WinUI.FlowDirection {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CFlowDirection = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_FlowDirection(pThis, &value))
}
return value
}
internal func put_FlowDirectionImpl(_ value: WinUI.FlowDirection) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_FlowDirection(pThis, value))
}
}
internal func get_RequestedThemeImpl() throws -> WinUI.ElementTheme {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CElementTheme = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_RequestedTheme(pThis, &value))
}
return value
}
internal func put_RequestedThemeImpl(_ value: WinUI.ElementTheme) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_RequestedTheme(pThis, value))
}
}
internal func get_IsLoadedImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsLoaded(pThis, &value))
}
return .init(from: value)
}
internal func get_ActualThemeImpl() throws -> WinUI.ElementTheme {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CElementTheme = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActualTheme(pThis, &value))
}
return value
}
internal func add_LoadedImpl(_ handler: WinUI.RoutedEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml.RoutedEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_Loaded(pThis, _handler, &token))
}
return token
}
internal func remove_LoadedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Loaded(pThis, token))
}
}
internal func add_UnloadedImpl(_ handler: WinUI.RoutedEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml.RoutedEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_Unloaded(pThis, _handler, &token))
}
return token
}
internal func remove_UnloadedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Unloaded(pThis, token))
}
}
internal func add_DataContextChangedImpl(_ handler: TypedEventHandler<WinUI.FrameworkElement?, WinUI.DataContextChangedEventArgs?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CDataContextChangedEventArgsWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_DataContextChanged(pThis, _handler, &token))
}
return token
}
internal func remove_DataContextChangedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_DataContextChanged(pThis, token))
}
}
internal func add_SizeChangedImpl(_ handler: WinUI.SizeChangedEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml.SizeChangedEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_SizeChanged(pThis, _handler, &token))
}
return token
}
internal func remove_SizeChangedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_SizeChanged(pThis, token))
}
}
internal func add_LayoutUpdatedImpl(_ handler: EventHandler<Any?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_LayoutUpdated(pThis, _handler, &token))
}
return token
}
internal func remove_LayoutUpdatedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_LayoutUpdated(pThis, token))
}
}
internal func add_LoadingImpl(_ handler: TypedEventHandler<WinUI.FrameworkElement?, Any?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement_IInspectableWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_Loading(pThis, _handler, &token))
}
return token
}
internal func remove_LoadingImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Loading(pThis, token))
}
}
internal func add_ActualThemeChangedImpl(_ handler: TypedEventHandler<WinUI.FrameworkElement?, Any?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement_IInspectableWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_ActualThemeChanged(pThis, _handler, &token))
}
return token
}
internal func remove_ActualThemeChangedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ActualThemeChanged(pThis, token))
}
}
internal func add_EffectiveViewportChangedImpl(_ handler: TypedEventHandler<WinUI.FrameworkElement?, WinUI.EffectiveViewportChangedEventArgs?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CEffectiveViewportChangedEventArgsWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_EffectiveViewportChanged(pThis, _handler, &token))
}
return token
}
internal func remove_EffectiveViewportChangedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_EffectiveViewportChanged(pThis, token))
}
}
internal func FindNameImpl(_ name: String) throws -> Any? {
let (result) = try ComPtrs.initialize { resultAbi in
let _name = try! HString(name)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.FindName(pThis, _name.get(), &resultAbi))
}
}
return __ABI_.AnyWrapper.unwrapFrom(abi: result)
}
internal func SetBindingImpl(_ dp: WinUI.DependencyProperty?, _ binding: WinUI.BindingBase?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.SetBinding(pThis, RawPointer(dp), RawPointer(binding)))
}
}
internal func GetBindingExpressionImpl(_ dp: WinUI.DependencyProperty?) throws -> WinUI.BindingExpression? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetBindingExpression(pThis, RawPointer(dp), &resultAbi))
}
}
return .from(abi: result)
}
}
public class IFrameworkElementFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementFactory }
internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper<WinUI.FrameworkElement.Composable>?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IFrameworkElement {
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_CIFrameworkElementFactory.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi))
}
}
innerInterface = WindowsFoundation.IInspectable(_innerInterface!)
}
return IFrameworkElement(value!)
}
}
public class IFrameworkElementOverrides: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides }
internal func MeasureOverrideImpl(_ availableSize: WindowsFoundation.Size) throws -> WindowsFoundation.Size {
var result: __x_ABI_CWindows_CFoundation_CSize = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.MeasureOverride(pThis, .from(swift: availableSize), &result))
}
return .from(abi: result)
}
internal func ArrangeOverrideImpl(_ finalSize: WindowsFoundation.Size) throws -> WindowsFoundation.Size {
var result: __x_ABI_CWindows_CFoundation_CSize = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.ArrangeOverride(pThis, .from(swift: finalSize), &result))
}
return .from(abi: result)
}
internal func OnApplyTemplateImpl() throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.OnApplyTemplate(pThis))
}
}
internal func GoToElementStateCoreImpl(_ stateName: String, _ useTransitions: Bool) throws -> Bool {
var result: boolean = 0
let _stateName = try! HString(stateName)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GoToElementStateCore(pThis, _stateName.get(), .init(from: useTransitions), &result))
}
return .init(from: result)
}
}
public class IFrameworkElementProtected: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementProtected }
internal func InvalidateViewportImpl() throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementProtected.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.InvalidateViewport(pThis))
}
}
}
public class IFrameworkElementStatics: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics }
internal func get_TagPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_TagProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_LanguagePropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_LanguageProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_ActualWidthPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActualWidthProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_ActualHeightPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActualHeightProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_WidthPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_WidthProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_HeightPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeightProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_MinWidthPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinWidthProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_MaxWidthPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxWidthProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_MinHeightPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinHeightProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_MaxHeightPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxHeightProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_HorizontalAlignmentPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalAlignmentProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_VerticalAlignmentPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalAlignmentProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_MarginPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_MarginProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_NamePropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_NameProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_DataContextPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_DataContextProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_AllowFocusOnInteractionPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_AllowFocusOnInteractionProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_FocusVisualMarginPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusVisualMarginProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_FocusVisualSecondaryThicknessPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusVisualSecondaryThicknessProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_FocusVisualPrimaryThicknessPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusVisualPrimaryThicknessProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_FocusVisualSecondaryBrushPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusVisualSecondaryBrushProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_FocusVisualPrimaryBrushPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusVisualPrimaryBrushProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_AllowFocusWhenDisabledPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_AllowFocusWhenDisabledProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_StylePropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_StyleProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_FlowDirectionPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_FlowDirectionProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_RequestedThemePropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_RequestedThemeProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_ActualThemePropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActualThemeProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func DeferTreeImpl(_ element: WinUI.DependencyObject?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.DeferTree(pThis, RawPointer(element)))
}
}
}
public class IFrameworkTemplate: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkTemplate }
}
public class IFrameworkTemplateFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkTemplateFactory }
internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper<WinUI.FrameworkTemplate.Composable>?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IFrameworkTemplate {
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_CIFrameworkTemplateFactory.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi))
}
}
innerInterface = WindowsFoundation.IInspectable(_innerInterface!)
}
return IFrameworkTemplate(value!)
}
}
public class ILaunchActivatedEventArgs: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CILaunchActivatedEventArgs }
internal func get_ArgumentsImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CILaunchActivatedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Arguments(pThis, &value))
}
return .init(from: value)
}
internal func get_UWPLaunchActivatedEventArgsImpl() throws -> UWP.LaunchActivatedEventArgs? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CILaunchActivatedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_UWPLaunchActivatedEventArgs(pThis, &valueAbi))
}
}
return .from(abi: value)
}
}
public class IPropertyMetadata: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadata }
internal func get_DefaultValueImpl() throws -> Any? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadata.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_DefaultValue(pThis, &valueAbi))
}
}
return __ABI_.AnyWrapper.unwrapFrom(abi: value)
}
internal func get_CreateDefaultValueCallbackImpl() throws -> WinUI.CreateDefaultValueCallback? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadata.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_CreateDefaultValueCallback(pThis, &valueAbi))
}
}
return __ABI_Microsoft_UI_Xaml.CreateDefaultValueCallbackWrapper.unwrapFrom(abi: value)
}
}
public class IPropertyMetadataFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadataFactory }
internal func CreateInstanceWithDefaultValueImpl(_ defaultValue: Any?, _ baseInterface: UnsealedWinRTClassWrapper<WinUI.PropertyMetadata.Composable>?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IPropertyMetadata {
let (value) = try ComPtrs.initialize { valueAbi in
let defaultValueWrapper = __ABI_.AnyWrapper(defaultValue)
let _defaultValue = try! defaultValueWrapper?.toABI { $0 }
let _baseInterface = baseInterface?.toIInspectableABI { $0 }
let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadataFactory.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstanceWithDefaultValue(pThis, _defaultValue, _baseInterface, &_innerInterfaceAbi, &valueAbi))
}
}
innerInterface = WindowsFoundation.IInspectable(_innerInterface!)
}
return IPropertyMetadata(value!)
}
internal func CreateInstanceWithDefaultValueAndCallbackImpl(_ defaultValue: Any?, _ propertyChangedCallback: WinUI.PropertyChangedCallback?, _ baseInterface: UnsealedWinRTClassWrapper<WinUI.PropertyMetadata.Composable>?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IPropertyMetadata {
let (value) = try ComPtrs.initialize { valueAbi in
let defaultValueWrapper = __ABI_.AnyWrapper(defaultValue)
let _defaultValue = try! defaultValueWrapper?.toABI { $0 }
let propertyChangedCallbackWrapper = __ABI_Microsoft_UI_Xaml.PropertyChangedCallbackWrapper(propertyChangedCallback)
let _propertyChangedCallback = try! propertyChangedCallbackWrapper?.toABI { $0 }
let _baseInterface = baseInterface?.toIInspectableABI { $0 }
let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadataFactory.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstanceWithDefaultValueAndCallback(pThis, _defaultValue, _propertyChangedCallback, _baseInterface, &_innerInterfaceAbi, &valueAbi))
}
}
innerInterface = WindowsFoundation.IInspectable(_innerInterface!)
}
return IPropertyMetadata(value!)
}
}
public class IPropertyMetadataStatics: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadataStatics }
internal func CreateWithDefaultValueImpl(_ defaultValue: Any?) throws -> WinUI.PropertyMetadata? {
let (result) = try ComPtrs.initialize { resultAbi in
let defaultValueWrapper = __ABI_.AnyWrapper(defaultValue)
let _defaultValue = try! defaultValueWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadataStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateWithDefaultValue(pThis, _defaultValue, &resultAbi))
}
}
return .from(abi: result)
}
internal func CreateWithDefaultValueAndCallbackImpl(_ defaultValue: Any?, _ propertyChangedCallback: WinUI.PropertyChangedCallback?) throws -> WinUI.PropertyMetadata? {
let (result) = try ComPtrs.initialize { resultAbi in
let defaultValueWrapper = __ABI_.AnyWrapper(defaultValue)
let _defaultValue = try! defaultValueWrapper?.toABI { $0 }
let propertyChangedCallbackWrapper = __ABI_Microsoft_UI_Xaml.PropertyChangedCallbackWrapper(propertyChangedCallback)
let _propertyChangedCallback = try! propertyChangedCallbackWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadataStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateWithDefaultValueAndCallback(pThis, _defaultValue, _propertyChangedCallback, &resultAbi))
}
}
return .from(abi: result)
}
internal func CreateWithFactoryImpl(_ createDefaultValueCallback: WinUI.CreateDefaultValueCallback?) throws -> WinUI.PropertyMetadata? {
let (result) = try ComPtrs.initialize { resultAbi in
let createDefaultValueCallbackWrapper = __ABI_Microsoft_UI_Xaml.CreateDefaultValueCallbackWrapper(createDefaultValueCallback)
let _createDefaultValueCallback = try! createDefaultValueCallbackWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadataStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateWithFactory(pThis, _createDefaultValueCallback, &resultAbi))
}
}
return .from(abi: result)
}
internal func CreateWithFactoryAndCallbackImpl(_ createDefaultValueCallback: WinUI.CreateDefaultValueCallback?, _ propertyChangedCallback: WinUI.PropertyChangedCallback?) throws -> WinUI.PropertyMetadata? {
let (result) = try ComPtrs.initialize { resultAbi in
let createDefaultValueCallbackWrapper = __ABI_Microsoft_UI_Xaml.CreateDefaultValueCallbackWrapper(createDefaultValueCallback)
let _createDefaultValueCallback = try! createDefaultValueCallbackWrapper?.toABI { $0 }
let propertyChangedCallbackWrapper = __ABI_Microsoft_UI_Xaml.PropertyChangedCallbackWrapper(propertyChangedCallback)
let _propertyChangedCallback = try! propertyChangedCallbackWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadataStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateWithFactoryAndCallback(pThis, _createDefaultValueCallback, _propertyChangedCallback, &resultAbi))
}
}
return .from(abi: result)
}
}
public class IPropertyPath: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIPropertyPath }
internal func get_PathImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyPath.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Path(pThis, &value))
}
return .init(from: value)
}
}
public class IPropertyPathFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIPropertyPathFactory }
internal func CreateInstanceImpl(_ path: String) throws -> IPropertyPath {
let (value) = try ComPtrs.initialize { valueAbi in
let _path = try! HString(path)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyPathFactory.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _path.get(), &valueAbi))
}
}
return IPropertyPath(value!)
}
}
public class IResourceDictionary: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIResourceDictionary }
internal func get_SourceImpl() throws -> WindowsFoundation.Uri? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIResourceDictionary.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Source(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_SourceImpl(_ value: WindowsFoundation.Uri?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIResourceDictionary.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Source(pThis, RawPointer(value)))
}
}
internal func get_MergedDictionariesImpl() throws -> WindowsFoundation.AnyIVector<WinUI.ResourceDictionary?>? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIResourceDictionary.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_MergedDictionaries(pThis, &valueAbi))
}
}
return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper.unwrapFrom(abi: value)
}
internal func get_ThemeDictionariesImpl() throws -> WindowsFoundation.AnyIMap<Any?, Any?>? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIResourceDictionary.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ThemeDictionaries(pThis, &valueAbi))
}
}
return WinUI.__x_ABI_C__FIMap_2_IInspectable_IInspectableWrapper.unwrapFrom(abi: value)
}
}
public class IResourceDictionaryFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIResourceDictionaryFactory }
internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper<WinUI.ResourceDictionary.Composable>?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IResourceDictionary {
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_CIResourceDictionaryFactory.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi))
}
}
innerInterface = WindowsFoundation.IInspectable(_innerInterface!)
}
return IResourceDictionary(value!)
}
}
public class IResourceManagerRequestedEventArgs: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIResourceManagerRequestedEventArgs }
internal func get_CustomResourceManagerImpl() throws -> WinAppSDK.AnyIResourceManager? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIResourceManagerRequestedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_CustomResourceManager(pThis, &valueAbi))
}
}
return __ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceManagerWrapper.unwrapFrom(abi: value)
}
internal func put_CustomResourceManagerImpl(_ value: WinAppSDK.AnyIResourceManager?) throws {
let valueWrapper = __ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceManagerWrapper(value)
let _value = try! valueWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIResourceManagerRequestedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_CustomResourceManager(pThis, _value))
}
}
}
public class IRoutedEvent: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEvent }
}
public class IRoutedEventArgs: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEventArgs }
internal func get_OriginalSourceImpl() throws -> Any? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_OriginalSource(pThis, &valueAbi))
}
}
return __ABI_.AnyWrapper.unwrapFrom(abi: value)
}
}
public class IRoutedEventArgsFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEventArgsFactory }
internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper<WinUI.RoutedEventArgs.Composable>?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IRoutedEventArgs {
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_CIRoutedEventArgsFactory.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi))
}
}
innerInterface = WindowsFoundation.IInspectable(_innerInterface!)
}
return IRoutedEventArgs(value!)
}
}
public class IScalarTransition: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIScalarTransition }
internal func get_DurationImpl() throws -> WindowsFoundation.TimeSpan {
var value: __x_ABI_CWindows_CFoundation_CTimeSpan = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIScalarTransition.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Duration(pThis, &value))
}
return .from(abi: value)
}
internal func put_DurationImpl(_ value: WindowsFoundation.TimeSpan) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIScalarTransition.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Duration(pThis, .from(swift: value)))
}
}
}
public class IScalarTransitionFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIScalarTransitionFactory }
internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper<WinUI.ScalarTransition.Composable>?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IScalarTransition {
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_CIScalarTransitionFactory.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi))
}
}
innerInterface = WindowsFoundation.IInspectable(_innerInterface!)
}
return IScalarTransition(value!)
}
}
public class ISetter: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CISetter }
internal func get_PropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CISetter.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Property(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_PropertyImpl(_ value: WinUI.DependencyProperty?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CISetter.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Property(pThis, RawPointer(value)))
}
}
internal func get_ValueImpl() throws -> Any? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CISetter.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Value(pThis, &valueAbi))
}
}
return __ABI_.AnyWrapper.unwrapFrom(abi: value)
}
internal func put_ValueImpl(_ value: Any?) throws {
let valueWrapper = __ABI_.AnyWrapper(value)
let _value = try! valueWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CISetter.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Value(pThis, _value))
}
}
internal func get_TargetImpl() throws -> WinUI.TargetPropertyPath? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CISetter.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Target(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_TargetImpl(_ value: WinUI.TargetPropertyPath?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CISetter.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Target(pThis, RawPointer(value)))
}
}
}
public class ISetterBase: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CISetterBase }
internal func get_IsSealedImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CISetterBase.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSealed(pThis, &value))
}
return .init(from: value)
}
}
public class ISetterBaseCollection: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CISetterBaseCollection }
internal func get_IsSealedImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CISetterBaseCollection.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSealed(pThis, &value))
}
return .init(from: value)
}
}
public class ISetterBaseFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CISetterBaseFactory }
}
public class ISetterFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CISetterFactory }
internal func CreateInstanceImpl(_ targetProperty: WinUI.DependencyProperty?, _ value: Any?) throws -> ISetter {
let (instance) = try ComPtrs.initialize { instanceAbi in
let valueWrapper = __ABI_.AnyWrapper(value)
let _value = try! valueWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CISetterFactory.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, RawPointer(targetProperty), _value, &instanceAbi))
}
}
return ISetter(instance!)
}
}
public class ISizeChangedEventArgs: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CISizeChangedEventArgs }
internal func get_PreviousSizeImpl() throws -> WindowsFoundation.Size {
var value: __x_ABI_CWindows_CFoundation_CSize = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CISizeChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_PreviousSize(pThis, &value))
}
return .from(abi: value)
}
internal func get_NewSizeImpl() throws -> WindowsFoundation.Size {
var value: __x_ABI_CWindows_CFoundation_CSize = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CISizeChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_NewSize(pThis, &value))
}
return .from(abi: value)
}
}
public class IStyle: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIStyle }
internal func get_IsSealedImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIStyle.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSealed(pThis, &value))
}
return .init(from: value)
}
internal func get_SettersImpl() throws -> WinUI.SetterBaseCollection? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIStyle.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Setters(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_TargetTypeImpl() throws -> WinUI.TypeName {
var value: __x_ABI_CWindows_CUI_CXaml_CInterop_CTypeName = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIStyle.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetType(pThis, &value))
}
return .from(abi: value)
}
internal func put_TargetTypeImpl(_ value: WinUI.TypeName) throws {
let _value = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: value)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIStyle.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_TargetType(pThis, _value.val))
}
}
internal func get_BasedOnImpl() throws -> WinUI.Style? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIStyle.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_BasedOn(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_BasedOnImpl(_ value: WinUI.Style?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIStyle.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_BasedOn(pThis, RawPointer(value)))
}
}
internal func SealImpl() throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIStyle.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Seal(pThis))
}
}
}
public class IStyleFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIStyleFactory }
internal func CreateInstanceImpl(_ targetType: WinUI.TypeName) throws -> IStyle {
let (value) = try ComPtrs.initialize { valueAbi in
let _targetType = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: targetType)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIStyleFactory.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _targetType.val, &valueAbi))
}
}
return IStyle(value!)
}
}
public class ITargetPropertyPath: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CITargetPropertyPath }
internal func get_PathImpl() throws -> WinUI.PropertyPath? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CITargetPropertyPath.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Path(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_PathImpl(_ value: WinUI.PropertyPath?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CITargetPropertyPath.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Path(pThis, RawPointer(value)))
}
}
internal func get_TargetImpl() throws -> Any? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CITargetPropertyPath.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Target(pThis, &valueAbi))
}
}
return __ABI_.AnyWrapper.unwrapFrom(abi: value)
}
internal func put_TargetImpl(_ value: Any?) throws {
let valueWrapper = __ABI_.AnyWrapper(value)
let _value = try! valueWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CITargetPropertyPath.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Target(pThis, _value))
}
}
}
public class ITargetPropertyPathFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CITargetPropertyPathFactory }
internal func CreateInstanceImpl(_ targetProperty: WinUI.DependencyProperty?) throws -> ITargetPropertyPath {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CITargetPropertyPathFactory.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, RawPointer(targetProperty), &valueAbi))
}
}
return ITargetPropertyPath(value!)
}
}
public class ITriggerAction: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CITriggerAction }
}
public class ITriggerActionFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CITriggerActionFactory }
}
public class ITriggerBase: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CITriggerBase }
}
public class ITriggerBaseFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CITriggerBaseFactory }
}
public class IUIElement: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIUIElement }
internal func get_DesiredSizeImpl() throws -> WindowsFoundation.Size {
var value: __x_ABI_CWindows_CFoundation_CSize = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_DesiredSize(pThis, &value))
}
return .from(abi: value)
}
internal func get_AllowDropImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_AllowDrop(pThis, &value))
}
return .init(from: value)
}
internal func put_AllowDropImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_AllowDrop(pThis, .init(from: value)))
}
}
internal func get_OpacityImpl() throws -> Double {
var value: DOUBLE = 0.0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Opacity(pThis, &value))
}
return value
}
internal func put_OpacityImpl(_ value: Double) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Opacity(pThis, value))
}
}
internal func get_ClipImpl() throws -> WinUI.RectangleGeometry? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Clip(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_ClipImpl(_ value: WinUI.RectangleGeometry?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Clip(pThis, RawPointer(value)))
}
}
internal func get_RenderTransformImpl() throws -> WinUI.Transform? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_RenderTransform(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_RenderTransformImpl(_ value: WinUI.Transform?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_RenderTransform(pThis, RawPointer(value)))
}
}
internal func get_ProjectionImpl() throws -> WinUI.Projection? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Projection(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_ProjectionImpl(_ value: WinUI.Projection?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Projection(pThis, RawPointer(value)))
}
}
internal func get_Transform3DImpl() throws -> WinUI.Transform3D? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Transform3D(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_Transform3DImpl(_ value: WinUI.Transform3D?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Transform3D(pThis, RawPointer(value)))
}
}
internal func get_RenderTransformOriginImpl() throws -> WindowsFoundation.Point {
var value: __x_ABI_CWindows_CFoundation_CPoint = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_RenderTransformOrigin(pThis, &value))
}
return .from(abi: value)
}
internal func put_RenderTransformOriginImpl(_ value: WindowsFoundation.Point) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_RenderTransformOrigin(pThis, .from(swift: value)))
}
}
internal func get_IsHitTestVisibleImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsHitTestVisible(pThis, &value))
}
return .init(from: value)
}
internal func put_IsHitTestVisibleImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsHitTestVisible(pThis, .init(from: value)))
}
}
internal func get_VisibilityImpl() throws -> WinUI.Visibility {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CVisibility = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Visibility(pThis, &value))
}
return value
}
internal func put_VisibilityImpl(_ value: WinUI.Visibility) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Visibility(pThis, value))
}
}
internal func get_RenderSizeImpl() throws -> WindowsFoundation.Size {
var value: __x_ABI_CWindows_CFoundation_CSize = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_RenderSize(pThis, &value))
}
return .from(abi: value)
}
internal func get_UseLayoutRoundingImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_UseLayoutRounding(pThis, &value))
}
return .init(from: value)
}
internal func put_UseLayoutRoundingImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_UseLayoutRounding(pThis, .init(from: value)))
}
}
internal func get_TransitionsImpl() throws -> WinUI.TransitionCollection? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Transitions(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_TransitionsImpl(_ value: WinUI.TransitionCollection?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Transitions(pThis, RawPointer(value)))
}
}
internal func get_CacheModeImpl() throws -> WinUI.CacheMode? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_CacheMode(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_CacheModeImpl(_ value: WinUI.CacheMode?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_CacheMode(pThis, RawPointer(value)))
}
}
internal func get_IsTapEnabledImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTapEnabled(pThis, &value))
}
return .init(from: value)
}
internal func put_IsTapEnabledImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsTapEnabled(pThis, .init(from: value)))
}
}
internal func get_IsDoubleTapEnabledImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsDoubleTapEnabled(pThis, &value))
}
return .init(from: value)
}
internal func put_IsDoubleTapEnabledImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsDoubleTapEnabled(pThis, .init(from: value)))
}
}
internal func get_CanDragImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanDrag(pThis, &value))
}
return .init(from: value)
}
internal func put_CanDragImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_CanDrag(pThis, .init(from: value)))
}
}
internal func get_IsRightTapEnabledImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsRightTapEnabled(pThis, &value))
}
return .init(from: value)
}
internal func put_IsRightTapEnabledImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsRightTapEnabled(pThis, .init(from: value)))
}
}
internal func get_IsHoldingEnabledImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsHoldingEnabled(pThis, &value))
}
return .init(from: value)
}
internal func put_IsHoldingEnabledImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsHoldingEnabled(pThis, .init(from: value)))
}
}
internal func get_ManipulationModeImpl() throws -> WinUI.ManipulationModes {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CManipulationModes = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ManipulationMode(pThis, &value))
}
return value
}
internal func put_ManipulationModeImpl(_ value: WinUI.ManipulationModes) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_ManipulationMode(pThis, value))
}
}
internal func get_PointerCapturesImpl() throws -> WindowsFoundation.AnyIVectorView<WinUI.Pointer?>? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerCaptures(pThis, &valueAbi))
}
}
return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerWrapper.unwrapFrom(abi: value)
}
internal func get_ContextFlyoutImpl() throws -> WinUI.FlyoutBase? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContextFlyout(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_ContextFlyoutImpl(_ value: WinUI.FlyoutBase?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_ContextFlyout(pThis, RawPointer(value)))
}
}
internal func get_CompositeModeImpl() throws -> WinUI.ElementCompositeMode {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CElementCompositeMode = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_CompositeMode(pThis, &value))
}
return value
}
internal func put_CompositeModeImpl(_ value: WinUI.ElementCompositeMode) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_CompositeMode(pThis, value))
}
}
internal func get_LightsImpl() throws -> WindowsFoundation.AnyIVector<WinUI.XamlLight?>? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Lights(pThis, &valueAbi))
}
}
return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper.unwrapFrom(abi: value)
}
internal func get_CanBeScrollAnchorImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanBeScrollAnchor(pThis, &value))
}
return .init(from: value)
}
internal func put_CanBeScrollAnchorImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_CanBeScrollAnchor(pThis, .init(from: value)))
}
}
internal func get_ExitDisplayModeOnAccessKeyInvokedImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExitDisplayModeOnAccessKeyInvoked(pThis, &value))
}
return .init(from: value)
}
internal func put_ExitDisplayModeOnAccessKeyInvokedImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_ExitDisplayModeOnAccessKeyInvoked(pThis, .init(from: value)))
}
}
internal func get_IsAccessKeyScopeImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsAccessKeyScope(pThis, &value))
}
return .init(from: value)
}
internal func put_IsAccessKeyScopeImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsAccessKeyScope(pThis, .init(from: value)))
}
}
internal func get_AccessKeyScopeOwnerImpl() throws -> WinUI.DependencyObject? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_AccessKeyScopeOwner(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_AccessKeyScopeOwnerImpl(_ value: WinUI.DependencyObject?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_AccessKeyScopeOwner(pThis, RawPointer(value)))
}
}
internal func get_AccessKeyImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_AccessKey(pThis, &value))
}
return .init(from: value)
}
internal func put_AccessKeyImpl(_ value: String) throws {
let _value = try! HString(value)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_AccessKey(pThis, _value.get()))
}
}
internal func get_KeyTipPlacementModeImpl() throws -> WinUI.KeyTipPlacementMode {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CKeyTipPlacementMode = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTipPlacementMode(pThis, &value))
}
return value
}
internal func put_KeyTipPlacementModeImpl(_ value: WinUI.KeyTipPlacementMode) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_KeyTipPlacementMode(pThis, value))
}
}
internal func get_KeyTipHorizontalOffsetImpl() throws -> Double {
var value: DOUBLE = 0.0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTipHorizontalOffset(pThis, &value))
}
return value
}
internal func put_KeyTipHorizontalOffsetImpl(_ value: Double) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_KeyTipHorizontalOffset(pThis, value))
}
}
internal func get_KeyTipVerticalOffsetImpl() throws -> Double {
var value: DOUBLE = 0.0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTipVerticalOffset(pThis, &value))
}
return value
}
internal func put_KeyTipVerticalOffsetImpl(_ value: Double) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_KeyTipVerticalOffset(pThis, value))
}
}
internal func get_KeyTipTargetImpl() throws -> WinUI.DependencyObject? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTipTarget(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_KeyTipTargetImpl(_ value: WinUI.DependencyObject?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_KeyTipTarget(pThis, RawPointer(value)))
}
}
internal func get_XYFocusKeyboardNavigationImpl() throws -> WinUI.XYFocusKeyboardNavigationMode {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusKeyboardNavigationMode = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusKeyboardNavigation(pThis, &value))
}
return value
}
internal func put_XYFocusKeyboardNavigationImpl(_ value: WinUI.XYFocusKeyboardNavigationMode) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusKeyboardNavigation(pThis, value))
}
}
internal func get_XYFocusUpNavigationStrategyImpl() throws -> WinUI.XYFocusNavigationStrategy {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusNavigationStrategy = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusUpNavigationStrategy(pThis, &value))
}
return value
}
internal func put_XYFocusUpNavigationStrategyImpl(_ value: WinUI.XYFocusNavigationStrategy) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusUpNavigationStrategy(pThis, value))
}
}
internal func get_XYFocusDownNavigationStrategyImpl() throws -> WinUI.XYFocusNavigationStrategy {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusNavigationStrategy = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusDownNavigationStrategy(pThis, &value))
}
return value
}
internal func put_XYFocusDownNavigationStrategyImpl(_ value: WinUI.XYFocusNavigationStrategy) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusDownNavigationStrategy(pThis, value))
}
}
internal func get_XYFocusLeftNavigationStrategyImpl() throws -> WinUI.XYFocusNavigationStrategy {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusNavigationStrategy = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusLeftNavigationStrategy(pThis, &value))
}
return value
}
internal func put_XYFocusLeftNavigationStrategyImpl(_ value: WinUI.XYFocusNavigationStrategy) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusLeftNavigationStrategy(pThis, value))
}
}
internal func get_XYFocusRightNavigationStrategyImpl() throws -> WinUI.XYFocusNavigationStrategy {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusNavigationStrategy = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusRightNavigationStrategy(pThis, &value))
}
return value
}
internal func put_XYFocusRightNavigationStrategyImpl(_ value: WinUI.XYFocusNavigationStrategy) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusRightNavigationStrategy(pThis, value))
}
}
internal func get_KeyboardAcceleratorsImpl() throws -> WindowsFoundation.AnyIVector<WinUI.KeyboardAccelerator?>? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyboardAccelerators(pThis, &valueAbi))
}
}
return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper.unwrapFrom(abi: value)
}
internal func get_KeyboardAcceleratorPlacementTargetImpl() throws -> WinUI.DependencyObject? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyboardAcceleratorPlacementTarget(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_KeyboardAcceleratorPlacementTargetImpl(_ value: WinUI.DependencyObject?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_KeyboardAcceleratorPlacementTarget(pThis, RawPointer(value)))
}
}
internal func get_KeyboardAcceleratorPlacementModeImpl() throws -> WinUI.KeyboardAcceleratorPlacementMode {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CKeyboardAcceleratorPlacementMode = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyboardAcceleratorPlacementMode(pThis, &value))
}
return value
}
internal func put_KeyboardAcceleratorPlacementModeImpl(_ value: WinUI.KeyboardAcceleratorPlacementMode) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_KeyboardAcceleratorPlacementMode(pThis, value))
}
}
internal func get_HighContrastAdjustmentImpl() throws -> WinUI.ElementHighContrastAdjustment {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CElementHighContrastAdjustment = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HighContrastAdjustment(pThis, &value))
}
return value
}
internal func put_HighContrastAdjustmentImpl(_ value: WinUI.ElementHighContrastAdjustment) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_HighContrastAdjustment(pThis, value))
}
}
internal func get_TabFocusNavigationImpl() throws -> WinUI.KeyboardNavigationMode {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CKeyboardNavigationMode = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_TabFocusNavigation(pThis, &value))
}
return value
}
internal func put_TabFocusNavigationImpl(_ value: WinUI.KeyboardNavigationMode) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_TabFocusNavigation(pThis, value))
}
}
internal func get_OpacityTransitionImpl() throws -> WinUI.ScalarTransition? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpacityTransition(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_OpacityTransitionImpl(_ value: WinUI.ScalarTransition?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_OpacityTransition(pThis, RawPointer(value)))
}
}
internal func get_TranslationImpl() throws -> WindowsFoundation.Vector3 {
var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Translation(pThis, &value))
}
return .from(abi: value)
}
internal func put_TranslationImpl(_ value: WindowsFoundation.Vector3) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Translation(pThis, .from(swift: value)))
}
}
internal func get_TranslationTransitionImpl() throws -> WinUI.Vector3Transition? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_TranslationTransition(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_TranslationTransitionImpl(_ value: WinUI.Vector3Transition?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_TranslationTransition(pThis, RawPointer(value)))
}
}
internal func get_RotationImpl() throws -> Float {
var value: FLOAT = 0.0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Rotation(pThis, &value))
}
return value
}
internal func put_RotationImpl(_ value: Float) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Rotation(pThis, value))
}
}
internal func get_RotationTransitionImpl() throws -> WinUI.ScalarTransition? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_RotationTransition(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_RotationTransitionImpl(_ value: WinUI.ScalarTransition?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_RotationTransition(pThis, RawPointer(value)))
}
}
internal func get_ScaleImpl() throws -> WindowsFoundation.Vector3 {
var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Scale(pThis, &value))
}
return .from(abi: value)
}
internal func put_ScaleImpl(_ value: WindowsFoundation.Vector3) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Scale(pThis, .from(swift: value)))
}
}
internal func get_ScaleTransitionImpl() throws -> WinUI.Vector3Transition? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScaleTransition(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_ScaleTransitionImpl(_ value: WinUI.Vector3Transition?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_ScaleTransition(pThis, RawPointer(value)))
}
}
internal func get_TransformMatrixImpl() throws -> WindowsFoundation.Matrix4x4 {
var value: __x_ABI_CWindows_CFoundation_CNumerics_CMatrix4x4 = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_TransformMatrix(pThis, &value))
}
return .from(abi: value)
}
internal func put_TransformMatrixImpl(_ value: WindowsFoundation.Matrix4x4) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_TransformMatrix(pThis, .from(swift: value)))
}
}
internal func get_CenterPointImpl() throws -> WindowsFoundation.Vector3 {
var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_CenterPoint(pThis, &value))
}
return .from(abi: value)
}
internal func put_CenterPointImpl(_ value: WindowsFoundation.Vector3) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_CenterPoint(pThis, .from(swift: value)))
}
}
internal func get_RotationAxisImpl() throws -> WindowsFoundation.Vector3 {
var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_RotationAxis(pThis, &value))
}
return .from(abi: value)
}
internal func put_RotationAxisImpl(_ value: WindowsFoundation.Vector3) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_RotationAxis(pThis, .from(swift: value)))
}
}
internal func get_ActualOffsetImpl() throws -> WindowsFoundation.Vector3 {
var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActualOffset(pThis, &value))
}
return .from(abi: value)
}
internal func get_ActualSizeImpl() throws -> WindowsFoundation.Vector2 {
var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActualSize(pThis, &value))
}
return .from(abi: value)
}
internal func get_XamlRootImpl() throws -> WinUI.XamlRoot? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_XamlRoot(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_XamlRootImpl(_ value: WinUI.XamlRoot?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_XamlRoot(pThis, RawPointer(value)))
}
}
internal func get_ShadowImpl() throws -> WinUI.Shadow? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Shadow(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_ShadowImpl(_ value: WinUI.Shadow?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Shadow(pThis, RawPointer(value)))
}
}
internal func get_RasterizationScaleImpl() throws -> Double {
var value: DOUBLE = 0.0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_RasterizationScale(pThis, &value))
}
return value
}
internal func put_RasterizationScaleImpl(_ value: Double) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_RasterizationScale(pThis, value))
}
}
internal func get_FocusStateImpl() throws -> WinUI.FocusState {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CFocusState = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusState(pThis, &value))
}
return value
}
internal func get_UseSystemFocusVisualsImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_UseSystemFocusVisuals(pThis, &value))
}
return .init(from: value)
}
internal func put_UseSystemFocusVisualsImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_UseSystemFocusVisuals(pThis, .init(from: value)))
}
}
internal func get_XYFocusLeftImpl() throws -> WinUI.DependencyObject? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusLeft(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_XYFocusLeftImpl(_ value: WinUI.DependencyObject?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusLeft(pThis, RawPointer(value)))
}
}
internal func get_XYFocusRightImpl() throws -> WinUI.DependencyObject? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusRight(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_XYFocusRightImpl(_ value: WinUI.DependencyObject?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusRight(pThis, RawPointer(value)))
}
}
internal func get_XYFocusUpImpl() throws -> WinUI.DependencyObject? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusUp(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_XYFocusUpImpl(_ value: WinUI.DependencyObject?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusUp(pThis, RawPointer(value)))
}
}
internal func get_XYFocusDownImpl() throws -> WinUI.DependencyObject? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusDown(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_XYFocusDownImpl(_ value: WinUI.DependencyObject?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusDown(pThis, RawPointer(value)))
}
}
internal func get_IsTabStopImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTabStop(pThis, &value))
}
return .init(from: value)
}
internal func put_IsTabStopImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsTabStop(pThis, .init(from: value)))
}
}
internal func get_TabIndexImpl() throws -> Int32 {
var value: INT32 = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_TabIndex(pThis, &value))
}
return value
}
internal func put_TabIndexImpl(_ value: Int32) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_TabIndex(pThis, value))
}
}
internal func add_KeyUpImpl(_ handler: WinUI.KeyEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.KeyEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_KeyUp(pThis, _handler, &token))
}
return token
}
internal func remove_KeyUpImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_KeyUp(pThis, token))
}
}
internal func add_KeyDownImpl(_ handler: WinUI.KeyEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.KeyEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_KeyDown(pThis, _handler, &token))
}
return token
}
internal func remove_KeyDownImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_KeyDown(pThis, token))
}
}
internal func add_GotFocusImpl(_ handler: WinUI.RoutedEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml.RoutedEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.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_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_GotFocus(pThis, token))
}
}
internal func add_LostFocusImpl(_ handler: WinUI.RoutedEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml.RoutedEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_LostFocus(pThis, _handler, &token))
}
return token
}
internal func remove_LostFocusImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_LostFocus(pThis, token))
}
}
internal func add_DragStartingImpl(_ handler: TypedEventHandler<WinUI.UIElement?, WinUI.DragStartingEventArgs?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDragStartingEventArgsWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_DragStarting(pThis, _handler, &token))
}
return token
}
internal func remove_DragStartingImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_DragStarting(pThis, token))
}
}
internal func add_DropCompletedImpl(_ handler: TypedEventHandler<WinUI.UIElement?, WinUI.DropCompletedEventArgs?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDropCompletedEventArgsWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_DropCompleted(pThis, _handler, &token))
}
return token
}
internal func remove_DropCompletedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_DropCompleted(pThis, token))
}
}
internal func add_CharacterReceivedImpl(_ handler: TypedEventHandler<WinUI.UIElement?, WinUI.CharacterReceivedRoutedEventArgs?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CCharacterReceivedRoutedEventArgsWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_CharacterReceived(pThis, _handler, &token))
}
return token
}
internal func remove_CharacterReceivedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_CharacterReceived(pThis, token))
}
}
internal func add_DragEnterImpl(_ handler: WinUI.DragEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml.DragEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_DragEnter(pThis, _handler, &token))
}
return token
}
internal func remove_DragEnterImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_DragEnter(pThis, token))
}
}
internal func add_DragLeaveImpl(_ handler: WinUI.DragEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml.DragEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_DragLeave(pThis, _handler, &token))
}
return token
}
internal func remove_DragLeaveImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_DragLeave(pThis, token))
}
}
internal func add_DragOverImpl(_ handler: WinUI.DragEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml.DragEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_DragOver(pThis, _handler, &token))
}
return token
}
internal func remove_DragOverImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_DragOver(pThis, token))
}
}
internal func add_DropImpl(_ handler: WinUI.DragEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml.DragEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_Drop(pThis, _handler, &token))
}
return token
}
internal func remove_DropImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Drop(pThis, token))
}
}
internal func add_PointerPressedImpl(_ handler: WinUI.PointerEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.PointerEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_PointerPressed(pThis, _handler, &token))
}
return token
}
internal func remove_PointerPressedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerPressed(pThis, token))
}
}
internal func add_PointerMovedImpl(_ handler: WinUI.PointerEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.PointerEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_PointerMoved(pThis, _handler, &token))
}
return token
}
internal func remove_PointerMovedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerMoved(pThis, token))
}
}
internal func add_PointerReleasedImpl(_ handler: WinUI.PointerEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.PointerEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_PointerReleased(pThis, _handler, &token))
}
return token
}
internal func remove_PointerReleasedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerReleased(pThis, token))
}
}
internal func add_PointerEnteredImpl(_ handler: WinUI.PointerEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.PointerEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_PointerEntered(pThis, _handler, &token))
}
return token
}
internal func remove_PointerEnteredImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerEntered(pThis, token))
}
}
internal func add_PointerExitedImpl(_ handler: WinUI.PointerEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.PointerEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_PointerExited(pThis, _handler, &token))
}
return token
}
internal func remove_PointerExitedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerExited(pThis, token))
}
}
internal func add_PointerCaptureLostImpl(_ handler: WinUI.PointerEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.PointerEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_PointerCaptureLost(pThis, _handler, &token))
}
return token
}
internal func remove_PointerCaptureLostImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerCaptureLost(pThis, token))
}
}
internal func add_PointerCanceledImpl(_ handler: WinUI.PointerEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.PointerEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_PointerCanceled(pThis, _handler, &token))
}
return token
}
internal func remove_PointerCanceledImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerCanceled(pThis, token))
}
}
internal func add_PointerWheelChangedImpl(_ handler: WinUI.PointerEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.PointerEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_PointerWheelChanged(pThis, _handler, &token))
}
return token
}
internal func remove_PointerWheelChangedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerWheelChanged(pThis, token))
}
}
internal func add_TappedImpl(_ handler: WinUI.TappedEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.TappedEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_Tapped(pThis, _handler, &token))
}
return token
}
internal func remove_TappedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Tapped(pThis, token))
}
}
internal func add_DoubleTappedImpl(_ handler: WinUI.DoubleTappedEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.DoubleTappedEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_DoubleTapped(pThis, _handler, &token))
}
return token
}
internal func remove_DoubleTappedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_DoubleTapped(pThis, token))
}
}
internal func add_HoldingImpl(_ handler: WinUI.HoldingEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.HoldingEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_Holding(pThis, _handler, &token))
}
return token
}
internal func remove_HoldingImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Holding(pThis, token))
}
}
internal func add_ContextRequestedImpl(_ handler: TypedEventHandler<WinUI.UIElement?, WinUI.ContextRequestedEventArgs?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CContextRequestedEventArgsWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_ContextRequested(pThis, _handler, &token))
}
return token
}
internal func remove_ContextRequestedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ContextRequested(pThis, token))
}
}
internal func add_ContextCanceledImpl(_ handler: TypedEventHandler<WinUI.UIElement?, WinUI.RoutedEventArgs?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CRoutedEventArgsWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_ContextCanceled(pThis, _handler, &token))
}
return token
}
internal func remove_ContextCanceledImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ContextCanceled(pThis, token))
}
}
internal func add_RightTappedImpl(_ handler: WinUI.RightTappedEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.RightTappedEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_RightTapped(pThis, _handler, &token))
}
return token
}
internal func remove_RightTappedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_RightTapped(pThis, token))
}
}
internal func add_ManipulationStartingImpl(_ handler: WinUI.ManipulationStartingEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.ManipulationStartingEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_ManipulationStarting(pThis, _handler, &token))
}
return token
}
internal func remove_ManipulationStartingImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ManipulationStarting(pThis, token))
}
}
internal func add_ManipulationInertiaStartingImpl(_ handler: WinUI.ManipulationInertiaStartingEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.ManipulationInertiaStartingEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_ManipulationInertiaStarting(pThis, _handler, &token))
}
return token
}
internal func remove_ManipulationInertiaStartingImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ManipulationInertiaStarting(pThis, token))
}
}
internal func add_ManipulationStartedImpl(_ handler: WinUI.ManipulationStartedEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.ManipulationStartedEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_ManipulationStarted(pThis, _handler, &token))
}
return token
}
internal func remove_ManipulationStartedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ManipulationStarted(pThis, token))
}
}
internal func add_ManipulationDeltaImpl(_ handler: WinUI.ManipulationDeltaEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.ManipulationDeltaEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_ManipulationDelta(pThis, _handler, &token))
}
return token
}
internal func remove_ManipulationDeltaImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ManipulationDelta(pThis, token))
}
}
internal func add_ManipulationCompletedImpl(_ handler: WinUI.ManipulationCompletedEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.ManipulationCompletedEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_ManipulationCompleted(pThis, _handler, &token))
}
return token
}
internal func remove_ManipulationCompletedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ManipulationCompleted(pThis, token))
}
}
internal func add_AccessKeyDisplayRequestedImpl(_ handler: TypedEventHandler<WinUI.UIElement?, WinUI.AccessKeyDisplayRequestedEventArgs?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgsWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_AccessKeyDisplayRequested(pThis, _handler, &token))
}
return token
}
internal func remove_AccessKeyDisplayRequestedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_AccessKeyDisplayRequested(pThis, token))
}
}
internal func add_AccessKeyDisplayDismissedImpl(_ handler: TypedEventHandler<WinUI.UIElement?, WinUI.AccessKeyDisplayDismissedEventArgs?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgsWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_AccessKeyDisplayDismissed(pThis, _handler, &token))
}
return token
}
internal func remove_AccessKeyDisplayDismissedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_AccessKeyDisplayDismissed(pThis, token))
}
}
internal func add_AccessKeyInvokedImpl(_ handler: TypedEventHandler<WinUI.UIElement?, WinUI.AccessKeyInvokedEventArgs?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgsWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_AccessKeyInvoked(pThis, _handler, &token))
}
return token
}
internal func remove_AccessKeyInvokedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_AccessKeyInvoked(pThis, token))
}
}
internal func add_ProcessKeyboardAcceleratorsImpl(_ handler: TypedEventHandler<WinUI.UIElement?, WinUI.ProcessKeyboardAcceleratorEventArgs?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CProcessKeyboardAcceleratorEventArgsWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_ProcessKeyboardAccelerators(pThis, _handler, &token))
}
return token
}
internal func remove_ProcessKeyboardAcceleratorsImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ProcessKeyboardAccelerators(pThis, token))
}
}
internal func add_GettingFocusImpl(_ handler: TypedEventHandler<WinUI.UIElement?, WinUI.GettingFocusEventArgs?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgsWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_GettingFocus(pThis, _handler, &token))
}
return token
}
internal func remove_GettingFocusImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_GettingFocus(pThis, token))
}
}
internal func add_LosingFocusImpl(_ handler: TypedEventHandler<WinUI.UIElement?, WinUI.LosingFocusEventArgs?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgsWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_LosingFocus(pThis, _handler, &token))
}
return token
}
internal func remove_LosingFocusImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_LosingFocus(pThis, token))
}
}
internal func add_NoFocusCandidateFoundImpl(_ handler: TypedEventHandler<WinUI.UIElement?, WinUI.NoFocusCandidateFoundEventArgs?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CNoFocusCandidateFoundEventArgsWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_NoFocusCandidateFound(pThis, _handler, &token))
}
return token
}
internal func remove_NoFocusCandidateFoundImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_NoFocusCandidateFound(pThis, token))
}
}
internal func add_PreviewKeyDownImpl(_ handler: WinUI.KeyEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.KeyEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_PreviewKeyDown(pThis, _handler, &token))
}
return token
}
internal func remove_PreviewKeyDownImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PreviewKeyDown(pThis, token))
}
}
internal func add_PreviewKeyUpImpl(_ handler: WinUI.KeyEventHandler?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.KeyEventHandlerWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_PreviewKeyUp(pThis, _handler, &token))
}
return token
}
internal func remove_PreviewKeyUpImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PreviewKeyUp(pThis, token))
}
}
internal func add_BringIntoViewRequestedImpl(_ handler: TypedEventHandler<WinUI.UIElement?, WinUI.BringIntoViewRequestedEventArgs?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CBringIntoViewRequestedEventArgsWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_BringIntoViewRequested(pThis, _handler, &token))
}
return token
}
internal func remove_BringIntoViewRequestedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_BringIntoViewRequested(pThis, token))
}
}
internal func MeasureImpl(_ availableSize: WindowsFoundation.Size) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Measure(pThis, .from(swift: availableSize)))
}
}
internal func ArrangeImpl(_ finalRect: WindowsFoundation.Rect) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Arrange(pThis, .from(swift: finalRect)))
}
}
internal func CapturePointerImpl(_ value: WinUI.Pointer?) throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CapturePointer(pThis, RawPointer(value), &result))
}
return .init(from: result)
}
internal func ReleasePointerCaptureImpl(_ value: WinUI.Pointer?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.ReleasePointerCapture(pThis, RawPointer(value)))
}
}
internal func ReleasePointerCapturesImpl() throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.ReleasePointerCaptures(pThis))
}
}
internal func AddHandlerImpl(_ routedEvent: WinUI.RoutedEvent?, _ handler: Any?, _ handledEventsToo: Bool) throws {
let handlerWrapper = __ABI_.AnyWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.AddHandler(pThis, RawPointer(routedEvent), _handler, .init(from: handledEventsToo)))
}
}
internal func RemoveHandlerImpl(_ routedEvent: WinUI.RoutedEvent?, _ handler: Any?) throws {
let handlerWrapper = __ABI_.AnyWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveHandler(pThis, RawPointer(routedEvent), _handler))
}
}
internal func TransformToVisualImpl(_ visual: WinUI.UIElement?) throws -> WinUI.GeneralTransform? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.TransformToVisual(pThis, RawPointer(visual), &resultAbi))
}
}
return .from(abi: result)
}
internal func InvalidateMeasureImpl() throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.InvalidateMeasure(pThis))
}
}
internal func InvalidateArrangeImpl() throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.InvalidateArrange(pThis))
}
}
internal func UpdateLayoutImpl() throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.UpdateLayout(pThis))
}
}
internal func CancelDirectManipulationsImpl() throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CancelDirectManipulations(pThis, &result))
}
return .init(from: result)
}
internal func StartDragAsyncImpl(_ pointerPoint: WinAppSDK.PointerPoint?) throws -> WindowsFoundation.AnyIAsyncOperation<UWP.DataPackageOperation>? {
let (operation) = try ComPtrs.initialize { operationAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.StartDragAsync(pThis, RawPointer(pointerPoint), &operationAbi))
}
}
return WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationWrapper.unwrapFrom(abi: operation)
}
internal func StartBringIntoViewImpl() throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.StartBringIntoView(pThis))
}
}
internal func StartBringIntoViewWithOptionsImpl(_ options: WinUI.BringIntoViewOptions?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.StartBringIntoViewWithOptions(pThis, RawPointer(options)))
}
}
internal func TryInvokeKeyboardAcceleratorImpl(_ args: WinUI.ProcessKeyboardAcceleratorEventArgs?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.TryInvokeKeyboardAccelerator(pThis, RawPointer(args)))
}
}
internal func FocusImpl(_ value: WinUI.FocusState) throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Focus(pThis, value, &result))
}
return .init(from: result)
}
internal func StartAnimationImpl(_ 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_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.StartAnimation(pThis, _animation))
}
}
internal func StopAnimationImpl(_ 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_CIUIElement.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.StopAnimation(pThis, _animation))
}
}
}
public class IUIElementFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIUIElementFactory }
}
public class IUIElementOverrides: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverrides }
internal func OnCreateAutomationPeerImpl() throws -> WinUI.AutomationPeer? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverrides.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.OnCreateAutomationPeer(pThis, &resultAbi))
}
}
return .from(abi: result)
}
internal func OnDisconnectVisualChildrenImpl() throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverrides.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.OnDisconnectVisualChildren(pThis))
}
}
internal func FindSubElementsForTouchTargetingImpl(_ point: WindowsFoundation.Point, _ boundingRect: WindowsFoundation.Rect) throws -> WindowsFoundation.AnyIIterable<WindowsFoundation.AnyIIterable<WindowsFoundation.Point>?>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverrides.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.FindSubElementsForTouchTargeting(pThis, .from(swift: point), .from(swift: boundingRect), &resultAbi))
}
}
return WinUI.__x_ABI_C__FIIterable_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper.unwrapFrom(abi: result)
}
internal func GetChildrenInTabFocusOrderImpl() throws -> WindowsFoundation.AnyIIterable<WinUI.DependencyObject?>? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverrides.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetChildrenInTabFocusOrder(pThis, &resultAbi))
}
}
return WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.unwrapFrom(abi: result)
}
internal func OnKeyboardAcceleratorInvokedImpl(_ args: WinUI.KeyboardAcceleratorInvokedEventArgs?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverrides.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.OnKeyboardAcceleratorInvoked(pThis, RawPointer(args)))
}
}
internal func OnProcessKeyboardAcceleratorsImpl(_ args: WinUI.ProcessKeyboardAcceleratorEventArgs?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverrides.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.OnProcessKeyboardAccelerators(pThis, RawPointer(args)))
}
}
internal func OnBringIntoViewRequestedImpl(_ e: WinUI.BringIntoViewRequestedEventArgs?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverrides.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.OnBringIntoViewRequested(pThis, RawPointer(e)))
}
}
internal func PopulatePropertyInfoOverrideImpl(_ propertyName: String, _ animationPropertyInfo: WinAppSDK.AnimationPropertyInfo?) throws {
let _propertyName = try! HString(propertyName)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverrides.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.PopulatePropertyInfoOverride(pThis, _propertyName.get(), RawPointer(animationPropertyInfo)))
}
}
}
public class IUIElementProtected: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIUIElementProtected }
internal func get_ProtectedCursorImpl() throws -> WinAppSDK.InputCursor? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementProtected.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ProtectedCursor(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func put_ProtectedCursorImpl(_ value: WinAppSDK.InputCursor?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementProtected.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_ProtectedCursor(pThis, RawPointer(value)))
}
}
}
public class IUIElementStatics: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics }
internal func get_KeyDownEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyDownEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_KeyUpEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyUpEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_PointerEnteredEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerEnteredEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_PointerPressedEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerPressedEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_PointerMovedEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerMovedEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_PointerReleasedEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerReleasedEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_PointerExitedEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerExitedEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_PointerCaptureLostEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerCaptureLostEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_PointerCanceledEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerCanceledEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_PointerWheelChangedEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerWheelChangedEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_TappedEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_TappedEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_DoubleTappedEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_DoubleTappedEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_HoldingEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HoldingEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_RightTappedEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_RightTappedEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_ManipulationStartingEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ManipulationStartingEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_ManipulationInertiaStartingEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ManipulationInertiaStartingEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_ManipulationStartedEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ManipulationStartedEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_ManipulationDeltaEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ManipulationDeltaEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_ManipulationCompletedEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ManipulationCompletedEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_DragEnterEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_DragEnterEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_DragLeaveEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_DragLeaveEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_DragOverEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_DragOverEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_DropEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_DropEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_GettingFocusEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_GettingFocusEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_LosingFocusEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_LosingFocusEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_NoFocusCandidateFoundEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_NoFocusCandidateFoundEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_PreviewKeyDownEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_PreviewKeyDownEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_CharacterReceivedEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_CharacterReceivedEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_PreviewKeyUpEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_PreviewKeyUpEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_BringIntoViewRequestedEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_BringIntoViewRequestedEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_ContextRequestedEventImpl() throws -> WinUI.RoutedEvent? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContextRequestedEvent(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_AllowDropPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_AllowDropProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_OpacityPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpacityProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_ClipPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ClipProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_RenderTransformPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_RenderTransformProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_ProjectionPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ProjectionProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_Transform3DPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Transform3DProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_RenderTransformOriginPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_RenderTransformOriginProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_IsHitTestVisiblePropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsHitTestVisibleProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_VisibilityPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_VisibilityProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_UseLayoutRoundingPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_UseLayoutRoundingProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_TransitionsPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_TransitionsProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_CacheModePropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_CacheModeProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_IsTapEnabledPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTapEnabledProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_IsDoubleTapEnabledPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsDoubleTapEnabledProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_CanDragPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanDragProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_IsRightTapEnabledPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsRightTapEnabledProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_IsHoldingEnabledPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsHoldingEnabledProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_ManipulationModePropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ManipulationModeProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_PointerCapturesPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerCapturesProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_ContextFlyoutPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContextFlyoutProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_CompositeModePropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_CompositeModeProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_LightsPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_LightsProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_CanBeScrollAnchorPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanBeScrollAnchorProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_ExitDisplayModeOnAccessKeyInvokedPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExitDisplayModeOnAccessKeyInvokedProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_IsAccessKeyScopePropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsAccessKeyScopeProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_AccessKeyScopeOwnerPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_AccessKeyScopeOwnerProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_AccessKeyPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_AccessKeyProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_KeyTipPlacementModePropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTipPlacementModeProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_KeyTipHorizontalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTipHorizontalOffsetProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_KeyTipVerticalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTipVerticalOffsetProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_KeyTipTargetPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTipTargetProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_XYFocusKeyboardNavigationPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusKeyboardNavigationProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_XYFocusUpNavigationStrategyPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusUpNavigationStrategyProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_XYFocusDownNavigationStrategyPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusDownNavigationStrategyProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_XYFocusLeftNavigationStrategyPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusLeftNavigationStrategyProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_XYFocusRightNavigationStrategyPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusRightNavigationStrategyProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_KeyboardAcceleratorPlacementTargetPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyboardAcceleratorPlacementTargetProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_KeyboardAcceleratorPlacementModePropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyboardAcceleratorPlacementModeProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_HighContrastAdjustmentPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_HighContrastAdjustmentProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_TabFocusNavigationPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_TabFocusNavigationProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_ShadowPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ShadowProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_FocusStatePropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusStateProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_UseSystemFocusVisualsPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_UseSystemFocusVisualsProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_XYFocusLeftPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusLeftProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_XYFocusRightPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusRightProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_XYFocusUpPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusUpProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_XYFocusDownPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusDownProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_IsTabStopPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTabStopProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_TabIndexPropertyImpl() throws -> WinUI.DependencyProperty? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_TabIndexProperty(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func TryStartDirectManipulationImpl(_ value: WinUI.Pointer?) throws -> Bool {
var result: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.TryStartDirectManipulation(pThis, RawPointer(value), &result))
}
return .init(from: result)
}
internal func RegisterAsScrollPortImpl(_ element: WinUI.UIElement?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.RegisterAsScrollPort(pThis, RawPointer(element)))
}
}
}
public class IUIElementWeakCollectionFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIUIElementWeakCollectionFactory }
internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper<WinUI.UIElementWeakCollection.Composable>?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IVectorUIElement {
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_CIUIElementWeakCollectionFactory.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi))
}
}
innerInterface = WindowsFoundation.IInspectable(_innerInterface!)
}
return IVectorUIElement(value!)
}
}
public class IUnhandledExceptionEventArgs: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIUnhandledExceptionEventArgs }
internal func get_ExceptionImpl() throws -> HRESULT {
var value: HRESULT = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUnhandledExceptionEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Exception(pThis, &value))
}
return value
}
internal func get_MessageImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUnhandledExceptionEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Message(pThis, &value))
}
return .init(from: value)
}
internal func get_HandledImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUnhandledExceptionEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Handled(pThis, &value))
}
return .init(from: value)
}
internal func put_HandledImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUnhandledExceptionEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value)))
}
}
}
public class IVector3Transition: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIVector3Transition }
internal func get_DurationImpl() throws -> WindowsFoundation.TimeSpan {
var value: __x_ABI_CWindows_CFoundation_CTimeSpan = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIVector3Transition.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Duration(pThis, &value))
}
return .from(abi: value)
}
internal func put_DurationImpl(_ value: WindowsFoundation.TimeSpan) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIVector3Transition.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Duration(pThis, .from(swift: value)))
}
}
internal func get_ComponentsImpl() throws -> WinUI.Vector3TransitionComponents {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CVector3TransitionComponents = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIVector3Transition.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Components(pThis, &value))
}
return value
}
internal func put_ComponentsImpl(_ value: WinUI.Vector3TransitionComponents) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIVector3Transition.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Components(pThis, value))
}
}
}
public class IVector3TransitionFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIVector3TransitionFactory }
internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper<WinUI.Vector3Transition.Composable>?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IVector3Transition {
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_CIVector3TransitionFactory.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi))
}
}
innerInterface = WindowsFoundation.IInspectable(_innerInterface!)
}
return IVector3Transition(value!)
}
}
public class IWindow: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindow }
internal func get_BoundsImpl() throws -> WindowsFoundation.Rect {
var value: __x_ABI_CWindows_CFoundation_CRect = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Bounds(pThis, &value))
}
return .from(abi: value)
}
internal func get_VisibleImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Visible(pThis, &value))
}
return .init(from: value)
}
internal func get_ContentImpl() throws -> WinUI.UIElement? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.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_CIWindow.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Content(pThis, RawPointer(value)))
}
}
internal func get_CoreWindowImpl() throws -> UWP.CoreWindow? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_CoreWindow(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_CompositorImpl() throws -> WinAppSDK.Compositor? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Compositor(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_DispatcherImpl() throws -> UWP.CoreDispatcher? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Dispatcher(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_DispatcherQueueImpl() throws -> WinAppSDK.DispatcherQueue? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_DispatcherQueue(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_TitleImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Title(pThis, &value))
}
return .init(from: value)
}
internal func put_TitleImpl(_ value: String) throws {
let _value = try! HString(value)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Title(pThis, _value.get()))
}
}
internal func get_ExtendsContentIntoTitleBarImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExtendsContentIntoTitleBar(pThis, &value))
}
return .init(from: value)
}
internal func put_ExtendsContentIntoTitleBarImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_ExtendsContentIntoTitleBar(pThis, .init(from: value)))
}
}
internal func add_ActivatedImpl(_ handler: TypedEventHandler<Any?, WinUI.WindowActivatedEventArgs?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowActivatedEventArgsWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_Activated(pThis, _handler, &token))
}
return token
}
internal func remove_ActivatedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Activated(pThis, token))
}
}
internal func add_ClosedImpl(_ handler: TypedEventHandler<Any?, WinUI.WindowEventArgs?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowEventArgsWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_Closed(pThis, _handler, &token))
}
return token
}
internal func remove_ClosedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Closed(pThis, token))
}
}
internal func add_SizeChangedImpl(_ handler: TypedEventHandler<Any?, WinUI.WindowSizeChangedEventArgs?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowSizeChangedEventArgsWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_SizeChanged(pThis, _handler, &token))
}
return token
}
internal func remove_SizeChangedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_SizeChanged(pThis, token))
}
}
internal func add_VisibilityChangedImpl(_ handler: TypedEventHandler<Any?, WinUI.WindowVisibilityChangedEventArgs?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowVisibilityChangedEventArgsWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_VisibilityChanged(pThis, _handler, &token))
}
return token
}
internal func remove_VisibilityChangedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_VisibilityChanged(pThis, token))
}
}
internal func ActivateImpl() throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Activate(pThis))
}
}
internal func CloseImpl() throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Close(pThis))
}
}
internal func SetTitleBarImpl(_ titleBar: WinUI.UIElement?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.SetTitleBar(pThis, RawPointer(titleBar)))
}
}
}
public class IWindow2: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindow2 }
internal func get_SystemBackdropImpl() throws -> WinUI.SystemBackdrop? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow2.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_CIWindow2.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_SystemBackdrop(pThis, RawPointer(value)))
}
}
internal func get_AppWindowImpl() throws -> WinAppSDK.AppWindow? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow2.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_AppWindow(pThis, &valueAbi))
}
}
return .from(abi: value)
}
}
public class IWindowActivatedEventArgs: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindowActivatedEventArgs }
internal func get_HandledImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindowActivatedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Handled(pThis, &value))
}
return .init(from: value)
}
internal func put_HandledImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindowActivatedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value)))
}
}
internal func get_WindowActivationStateImpl() throws -> WinUI.WindowActivationState {
var value: __x_ABI_CMicrosoft_CUI_CXaml_CWindowActivationState = .init(0)
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindowActivatedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_WindowActivationState(pThis, &value))
}
return value
}
}
public class IWindowEventArgs: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindowEventArgs }
internal func get_HandledImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindowEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Handled(pThis, &value))
}
return .init(from: value)
}
internal func put_HandledImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindowEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value)))
}
}
}
public class IWindowFactory: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindowFactory }
internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper<WinUI.Window.Composable>?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IWindow {
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_CIWindowFactory.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi))
}
}
innerInterface = WindowsFoundation.IInspectable(_innerInterface!)
}
return IWindow(value!)
}
}
public class IWindowSizeChangedEventArgs: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindowSizeChangedEventArgs }
internal func get_HandledImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindowSizeChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Handled(pThis, &value))
}
return .init(from: value)
}
internal func put_HandledImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindowSizeChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value)))
}
}
internal func get_SizeImpl() throws -> WindowsFoundation.Size {
var value: __x_ABI_CWindows_CFoundation_CSize = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindowSizeChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &value))
}
return .from(abi: value)
}
}
public class IWindowStatics: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindowStatics }
internal func get_CurrentImpl() throws -> WinUI.Window? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindowStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &valueAbi))
}
}
return .from(abi: value)
}
}
public class IWindowVisibilityChangedEventArgs: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindowVisibilityChangedEventArgs }
internal func get_HandledImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindowVisibilityChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Handled(pThis, &value))
}
return .init(from: value)
}
internal func put_HandledImpl(_ value: Bool) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindowVisibilityChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value)))
}
}
internal func get_VisibleImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindowVisibilityChangedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Visible(pThis, &value))
}
return .init(from: value)
}
}
public class IXamlResourceReferenceFailedEventArgs: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIXamlResourceReferenceFailedEventArgs }
internal func get_MessageImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIXamlResourceReferenceFailedEventArgs.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Message(pThis, &value))
}
return .init(from: value)
}
}
public class IXamlRoot: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIXamlRoot }
internal func get_ContentImpl() throws -> WinUI.UIElement? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIXamlRoot.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Content(pThis, &valueAbi))
}
}
return .from(abi: value)
}
internal func get_SizeImpl() throws -> WindowsFoundation.Size {
var value: __x_ABI_CWindows_CFoundation_CSize = .init()
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIXamlRoot.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &value))
}
return .from(abi: value)
}
internal func get_RasterizationScaleImpl() throws -> Double {
var value: DOUBLE = 0.0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIXamlRoot.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_RasterizationScale(pThis, &value))
}
return value
}
internal func get_IsHostVisibleImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIXamlRoot.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsHostVisible(pThis, &value))
}
return .init(from: value)
}
internal func add_ChangedImpl(_ handler: TypedEventHandler<WinUI.XamlRoot?, WinUI.XamlRootChangedEventArgs?>?) throws -> EventRegistrationToken {
var token: EventRegistrationToken = .init()
let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CXamlRoot___x_ABI_CMicrosoft__CUI__CXaml__CXamlRootChangedEventArgsWrapper(handler)
let _handler = try! handlerWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIXamlRoot.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.add_Changed(pThis, _handler, &token))
}
return token
}
internal func remove_ChangedImpl(_ token: EventRegistrationToken) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIXamlRoot.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Changed(pThis, token))
}
}
}
public class IXamlRoot2: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIXamlRoot2 }
internal func get_ContentIslandEnvironmentImpl() throws -> WinAppSDK.ContentIslandEnvironment? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIXamlRoot2.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentIslandEnvironment(pThis, &valueAbi))
}
}
return .from(abi: value)
}
}
public class IXamlRootChangedEventArgs: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIXamlRootChangedEventArgs }
}
internal typealias IApplicationOverridesWrapper = UnsealedWinRTClassWrapper<WinUI.Application.IApplicationOverrides>
internal static var IApplicationOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIApplicationOverridesVtbl = .init(
QueryInterface: { IApplicationOverridesWrapper.queryInterface($0, $1, $2) },
AddRef: { IApplicationOverridesWrapper.addRef($0) },
Release: { IApplicationOverridesWrapper.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.IApplicationOverridesWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
guard let instance = IApplicationOverridesWrapper.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
},
OnLaunched: {
do {
guard let __unwrapped__instance = IApplicationOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let args: WinUI.LaunchActivatedEventArgs? = .from(abi: ComPtr($1))
try __unwrapped__instance.onLaunched(args)
return S_OK
} catch { return failWith(err: E_FAIL) }
}
)
internal typealias IFrameworkElementOverridesWrapper = UnsealedWinRTClassWrapper<WinUI.FrameworkElement.IFrameworkElementOverrides>
internal static var IFrameworkElementOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverridesVtbl = .init(
QueryInterface: { IFrameworkElementOverridesWrapper.queryInterface($0, $1, $2) },
AddRef: { IFrameworkElementOverridesWrapper.addRef($0) },
Release: { IFrameworkElementOverridesWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 4).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverridesWrapper.IID
iids[3] = __ABI_Microsoft_UI_Xaml.IUIElementOverridesWrapper.IID
$1!.pointee = 4
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
guard let instance = IFrameworkElementOverridesWrapper.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
},
MeasureOverride: {
do {
guard let __unwrapped__instance = IFrameworkElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let availableSize: WindowsFoundation.Size = .from(abi: $1)
let result = try __unwrapped__instance.measureOverride(availableSize)
$2?.initialize(to: .from(swift: result))
return S_OK
} catch { return failWith(err: E_FAIL) }
},
ArrangeOverride: {
do {
guard let __unwrapped__instance = IFrameworkElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let finalSize: WindowsFoundation.Size = .from(abi: $1)
let result = try __unwrapped__instance.arrangeOverride(finalSize)
$2?.initialize(to: .from(swift: result))
return S_OK
} catch { return failWith(err: E_FAIL) }
},
OnApplyTemplate: {
do {
guard let __unwrapped__instance = IFrameworkElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
try __unwrapped__instance.onApplyTemplate()
return S_OK
} catch { return failWith(err: E_FAIL) }
},
GoToElementStateCore: {
do {
guard let __unwrapped__instance = IFrameworkElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let stateName: String = .init(from: $1)
let useTransitions: Bool = .init(from: $2)
let result = try __unwrapped__instance.goToElementStateCore(stateName, useTransitions)
$3?.initialize(to: .init(from: result))
return S_OK
} catch { return failWith(err: E_FAIL) }
}
)
internal typealias IUIElementOverridesWrapper = UnsealedWinRTClassWrapper<WinUI.UIElement.IUIElementOverrides>
internal static var IUIElementOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverridesVtbl = .init(
QueryInterface: { IUIElementOverridesWrapper.queryInterface($0, $1, $2) },
AddRef: { IUIElementOverridesWrapper.addRef($0) },
Release: { IUIElementOverridesWrapper.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.IUIElementOverridesWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
guard let instance = IUIElementOverridesWrapper.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
},
OnCreateAutomationPeer: {
do {
guard let __unwrapped__instance = IUIElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = try __unwrapped__instance.onCreateAutomationPeer()
result?.copyTo($1)
return S_OK
} catch { return failWith(err: E_FAIL) }
},
OnDisconnectVisualChildren: {
do {
guard let __unwrapped__instance = IUIElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
try __unwrapped__instance.onDisconnectVisualChildren()
return S_OK
} catch { return failWith(err: E_FAIL) }
},
FindSubElementsForTouchTargeting: {
do {
guard let __unwrapped__instance = IUIElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let point: WindowsFoundation.Point = .from(abi: $1)
let boundingRect: WindowsFoundation.Rect = .from(abi: $2)
let result = try __unwrapped__instance.findSubElementsForTouchTargeting(point, boundingRect)
let resultWrapper = WinUI.__x_ABI_C__FIIterable_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper(result)
resultWrapper?.copyTo($3)
return S_OK
} catch { return failWith(err: E_FAIL) }
},
GetChildrenInTabFocusOrder: {
do {
guard let __unwrapped__instance = IUIElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = try __unwrapped__instance.getChildrenInTabFocusOrder()
let resultWrapper = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
} catch { return failWith(err: E_FAIL) }
},
OnKeyboardAcceleratorInvoked: {
do {
guard let __unwrapped__instance = IUIElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let args: WinUI.KeyboardAcceleratorInvokedEventArgs? = .from(abi: ComPtr($1))
try __unwrapped__instance.onKeyboardAcceleratorInvoked(args)
return S_OK
} catch { return failWith(err: E_FAIL) }
},
OnProcessKeyboardAccelerators: {
do {
guard let __unwrapped__instance = IUIElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let args: WinUI.ProcessKeyboardAcceleratorEventArgs? = .from(abi: ComPtr($1))
try __unwrapped__instance.onProcessKeyboardAccelerators(args)
return S_OK
} catch { return failWith(err: E_FAIL) }
},
OnBringIntoViewRequested: {
do {
guard let __unwrapped__instance = IUIElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let e: WinUI.BringIntoViewRequestedEventArgs? = .from(abi: ComPtr($1))
try __unwrapped__instance.onBringIntoViewRequested(e)
return S_OK
} catch { return failWith(err: E_FAIL) }
},
PopulatePropertyInfoOverride: {
do {
guard let __unwrapped__instance = IUIElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let propertyName: String = .init(from: $1)
let animationPropertyInfo: WinAppSDK.AnimationPropertyInfo? = .from(abi: ComPtr($2))
try __unwrapped__instance.populatePropertyInfoOverride(propertyName, animationPropertyInfo)
return S_OK
} catch { return failWith(err: E_FAIL) }
}
)
}
extension __x_ABI_CMicrosoft_CUI_CXaml_CCornerRadius {
public static func from(swift: WinUI.CornerRadius) -> __x_ABI_CMicrosoft_CUI_CXaml_CCornerRadius {
.init(TopLeft: swift.topLeft, TopRight: swift.topRight, BottomRight: swift.bottomRight, BottomLeft: swift.bottomLeft)
}
}
extension __x_ABI_CMicrosoft_CUI_CXaml_CDuration {
public static func from(swift: WinUI.Duration) -> __x_ABI_CMicrosoft_CUI_CXaml_CDuration {
.init(TimeSpan: .from(swift: swift.timeSpan), Type: swift.type)
}
}
extension __x_ABI_CMicrosoft_CUI_CXaml_CGridLength {
public static func from(swift: WinUI.GridLength) -> __x_ABI_CMicrosoft_CUI_CXaml_CGridLength {
.init(Value: swift.value, GridUnitType: swift.gridUnitType)
}
}
extension __x_ABI_CMicrosoft_CUI_CXaml_CThickness {
public static func from(swift: WinUI.Thickness) -> __x_ABI_CMicrosoft_CUI_CXaml_CThickness {
.init(Left: swift.left, Top: swift.top, Right: swift.right, Bottom: swift.bottom)
}
}
extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CIApplicationOverrides {
public static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.IApplicationOverridesVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides {
public static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.IFrameworkElementOverridesVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverrides {
public static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.IUIElementOverridesVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
// MARK - ApplicationInitializationCallback
extension __ABI_Microsoft_UI_Xaml {
public class ApplicationInitializationCallback: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplicationInitializationCallback }
open func InvokeImpl(_ p: WinUI.ApplicationInitializationCallbackParams?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplicationInitializationCallback.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(p)))
}
}
}
typealias ApplicationInitializationCallbackWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.ApplicationInitializationCallbackBridge>
internal static var ApplicationInitializationCallbackVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIApplicationInitializationCallbackVtbl = .init(
QueryInterface: { ApplicationInitializationCallbackWrapper.queryInterface($0, $1, $2) },
AddRef: { ApplicationInitializationCallbackWrapper.addRef($0) },
Release: { ApplicationInitializationCallbackWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = ApplicationInitializationCallbackWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let p: WinUI.ApplicationInitializationCallbackParams? = .from(abi: ComPtr($1))
__unwrapped__instance(p)
return S_OK
}
)
}
public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CIApplicationInitializationCallback {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.ApplicationInitializationCallbackVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
// MARK - BindingFailedEventHandler
extension __ABI_Microsoft_UI_Xaml {
public class BindingFailedEventHandler: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIBindingFailedEventHandler }
open func InvokeImpl(_ sender: Any?, _ e: WinUI.BindingFailedEventArgs?) throws {
let senderWrapper = __ABI_.AnyWrapper(sender)
let _sender = try! senderWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBindingFailedEventHandler.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e)))
}
}
}
typealias BindingFailedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.BindingFailedEventHandlerBridge>
internal static var BindingFailedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIBindingFailedEventHandlerVtbl = .init(
QueryInterface: { BindingFailedEventHandlerWrapper.queryInterface($0, $1, $2) },
AddRef: { BindingFailedEventHandlerWrapper.addRef($0) },
Release: { BindingFailedEventHandlerWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = BindingFailedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1))
let e: WinUI.BindingFailedEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, e)
return S_OK
}
)
}
public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CIBindingFailedEventHandler {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.BindingFailedEventHandlerVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
// MARK - CreateDefaultValueCallback
extension __ABI_Microsoft_UI_Xaml {
public class CreateDefaultValueCallback: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CICreateDefaultValueCallback }
open func InvokeImpl() throws -> Any? {
let (result) = try ComPtrs.initialize { resultAbi in
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CICreateDefaultValueCallback.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, &resultAbi))
}
}
return __ABI_.AnyWrapper.unwrapFrom(abi: result)
}
}
typealias CreateDefaultValueCallbackWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.CreateDefaultValueCallbackBridge>
internal static var CreateDefaultValueCallbackVTable: __x_ABI_CMicrosoft_CUI_CXaml_CICreateDefaultValueCallbackVtbl = .init(
QueryInterface: { CreateDefaultValueCallbackWrapper.queryInterface($0, $1, $2) },
AddRef: { CreateDefaultValueCallbackWrapper.addRef($0) },
Release: { CreateDefaultValueCallbackWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = CreateDefaultValueCallbackWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let result = __unwrapped__instance()
let resultWrapper = __ABI_.AnyWrapper(result)
resultWrapper?.copyTo($1)
return S_OK
}
)
}
public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CICreateDefaultValueCallback {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.CreateDefaultValueCallbackVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
// MARK - DependencyPropertyChangedCallback
extension __ABI_Microsoft_UI_Xaml {
public class DependencyPropertyChangedCallback: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedCallback }
open func InvokeImpl(_ sender: WinUI.DependencyObject?, _ dp: WinUI.DependencyProperty?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedCallback.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(dp)))
}
}
}
typealias DependencyPropertyChangedCallbackWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.DependencyPropertyChangedCallbackBridge>
internal static var DependencyPropertyChangedCallbackVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedCallbackVtbl = .init(
QueryInterface: { DependencyPropertyChangedCallbackWrapper.queryInterface($0, $1, $2) },
AddRef: { DependencyPropertyChangedCallbackWrapper.addRef($0) },
Release: { DependencyPropertyChangedCallbackWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = DependencyPropertyChangedCallbackWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: WinUI.DependencyObject? = .from(abi: ComPtr($1))
let dp: WinUI.DependencyProperty? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, dp)
return S_OK
}
)
}
public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedCallback {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.DependencyPropertyChangedCallbackVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
// MARK - DependencyPropertyChangedEventHandler
extension __ABI_Microsoft_UI_Xaml {
public class DependencyPropertyChangedEventHandler: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedEventHandler }
open func InvokeImpl(_ sender: Any?, _ e: WinUI.DependencyPropertyChangedEventArgs?) throws {
let senderWrapper = __ABI_.AnyWrapper(sender)
let _sender = try! senderWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedEventHandler.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e)))
}
}
}
typealias DependencyPropertyChangedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.DependencyPropertyChangedEventHandlerBridge>
internal static var DependencyPropertyChangedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedEventHandlerVtbl = .init(
QueryInterface: { DependencyPropertyChangedEventHandlerWrapper.queryInterface($0, $1, $2) },
AddRef: { DependencyPropertyChangedEventHandlerWrapper.addRef($0) },
Release: { DependencyPropertyChangedEventHandlerWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = DependencyPropertyChangedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1))
let e: WinUI.DependencyPropertyChangedEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, e)
return S_OK
}
)
}
public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedEventHandler {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.DependencyPropertyChangedEventHandlerVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
// MARK - DragEventHandler
extension __ABI_Microsoft_UI_Xaml {
public class DragEventHandler: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDragEventHandler }
open func InvokeImpl(_ sender: Any?, _ e: WinUI.DragEventArgs?) throws {
let senderWrapper = __ABI_.AnyWrapper(sender)
let _sender = try! senderWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventHandler.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e)))
}
}
}
typealias DragEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.DragEventHandlerBridge>
internal static var DragEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventHandlerVtbl = .init(
QueryInterface: { DragEventHandlerWrapper.queryInterface($0, $1, $2) },
AddRef: { DragEventHandlerWrapper.addRef($0) },
Release: { DragEventHandlerWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = DragEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1))
let e: WinUI.DragEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, e)
return S_OK
}
)
}
public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventHandler {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.DragEventHandlerVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
// MARK - ExceptionRoutedEventHandler
extension __ABI_Microsoft_UI_Xaml {
public class ExceptionRoutedEventHandler: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIExceptionRoutedEventHandler }
open func InvokeImpl(_ sender: Any?, _ e: WinUI.ExceptionRoutedEventArgs?) throws {
let senderWrapper = __ABI_.AnyWrapper(sender)
let _sender = try! senderWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIExceptionRoutedEventHandler.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e)))
}
}
}
typealias ExceptionRoutedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.ExceptionRoutedEventHandlerBridge>
internal static var ExceptionRoutedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIExceptionRoutedEventHandlerVtbl = .init(
QueryInterface: { ExceptionRoutedEventHandlerWrapper.queryInterface($0, $1, $2) },
AddRef: { ExceptionRoutedEventHandlerWrapper.addRef($0) },
Release: { ExceptionRoutedEventHandlerWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = ExceptionRoutedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1))
let e: WinUI.ExceptionRoutedEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, e)
return S_OK
}
)
}
public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CIExceptionRoutedEventHandler {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.ExceptionRoutedEventHandlerVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
// MARK - PropertyChangedCallback
extension __ABI_Microsoft_UI_Xaml {
public class PropertyChangedCallback: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIPropertyChangedCallback }
open func InvokeImpl(_ d: WinUI.DependencyObject?, _ e: WinUI.DependencyPropertyChangedEventArgs?) throws {
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyChangedCallback.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(d), RawPointer(e)))
}
}
}
typealias PropertyChangedCallbackWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.PropertyChangedCallbackBridge>
internal static var PropertyChangedCallbackVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyChangedCallbackVtbl = .init(
QueryInterface: { PropertyChangedCallbackWrapper.queryInterface($0, $1, $2) },
AddRef: { PropertyChangedCallbackWrapper.addRef($0) },
Release: { PropertyChangedCallbackWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = PropertyChangedCallbackWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let d: WinUI.DependencyObject? = .from(abi: ComPtr($1))
let e: WinUI.DependencyPropertyChangedEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(d, e)
return S_OK
}
)
}
public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyChangedCallback {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.PropertyChangedCallbackVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
// MARK - RoutedEventHandler
extension __ABI_Microsoft_UI_Xaml {
public class RoutedEventHandler: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEventHandler }
open func InvokeImpl(_ sender: Any?, _ e: WinUI.RoutedEventArgs?) throws {
let senderWrapper = __ABI_.AnyWrapper(sender)
let _sender = try! senderWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEventHandler.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e)))
}
}
}
typealias RoutedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.RoutedEventHandlerBridge>
internal static var RoutedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEventHandlerVtbl = .init(
QueryInterface: { RoutedEventHandlerWrapper.queryInterface($0, $1, $2) },
AddRef: { RoutedEventHandlerWrapper.addRef($0) },
Release: { RoutedEventHandlerWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = RoutedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1))
let e: WinUI.RoutedEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, e)
return S_OK
}
)
}
public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEventHandler {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.RoutedEventHandlerVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
// MARK - SizeChangedEventHandler
extension __ABI_Microsoft_UI_Xaml {
public class SizeChangedEventHandler: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CISizeChangedEventHandler }
open func InvokeImpl(_ sender: Any?, _ e: WinUI.SizeChangedEventArgs?) throws {
let senderWrapper = __ABI_.AnyWrapper(sender)
let _sender = try! senderWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CISizeChangedEventHandler.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e)))
}
}
}
typealias SizeChangedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.SizeChangedEventHandlerBridge>
internal static var SizeChangedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CISizeChangedEventHandlerVtbl = .init(
QueryInterface: { SizeChangedEventHandlerWrapper.queryInterface($0, $1, $2) },
AddRef: { SizeChangedEventHandlerWrapper.addRef($0) },
Release: { SizeChangedEventHandlerWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = SizeChangedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1))
let e: WinUI.SizeChangedEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, e)
return S_OK
}
)
}
public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CISizeChangedEventHandler {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.SizeChangedEventHandlerVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}
// MARK - UnhandledExceptionEventHandler
extension __ABI_Microsoft_UI_Xaml {
public class UnhandledExceptionEventHandler: WindowsFoundation.IUnknown {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIUnhandledExceptionEventHandler }
open func InvokeImpl(_ sender: Any?, _ e: WinUI.UnhandledExceptionEventArgs?) throws {
let senderWrapper = __ABI_.AnyWrapper(sender)
let _sender = try! senderWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUnhandledExceptionEventHandler.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e)))
}
}
}
typealias UnhandledExceptionEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.UnhandledExceptionEventHandlerBridge>
internal static var UnhandledExceptionEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIUnhandledExceptionEventHandlerVtbl = .init(
QueryInterface: { UnhandledExceptionEventHandlerWrapper.queryInterface($0, $1, $2) },
AddRef: { UnhandledExceptionEventHandlerWrapper.addRef($0) },
Release: { UnhandledExceptionEventHandlerWrapper.release($0) },
Invoke: {
guard let __unwrapped__instance = UnhandledExceptionEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1))
let e: WinUI.UnhandledExceptionEventArgs? = .from(abi: ComPtr($2))
__unwrapped__instance(sender, e)
return S_OK
}
)
}
public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CIUnhandledExceptionEventHandler {
static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.UnhandledExceptionEventHandlerVTable) { $0 }
return .init(lpVtbl:vtblPtr)
}
}