win32more-Microsoft.WindowsAppSDK 0.6.1.7.250310001__py2.py3-none-any.whl → 0.7.1.7.251107005__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. win32more/Microsoft/Foundation/__init__.py +1 -1
  2. win32more/Microsoft/Graphics/DirectX/__init__.py +1 -1
  3. win32more/Microsoft/Graphics/Display/__init__.py +9 -9
  4. win32more/Microsoft/Graphics/Imaging/__init__.py +77 -0
  5. win32more/Microsoft/Security/Authentication/OAuth/__init__.py +111 -111
  6. win32more/Microsoft/UI/Composition/Core/__init__.py +3 -3
  7. win32more/Microsoft/UI/Composition/Diagnostics/__init__.py +1 -1
  8. win32more/Microsoft/UI/Composition/Effects/__init__.py +3 -3
  9. win32more/Microsoft/UI/Composition/Interactions/__init__.py +1 -1
  10. win32more/Microsoft/UI/Composition/Scenes/__init__.py +10 -10
  11. win32more/Microsoft/UI/Composition/SystemBackdrops/__init__.py +8 -8
  12. win32more/Microsoft/UI/Composition/__init__.py +134 -134
  13. win32more/Microsoft/UI/Content/__init__.py +39 -39
  14. win32more/Microsoft/UI/Dispatching/__init__.py +11 -11
  15. win32more/Microsoft/UI/Input/DragDrop/__init__.py +7 -7
  16. win32more/Microsoft/UI/Input/Interop/__init__.py +1 -1
  17. win32more/Microsoft/UI/Input/__init__.py +103 -99
  18. win32more/Microsoft/UI/System/__init__.py +5 -5
  19. win32more/Microsoft/UI/Text/__init__.py +30 -30
  20. win32more/Microsoft/UI/Windowing/__init__.py +27 -27
  21. win32more/Microsoft/UI/Xaml/Automation/Peers/__init__.py +56 -55
  22. win32more/Microsoft/UI/Xaml/Automation/Provider/__init__.py +19 -19
  23. win32more/Microsoft/UI/Xaml/Automation/Text/__init__.py +1 -1
  24. win32more/Microsoft/UI/Xaml/Automation/__init__.py +41 -41
  25. win32more/Microsoft/UI/Xaml/Controls/AnimatedVisuals/__init__.py +17 -17
  26. win32more/Microsoft/UI/Xaml/Controls/Primitives/__init__.py +108 -107
  27. win32more/Microsoft/UI/Xaml/Controls/__init__.py +744 -744
  28. win32more/Microsoft/UI/Xaml/Data/__init__.py +31 -30
  29. win32more/Microsoft/UI/Xaml/Documents/__init__.py +38 -37
  30. win32more/Microsoft/UI/Xaml/Hosting/__init__.py +7 -7
  31. win32more/Microsoft/UI/Xaml/Input/__init__.py +38 -31
  32. win32more/Microsoft/UI/Xaml/Interop/__init__.py +3 -3
  33. win32more/Microsoft/UI/Xaml/Markup/__init__.py +19 -17
  34. win32more/Microsoft/UI/Xaml/Media/Animation/__init__.py +111 -109
  35. win32more/Microsoft/UI/Xaml/Media/Imaging/__init__.py +11 -11
  36. win32more/Microsoft/UI/Xaml/Media/Media3D/__init__.py +2 -1
  37. win32more/Microsoft/UI/Xaml/Media/__init__.py +34 -28
  38. win32more/Microsoft/UI/Xaml/Navigation/__init__.py +1 -1
  39. win32more/Microsoft/UI/Xaml/Printing/__init__.py +7 -7
  40. win32more/Microsoft/UI/Xaml/Resources/__init__.py +3 -3
  41. win32more/Microsoft/UI/Xaml/Shapes/__init__.py +1 -1
  42. win32more/Microsoft/UI/Xaml/XamlTypeInfo/__init__.py +2 -2
  43. win32more/Microsoft/UI/Xaml/__init__.py +190 -186
  44. win32more/Microsoft/UI/__init__.py +8 -5
  45. win32more/Microsoft/Windows/AI/ContentSafety/__init__.py +197 -0
  46. win32more/Microsoft/Windows/AI/Imaging/__init__.py +366 -0
  47. win32more/Microsoft/Windows/AI/Text/__init__.py +261 -0
  48. win32more/Microsoft/Windows/AI/__init__.py +49 -0
  49. win32more/Microsoft/Windows/AppLifecycle/__init__.py +21 -21
  50. win32more/Microsoft/Windows/AppNotifications/Builder/__init__.py +99 -99
  51. win32more/Microsoft/Windows/AppNotifications/__init__.py +45 -45
  52. win32more/Microsoft/Windows/ApplicationModel/Background/UniversalBGTask/__init__.py +1 -1
  53. win32more/Microsoft/Windows/ApplicationModel/Background/__init__.py +7 -7
  54. win32more/Microsoft/Windows/ApplicationModel/DynamicDependency/__init__.py +22 -21
  55. win32more/Microsoft/Windows/ApplicationModel/Resources/__init__.py +59 -59
  56. win32more/Microsoft/Windows/ApplicationModel/WindowsAppRuntime/__init__.py +32 -7
  57. win32more/Microsoft/Windows/BadgeNotifications/__init__.py +1 -1
  58. win32more/Microsoft/Windows/Globalization/__init__.py +9 -9
  59. win32more/Microsoft/Windows/Management/Deployment/__init__.py +86 -85
  60. win32more/Microsoft/Windows/Media/Capture/__init__.py +1 -1
  61. win32more/Microsoft/Windows/PushNotifications/__init__.py +6 -5
  62. win32more/Microsoft/Windows/Security/AccessControl/__init__.py +7 -6
  63. win32more/Microsoft/Windows/Storage/__init__.py +27 -27
  64. win32more/Microsoft/Windows/System/Power/__init__.py +23 -12
  65. win32more/Microsoft/Windows/System/__init__.py +15 -15
  66. win32more/Microsoft/Windows/Widgets/Feeds/Providers/__init__.py +65 -65
  67. win32more/Microsoft/Windows/Widgets/Notifications/__init__.py +25 -25
  68. win32more/Microsoft/Windows/Widgets/Providers/__init__.py +91 -67
  69. win32more/Microsoft/Windows/Widgets/__init__.py +2 -2
  70. win32more/Microsoft/Windows/Workloads/__init__.py +11 -0
  71. win32more/appsdk/versioninfo.py +1 -1
  72. win32more/dll/arm64/Microsoft.Windows.ApplicationModel.Background.UniversalBGTask.dll +0 -0
  73. win32more/dll/arm64/Microsoft.WindowsAppRuntime.Bootstrap.dll +0 -0
  74. win32more/dll/x64/Microsoft.Windows.ApplicationModel.Background.UniversalBGTask.dll +0 -0
  75. win32more/dll/x64/Microsoft.WindowsAppRuntime.Bootstrap.dll +0 -0
  76. win32more/dll/x86/Microsoft.Windows.ApplicationModel.Background.UniversalBGTask.dll +0 -0
  77. win32more/dll/x86/Microsoft.WindowsAppRuntime.Bootstrap.dll +0 -0
  78. win32more_microsoft_windowsappsdk-0.7.1.7.251107005.dist-info/METADATA +6 -0
  79. win32more_microsoft_windowsappsdk-0.7.1.7.251107005.dist-info/RECORD +81 -0
  80. {win32more_microsoft_windowsappsdk-0.6.1.7.250310001.dist-info → win32more_microsoft_windowsappsdk-0.7.1.7.251107005.dist-info}/licenses/LICENSE (Microsoft.WindowsAppSDK).txt +1 -1
  81. win32more_microsoft_windowsappsdk-0.6.1.7.250310001.dist-info/METADATA +0 -6
  82. win32more_microsoft_windowsappsdk-0.6.1.7.250310001.dist-info/RECORD +0 -75
  83. {win32more_microsoft_windowsappsdk-0.6.1.7.250310001.dist-info → win32more_microsoft_windowsappsdk-0.7.1.7.251107005.dist-info}/WHEEL +0 -0
