win32more-Microsoft.WindowsAppSDK 0.6.1.8.251003001__py2.py3-none-any.whl → 0.7.1.5.240311000__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.

Potentially problematic release.


This version of win32more-Microsoft.WindowsAppSDK might be problematic. Click here for more details.

Files changed (89) hide show
  1. win32more/Microsoft/Foundation/__init__.py +2 -2
  2. win32more/Microsoft/Graphics/DirectX/__init__.py +1 -1
  3. win32more/Microsoft/Graphics/Display/__init__.py +9 -9
  4. win32more/Microsoft/UI/Composition/Core/__init__.py +9 -9
  5. win32more/Microsoft/UI/Composition/Diagnostics/__init__.py +3 -3
  6. win32more/Microsoft/UI/Composition/Effects/__init__.py +11 -11
  7. win32more/Microsoft/UI/Composition/Interactions/__init__.py +95 -95
  8. win32more/Microsoft/UI/Composition/Scenes/__init__.py +81 -81
  9. win32more/Microsoft/UI/Composition/SystemBackdrops/__init__.py +41 -41
  10. win32more/Microsoft/UI/Composition/__init__.py +261 -261
  11. win32more/Microsoft/UI/Content/__init__.py +55 -696
  12. win32more/Microsoft/UI/Dispatching/__init__.py +15 -15
  13. win32more/Microsoft/UI/Input/DragDrop/__init__.py +13 -13
  14. win32more/Microsoft/UI/Input/Interop/__init__.py +1 -1
  15. win32more/Microsoft/UI/Input/__init__.py +150 -376
  16. win32more/Microsoft/UI/System/__init__.py +5 -5
  17. win32more/Microsoft/UI/Text/__init__.py +26 -47
  18. win32more/Microsoft/UI/Windowing/__init__.py +42 -125
  19. win32more/Microsoft/UI/Xaml/Automation/Peers/__init__.py +56 -78
  20. win32more/Microsoft/UI/Xaml/Automation/Provider/__init__.py +19 -19
  21. win32more/Microsoft/UI/Xaml/Automation/Text/__init__.py +1 -1
  22. win32more/Microsoft/UI/Xaml/Automation/__init__.py +41 -41
  23. win32more/Microsoft/UI/Xaml/Controls/AnimatedVisuals/__init__.py +17 -17
  24. win32more/Microsoft/UI/Xaml/Controls/Primitives/__init__.py +108 -107
  25. win32more/Microsoft/UI/Xaml/Controls/__init__.py +727 -1217
  26. win32more/Microsoft/UI/Xaml/Core/Direct/__init__.py +7 -0
  27. win32more/Microsoft/UI/Xaml/Data/__init__.py +31 -30
  28. win32more/Microsoft/UI/Xaml/Documents/__init__.py +38 -37
  29. win32more/Microsoft/UI/Xaml/Hosting/__init__.py +7 -7
  30. win32more/Microsoft/UI/Xaml/Input/__init__.py +38 -31
  31. win32more/Microsoft/UI/Xaml/Interop/__init__.py +3 -3
  32. win32more/Microsoft/UI/Xaml/Markup/__init__.py +19 -17
  33. win32more/Microsoft/UI/Xaml/Media/Animation/__init__.py +111 -109
  34. win32more/Microsoft/UI/Xaml/Media/Imaging/__init__.py +11 -11
  35. win32more/Microsoft/UI/Xaml/Media/Media3D/__init__.py +2 -1
  36. win32more/Microsoft/UI/Xaml/Media/__init__.py +34 -28
  37. win32more/Microsoft/UI/Xaml/Navigation/__init__.py +1 -1
  38. win32more/Microsoft/UI/Xaml/Printing/__init__.py +7 -7
  39. win32more/Microsoft/UI/Xaml/Resources/__init__.py +3 -3
  40. win32more/Microsoft/UI/Xaml/Shapes/__init__.py +1 -1
  41. win32more/Microsoft/UI/Xaml/XamlTypeInfo/__init__.py +2 -2
  42. win32more/Microsoft/UI/Xaml/__init__.py +192 -260
  43. win32more/Microsoft/UI/__init__.py +6 -11
  44. win32more/Microsoft/Web/WebView2/Core/__init__.py +4686 -0
  45. win32more/Microsoft/Windows/AppLifecycle/__init__.py +21 -21
  46. win32more/Microsoft/Windows/AppNotifications/Builder/__init__.py +100 -100
  47. win32more/Microsoft/Windows/AppNotifications/__init__.py +46 -46
  48. win32more/Microsoft/Windows/ApplicationModel/DynamicDependency/__init__.py +22 -21
  49. win32more/Microsoft/Windows/ApplicationModel/Resources/__init__.py +60 -60
  50. win32more/Microsoft/Windows/ApplicationModel/WindowsAppRuntime/__init__.py +1 -118
  51. win32more/Microsoft/Windows/Management/Deployment/__init__.py +83 -143
  52. win32more/Microsoft/Windows/PushNotifications/__init__.py +6 -5
  53. win32more/Microsoft/Windows/Security/AccessControl/__init__.py +7 -6
  54. win32more/Microsoft/Windows/System/Power/__init__.py +23 -12
  55. win32more/Microsoft/Windows/System/__init__.py +15 -15
  56. win32more/Microsoft/Windows/Widgets/Feeds/Providers/__init__.py +25 -292
  57. win32more/Microsoft/Windows/Widgets/Providers/__init__.py +49 -260
  58. win32more/Microsoft/Windows/Widgets/__init__.py +2 -2
  59. win32more/appsdk/versioninfo.py +2 -2
  60. win32more/dll/arm64/Microsoft.WindowsAppRuntime.Bootstrap.dll +0 -0
  61. win32more/dll/x64/Microsoft.WindowsAppRuntime.Bootstrap.dll +0 -0
  62. win32more/dll/x86/Microsoft.WindowsAppRuntime.Bootstrap.dll +0 -0
  63. win32more_microsoft_windowsappsdk-0.7.1.5.240311000.dist-info/METADATA +5 -0
  64. win32more_microsoft_windowsappsdk-0.7.1.5.240311000.dist-info/RECORD +66 -0
  65. {win32more_microsoft_windowsappsdk-0.6.1.8.251003001.dist-info → win32more_microsoft_windowsappsdk-0.7.1.5.240311000.dist-info}/licenses/LICENSE (Microsoft.WindowsAppSDK).txt +3 -5
  66. win32more/Microsoft/Graphics/Imaging/__init__.py +0 -77
  67. win32more/Microsoft/Security/Authentication/OAuth/__init__.py +0 -591
  68. win32more/Microsoft/Windows/AI/ContentSafety/__init__.py +0 -197
  69. win32more/Microsoft/Windows/AI/Foundation/__init__.py +0 -46
  70. win32more/Microsoft/Windows/AI/Imaging/__init__.py +0 -365
  71. win32more/Microsoft/Windows/AI/MachineLearning/__init__.py +0 -122
  72. win32more/Microsoft/Windows/AI/Text/__init__.py +0 -498
  73. win32more/Microsoft/Windows/AI/__init__.py +0 -49
  74. win32more/Microsoft/Windows/ApplicationModel/Background/UniversalBGTask/__init__.py +0 -27
  75. win32more/Microsoft/Windows/ApplicationModel/Background/__init__.py +0 -65
  76. win32more/Microsoft/Windows/BadgeNotifications/__init__.py +0 -53
  77. win32more/Microsoft/Windows/Foundation/__init__.py +0 -220
  78. win32more/Microsoft/Windows/Globalization/__init__.py +0 -38
  79. win32more/Microsoft/Windows/Media/Capture/__init__.py +0 -196
  80. win32more/Microsoft/Windows/Storage/Pickers/__init__.py +0 -258
  81. win32more/Microsoft/Windows/Storage/__init__.py +0 -178
  82. win32more/Microsoft/Windows/Widgets/Notifications/__init__.py +0 -193
  83. win32more/Microsoft/Windows/Workloads/__init__.py +0 -11
  84. win32more/dll/arm64/Microsoft.Windows.ApplicationModel.Background.UniversalBGTask.dll +0 -0
  85. win32more/dll/x64/Microsoft.Windows.ApplicationModel.Background.UniversalBGTask.dll +0 -0
  86. win32more/dll/x86/Microsoft.Windows.ApplicationModel.Background.UniversalBGTask.dll +0 -0
  87. win32more_microsoft_windowsappsdk-0.6.1.8.251003001.dist-info/METADATA +0 -6
  88. win32more_microsoft_windowsappsdk-0.6.1.8.251003001.dist-info/RECORD +0 -85
  89. {win32more_microsoft_windowsappsdk-0.6.1.8.251003001.dist-info → win32more_microsoft_windowsappsdk-0.7.1.5.240311000.dist-info}/WHEEL +0 -0
@@ -0,0 +1,7 @@
1
+ from __future__ import annotations
2
+ from win32more._prelude import *
3
+ import win32more.Microsoft.UI.Xaml.Core.Direct
4
+ XamlDirectContract: UInt32 = 65536
5
+
6
+
7
+ make_ready(__name__)
@@ -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