winrt-Windows.UI.Xaml.Core.Direct 2.1.0__tar.gz → 2.2.0__tar.gz

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 (20) hide show
  1. {winrt_windows_ui_xaml_core_direct-2.1.0 → winrt_windows_ui_xaml_core_direct-2.2.0}/PKG-INFO +8 -8
  2. winrt_windows_ui_xaml_core_direct-2.2.0/all-requirements.txt +7 -0
  3. {winrt_windows_ui_xaml_core_direct-2.1.0 → winrt_windows_ui_xaml_core_direct-2.2.0}/py.Windows.UI.Xaml.Core.Direct.cpp +429 -56
  4. {winrt_windows_ui_xaml_core_direct-2.1.0 → winrt_windows_ui_xaml_core_direct-2.2.0}/pyproject.toml +3 -2
  5. winrt_windows_ui_xaml_core_direct-2.2.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_ui_xaml_core_direct-2.1.0 → winrt_windows_ui_xaml_core_direct-2.2.0}/requirements.txt +2 -2
  7. {winrt_windows_ui_xaml_core_direct-2.1.0 → winrt_windows_ui_xaml_core_direct-2.2.0}/winrt/_winrt_windows_ui_xaml_core_direct.pyi +1 -1
  8. {winrt_windows_ui_xaml_core_direct-2.1.0 → winrt_windows_ui_xaml_core_direct-2.2.0}/winrt/windows/ui/xaml/core/direct/__init__.py +1 -1
  9. {winrt_windows_ui_xaml_core_direct-2.1.0 → winrt_windows_ui_xaml_core_direct-2.2.0}/winrt_Windows.UI.Xaml.Core.Direct.egg-info/PKG-INFO +8 -8
  10. winrt_windows_ui_xaml_core_direct-2.2.0/winrt_Windows.UI.Xaml.Core.Direct.egg-info/requires.txt +8 -0
  11. winrt_windows_ui_xaml_core_direct-2.1.0/all-requirements.txt +0 -7
  12. winrt_windows_ui_xaml_core_direct-2.1.0/pywinrt-version.txt +0 -1
  13. winrt_windows_ui_xaml_core_direct-2.1.0/winrt_Windows.UI.Xaml.Core.Direct.egg-info/requires.txt +0 -8
  14. {winrt_windows_ui_xaml_core_direct-2.1.0 → winrt_windows_ui_xaml_core_direct-2.2.0}/README.md +0 -0
  15. {winrt_windows_ui_xaml_core_direct-2.1.0 → winrt_windows_ui_xaml_core_direct-2.2.0}/setup.cfg +0 -0
  16. {winrt_windows_ui_xaml_core_direct-2.1.0 → winrt_windows_ui_xaml_core_direct-2.2.0}/setup.py +0 -0
  17. {winrt_windows_ui_xaml_core_direct-2.1.0 → winrt_windows_ui_xaml_core_direct-2.2.0}/winrt/windows/ui/xaml/core/direct/py.typed +0 -0
  18. {winrt_windows_ui_xaml_core_direct-2.1.0 → winrt_windows_ui_xaml_core_direct-2.2.0}/winrt_Windows.UI.Xaml.Core.Direct.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_ui_xaml_core_direct-2.1.0 → winrt_windows_ui_xaml_core_direct-2.2.0}/winrt_Windows.UI.Xaml.Core.Direct.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_ui_xaml_core_direct-2.1.0 → winrt_windows_ui_xaml_core_direct-2.2.0}/winrt_Windows.UI.Xaml.Core.Direct.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.UI.Xaml.Core.Direct