@@ -1,5 +1,5 @@
1
1
  from __future__ import annotations
2
- from win32more.winrt.prelude import *
2
+ from win32more._prelude import *
3
3
  import win32more.Microsoft.UI.Xaml
4
4
  import win32more.Microsoft.UI.Xaml.Data
5
5
  import win32more.Windows.Foundation
@@ -35,9 +35,9 @@ class Binding(ComPtr):
35
35
  @winrt_mixinmethod
36
36
  def put_RelativeSource(self: win32more.Microsoft.UI.Xaml.Data.IBinding, value: win32more.Microsoft.UI.Xaml.Data.RelativeSource) -> Void: ...
37
37
  @winrt_mixinmethod
38
- def get_ElementName(self: win32more.Microsoft.UI.Xaml.Data.IBinding) -> WinRT_String: ...
38
+ def get_ElementName(self: win32more.Microsoft.UI.Xaml.Data.IBinding) -> hstr: ...
39
39
  @winrt_mixinmethod
40
- def put_ElementName(self: win32more.Microsoft.UI.Xaml.Data.IBinding, value: WinRT_String) -> Void: ...
40
+ def put_ElementName(self: win32more.Microsoft.UI.Xaml.Data.IBinding, value: hstr) -> Void: ...
41
41
  @winrt_mixinmethod
42
42
  def get_Converter(self: win32more.Microsoft.UI.Xaml.Data.IBinding) -> win32more.Microsoft.UI.Xaml.Data.IValueConverter: ...
43
43
  @winrt_mixinmethod
@@ -47,9 +47,9 @@ class Binding(ComPtr):
47
47
  @winrt_mixinmethod
48
48
  def put_ConverterParameter(self: win32more.Microsoft.UI.Xaml.Data.IBinding, value: IInspectable) -> Void: ...
49
49
  @winrt_mixinmethod
50
- def get_ConverterLanguage(self: win32more.Microsoft.UI.Xaml.Data.IBinding) -> WinRT_String: ...
50
+ def get_ConverterLanguage(self: win32more.Microsoft.UI.Xaml.Data.IBinding) -> hstr: ...
51
51
  @winrt_mixinmethod
52
- def put_ConverterLanguage(self: win32more.Microsoft.UI.Xaml.Data.IBinding, value: WinRT_String) -> Void: ...
52
+ def put_ConverterLanguage(self: win32more.Microsoft.UI.Xaml.Data.IBinding, value: hstr) -> Void: ...
53
53
  @winrt_mixinmethod
54
54
  def get_FallbackValue(self: win32more.Microsoft.UI.Xaml.Data.IBinding) -> IInspectable: ...
55
55
  @winrt_mixinmethod
@@ -199,11 +199,11 @@ class DataErrorsChangedEventArgs(ComPtr):
199
199
  else:
200
200
  raise ValueError('no matched constructor')
201
201
  @winrt_factorymethod
202
- def CreateInstance(cls: win32more.Microsoft.UI.Xaml.Data.IDataErrorsChangedEventArgsFactory, name: WinRT_String) -> win32more.Microsoft.UI.Xaml.Data.DataErrorsChangedEventArgs: ...
202
+ def CreateInstance(cls: win32more.Microsoft.UI.Xaml.Data.IDataErrorsChangedEventArgsFactory, name: hstr) -> win32more.Microsoft.UI.Xaml.Data.DataErrorsChangedEventArgs: ...
203
203
  @winrt_mixinmethod
204
- def get_PropertyName(self: win32more.Microsoft.UI.Xaml.Data.IDataErrorsChangedEventArgs) -> WinRT_String: ...
204
+ def get_PropertyName(self: win32more.Microsoft.UI.Xaml.Data.IDataErrorsChangedEventArgs) -> hstr: ...
205
205
  @winrt_mixinmethod
206
- def put_PropertyName(self: win32more.Microsoft.UI.Xaml.Data.IDataErrorsChangedEventArgs, value: WinRT_String) -> Void: ...
206
+ def put_PropertyName(self: win32more.Microsoft.UI.Xaml.Data.IDataErrorsChangedEventArgs, value: hstr) -> Void: ...
207
207
  PropertyName = property(get_PropertyName, put_PropertyName)
208
208
  class IBinding(ComPtr):
209
209
  extends: IInspectable
@@ -226,9 +226,9 @@ class IBinding(ComPtr):
226
226
  @winrt_commethod(13)
227
227
  def put_RelativeSource(self, value: win32more.Microsoft.UI.Xaml.Data.RelativeSource) -> Void: ...
228
228
  @winrt_commethod(14)
229
- def get_ElementName(self) -> WinRT_String: ...
229
+ def get_ElementName(self) -> hstr: ...
230
230
  @winrt_commethod(15)
231
- def put_ElementName(self, value: WinRT_String) -> Void: ...
231
+ def put_ElementName(self, value: hstr) -> Void: ...
232
232
  @winrt_commethod(16)
233
233
  def get_Converter(self) -> win32more.Microsoft.UI.Xaml.Data.IValueConverter: ...
234
234
  @winrt_commethod(17)
@@ -238,9 +238,9 @@ class IBinding(ComPtr):
238
238
  @winrt_commethod(19)
239
239
  def put_ConverterParameter(self, value: IInspectable) -> Void: ...
240
240
  @winrt_commethod(20)
241
- def get_ConverterLanguage(self) -> WinRT_String: ...
241
+ def get_ConverterLanguage(self) -> hstr: ...
242
242
  @winrt_commethod(21)
243
- def put_ConverterLanguage(self, value: WinRT_String) -> Void: ...
243
+ def put_ConverterLanguage(self, value: hstr) -> Void: ...
244
244
  @winrt_commethod(22)
245
245
  def get_FallbackValue(self) -> IInspectable: ...
246
246
  @winrt_commethod(23)
@@ -359,8 +359,8 @@ class ICollectionView(ComPtr):
359
359
  HasMoreItems = property(get_HasMoreItems, None)
360
360
  IsCurrentAfterLast = property(get_IsCurrentAfterLast, None)
361
361
  IsCurrentBeforeFirst = property(get_IsCurrentBeforeFirst, None)
362
- CurrentChanged = event()
363
- CurrentChanging = event()
362
+ CurrentChanged = event(add_CurrentChanged, remove_CurrentChanged)
363
+ CurrentChanging = event(add_CurrentChanging, remove_CurrentChanging)
364
364
  class ICollectionViewFactory(ComPtr):
365
365
  extends: IInspectable
366
366
  _classid_ = 'Microsoft.UI.Xaml.Data.ICollectionViewFactory'
@@ -442,7 +442,7 @@ class ICustomProperty(ComPtr):
442
442
  @winrt_commethod(6)
443
443
  def get_Type(self) -> win32more.Windows.UI.Xaml.Interop.TypeName: ...
444
444
  @winrt_commethod(7)
445
- def get_Name(self) -> WinRT_String: ...
445
+ def get_Name(self) -> hstr: ...
446
446
  @winrt_commethod(8)
447
447
  def GetValue(self, target: IInspectable) -> IInspectable: ...
448
448
  @winrt_commethod(9)
@@ -464,11 +464,11 @@ class ICustomPropertyProvider(ComPtr):
464
464
  _classid_ = 'Microsoft.UI.Xaml.Data.ICustomPropertyProvider'
465
465
  _iid_ = Guid('{7c925755-3e48-42b4-8677-76372267033f}')
466
466
  @winrt_commethod(6)
467
- def GetCustomProperty(self, name: WinRT_String) -> win32more.Microsoft.UI.Xaml.Data.ICustomProperty: ...
467
+ def GetCustomProperty(self, name: hstr) -> win32more.Microsoft.UI.Xaml.Data.ICustomProperty: ...
468
468
  @winrt_commethod(7)
469
- def GetIndexedProperty(self, name: WinRT_String, type: win32more.Windows.UI.Xaml.Interop.TypeName) -> win32more.Microsoft.UI.Xaml.Data.ICustomProperty: ...
469
+ def GetIndexedProperty(self, name: hstr, type: win32more.Windows.UI.Xaml.Interop.TypeName) -> win32more.Microsoft.UI.Xaml.Data.ICustomProperty: ...
470
470
  @winrt_commethod(8)
471
- def GetStringRepresentation(self) -> WinRT_String: ...
471
+ def GetStringRepresentation(self) -> hstr: ...
472
472
  @winrt_commethod(9)
473
473
  def get_Type(self) -> win32more.Windows.UI.Xaml.Interop.TypeName: ...
474
474
  Type = property(get_Type, None)
@@ -477,16 +477,16 @@ class IDataErrorsChangedEventArgs(ComPtr):
477
477
  _classid_ = 'Microsoft.UI.Xaml.Data.IDataErrorsChangedEventArgs'
478
478
  _iid_ = Guid('{d026dd64-5f26-5f15-a86a-0dec8a431796}')
479
479
  @winrt_commethod(6)
480
- def get_PropertyName(self) -> WinRT_String: ...
480
+ def get_PropertyName(self) -> hstr: ...
481
481
  @winrt_commethod(7)
482
- def put_PropertyName(self, value: WinRT_String) -> Void: ...
482
+ def put_PropertyName(self, value: hstr) -> Void: ...
483
483
  PropertyName = property(get_PropertyName, put_PropertyName)
484
484
  class IDataErrorsChangedEventArgsFactory(ComPtr):
485
485
  extends: IInspectable
486
486
  _classid_ = 'Microsoft.UI.Xaml.Data.IDataErrorsChangedEventArgsFactory'
487
487
  _iid_ = Guid('{62d0bd1e-b85f-5fcc-842a-7cb0dda37fe5}')
488
488
  @winrt_commethod(6)
489
- def CreateInstance(self, name: WinRT_String) -> win32more.Microsoft.UI.Xaml.Data.DataErrorsChangedEventArgs: ...
489
+ def CreateInstance(self, name: hstr) -> win32more.Microsoft.UI.Xaml.Data.DataErrorsChangedEventArgs: ...
490
490
  class IItemIndexRange(ComPtr):
491
491
  extends: IInspectable
492
492
  _classid_ = 'Microsoft.UI.Xaml.Data.IItemIndexRange'
@@ -524,9 +524,9 @@ class INotifyDataErrorInfo(ComPtr):
524
524
  @winrt_commethod(8)
525
525
  def remove_ErrorsChanged(self, token: win32more.Windows.Foundation.EventRegistrationToken) -> Void: ...
526
526
  @winrt_commethod(9)
527
- def GetErrors(self, propertyName: WinRT_String) -> win32more.Windows.Foundation.Collections.IIterable[IInspectable]: ...
527
+ def GetErrors(self, propertyName: hstr) -> win32more.Windows.Foundation.Collections.IIterable[IInspectable]: ...
528
528
  HasErrors = property(get_HasErrors, None)
529
- ErrorsChanged = event()
529
+ ErrorsChanged = event(add_ErrorsChanged, remove_ErrorsChanged)
530
530
  class INotifyPropertyChanged(ComPtr):
531
531
  extends: IInspectable
532
532
  _classid_ = 'Microsoft.UI.Xaml.Data.INotifyPropertyChanged'
@@ -535,20 +535,20 @@ class INotifyPropertyChanged(ComPtr):
535
535
  def add_PropertyChanged(self, handler: win32more.Microsoft.UI.Xaml.Data.PropertyChangedEventHandler) -> win32more.Windows.Foundation.EventRegistrationToken: ...
536
536
  @winrt_commethod(7)
537
537
  def remove_PropertyChanged(self, token: win32more.Windows.Foundation.EventRegistrationToken) -> Void: ...
538
- PropertyChanged = event()
538
+ PropertyChanged = event(add_PropertyChanged, remove_PropertyChanged)
539
539
  class IPropertyChangedEventArgs(ComPtr):
540
540
  extends: IInspectable
541
541
  _classid_ = 'Microsoft.UI.Xaml.Data.IPropertyChangedEventArgs'
542
542
  _iid_ = Guid('{63d0c952-396b-54f4-af8c-ba8724a427bf}')
543
543
  @winrt_commethod(6)
544
- def get_PropertyName(self) -> WinRT_String: ...
544
+ def get_PropertyName(self) -> hstr: ...
545
545
  PropertyName = property(get_PropertyName, None)
546
546
  class IPropertyChangedEventArgsFactory(ComPtr):
547
547
  extends: IInspectable
548
548
  _classid_ = 'Microsoft.UI.Xaml.Data.IPropertyChangedEventArgsFactory'
549
549
  _iid_ = Guid('{7c0c27a8-0b41-5070-b160-fc9ae960a36c}')
550
550
  @winrt_commethod(6)
551
- def CreateInstance(self, name: WinRT_String, baseInterface: IInspectable, innerInterface: POINTER(IInspectable)) -> win32more.Microsoft.UI.Xaml.Data.PropertyChangedEventArgs: ...
551
+ def CreateInstance(self, name: hstr, baseInterface: IInspectable, innerInterface: POINTER(IInspectable)) -> win32more.Microsoft.UI.Xaml.Data.PropertyChangedEventArgs: ...
552
552
  class IRelativeSource(ComPtr):
553
553
  extends: IInspectable
554
554
  _classid_ = 'Microsoft.UI.Xaml.Data.IRelativeSource'
@@ -590,9 +590,9 @@ class IValueConverter(ComPtr):
590
590
  _classid_ = 'Microsoft.UI.Xaml.Data.IValueConverter'
591
591
  _iid_ = Guid('{afdd2bff-10f5-5173-b7c0-3590bd96cb35}')
592
592
  @winrt_commethod(6)
593
- def Convert(self, value: IInspectable, targetType: win32more.Windows.UI.Xaml.Interop.TypeName, parameter: IInspectable, language: WinRT_String) -> IInspectable: ...
593
+ def Convert(self, value: IInspectable, targetType: win32more.Windows.UI.Xaml.Interop.TypeName, parameter: IInspectable, language: hstr) -> IInspectable: ...
594
594
  @winrt_commethod(7)
595
- def ConvertBack(self, value: IInspectable, targetType: win32more.Windows.UI.Xaml.Interop.TypeName, parameter: IInspectable, language: WinRT_String) -> IInspectable: ...
595
+ def ConvertBack(self, value: IInspectable, targetType: win32more.Windows.UI.Xaml.Interop.TypeName, parameter: IInspectable, language: hstr) -> IInspectable: ...
596
596
  class ItemIndexRange(ComPtr):
597
597
  extends: IInspectable
598
598
  default_interface: win32more.Microsoft.UI.Xaml.Data.IItemIndexRange
@@ -616,6 +616,7 @@ class ItemIndexRange(ComPtr):
616
616
  LastIndex = property(get_LastIndex, None)
617
617
  Length = property(get_Length, None)
618
618
  class LoadMoreItemsResult(Structure):
619
+ _name_ = 'Microsoft.UI.Xaml.Data.LoadMoreItemsResult'
619
620
  Count: UInt32
620
621
  class PropertyChangedEventArgs(ComPtr):
621
622
  extends: IInspectable
@@ -629,9 +630,9 @@ class PropertyChangedEventArgs(ComPtr):
629
630
  else:
630
631
  raise ValueError('no matched constructor')
631
632
  @winrt_factorymethod