3
- Version: 2.1.0
3
+ Version: 2.2.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,15 +10,15 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.1.0
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.UI[all]==2.1.0; extra == "all"
19
- Requires-Dist: winrt-Windows.UI.Xaml[all]==2.1.0; extra == "all"
20
- Requires-Dist: winrt-Windows.UI.Xaml.Media[all]==2.1.0; extra == "all"
21
- Requires-Dist: winrt-Windows.UI.Xaml.Media.Media3D[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.UI[all]==2.2.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.UI.Xaml[all]==2.2.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.UI.Xaml.Media[all]==2.2.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.UI.Xaml.Media.Media3D[all]==2.2.0; extra == "all"
22
22
 
23
23
  <!-- warning: Please don't edit this file. It was automatically generated. -->
24
24
 
@@ -0,0 +1,7 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ winrt-Windows.Foundation[all]==2.2.0
4
+ winrt-Windows.UI[all]==2.2.0
5
+ winrt-Windows.UI.Xaml[all]==2.2.0
6
+ winrt-Windows.UI.Xaml.Media[all]==2.2.0
7
+ winrt-Windows.UI.Xaml.Media.Media3D[all]==2.2.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  #include "py.Windows.UI.Xaml.Core.Direct.h"
4
4
 
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
29
29
  {
30
30
  try
31
31
  {
32
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"AddEventHandler", 3))
32
+ static std::optional<bool> is_overload_present{};
33
+
34
+ if (!is_overload_present.has_value())
35
+ {
36
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"AddEventHandler", 3);
37
+ }
38
+
39
+ if (!is_overload_present.value())
33
40
  {
34
41
  py::set_arg_count_version_error(3);
35
42
  return nullptr;
@@ -52,7 +59,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
52
59
  {
53
60
  try
54
61
  {
55
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"AddEventHandler", 4))
62
+ static std::optional<bool> is_overload_present{};
63
+
64
+ if (!is_overload_present.has_value())
65
+ {
66
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"AddEventHandler", 4);
67
+ }
68
+
69
+ if (!is_overload_present.value())
56
70
  {
57
71
  py::set_arg_count_version_error(4);
58
72
  return nullptr;
@@ -87,7 +101,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
87
101
  {
88
102
  try
89
103
  {
90
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"AddToCollection", 2))
104
+ static std::optional<bool> is_overload_present{};
105
+
106
+ if (!is_overload_present.has_value())
107
+ {
108
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"AddToCollection", 2);
109
+ }
110
+
111
+ if (!is_overload_present.value())
91
112
  {
92
113
  py::set_arg_count_version_error(2);
93
114
  return nullptr;
@@ -120,7 +141,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
120
141
  {
121
142
  try
122
143
  {
123
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"ClearCollection", 1))
144
+ static std::optional<bool> is_overload_present{};
145
+
146
+ if (!is_overload_present.has_value())
147
+ {
148
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"ClearCollection", 1);
149
+ }
150
+
151
+ if (!is_overload_present.value())
124
152
  {
125
153
  py::set_arg_count_version_error(1);
126
154
  return nullptr;
@@ -152,7 +180,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
152
180
  {
153
181
  try
154
182
  {
155
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"ClearProperty", 2))
183
+ static std::optional<bool> is_overload_present{};
184
+
185
+ if (!is_overload_present.has_value())
186
+ {
187
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"ClearProperty", 2);
188
+ }
189
+
190
+ if (!is_overload_present.value())
156
191
  {
157
192
  py::set_arg_count_version_error(2);
158
193
  return nullptr;
@@ -185,7 +220,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
185
220
  {
186
221
  try
187
222
  {
188
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"CreateInstance", 1))
223
+ static std::optional<bool> is_overload_present{};
224
+
225
+ if (!is_overload_present.has_value())
226
+ {
227
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"CreateInstance", 1);
228
+ }
229
+
230
+ if (!is_overload_present.value())
189
231
  {
190
232
  py::set_arg_count_version_error(1);
191
233
  return nullptr;
@@ -216,7 +258,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
216
258
  {
217
259
  try
218
260
  {
219
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetBooleanProperty", 2))
261
+ static std::optional<bool> is_overload_present{};
262
+
263
+ if (!is_overload_present.has_value())
264
+ {
265
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetBooleanProperty", 2);
266
+ }
267
+
268
+ if (!is_overload_present.value())
220
269
  {
221
270
  py::set_arg_count_version_error(2);
222
271
  return nullptr;
@@ -248,7 +297,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
248
297
  {
249
298
  try
250
299
  {
251
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetCollectionCount", 1))
300
+ static std::optional<bool> is_overload_present{};
301
+
302
+ if (!is_overload_present.has_value())
303
+ {
304
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetCollectionCount", 1);
305
+ }
306
+
307
+ if (!is_overload_present.value())
252
308
  {
253
309
  py::set_arg_count_version_error(1);
254
310
  return nullptr;
@@ -279,7 +335,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
279
335
  {
280
336
  try
281
337
  {
282
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetColorProperty", 2))
338
+ static std::optional<bool> is_overload_present{};
339
+
340
+ if (!is_overload_present.has_value())
341
+ {
342
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetColorProperty", 2);
343
+ }
344
+
345
+ if (!is_overload_present.value())
283
346
  {
284
347
  py::set_arg_count_version_error(2);
285
348
  return nullptr;
@@ -311,7 +374,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
311
374
  {
312
375
  try
313
376
  {
314
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetCornerRadiusProperty", 2))
377
+ static std::optional<bool> is_overload_present{};
378
+
379
+ if (!is_overload_present.has_value())
380
+ {
381
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetCornerRadiusProperty", 2);
382
+ }
383
+
384
+ if (!is_overload_present.value())
315
385
  {
316
386
  py::set_arg_count_version_error(2);
317
387
  return nullptr;
@@ -343,7 +413,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
343
413
  {
344
414
  try
345
415
  {
346
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetDateTimeProperty", 2))
416
+ static std::optional<bool> is_overload_present{};
417
+
418
+ if (!is_overload_present.has_value())
419
+ {
420
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetDateTimeProperty", 2);
421
+ }
422
+
423
+ if (!is_overload_present.value())
347
424
  {
348
425
  py::set_arg_count_version_error(2);
349
426
  return nullptr;
@@ -375,7 +452,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
375
452
  {
376
453
  try
377
454
  {
378
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetDefault", 0))
455
+ static std::optional<bool> is_overload_present{};
456
+
457
+ if (!is_overload_present.has_value())
458
+ {
459
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetDefault", 0);
460
+ }
461
+
462
+ if (!is_overload_present.value())
379
463
  {
380
464
  py::set_arg_count_version_error(0);
381
465
  return nullptr;
@@ -404,7 +488,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
404
488
  {
405
489
  try
406
490
  {
407
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetDoubleProperty", 2))
491
+ static std::optional<bool> is_overload_present{};
492
+
493
+ if (!is_overload_present.has_value())
494
+ {
495
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetDoubleProperty", 2);
496
+ }
497
+
498
+ if (!is_overload_present.value())
408
499
  {
409
500
  py::set_arg_count_version_error(2);
410
501
  return nullptr;
@@ -436,7 +527,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
436
527
  {
437
528
  try
438
529
  {
439
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetDurationProperty", 2))
530
+ static std::optional<bool> is_overload_present{};
531
+
532
+ if (!is_overload_present.has_value())
533
+ {
534
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetDurationProperty", 2);
535
+ }
536
+
537
+ if (!is_overload_present.value())
440
538
  {
441
539
  py::set_arg_count_version_error(2);
442
540
  return nullptr;
@@ -468,7 +566,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
468
566
  {
469
567
  try
470
568
  {
471
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetEnumProperty", 2))
569
+ static std::optional<bool> is_overload_present{};
570
+
571
+ if (!is_overload_present.has_value())
572
+ {
573
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetEnumProperty", 2);
574
+ }
575
+
576
+ if (!is_overload_present.value())
472
577
  {
473
578
  py::set_arg_count_version_error(2);
474
579
  return nullptr;
@@ -500,7 +605,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
500
605
  {
501
606
  try
502
607
  {
503
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetGridLengthProperty", 2))
608
+ static std::optional<bool> is_overload_present{};
609
+
610
+ if (!is_overload_present.has_value())
611
+ {
612
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetGridLengthProperty", 2);
613
+ }
614
+
615
+ if (!is_overload_present.value())
504
616
  {
505
617
  py::set_arg_count_version_error(2);
506
618
  return nullptr;
@@ -532,7 +644,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
532
644
  {
533
645
  try
534
646
  {
535
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetInt32Property", 2))
647
+ static std::optional<bool> is_overload_present{};
648
+
649
+ if (!is_overload_present.has_value())
650
+ {
651
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetInt32Property", 2);
652
+ }
653
+
654
+ if (!is_overload_present.value())
536
655
  {
537
656
  py::set_arg_count_version_error(2);
538
657
  return nullptr;
@@ -564,7 +683,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
564
683
  {
565
684
  try
566
685
  {
567
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetMatrix3DProperty", 2))
686
+ static std::optional<bool> is_overload_present{};
687
+
688
+ if (!is_overload_present.has_value())
689
+ {
690
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetMatrix3DProperty", 2);
691
+ }
692
+
693
+ if (!is_overload_present.value())
568
694
  {
569
695
  py::set_arg_count_version_error(2);
570
696
  return nullptr;
@@ -596,7 +722,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
596
722
  {
597
723
  try
598
724
  {
599
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetMatrixProperty", 2))
725
+ static std::optional<bool> is_overload_present{};
726
+
727
+ if (!is_overload_present.has_value())
728
+ {
729
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetMatrixProperty", 2);
730
+ }
731
+
732
+ if (!is_overload_present.value())
600
733
  {
601
734
  py::set_arg_count_version_error(2);
602
735
  return nullptr;
@@ -628,7 +761,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
628
761
  {
629
762
  try
630
763
  {
631
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetObject", 1))
764
+ static std::optional<bool> is_overload_present{};
765
+
766
+ if (!is_overload_present.has_value())
767
+ {
768
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetObject", 1);
769
+ }
770
+
771
+ if (!is_overload_present.value())
632
772
  {
633
773
  py::set_arg_count_version_error(1);
634
774
  return nullptr;
@@ -659,7 +799,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
659
799
  {
660
800
  try
661
801
  {
662
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetObjectProperty", 2))
802
+ static std::optional<bool> is_overload_present{};
803
+
804
+ if (!is_overload_present.has_value())
805
+ {
806
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetObjectProperty", 2);
807
+ }
808
+
809
+ if (!is_overload_present.value())
663
810
  {
664
811
  py::set_arg_count_version_error(2);
665
812
  return nullptr;
@@ -691,7 +838,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
691
838
  {
692
839
  try
693
840
  {
694
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetPointProperty", 2))
841
+ static std::optional<bool> is_overload_present{};
842
+
843
+ if (!is_overload_present.has_value())
844
+ {
845
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetPointProperty", 2);
846
+ }
847
+
848
+ if (!is_overload_present.value())
695
849
  {
696
850
  py::set_arg_count_version_error(2);
697
851
  return nullptr;
@@ -723,7 +877,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
723
877
  {
724
878
  try
725
879
  {
726
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetRectProperty", 2))
880
+ static std::optional<bool> is_overload_present{};
881
+
882
+ if (!is_overload_present.has_value())
883
+ {
884
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetRectProperty", 2);
885
+ }
886
+
887
+ if (!is_overload_present.value())
727
888
  {
728
889
  py::set_arg_count_version_error(2);
729
890
  return nullptr;
@@ -755,7 +916,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
755
916
  {
756
917
  try
757
918
  {
758
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetSizeProperty", 2))
919
+ static std::optional<bool> is_overload_present{};
920
+
921
+ if (!is_overload_present.has_value())
922
+ {
923
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetSizeProperty", 2);
924
+ }
925
+
926
+ if (!is_overload_present.value())
759
927
  {
760
928
  py::set_arg_count_version_error(2);
761
929
  return nullptr;
@@ -787,7 +955,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
787
955
  {
788
956
  try
789
957
  {
790
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetStringProperty", 2))
958
+ static std::optional<bool> is_overload_present{};
959
+
960
+ if (!is_overload_present.has_value())
961
+ {
962
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetStringProperty", 2);
963
+ }
964
+
965
+ if (!is_overload_present.value())
791
966
  {
792
967
  py::set_arg_count_version_error(2);
793
968
  return nullptr;
@@ -819,7 +994,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
819
994
  {
820
995
  try
821
996
  {
822
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetThicknessProperty", 2))
997
+ static std::optional<bool> is_overload_present{};
998
+
999
+ if (!is_overload_present.has_value())
1000
+ {
1001
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetThicknessProperty", 2);
1002
+ }
1003
+
1004
+ if (!is_overload_present.value())
823
1005
  {
824
1006
  py::set_arg_count_version_error(2);
825
1007
  return nullptr;
@@ -851,7 +1033,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
851
1033
  {
852
1034
  try
853
1035
  {
854
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetTimeSpanProperty", 2))
1036
+ static std::optional<bool> is_overload_present{};
1037
+
1038
+ if (!is_overload_present.has_value())
1039
+ {
1040
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetTimeSpanProperty", 2);
1041
+ }
1042
+
1043
+ if (!is_overload_present.value())
855
1044
  {
856
1045
  py::set_arg_count_version_error(2);
857
1046
  return nullptr;
@@ -883,7 +1072,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
883
1072
  {
884
1073
  try
885
1074
  {
886
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetXamlDirectObject", 1))
1075
+ static std::optional<bool> is_overload_present{};
1076
+
1077
+ if (!is_overload_present.has_value())
1078
+ {
1079
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetXamlDirectObject", 1);
1080
+ }
1081
+
1082
+ if (!is_overload_present.value())
887
1083
  {
888
1084
  py::set_arg_count_version_error(1);
889
1085
  return nullptr;
@@ -914,7 +1110,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
914
1110
  {
915
1111
  try
916
1112
  {
917
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetXamlDirectObjectFromCollectionAt", 2))
1113
+ static std::optional<bool> is_overload_present{};
1114
+
1115
+ if (!is_overload_present.has_value())
1116
+ {
1117
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetXamlDirectObjectFromCollectionAt", 2);
1118
+ }
1119
+
1120
+ if (!is_overload_present.value())
918
1121
  {
919
1122
  py::set_arg_count_version_error(2);
920
1123
  return nullptr;
@@ -946,7 +1149,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
946
1149
  {
947
1150
  try
948
1151
  {
949
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetXamlDirectObjectProperty", 2))
1152
+ static std::optional<bool> is_overload_present{};
1153
+
1154
+ if (!is_overload_present.has_value())
1155
+ {
1156
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"GetXamlDirectObjectProperty", 2);
1157
+ }
1158
+
1159
+ if (!is_overload_present.value())
950
1160
  {
951
1161
  py::set_arg_count_version_error(2);
952
1162
  return nullptr;
@@ -978,7 +1188,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
978
1188
  {
979
1189
  try
980
1190
  {
981
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"InsertIntoCollectionAt", 3))
1191
+ static std::optional<bool> is_overload_present{};
1192
+
1193
+ if (!is_overload_present.has_value())
1194
+ {
1195
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"InsertIntoCollectionAt", 3);
1196
+ }
1197
+
1198
+ if (!is_overload_present.value())
982
1199
  {
983
1200
  py::set_arg_count_version_error(3);
984
1201
  return nullptr;
@@ -1012,7 +1229,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
1012
1229
  {
1013
1230
  try
1014
1231
  {
1015
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"RemoveEventHandler", 3))
1232
+ static std::optional<bool> is_overload_present{};
1233
+
1234
+ if (!is_overload_present.has_value())
1235
+ {
1236
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"RemoveEventHandler", 3);
1237
+ }
1238
+
1239
+ if (!is_overload_present.value())
1016
1240
  {
1017
1241
  py::set_arg_count_version_error(3);
1018
1242
  return nullptr;
@@ -1046,7 +1270,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
1046
1270
  {
1047
1271
  try
1048
1272
  {
1049
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"RemoveFromCollection", 2))
1273
+ static std::optional<bool> is_overload_present{};
1274
+
1275
+ if (!is_overload_present.has_value())
1276
+ {
1277
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"RemoveFromCollection", 2);
1278
+ }
1279
+
1280
+ if (!is_overload_present.value())
1050
1281
  {
1051
1282
  py::set_arg_count_version_error(2);
1052
1283
  return nullptr;
@@ -1078,7 +1309,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
1078
1309
  {
1079
1310
  try
1080
1311
  {
1081
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"RemoveFromCollectionAt", 2))
1312
+ static std::optional<bool> is_overload_present{};
1313
+
1314
+ if (!is_overload_present.has_value())
1315
+ {
1316
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"RemoveFromCollectionAt", 2);
1317
+ }
1318
+
1319
+ if (!is_overload_present.value())
1082
1320
  {
1083
1321
  py::set_arg_count_version_error(2);
1084
1322
  return nullptr;
@@ -1111,7 +1349,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
1111
1349
  {
1112
1350
  try
1113
1351
  {
1114
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetBooleanProperty", 3))
1352
+ static std::optional<bool> is_overload_present{};
1353
+
1354
+ if (!is_overload_present.has_value())
1355
+ {
1356
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetBooleanProperty", 3);
1357
+ }
1358
+
1359
+ if (!is_overload_present.value())
1115
1360
  {
1116
1361
  py::set_arg_count_version_error(3);
1117
1362
  return nullptr;
@@ -1145,7 +1390,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
1145
1390
  {
1146
1391
  try
1147
1392
  {
1148
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetColorProperty", 3))
1393
+ static std::optional<bool> is_overload_present{};
1394
+
1395
+ if (!is_overload_present.has_value())
1396
+ {
1397
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetColorProperty", 3);
1398
+ }
1399
+
1400
+ if (!is_overload_present.value())
1149
1401
  {
1150
1402
  py::set_arg_count_version_error(3);
1151
1403
  return nullptr;
@@ -1179,7 +1431,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
1179
1431
  {
1180
1432
  try
1181
1433
  {
1182
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetCornerRadiusProperty", 3))
1434
+ static std::optional<bool> is_overload_present{};
1435
+
1436
+ if (!is_overload_present.has_value())
1437
+ {
1438
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetCornerRadiusProperty", 3);
1439
+ }
1440
+
1441
+ if (!is_overload_present.value())
1183
1442
  {
1184
1443
  py::set_arg_count_version_error(3);
1185
1444
  return nullptr;
@@ -1213,7 +1472,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
1213
1472
  {
1214
1473
  try
1215
1474
  {
1216
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetDateTimeProperty", 3))
1475
+ static std::optional<bool> is_overload_present{};
1476
+
1477
+ if (!is_overload_present.has_value())
1478
+ {
1479
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetDateTimeProperty", 3);
1480
+ }
1481
+
1482
+ if (!is_overload_present.value())
1217
1483
  {
1218
1484
  py::set_arg_count_version_error(3);
1219
1485
  return nullptr;
@@ -1247,7 +1513,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
1247
1513
  {
1248
1514
  try
1249
1515
  {
1250
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetDoubleProperty", 3))
1516
+ static std::optional<bool> is_overload_present{};
1517
+
1518
+ if (!is_overload_present.has_value())
1519
+ {
1520
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetDoubleProperty", 3);
1521
+ }
1522
+
1523
+ if (!is_overload_present.value())
1251
1524
  {
1252
1525
  py::set_arg_count_version_error(3);
1253
1526
  return nullptr;
@@ -1281,7 +1554,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
1281
1554
  {
1282
1555
  try
1283
1556
  {
1284
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetDurationProperty", 3))
1557
+ static std::optional<bool> is_overload_present{};
1558
+
1559
+ if (!is_overload_present.has_value())
1560
+ {
1561
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetDurationProperty", 3);
1562
+ }
1563
+
1564
+ if (!is_overload_present.value())
1285
1565
  {
1286
1566
  py::set_arg_count_version_error(3);
1287
1567
  return nullptr;
@@ -1315,7 +1595,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
1315
1595
  {
1316
1596
  try
1317
1597
  {
1318
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetEnumProperty", 3))
1598
+ static std::optional<bool> is_overload_present{};
1599
+
1600
+ if (!is_overload_present.has_value())
1601
+ {
1602
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetEnumProperty", 3);
1603
+ }
1604
+
1605
+ if (!is_overload_present.value())
1319
1606
  {
1320
1607
  py::set_arg_count_version_error(3);
1321
1608
  return nullptr;
@@ -1349,7 +1636,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
1349
1636
  {
1350
1637
  try
1351
1638
  {
1352
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetGridLengthProperty", 3))
1639
+ static std::optional<bool> is_overload_present{};
1640
+
1641
+ if (!is_overload_present.has_value())
1642
+ {
1643
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetGridLengthProperty", 3);
1644
+ }
1645
+
1646
+ if (!is_overload_present.value())
1353
1647
  {
1354
1648
  py::set_arg_count_version_error(3);
1355
1649
  return nullptr;
@@ -1383,7 +1677,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
1383
1677
  {
1384
1678
  try
1385
1679
  {
1386
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetInt32Property", 3))
1680
+ static std::optional<bool> is_overload_present{};
1681
+
1682
+ if (!is_overload_present.has_value())
1683
+ {
1684
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetInt32Property", 3);
1685
+ }
1686
+
1687
+ if (!is_overload_present.value())
1387
1688
  {
1388
1689
  py::set_arg_count_version_error(3);
1389
1690
  return nullptr;
@@ -1417,7 +1718,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
1417
1718
  {
1418
1719
  try
1419
1720
  {
1420
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetMatrix3DProperty", 3))
1721
+ static std::optional<bool> is_overload_present{};
1722
+
1723
+ if (!is_overload_present.has_value())
1724
+ {
1725
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetMatrix3DProperty", 3);
1726
+ }
1727
+
1728
+ if (!is_overload_present.value())
1421
1729
  {
1422
1730
  py::set_arg_count_version_error(3);
1423
1731
  return nullptr;
@@ -1451,7 +1759,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
1451
1759
  {
1452
1760
  try
1453
1761
  {
1454
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetMatrixProperty", 3))
1762
+ static std::optional<bool> is_overload_present{};
1763
+
1764
+ if (!is_overload_present.has_value())
1765
+ {
1766
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetMatrixProperty", 3);
1767
+ }
1768
+
1769
+ if (!is_overload_present.value())
1455
1770
  {
1456
1771
  py::set_arg_count_version_error(3);
1457
1772
  return nullptr;
@@ -1485,7 +1800,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
1485
1800
  {
1486
1801
  try
1487
1802
  {
1488
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetObjectProperty", 3))
1803
+ static std::optional<bool> is_overload_present{};
1804
+
1805
+ if (!is_overload_present.has_value())
1806
+ {
1807
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetObjectProperty", 3);
1808
+ }
1809
+
1810
+ if (!is_overload_present.value())
1489
1811
  {
1490
1812
  py::set_arg_count_version_error(3);
1491
1813
  return nullptr;
@@ -1519,7 +1841,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
1519
1841
  {
1520
1842
  try
1521
1843
  {
1522
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetPointProperty", 3))
1844
+ static std::optional<bool> is_overload_present{};
1845
+
1846
+ if (!is_overload_present.has_value())
1847
+ {
1848
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetPointProperty", 3);
1849
+ }
1850
+
1851
+ if (!is_overload_present.value())
1523
1852
  {
1524
1853
  py::set_arg_count_version_error(3);
1525
1854
  return nullptr;
@@ -1553,7 +1882,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
1553
1882
  {
1554
1883
  try
1555
1884
  {
1556
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetRectProperty", 3))
1885
+ static std::optional<bool> is_overload_present{};
1886
+
1887
+ if (!is_overload_present.has_value())
1888
+ {
1889
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetRectProperty", 3);
1890
+ }
1891
+
1892
+ if (!is_overload_present.value())
1557
1893
  {
1558
1894
  py::set_arg_count_version_error(3);
1559
1895
  return nullptr;
@@ -1587,7 +1923,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
1587
1923
  {
1588
1924
  try
1589
1925
  {
1590
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetSizeProperty", 3))
1926
+ static std::optional<bool> is_overload_present{};
1927
+
1928
+ if (!is_overload_present.has_value())
1929
+ {
1930
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetSizeProperty", 3);
1931
+ }
1932
+
1933
+ if (!is_overload_present.value())
1591
1934
  {
1592
1935
  py::set_arg_count_version_error(3);
1593
1936
  return nullptr;
@@ -1621,7 +1964,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
1621
1964
  {
1622
1965
  try
1623
1966
  {
1624
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetStringProperty", 3))
1967
+ static std::optional<bool> is_overload_present{};
1968
+
1969
+ if (!is_overload_present.has_value())
1970
+ {
1971
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetStringProperty", 3);
1972
+ }
1973
+
1974
+ if (!is_overload_present.value())
1625
1975
  {
1626
1976
  py::set_arg_count_version_error(3);
1627
1977
  return nullptr;
@@ -1655,7 +2005,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
1655
2005
  {
1656
2006
  try
1657
2007
  {
1658
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetThicknessProperty", 3))
2008
+ static std::optional<bool> is_overload_present{};
2009
+
2010
+ if (!is_overload_present.has_value())
2011
+ {
2012
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetThicknessProperty", 3);
2013
+ }
2014
+
2015
+ if (!is_overload_present.value())
1659
2016
  {
1660
2017
  py::set_arg_count_version_error(3);
1661
2018
  return nullptr;
@@ -1689,7 +2046,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
1689
2046
  {
1690
2047
  try
1691
2048
  {
1692
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetTimeSpanProperty", 3))
2049
+ static std::optional<bool> is_overload_present{};
2050
+
2051
+ if (!is_overload_present.has_value())
2052
+ {
2053
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetTimeSpanProperty", 3);
2054
+ }
2055
+
2056
+ if (!is_overload_present.value())
1693
2057
  {
1694
2058
  py::set_arg_count_version_error(3);
1695
2059
  return nullptr;
@@ -1723,7 +2087,14 @@ namespace py::cpp::Windows::UI::Xaml::Core::Direct
1723
2087
  {
1724
2088
  try
1725
2089
  {
1726
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetXamlDirectObjectProperty", 3))
2090
+ static std::optional<bool> is_overload_present{};
2091
+
2092
+ if (!is_overload_present.has_value())
2093
+ {
2094
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Core.Direct.XamlDirect", L"SetXamlDirectObjectProperty", 3);
2095
+ }
2096
+
2097
+ if (!is_overload_present.value())
1727
2098
  {
1728
2099
  py::set_arg_count_version_error(3);
1729
2100
  return nullptr;
@@ -1992,12 +2363,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_xaml_core_direct(void) noexcept
1992
2363
  return nullptr;
1993
2364
  }
1994
2365
 
1995
- if (py::register_python_type(module.get(), &type_spec_XamlDirect, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_XamlDirect_Static.get())) == -1)
2366
+ py::pytype_handle XamlDirect_type{py::register_python_type(module.get(), &type_spec_XamlDirect, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_XamlDirect_Static.get()))};
2367
+ if (!XamlDirect_type)
1996
2368
  {
1997
2369
  return nullptr;
1998
2370
  }
1999
2371
 
2000
- if (py::register_python_type(module.get(), &type_spec_IXamlDirectObject, object_bases.get(), nullptr) == -1)
2372
+ py::pytype_handle IXamlDirectObject_type{py::register_python_type(module.get(), &type_spec_IXamlDirectObject, object_bases.get(), nullptr)};
2373
+ if (!IXamlDirectObject_type)
2001
2374
  {
2002
2375
  return nullptr;
2003
2376
  }
@@ -16,7 +16,7 @@ classifiers = [
16
16
  "Intended Audience :: Developers",
17
17
  ]
18
18
  dynamic = ["version", "dependencies", "optional-dependencies"]
19
- requires-python = ">=3.9,<3.13"
19
+ requires-python = ">=3.9,<3.14"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
36
36
  # use local winrt-sdk build dependency
37
37
  environment = { PYTHONPATH="../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
- build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
39
+ build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
+ before-build = "uv pip install setuptools"
40
41
  # don't build for PyPy
41
42
  skip = "pp*"
42
43
  # suppress warnings about ARM64 testing
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
- winrt-runtime==2.1.0
3
+ winrt-runtime==2.2.0
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  import enum
4
4
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.UI.Xaml.Core.Direct
3
- Version: 2.1.0
3
+ Version: 2.2.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,15 +10,15 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.1.0
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.UI[all]==2.1.0; extra == "all"
19
- Requires-Dist: winrt-Windows.UI.Xaml[all]==2.1.0; extra == "all"
20
- Requires-Dist: winrt-Windows.UI.Xaml.Media[all]==2.1.0; extra == "all"
21
- Requires-Dist: winrt-Windows.UI.Xaml.Media.Media3D[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.UI[all]==2.2.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.UI.Xaml[all]==2.2.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.UI.Xaml.Media[all]==2.2.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.UI.Xaml.Media.Media3D[all]==2.2.0; extra == "all"
22
22
 
23
23
  <!-- warning: Please don't edit this file. It was automatically generated. -->
24
24
 
@@ -0,0 +1,8 @@
1
+ winrt-runtime==2.2.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.2.0
5
+ winrt-Windows.UI[all]==2.2.0
6
+ winrt-Windows.UI.Xaml[all]==2.2.0
7
+ winrt-Windows.UI.Xaml.Media[all]==2.2.0
8
+ winrt-Windows.UI.Xaml.Media.Media3D[all]==2.2.0
@@ -1,7 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
-
3
- winrt-Windows.Foundation[all]==2.1.0
4
- winrt-Windows.UI[all]==2.1.0
5
- winrt-Windows.UI.Xaml[all]==2.1.0
6
- winrt-Windows.UI.Xaml.Media[all]==2.1.0
7
- winrt-Windows.UI.Xaml.Media.Media3D[all]==2.1.0
@@ -1,8 +0,0 @@
1
- winrt-runtime==2.1.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.1.0
5
- winrt-Windows.UI[all]==2.1.0
6
- winrt-Windows.UI.Xaml[all]==2.1.0
7
- winrt-Windows.UI.Xaml.Media[all]==2.1.0
8
- winrt-Windows.UI.Xaml.Media.Media3D[all]==2.1.0