632
- def CreateInstance(cls: win32more.Microsoft.UI.Xaml.Data.IPropertyChangedEventArgsFactory, name: WinRT_String, baseInterface: IInspectable, innerInterface: POINTER(IInspectable)) -> win32more.Microsoft.UI.Xaml.Data.PropertyChangedEventArgs: ...
633
+ def CreateInstance(cls: win32more.Microsoft.UI.Xaml.Data.IPropertyChangedEventArgsFactory, name: hstr, baseInterface: IInspectable, innerInterface: POINTER(IInspectable)) -> win32more.Microsoft.UI.Xaml.Data.PropertyChangedEventArgs: ...
633
634
  @winrt_mixinmethod
634
- def get_PropertyName(self: win32more.Microsoft.UI.Xaml.Data.IPropertyChangedEventArgs) -> WinRT_String: ...
635
+ def get_PropertyName(self: win32more.Microsoft.UI.Xaml.Data.IPropertyChangedEventArgs) -> hstr: ...
635
636
  PropertyName = property(get_PropertyName, None)
636
637
  class PropertyChangedEventHandler(MulticastDelegate):
637
638
  extends: IUnknown
@@ -1,5 +1,5 @@
1
1
  from __future__ import annotations
2
- from win32more.winrt.prelude import *
2
+ from win32more._prelude import *
3
3
  import win32more.Microsoft.UI.Xaml
4
4
  import win32more.Microsoft.UI.Xaml.Documents
5
5
  import win32more.Microsoft.UI.Xaml.Input
@@ -123,13 +123,13 @@ class Glyphs(ComPtr, metaclass=_Glyphs_Meta_):
123
123
  @winrt_activatemethod
124
124
  def CreateInstance(cls) -> win32more.Microsoft.UI.Xaml.Documents.Glyphs: ...
125
125
  @winrt_mixinmethod
126
- def get_UnicodeString(self: win32more.Microsoft.UI.Xaml.Documents.IGlyphs) -> WinRT_String: ...
126
+ def get_UnicodeString(self: win32more.Microsoft.UI.Xaml.Documents.IGlyphs) -> hstr: ...
127
127
  @winrt_mixinmethod
128
- def put_UnicodeString(self: win32more.Microsoft.UI.Xaml.Documents.IGlyphs, value: WinRT_String) -> Void: ...
128
+ def put_UnicodeString(self: win32more.Microsoft.UI.Xaml.Documents.IGlyphs, value: hstr) -> Void: ...
129
129
  @winrt_mixinmethod
130
- def get_Indices(self: win32more.Microsoft.UI.Xaml.Documents.IGlyphs) -> WinRT_String: ...
130
+ def get_Indices(self: win32more.Microsoft.UI.Xaml.Documents.IGlyphs) -> hstr: ...
131
131
  @winrt_mixinmethod
132
- def put_Indices(self: win32more.Microsoft.UI.Xaml.Documents.IGlyphs, value: WinRT_String) -> Void: ...
132
+ def put_Indices(self: win32more.Microsoft.UI.Xaml.Documents.IGlyphs, value: hstr) -> Void: ...
133
133
  @winrt_mixinmethod
134
134
  def get_FontUri(self: win32more.Microsoft.UI.Xaml.Documents.IGlyphs) -> win32more.Windows.Foundation.Uri: ...
135
135
  @winrt_mixinmethod
@@ -341,9 +341,9 @@ class Hyperlink(ComPtr, metaclass=_Hyperlink_Meta_):
341
341
  _Hyperlink_Meta_.XYFocusRightProperty = property(get_XYFocusRightProperty, None)
342
342
  _Hyperlink_Meta_.XYFocusUpNavigationStrategyProperty = property(get_XYFocusUpNavigationStrategyProperty, None)
343
343
  _Hyperlink_Meta_.XYFocusUpProperty = property(get_XYFocusUpProperty, None)
344
- Click = event()
345
- GotFocus = event()
346
- LostFocus = event()
344
+ Click = event(add_Click, remove_Click)
345
+ GotFocus = event(add_GotFocus, remove_GotFocus)
346
+ LostFocus = event(add_LostFocus, remove_LostFocus)
347
347
  class HyperlinkClickEventArgs(ComPtr):
348
348
  extends: win32more.Microsoft.UI.Xaml.RoutedEventArgs
349
349
  default_interface: win32more.Microsoft.UI.Xaml.Documents.IHyperlinkClickEventArgs
@@ -411,13 +411,13 @@ class IGlyphs(ComPtr):
411
411
  _classid_ = 'Microsoft.UI.Xaml.Documents.IGlyphs'
412
412
  _iid_ = Guid('{0fbf8cfe-18e7-5e45-9fa3-d2d0927958f4}')
413
413
  @winrt_commethod(6)
414
- def get_UnicodeString(self) -> WinRT_String: ...
414
+ def get_UnicodeString(self) -> hstr: ...
415
415
  @winrt_commethod(7)
416
- def put_UnicodeString(self, value: WinRT_String) -> Void: ...
416
+ def put_UnicodeString(self, value: hstr) -> Void: ...
417
417
  @winrt_commethod(8)
418
- def get_Indices(self) -> WinRT_String: ...
418
+ def get_Indices(self) -> hstr: ...
419
419
  @winrt_commethod(9)
420
- def put_Indices(self, value: WinRT_String) -> Void: ...
420
+ def put_Indices(self, value: hstr) -> Void: ...
421
421
  @winrt_commethod(10)
422
422
  def get_FontUri(self) -> win32more.Windows.Foundation.Uri: ...
423
423
  @winrt_commethod(11)
@@ -580,9 +580,9 @@ class IHyperlink(ComPtr):
580
580
  XYFocusRightNavigationStrategy = property(get_XYFocusRightNavigationStrategy, put_XYFocusRightNavigationStrategy)
581
581
  XYFocusUp = property(get_XYFocusUp, put_XYFocusUp)
582
582
  XYFocusUpNavigationStrategy = property(get_XYFocusUpNavigationStrategy, put_XYFocusUpNavigationStrategy)
583
- Click = event()
584
- GotFocus = event()
585
- LostFocus = event()
583
+ Click = event(add_Click, remove_Click)
584
+ GotFocus = event(add_GotFocus, remove_GotFocus)
585
+ LostFocus = event(add_LostFocus, remove_LostFocus)
586
586
  class IHyperlinkClickEventArgs(ComPtr):
587
587
  extends: IInspectable
588
588
  _classid_ = 'Microsoft.UI.Xaml.Documents.IHyperlinkClickEventArgs'
@@ -684,9 +684,9 @@ class IRun(ComPtr):
684
684
  _classid_ = 'Microsoft.UI.Xaml.Documents.IRun'
685
685
  _iid_ = Guid('{1f905239-37cb-590b-9132-3ffb7741906e}')
686
686
  @winrt_commethod(6)
687
- def get_Text(self) -> WinRT_String: ...
687
+ def get_Text(self) -> hstr: ...
688
688
  @winrt_commethod(7)
689
- def put_Text(self, value: WinRT_String) -> Void: ...
689
+ def put_Text(self, value: hstr) -> Void: ...
690
690
  @winrt_commethod(8)
691
691
  def get_FlowDirection(self) -> win32more.Microsoft.UI.Xaml.FlowDirection: ...
692
692
  @winrt_commethod(9)
@@ -720,7 +720,7 @@ class ITextElement(ComPtr):
720
720
  _classid_ = 'Microsoft.UI.Xaml.Documents.ITextElement'
721
721
  _iid_ = Guid('{a122ba22-833f-5220-a47e-6cd507531abe}')
722
722
  @winrt_commethod(6)
723
- def get_Name(self) -> WinRT_String: ...
723
+ def get_Name(self) -> hstr: ...
724
724
  @winrt_commethod(7)
725
725
  def get_FontSize(self) -> Double: ...
726
726
  @winrt_commethod(8)
@@ -750,9 +750,9 @@ class ITextElement(ComPtr):
750
750
  @winrt_commethod(20)
751
751
  def put_Foreground(self, value: win32more.Microsoft.UI.Xaml.Media.Brush) -> Void: ...
752
752
  @winrt_commethod(21)
753
- def get_Language(self) -> WinRT_String: ...
753
+ def get_Language(self) -> hstr: ...
754
754
  @winrt_commethod(22)
755
- def put_Language(self, value: WinRT_String) -> Void: ...
755
+ def put_Language(self, value: hstr) -> Void: ...
756
756
  @winrt_commethod(23)
757
757
  def get_IsTextScaleFactorEnabled(self) -> Boolean: ...
758
758
  @winrt_commethod(24)
@@ -774,9 +774,9 @@ class ITextElement(ComPtr):
774
774
  @winrt_commethod(32)
775
775
  def put_AllowFocusOnInteraction(self, value: Boolean) -> Void: ...
776
776
  @winrt_commethod(33)
777
- def get_AccessKey(self) -> WinRT_String: ...
777
+ def get_AccessKey(self) -> hstr: ...
778
778
  @winrt_commethod(34)
779
- def put_AccessKey(self, value: WinRT_String) -> Void: ...
779
+ def put_AccessKey(self, value: hstr) -> Void: ...
780
780
  @winrt_commethod(35)
781
781
  def get_ExitDisplayModeOnAccessKeyInvoked(self) -> Boolean: ...
782
782
  @winrt_commethod(36)
@@ -818,7 +818,7 @@ class ITextElement(ComPtr):
818
818
  @winrt_commethod(54)
819
819
  def remove_AccessKeyInvoked(self, token: win32more.Windows.Foundation.EventRegistrationToken) -> Void: ...
820
820
  @winrt_commethod(55)
821
- def FindName(self, name: WinRT_String) -> IInspectable: ...
821
+ def FindName(self, name: hstr) -> IInspectable: ...
822
822
  AccessKey = property(get_AccessKey, put_AccessKey)
823
823
  AccessKeyScopeOwner = property(get_AccessKeyScopeOwner, put_AccessKeyScopeOwner)
824
824
  AllowFocusOnInteraction = property(get_AllowFocusOnInteraction, put_AllowFocusOnInteraction)
@@ -843,9 +843,9 @@ class ITextElement(ComPtr):
843
843
  Name = property(get_Name, None)
844
844
  TextDecorations = property(get_TextDecorations, put_TextDecorations)
845
845
  XamlRoot = property(get_XamlRoot, put_XamlRoot)
846
- AccessKeyDisplayRequested = event()
847
- AccessKeyDisplayDismissed = event()
848
- AccessKeyInvoked = event()
846
+ AccessKeyDisplayDismissed = event(add_AccessKeyDisplayDismissed, remove_AccessKeyDisplayDismissed)
847
+ AccessKeyDisplayRequested = event(add_AccessKeyDisplayRequested, remove_AccessKeyDisplayRequested)
848
+ AccessKeyInvoked = event(add_AccessKeyInvoked, remove_AccessKeyInvoked)
849
849
  class ITextElementFactory(ComPtr):
850
850
  extends: IInspectable
851
851
  _classid_ = 'Microsoft.UI.Xaml.Documents.ITextElementFactory'
@@ -1422,9 +1422,9 @@ class Run(ComPtr, metaclass=_Run_Meta_):
1422
1422
  @winrt_activatemethod
1423
1423
  def CreateInstance(cls) -> win32more.Microsoft.UI.Xaml.Documents.Run: ...
1424
1424
  @winrt_mixinmethod
1425
- def get_Text(self: win32more.Microsoft.UI.Xaml.Documents.IRun) -> WinRT_String: ...
1425
+ def get_Text(self: win32more.Microsoft.UI.Xaml.Documents.IRun) -> hstr: ...
1426
1426
  @winrt_mixinmethod
1427
- def put_Text(self: win32more.Microsoft.UI.Xaml.Documents.IRun, value: WinRT_String) -> Void: ...
1427
+ def put_Text(self: win32more.Microsoft.UI.Xaml.Documents.IRun, value: hstr) -> Void: ...
1428
1428
  @winrt_mixinmethod
1429
1429
  def get_FlowDirection(self: win32more.Microsoft.UI.Xaml.Documents.IRun) -> win32more.Microsoft.UI.Xaml.FlowDirection: ...
1430
1430
  @winrt_mixinmethod
@@ -1459,7 +1459,7 @@ class TextElement(ComPtr, metaclass=_TextElement_Meta_):
1459
1459
  default_interface: win32more.Microsoft.UI.Xaml.Documents.ITextElement
1460
1460
  _classid_ = 'Microsoft.UI.Xaml.Documents.TextElement'
1461
1461
  @winrt_mixinmethod
1462
- def get_Name(self: win32more.Microsoft.UI.Xaml.Documents.ITextElement) -> WinRT_String: ...
1462
+ def get_Name(self: win32more.Microsoft.UI.Xaml.Documents.ITextElement) -> hstr: ...
1463
1463
  @winrt_mixinmethod
1464
1464
  def get_FontSize(self: win32more.Microsoft.UI.Xaml.Documents.ITextElement) -> Double: ...
1465
1465
  @winrt_mixinmethod
@@ -1489,9 +1489,9 @@ class TextElement(ComPtr, metaclass=_TextElement_Meta_):
1489
1489
  @winrt_mixinmethod
1490
1490
  def put_Foreground(self: win32more.Microsoft.UI.Xaml.Documents.ITextElement, value: win32more.Microsoft.UI.Xaml.Media.Brush) -> Void: ...
1491
1491
  @winrt_mixinmethod
1492
- def get_Language(self: win32more.Microsoft.UI.Xaml.Documents.ITextElement) -> WinRT_String: ...
1492
+ def get_Language(self: win32more.Microsoft.UI.Xaml.Documents.ITextElement) -> hstr: ...
1493
1493
  @winrt_mixinmethod
1494
- def put_Language(self: win32more.Microsoft.UI.Xaml.Documents.ITextElement, value: WinRT_String) -> Void: ...
1494
+ def put_Language(self: win32more.Microsoft.UI.Xaml.Documents.ITextElement, value: hstr) -> Void: ...
1495
1495
  @winrt_mixinmethod
1496
1496
  def get_IsTextScaleFactorEnabled(self: win32more.Microsoft.UI.Xaml.Documents.ITextElement) -> Boolean: ...
1497
1497
  @winrt_mixinmethod
@@ -1513,9 +1513,9 @@ class TextElement(ComPtr, metaclass=_TextElement_Meta_):
1513
1513
  @winrt_mixinmethod
1514
1514
  def put_AllowFocusOnInteraction(self: win32more.Microsoft.UI.Xaml.Documents.ITextElement, value: Boolean) -> Void: ...
1515
1515
  @winrt_mixinmethod
1516
- def get_AccessKey(self: win32more.Microsoft.UI.Xaml.Documents.ITextElement) -> WinRT_String: ...
1516
+ def get_AccessKey(self: win32more.Microsoft.UI.Xaml.Documents.ITextElement) -> hstr: ...
1517
1517
  @winrt_mixinmethod
1518
- def put_AccessKey(self: win32more.Microsoft.UI.Xaml.Documents.ITextElement, value: WinRT_String) -> Void: ...
1518
+ def put_AccessKey(self: win32more.Microsoft.UI.Xaml.Documents.ITextElement, value: hstr) -> Void: ...
1519
1519
  @winrt_mixinmethod
1520
1520
  def get_ExitDisplayModeOnAccessKeyInvoked(self: win32more.Microsoft.UI.Xaml.Documents.ITextElement) -> Boolean: ...
1521
1521
  @winrt_mixinmethod
@@ -1557,7 +1557,7 @@ class TextElement(ComPtr, metaclass=_TextElement_Meta_):
1557
1557
  @winrt_mixinmethod
1558
1558
  def remove_AccessKeyInvoked(self: win32more.Microsoft.UI.Xaml.Documents.ITextElement, token: win32more.Windows.Foundation.EventRegistrationToken) -> Void: ...
1559
1559
  @winrt_mixinmethod
1560
- def FindName(self: win32more.Microsoft.UI.Xaml.Documents.ITextElement, name: WinRT_String) -> IInspectable: ...
1560
+ def FindName(self: win32more.Microsoft.UI.Xaml.Documents.ITextElement, name: hstr) -> IInspectable: ...
1561
1561
  @winrt_mixinmethod
1562
1562
  def OnDisconnectVisualChildren(self: win32more.Microsoft.UI.Xaml.Documents.ITextElementOverrides) -> Void: ...
1563
1563
  @winrt_classmethod
@@ -1638,9 +1638,9 @@ class TextElement(ComPtr, metaclass=_TextElement_Meta_):
1638
1638
  _TextElement_Meta_.KeyTipVerticalOffsetProperty = property(get_KeyTipVerticalOffsetProperty, None)
1639
1639
  _TextElement_Meta_.LanguageProperty = property(get_LanguageProperty, None)
1640
1640
  _TextElement_Meta_.TextDecorationsProperty = property(get_TextDecorationsProperty, None)
1641
- AccessKeyDisplayRequested = event()
1642
- AccessKeyDisplayDismissed = event()
1643
- AccessKeyInvoked = event()
1641
+ AccessKeyDisplayDismissed = event(add_AccessKeyDisplayDismissed, remove_AccessKeyDisplayDismissed)
1642
+ AccessKeyDisplayRequested = event(add_AccessKeyDisplayRequested, remove_AccessKeyDisplayRequested)
1643
+ AccessKeyInvoked = event(add_AccessKeyInvoked, remove_AccessKeyInvoked)
1644
1644
  class _TextHighlighter_Meta_(ComPtr.__class__):
1645
1645
  pass
1646
1646
  class TextHighlighter(ComPtr, metaclass=_TextHighlighter_Meta_):
@@ -1700,6 +1700,7 @@ class TextPointer(ComPtr):
1700
1700
  Parent = property(get_Parent, None)
1701
1701
  VisualParent = property(get_VisualParent, None)
1702
1702
  class TextRange(Structure):
1703
+ _name_ = 'Microsoft.UI.Xaml.Documents.TextRange'
1703
1704
  StartIndex: Int32
1704
1705
  Length: Int32
1705
1706
  class _Typography_Meta_(ComPtr.__class__):
@@ -1,5 +1,5 @@
1
1
  from __future__ import annotations
2
- from win32more.winrt.prelude import *
2
+ from win32more._prelude import *
3
3
  import win32more.Microsoft.UI
4
4
  import win32more.Microsoft.UI.Composition
5
5
  import win32more.Microsoft.UI.Content
@@ -57,8 +57,8 @@ class DesktopWindowXamlSource(ComPtr):
57
57
  ShouldConstrainPopupsToWorkArea = property(get_ShouldConstrainPopupsToWorkArea, put_ShouldConstrainPopupsToWorkArea)
58
58
  SiteBridge = property(get_SiteBridge, None)
59
59
  SystemBackdrop = property(get_SystemBackdrop, put_SystemBackdrop)
60
- TakeFocusRequested = event()
61
- GotFocus = event()
60
+ GotFocus = event(add_GotFocus, remove_GotFocus)
61
+ TakeFocusRequested = event(add_TakeFocusRequested, remove_TakeFocusRequested)
62
62
  class DesktopWindowXamlSourceGotFocusEventArgs(ComPtr):
63
63
  extends: IInspectable
64
64
  default_interface: win32more.Microsoft.UI.Xaml.Hosting.IDesktopWindowXamlSourceGotFocusEventArgs
@@ -125,8 +125,8 @@ class IDesktopWindowXamlSource(ComPtr):
125
125
  HasFocus = property(get_HasFocus, None)
126
126
  SiteBridge = property(get_SiteBridge, None)
127
127
  SystemBackdrop = property(get_SystemBackdrop, put_SystemBackdrop)
128
- TakeFocusRequested = event()
129
- GotFocus = event()
128
+ GotFocus = event(add_GotFocus, remove_GotFocus)
129
+ TakeFocusRequested = event(add_TakeFocusRequested, remove_TakeFocusRequested)
130
130
  class IDesktopWindowXamlSource2(ComPtr):
131
131
  extends: IInspectable
132
132
  _classid_ = 'Microsoft.UI.Xaml.Hosting.IDesktopWindowXamlSource2'
@@ -192,7 +192,7 @@ class IWindowsXamlManager2(ComPtr):
192
192
  def add_XamlShutdownCompletedOnThread(self, handler: win32more.Windows.Foundation.TypedEventHandler[win32more.Microsoft.UI.Xaml.Hosting.WindowsXamlManager, win32more.Microsoft.UI.Xaml.Hosting.XamlShutdownCompletedOnThreadEventArgs]) -> win32more.Windows.Foundation.EventRegistrationToken: ...
193
193
  @winrt_commethod(7)
194
194
  def remove_XamlShutdownCompletedOnThread(self, token: win32more.Windows.Foundation.EventRegistrationToken) -> Void: ...
195
- XamlShutdownCompletedOnThread = event()
195
+ XamlShutdownCompletedOnThread = event(add_XamlShutdownCompletedOnThread, remove_XamlShutdownCompletedOnThread)
196
196
  class IWindowsXamlManagerStatics(ComPtr):
197
197
  extends: IInspectable
198
198
  _classid_ = 'Microsoft.UI.Xaml.Hosting.IWindowsXamlManagerStatics'
@@ -262,7 +262,7 @@ class WindowsXamlManager(ComPtr):
262
262
  def GetForCurrentThread(cls: win32more.Microsoft.UI.Xaml.Hosting.IWindowsXamlManagerStatics2) -> win32more.Microsoft.UI.Xaml.Hosting.WindowsXamlManager: ...
263
263
  @winrt_classmethod
264
264
  def InitializeForCurrentThread(cls: win32more.Microsoft.UI.Xaml.Hosting.IWindowsXamlManagerStatics) -> win32more.Microsoft.UI.Xaml.Hosting.WindowsXamlManager: ...
265
- XamlShutdownCompletedOnThread = event()
265
+ XamlShutdownCompletedOnThread = event(add_XamlShutdownCompletedOnThread, remove_XamlShutdownCompletedOnThread)
266
266
  class XamlShutdownCompletedOnThreadEventArgs(ComPtr):
267
267
  extends: IInspectable
268
268
  default_interface: win32more.Microsoft.UI.Xaml.Hosting.IXamlShutdownCompletedOnThreadEventArgs
@@ -1,5 +1,5 @@
1
1
  from __future__ import annotations
2
- from win32more.winrt.prelude import *
2
+ from win32more._prelude import *
3
3
  import win32more.Microsoft.UI.Input
4
4
  import win32more.Microsoft.UI.Xaml
5
5
  import win32more.Microsoft.UI.Xaml.Controls
@@ -35,7 +35,7 @@ class AccessKeyDisplayRequestedEventArgs(ComPtr):
35
35
  @winrt_activatemethod
36
36
  def CreateInstance(cls) -> win32more.Microsoft.UI.Xaml.Input.AccessKeyDisplayRequestedEventArgs: ...
37
37
  @winrt_mixinmethod
38
- def get_PressedKeys(self: win32more.Microsoft.UI.Xaml.Input.IAccessKeyDisplayRequestedEventArgs) -> WinRT_String: ...
38
+ def get_PressedKeys(self: win32more.Microsoft.UI.Xaml.Input.IAccessKeyDisplayRequestedEventArgs) -> hstr: ...
39
39
  PressedKeys = property(get_PressedKeys, None)
40
40
  class AccessKeyInvokedEventArgs(ComPtr):
41
41
  extends: IInspectable
@@ -77,6 +77,7 @@ class AccessKeyManager(ComPtr, metaclass=_AccessKeyManager_Meta_):
77
77
  def ExitDisplayMode(cls: win32more.Microsoft.UI.Xaml.Input.IAccessKeyManagerStatics) -> Void: ...
78
78
  _AccessKeyManager_Meta_.AreKeyTipsEnabled = property(get_AreKeyTipsEnabled, put_AreKeyTipsEnabled)
79
79
  _AccessKeyManager_Meta_.IsDisplayModeEnabled = property(get_IsDisplayModeEnabled, None)
80
+ _AccessKeyManager_Meta_.IsDisplayModeEnabledChanged = event(add_IsDisplayModeEnabledChanged, remove_IsDisplayModeEnabledChanged)
80
81
  class CanExecuteRequestedEventArgs(ComPtr):
81
82
  extends: IInspectable
82
83
  default_interface: win32more.Microsoft.UI.Xaml.Input.ICanExecuteRequestedEventArgs
@@ -199,7 +200,9 @@ class FocusInputDeviceKind(Enum, Int32):
199
200
  Pen = 3
200
201
  Keyboard = 4
201
202
  GameController = 5
202
- class FocusManager(ComPtr):
203
+ class _FocusManager_Meta_(ComPtr.__class__):
204
+ pass
205
+ class FocusManager(ComPtr, metaclass=_FocusManager_Meta_):
203
206
  extends: IInspectable
204
207
  default_interface: win32more.Microsoft.UI.Xaml.Input.IFocusManager
205
208
  _classid_ = 'Microsoft.UI.Xaml.Input.FocusManager'
@@ -245,6 +248,10 @@ class FocusManager(ComPtr):
245
248
  def GetFocusedElement(cls: win32more.Microsoft.UI.Xaml.Input.IFocusManagerStatics) -> IInspectable: ...
246
249
  @winrt_classmethod
247
250
  def GetFocusedElementWithRoot(cls: win32more.Microsoft.UI.Xaml.Input.IFocusManagerStatics, xamlRoot: win32more.Microsoft.UI.Xaml.XamlRoot) -> IInspectable: ...
251
+ _FocusManager_Meta_.GettingFocus = event(add_GettingFocus, remove_GettingFocus)
252
+ _FocusManager_Meta_.GotFocus = event(add_GotFocus, remove_GotFocus)
253
+ _FocusManager_Meta_.LosingFocus = event(add_LosingFocus, remove_LosingFocus)
254
+ _FocusManager_Meta_.LostFocus = event(add_LostFocus, remove_LostFocus)
248
255
  class FocusManagerGotFocusEventArgs(ComPtr):
249
256
  extends: IInspectable
250
257
  default_interface: win32more.Microsoft.UI.Xaml.Input.IFocusManagerGotFocusEventArgs
@@ -358,7 +365,7 @@ class IAccessKeyDisplayRequestedEventArgs(ComPtr):
358
365
  _classid_ = 'Microsoft.UI.Xaml.Input.IAccessKeyDisplayRequestedEventArgs'
359
366
  _iid_ = Guid('{c4ed84d8-2b27-59b1-9cf0-7f9164de58cb}')
360
367
  @winrt_commethod(6)
361
- def get_PressedKeys(self) -> WinRT_String: ...
368
+ def get_PressedKeys(self) -> hstr: ...
362
369
  PressedKeys = property(get_PressedKeys, None)
363
370
  class IAccessKeyInvokedEventArgs(ComPtr):
364
371
  extends: IInspectable
@@ -391,7 +398,7 @@ class IAccessKeyManagerStatics(ComPtr):
391
398
  def ExitDisplayMode(self) -> Void: ...
392
399
  AreKeyTipsEnabled = property(get_AreKeyTipsEnabled, put_AreKeyTipsEnabled)
393
400
  IsDisplayModeEnabled = property(get_IsDisplayModeEnabled, None)
394
- IsDisplayModeEnabledChanged = event()
401
+ IsDisplayModeEnabledChanged = event(add_IsDisplayModeEnabledChanged, remove_IsDisplayModeEnabledChanged)
395
402
  class IAccessKeyManagerStatics2(ComPtr):
396
403
  extends: IInspectable
397
404
  _classid_ = 'Microsoft.UI.Xaml.Input.IAccessKeyManagerStatics2'
@@ -437,7 +444,7 @@ class ICommand(ComPtr):
437
444
  def CanExecute(self, parameter: IInspectable) -> Boolean: ...
438
445
  @winrt_commethod(9)
439
446
  def Execute(self, parameter: IInspectable) -> Void: ...
440
- CanExecuteChanged = event()
447
+ CanExecuteChanged = event(add_CanExecuteChanged, remove_CanExecuteChanged)
441
448
  class IContextRequestedEventArgs(ComPtr):
442
449
  extends: IInspectable
443
450
  _classid_ = 'Microsoft.UI.Xaml.Input.IContextRequestedEventArgs'
@@ -564,10 +571,10 @@ class IFocusManagerStatics(ComPtr):
564
571
  def GetFocusedElement(self) -> IInspectable: ...
565
572
  @winrt_commethod(26)
566
573
  def GetFocusedElementWithRoot(self, xamlRoot: win32more.Microsoft.UI.Xaml.XamlRoot) -> IInspectable: ...
567
- GotFocus = event()
568
- LostFocus = event()
569
- GettingFocus = event()
570
- LosingFocus = event()
574
+ GettingFocus = event(add_GettingFocus, remove_GettingFocus)
575
+ GotFocus = event(add_GotFocus, remove_GotFocus)
576
+ LosingFocus = event(add_LosingFocus, remove_LosingFocus)
577
+ LostFocus = event(add_LostFocus, remove_LostFocus)
571
578
  class IFocusMovementResult(ComPtr):
572
579
  extends: IInspectable
573
580
  _classid_ = 'Microsoft.UI.Xaml.Input.IFocusMovementResult'
@@ -709,7 +716,7 @@ class IKeyRoutedEventArgs(ComPtr):
709
716
  @winrt_commethod(10)
710
717
  def get_OriginalKey(self) -> win32more.Windows.System.VirtualKey: ...
711
718
  @winrt_commethod(11)
712
- def get_DeviceId(self) -> WinRT_String: ...
719
+ def get_DeviceId(self) -> hstr: ...
713
720
  DeviceId = property(get_DeviceId, None)
714
721
  Handled = property(get_Handled, put_Handled)
715
722
  Key = property(get_Key, None)
@@ -743,7 +750,7 @@ class IKeyboardAccelerator(ComPtr):
743
750
  Key = property(get_Key, put_Key)
744
751
  Modifiers = property(get_Modifiers, put_Modifiers)
745
752
  ScopeOwner = property(get_ScopeOwner, put_ScopeOwner)
746
- Invoked = event()
753
+ Invoked = event(add_Invoked, remove_Invoked)
747
754
  class IKeyboardAcceleratorFactory(ComPtr):
748
755
  extends: IInspectable
749
756
  _classid_ = 'Microsoft.UI.Xaml.Input.IKeyboardAcceleratorFactory'
@@ -1115,9 +1122,9 @@ class IXamlUICommand(ComPtr):
1115
1122
  _classid_ = 'Microsoft.UI.Xaml.Input.IXamlUICommand'
1116
1123
  _iid_ = Guid('{a457f2cb-51e0-541c-9c42-dd1dcbdf58fb}')
1117
1124
  @winrt_commethod(6)
1118
- def get_Label(self) -> WinRT_String: ...
1125
+ def get_Label(self) -> hstr: ...
1119
1126
  @winrt_commethod(7)
1120
- def put_Label(self, value: WinRT_String) -> Void: ...
1127
+ def put_Label(self, value: hstr) -> Void: ...
1121
1128
  @winrt_commethod(8)
1122
1129
  def get_IconSource(self) -> win32more.Microsoft.UI.Xaml.Controls.IconSource: ...
1123
1130
  @winrt_commethod(9)
@@ -1125,13 +1132,13 @@ class IXamlUICommand(ComPtr):
1125
1132
  @winrt_commethod(10)
1126
1133
  def get_KeyboardAccelerators(self) -> win32more.Windows.Foundation.Collections.IVector[win32more.Microsoft.UI.Xaml.Input.KeyboardAccelerator]: ...
1127
1134
  @winrt_commethod(11)
1128
- def get_AccessKey(self) -> WinRT_String: ...
1135
+ def get_AccessKey(self) -> hstr: ...
1129
1136
  @winrt_commethod(12)
1130
- def put_AccessKey(self, value: WinRT_String) -> Void: ...
1137
+ def put_AccessKey(self, value: hstr) -> Void: ...
1131
1138
  @winrt_commethod(13)
1132
- def get_Description(self) -> WinRT_String: ...
1139
+ def get_Description(self) -> hstr: ...
1133
1140
  @winrt_commethod(14)
1134
- def put_Description(self, value: WinRT_String) -> Void: ...
1141
+ def put_Description(self, value: hstr) -> Void: ...
1135
1142
  @winrt_commethod(15)
1136
1143
  def get_Command(self) -> win32more.Microsoft.UI.Xaml.Input.ICommand: ...
1137
1144
  @winrt_commethod(16)
@@ -1152,8 +1159,8 @@ class IXamlUICommand(ComPtr):
1152
1159
  IconSource = property(get_IconSource, put_IconSource)
1153
1160
  KeyboardAccelerators = property(get_KeyboardAccelerators, None)
1154
1161
  Label = property(get_Label, put_Label)
1155
- ExecuteRequested = event()
1156
- CanExecuteRequested = event()
1162
+ CanExecuteRequested = event(add_CanExecuteRequested, remove_CanExecuteRequested)
1163
+ ExecuteRequested = event(add_ExecuteRequested, remove_ExecuteRequested)
1157
1164
  class IXamlUICommandFactory(ComPtr):
1158
1165
  extends: IInspectable
1159
1166
  _classid_ = 'Microsoft.UI.Xaml.Input.IXamlUICommandFactory'
@@ -1328,7 +1335,7 @@ class KeyRoutedEventArgs(ComPtr):
1328
1335
  @winrt_mixinmethod
1329
1336
  def get_OriginalKey(self: win32more.Microsoft.UI.Xaml.Input.IKeyRoutedEventArgs) -> win32more.Windows.System.VirtualKey: ...
1330
1337
  @winrt_mixinmethod
1331
- def get_DeviceId(self: win32more.Microsoft.UI.Xaml.Input.IKeyRoutedEventArgs) -> WinRT_String: ...
1338
+ def get_DeviceId(self: win32more.Microsoft.UI.Xaml.Input.IKeyRoutedEventArgs) -> hstr: ...
1332
1339
  DeviceId = property(get_DeviceId, None)
1333
1340
  Handled = property(get_Handled, put_Handled)
1334
1341
  Key = property(get_Key, None)
@@ -1393,7 +1400,7 @@ class KeyboardAccelerator(ComPtr, metaclass=_KeyboardAccelerator_Meta_):
1393
1400
  _KeyboardAccelerator_Meta_.KeyProperty = property(get_KeyProperty, None)
1394
1401
  _KeyboardAccelerator_Meta_.ModifiersProperty = property(get_ModifiersProperty, None)
1395
1402
  _KeyboardAccelerator_Meta_.ScopeOwnerProperty = property(get_ScopeOwnerProperty, None)
1396
- Invoked = event()
1403
+ Invoked = event(add_Invoked, remove_Invoked)
1397
1404
  class KeyboardAcceleratorInvokedEventArgs(ComPtr):
1398
1405
  extends: IInspectable
1399
1406
  default_interface: win32more.Microsoft.UI.Xaml.Input.IKeyboardAcceleratorInvokedEventArgs
@@ -1914,9 +1921,9 @@ class XamlUICommand(ComPtr, metaclass=_XamlUICommand_Meta_):
1914
1921
  @winrt_factorymethod
1915
1922
  def CreateInstance(cls: win32more.Microsoft.UI.Xaml.Input.IXamlUICommandFactory, baseInterface: IInspectable, innerInterface: POINTER(IInspectable)) -> win32more.Microsoft.UI.Xaml.Input.XamlUICommand: ...
1916
1923
  @winrt_mixinmethod
1917
- def get_Label(self: win32more.Microsoft.UI.Xaml.Input.IXamlUICommand) -> WinRT_String: ...
1924
+ def get_Label(self: win32more.Microsoft.UI.Xaml.Input.IXamlUICommand) -> hstr: ...
1918
1925
  @winrt_mixinmethod
1919
- def put_Label(self: win32more.Microsoft.UI.Xaml.Input.IXamlUICommand, value: WinRT_String) -> Void: ...
1926
+ def put_Label(self: win32more.Microsoft.UI.Xaml.Input.IXamlUICommand, value: hstr) -> Void: ...
1920
1927
  @winrt_mixinmethod
1921
1928
  def get_IconSource(self: win32more.Microsoft.UI.Xaml.Input.IXamlUICommand) -> win32more.Microsoft.UI.Xaml.Controls.IconSource: ...
1922
1929
  @winrt_mixinmethod
@@ -1924,13 +1931,13 @@ class XamlUICommand(ComPtr, metaclass=_XamlUICommand_Meta_):
1924
1931
  @winrt_mixinmethod
1925
1932
  def get_KeyboardAccelerators(self: win32more.Microsoft.UI.Xaml.Input.IXamlUICommand) -> win32more.Windows.Foundation.Collections.IVector[win32more.Microsoft.UI.Xaml.Input.KeyboardAccelerator]: ...
1926
1933
  @winrt_mixinmethod
1927
- def get_AccessKey(self: win32more.Microsoft.UI.Xaml.Input.IXamlUICommand) -> WinRT_String: ...
1934
+ def get_AccessKey(self: win32more.Microsoft.UI.Xaml.Input.IXamlUICommand) -> hstr: ...
1928
1935
  @winrt_mixinmethod
1929
- def put_AccessKey(self: win32more.Microsoft.UI.Xaml.Input.IXamlUICommand, value: WinRT_String) -> Void: ...
1936
+ def put_AccessKey(self: win32more.Microsoft.UI.Xaml.Input.IXamlUICommand, value: hstr) -> Void: ...
1930
1937
  @winrt_mixinmethod
1931
- def get_Description(self: win32more.Microsoft.UI.Xaml.Input.IXamlUICommand) -> WinRT_String: ...
1938
+ def get_Description(self: win32more.Microsoft.UI.Xaml.Input.IXamlUICommand) -> hstr: ...
1932
1939
  @winrt_mixinmethod
1933
- def put_Description(self: win32more.Microsoft.UI.Xaml.Input.IXamlUICommand, value: WinRT_String) -> Void: ...
1940
+ def put_Description(self: win32more.Microsoft.UI.Xaml.Input.IXamlUICommand, value: hstr) -> Void: ...
1934
1941
  @winrt_mixinmethod
1935
1942
  def get_Command(self: win32more.Microsoft.UI.Xaml.Input.IXamlUICommand) -> win32more.Microsoft.UI.Xaml.Input.ICommand: ...
1936
1943
  @winrt_mixinmethod
@@ -1977,9 +1984,9 @@ class XamlUICommand(ComPtr, metaclass=_XamlUICommand_Meta_):
1977
1984
  _XamlUICommand_Meta_.IconSourceProperty = property(get_IconSourceProperty, None)
1978
1985
  _XamlUICommand_Meta_.KeyboardAcceleratorsProperty = property(get_KeyboardAcceleratorsProperty, None)
1979
1986
  _XamlUICommand_Meta_.LabelProperty = property(get_LabelProperty, None)
1980
- ExecuteRequested = event()
1981
- CanExecuteRequested = event()
1982
- CanExecuteChanged = event()
1987
+ CanExecuteChanged = event(add_CanExecuteChanged, remove_CanExecuteChanged)
1988
+ CanExecuteRequested = event(add_CanExecuteRequested, remove_CanExecuteRequested)
1989
+ ExecuteRequested = event(add_ExecuteRequested, remove_ExecuteRequested)
1983
1990
 
1984
1991
 
1985
1992
  make_ready(__name__)