winrt-Windows.Graphics.Printing.PrintSupport 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_graphics_printing_printsupport-2.1.0 → winrt_windows_graphics_printing_printsupport-2.2.0}/PKG-INFO +12 -12
  2. winrt_windows_graphics_printing_printsupport-2.2.0/all-requirements.txt +11 -0
  3. {winrt_windows_graphics_printing_printsupport-2.1.0 → winrt_windows_graphics_printing_printsupport-2.2.0}/py.Windows.Graphics.Printing.PrintSupport.cpp +398 -59
  4. {winrt_windows_graphics_printing_printsupport-2.1.0 → winrt_windows_graphics_printing_printsupport-2.2.0}/pyproject.toml +3 -2
  5. winrt_windows_graphics_printing_printsupport-2.2.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_graphics_printing_printsupport-2.1.0 → winrt_windows_graphics_printing_printsupport-2.2.0}/requirements.txt +2 -2
  7. {winrt_windows_graphics_printing_printsupport-2.1.0 → winrt_windows_graphics_printing_printsupport-2.2.0}/winrt/_winrt_windows_graphics_printing_printsupport.pyi +1 -1
  8. {winrt_windows_graphics_printing_printsupport-2.1.0 → winrt_windows_graphics_printing_printsupport-2.2.0}/winrt/windows/graphics/printing/printsupport/__init__.py +1 -1
  9. {winrt_windows_graphics_printing_printsupport-2.1.0 → winrt_windows_graphics_printing_printsupport-2.2.0}/winrt_Windows.Graphics.Printing.PrintSupport.egg-info/PKG-INFO +12 -12
  10. winrt_windows_graphics_printing_printsupport-2.2.0/winrt_Windows.Graphics.Printing.PrintSupport.egg-info/requires.txt +12 -0
  11. winrt_windows_graphics_printing_printsupport-2.1.0/all-requirements.txt +0 -11
  12. winrt_windows_graphics_printing_printsupport-2.1.0/pywinrt-version.txt +0 -1
  13. winrt_windows_graphics_printing_printsupport-2.1.0/winrt_Windows.Graphics.Printing.PrintSupport.egg-info/requires.txt +0 -12
  14. {winrt_windows_graphics_printing_printsupport-2.1.0 → winrt_windows_graphics_printing_printsupport-2.2.0}/README.md +0 -0
  15. {winrt_windows_graphics_printing_printsupport-2.1.0 → winrt_windows_graphics_printing_printsupport-2.2.0}/setup.cfg +0 -0
  16. {winrt_windows_graphics_printing_printsupport-2.1.0 → winrt_windows_graphics_printing_printsupport-2.2.0}/setup.py +0 -0
  17. {winrt_windows_graphics_printing_printsupport-2.1.0 → winrt_windows_graphics_printing_printsupport-2.2.0}/winrt/windows/graphics/printing/printsupport/py.typed +0 -0
  18. {winrt_windows_graphics_printing_printsupport-2.1.0 → winrt_windows_graphics_printing_printsupport-2.2.0}/winrt_Windows.Graphics.Printing.PrintSupport.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_graphics_printing_printsupport-2.1.0 → winrt_windows_graphics_printing_printsupport-2.2.0}/winrt_Windows.Graphics.Printing.PrintSupport.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_graphics_printing_printsupport-2.1.0 → winrt_windows_graphics_printing_printsupport-2.2.0}/winrt_Windows.Graphics.Printing.PrintSupport.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Graphics.Printing.PrintSupport
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,19 +10,19 @@ 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.ApplicationModel[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.ApplicationModel.Activation[all]==2.1.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Data.Xml.Dom[all]==2.1.0; extra == "all"
20
- Requires-Dist: winrt-Windows.Devices.Printers[all]==2.1.0; extra == "all"
21
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
22
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
23
- Requires-Dist: winrt-Windows.Graphics.Printing.PrintTicket[all]==2.1.0; extra == "all"
24
- Requires-Dist: winrt-Windows.System[all]==2.1.0; extra == "all"
25
- Requires-Dist: winrt-Windows.UI.Shell[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.ApplicationModel[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.ApplicationModel.Activation[all]==2.2.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Data.Xml.Dom[all]==2.2.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Devices.Printers[all]==2.2.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
22
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
23
+ Requires-Dist: winrt-Windows.Graphics.Printing.PrintTicket[all]==2.2.0; extra == "all"
24
+ Requires-Dist: winrt-Windows.System[all]==2.2.0; extra == "all"
25
+ Requires-Dist: winrt-Windows.UI.Shell[all]==2.2.0; extra == "all"
26
26
 
27
27
  <!-- warning: Please don't edit this file. It was automatically generated. -->
28
28
 
@@ -0,0 +1,11 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ winrt-Windows.ApplicationModel[all]==2.2.0
4
+ winrt-Windows.ApplicationModel.Activation[all]==2.2.0
5
+ winrt-Windows.Data.Xml.Dom[all]==2.2.0
6
+ winrt-Windows.Devices.Printers[all]==2.2.0
7
+ winrt-Windows.Foundation[all]==2.2.0
8
+ winrt-Windows.Foundation.Collections[all]==2.2.0
9
+ winrt-Windows.Graphics.Printing.PrintTicket[all]==2.2.0
10
+ winrt-Windows.System[all]==2.2.0
11
+ winrt-Windows.UI.Shell[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.Graphics.Printing.PrintSupport.h"
4
4
 
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
29
29
  {
30
30
  try
31
31
  {
32
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportExtensionSession", L"Start", 0))
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.Graphics.Printing.PrintSupport.PrintSupportExtensionSession", L"Start", 0);
37
+ }
38
+
39
+ if (!is_overload_present.value())
33
40
  {
34
41
  py::set_arg_count_version_error(0);
35
42
  return nullptr;
@@ -55,7 +62,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
55
62
  {
56
63
  try
57
64
  {
58
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportExtensionSession", L"Printer"))
65
+ static std::optional<bool> is_property_present{};
66
+
67
+ if (!is_property_present.has_value())
68
+ {
69
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportExtensionSession", L"Printer");
70
+ }
71
+
72
+ if (!is_property_present.value())
59
73
  {
60
74
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
61
75
  return nullptr;
@@ -74,7 +88,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
74
88
  {
75
89
  try
76
90
  {
77
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportExtensionSession", L"PrintDeviceCapabilitiesChanged"))
91
+ static std::optional<bool> is_event_present{};
92
+
93
+ if (!is_event_present.has_value())
94
+ {
95
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportExtensionSession", L"PrintDeviceCapabilitiesChanged");
96
+ }
97
+
98
+ if (!is_event_present.value())
78
99
  {
79
100
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
80
101
  return nullptr;
@@ -95,7 +116,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
95
116
  {
96
117
  try
97
118
  {
98
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportExtensionSession", L"PrintDeviceCapabilitiesChanged"))
119
+ static std::optional<bool> is_event_present{};
120
+
121
+ if (!is_event_present.has_value())
122
+ {
123
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportExtensionSession", L"PrintDeviceCapabilitiesChanged");
124
+ }
125
+
126
+ if (!is_event_present.value())
99
127
  {
100
128
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
101
129
  return nullptr;
@@ -117,7 +145,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
117
145
  {
118
146
  try
119
147
  {
120
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportExtensionSession", L"PrintTicketValidationRequested"))
148
+ static std::optional<bool> is_event_present{};
149
+
150
+ if (!is_event_present.has_value())
151
+ {
152
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportExtensionSession", L"PrintTicketValidationRequested");
153
+ }
154
+
155
+ if (!is_event_present.value())
121
156
  {
122
157
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
123
158
  return nullptr;
@@ -138,7 +173,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
138
173
  {
139
174
  try
140
175
  {
141
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportExtensionSession", L"PrintTicketValidationRequested"))
176
+ static std::optional<bool> is_event_present{};
177
+
178
+ if (!is_event_present.has_value())
179
+ {
180
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportExtensionSession", L"PrintTicketValidationRequested");
181
+ }
182
+
183
+ if (!is_event_present.value())
142
184
  {
143
185
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
144
186
  return nullptr;
@@ -160,7 +202,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
160
202
  {
161
203
  try
162
204
  {
163
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportExtensionSession", L"PrinterSelected"))
205
+ static std::optional<bool> is_event_present{};
206
+
207
+ if (!is_event_present.has_value())
208
+ {
209
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportExtensionSession", L"PrinterSelected");
210
+ }
211
+
212
+ if (!is_event_present.value())
164
213
  {
165
214
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
166
215
  return nullptr;
@@ -181,7 +230,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
181
230
  {
182
231
  try
183
232
  {
184
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportExtensionSession", L"PrinterSelected"))
233
+ static std::optional<bool> is_event_present{};
234
+
235
+ if (!is_event_present.has_value())
236
+ {
237
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportExtensionSession", L"PrinterSelected");
238
+ }
239
+
240
+ if (!is_event_present.value())
185
241
  {
186
242
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
187
243
  return nullptr;
@@ -277,7 +333,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
277
333
  {
278
334
  try
279
335
  {
280
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportExtensionTriggerDetails", L"Session"))
336
+ static std::optional<bool> is_property_present{};
337
+
338
+ if (!is_property_present.has_value())
339
+ {
340
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportExtensionTriggerDetails", L"Session");
341
+ }
342
+
343
+ if (!is_property_present.value())
281
344
  {
282
345
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
283
346
  return nullptr;
@@ -367,7 +430,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
367
430
  {
368
431
  try
369
432
  {
370
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintDeviceCapabilitiesChangedEventArgs", L"GetCurrentPrintDeviceCapabilities", 0))
433
+ static std::optional<bool> is_overload_present{};
434
+
435
+ if (!is_overload_present.has_value())
436
+ {
437
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintDeviceCapabilitiesChangedEventArgs", L"GetCurrentPrintDeviceCapabilities", 0);
438
+ }
439
+
440
+ if (!is_overload_present.value())
371
441
  {
372
442
  py::set_arg_count_version_error(0);
373
443
  return nullptr;
@@ -396,7 +466,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
396
466
  {
397
467
  try
398
468
  {
399
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintDeviceCapabilitiesChangedEventArgs", L"GetCurrentPrintDeviceResources", 0))
469
+ static std::optional<bool> is_overload_present{};
470
+
471
+ if (!is_overload_present.has_value())
472
+ {
473
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintDeviceCapabilitiesChangedEventArgs", L"GetCurrentPrintDeviceResources", 0);
474
+ }
475
+
476
+ if (!is_overload_present.value())
400
477
  {
401
478
  py::set_arg_count_version_error(0);
402
479
  return nullptr;
@@ -425,7 +502,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
425
502
  {
426
503
  try
427
504
  {
428
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintDeviceCapabilitiesChangedEventArgs", L"GetDeferral", 0))
505
+ static std::optional<bool> is_overload_present{};
506
+
507
+ if (!is_overload_present.has_value())
508
+ {
509
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintDeviceCapabilitiesChangedEventArgs", L"GetDeferral", 0);
510
+ }
511
+
512
+ if (!is_overload_present.value())
429
513
  {
430
514
  py::set_arg_count_version_error(0);
431
515
  return nullptr;
@@ -454,7 +538,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
454
538
  {
455
539
  try
456
540
  {
457
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintDeviceCapabilitiesChangedEventArgs", L"SetPrintDeviceCapabilitiesUpdatePolicy", 1))
541
+ static std::optional<bool> is_overload_present{};
542
+
543
+ if (!is_overload_present.has_value())
544
+ {
545
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintDeviceCapabilitiesChangedEventArgs", L"SetPrintDeviceCapabilitiesUpdatePolicy", 1);
546
+ }
547
+
548
+ if (!is_overload_present.value())
458
549
  {
459
550
  py::set_arg_count_version_error(1);
460
551
  return nullptr;
@@ -486,7 +577,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
486
577
  {
487
578
  try
488
579
  {
489
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintDeviceCapabilitiesChangedEventArgs", L"SetSupportedPdlPassthroughContentTypes", 1))
580
+ static std::optional<bool> is_overload_present{};
581
+
582
+ if (!is_overload_present.has_value())
583
+ {
584
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintDeviceCapabilitiesChangedEventArgs", L"SetSupportedPdlPassthroughContentTypes", 1);
585
+ }
586
+
587
+ if (!is_overload_present.value())
490
588
  {
491
589
  py::set_arg_count_version_error(1);
492
590
  return nullptr;
@@ -518,7 +616,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
518
616
  {
519
617
  try
520
618
  {
521
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintDeviceCapabilitiesChangedEventArgs", L"UpdatePrintDeviceCapabilities", 1))
619
+ static std::optional<bool> is_overload_present{};
620
+
621
+ if (!is_overload_present.has_value())
622
+ {
623
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintDeviceCapabilitiesChangedEventArgs", L"UpdatePrintDeviceCapabilities", 1);
624
+ }
625
+
626
+ if (!is_overload_present.value())
522
627
  {
523
628
  py::set_arg_count_version_error(1);
524
629
  return nullptr;
@@ -550,7 +655,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
550
655
  {
551
656
  try
552
657
  {
553
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintDeviceCapabilitiesChangedEventArgs", L"UpdatePrintDeviceResources", 1))
658
+ static std::optional<bool> is_overload_present{};
659
+
660
+ if (!is_overload_present.has_value())
661
+ {
662
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintDeviceCapabilitiesChangedEventArgs", L"UpdatePrintDeviceResources", 1);
663
+ }
664
+
665
+ if (!is_overload_present.value())
554
666
  {
555
667
  py::set_arg_count_version_error(1);
556
668
  return nullptr;
@@ -578,7 +690,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
578
690
  {
579
691
  try
580
692
  {
581
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintDeviceCapabilitiesChangedEventArgs", L"ResourceLanguage"))
693
+ static std::optional<bool> is_property_present{};
694
+
695
+ if (!is_property_present.has_value())
696
+ {
697
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintDeviceCapabilitiesChangedEventArgs", L"ResourceLanguage");
698
+ }
699
+
700
+ if (!is_property_present.value())
582
701
  {
583
702
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
584
703
  return nullptr;
@@ -675,7 +794,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
675
794
  {
676
795
  try
677
796
  {
678
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintDeviceCapabilitiesUpdatePolicy", L"CreatePeriodicRefresh", 1))
797
+ static std::optional<bool> is_overload_present{};
798
+
799
+ if (!is_overload_present.has_value())
800
+ {
801
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintDeviceCapabilitiesUpdatePolicy", L"CreatePeriodicRefresh", 1);
802
+ }
803
+
804
+ if (!is_overload_present.value())
679
805
  {
680
806
  py::set_arg_count_version_error(1);
681
807
  return nullptr;
@@ -706,7 +832,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
706
832
  {
707
833
  try
708
834
  {
709
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintDeviceCapabilitiesUpdatePolicy", L"CreatePrintJobRefresh", 1))
835
+ static std::optional<bool> is_overload_present{};
836
+
837
+ if (!is_overload_present.has_value())
838
+ {
839
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintDeviceCapabilitiesUpdatePolicy", L"CreatePrintJobRefresh", 1);
840
+ }
841
+
842
+ if (!is_overload_present.value())
710
843
  {
711
844
  py::set_arg_count_version_error(1);
712
845
  return nullptr;
@@ -820,7 +953,7 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
820
953
  {
821
954
  try
822
955
  {
823
- winrt::Windows::Graphics::Printing::PrintSupport::PrintSupportPrintTicketElement instance{ };
956
+ winrt::Windows::Graphics::Printing::PrintSupport::PrintSupportPrintTicketElement instance{};
824
957
  return py::wrap(instance, type);
825
958
  }
826
959
  catch (...)
@@ -848,7 +981,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
848
981
  {
849
982
  try
850
983
  {
851
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintTicketElement", L"NamespaceUri"))
984
+ static std::optional<bool> is_property_present{};
985
+
986
+ if (!is_property_present.has_value())
987
+ {
988
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintTicketElement", L"NamespaceUri");
989
+ }
990
+
991
+ if (!is_property_present.value())
852
992
  {
853
993
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
854
994
  return nullptr;
@@ -873,7 +1013,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
873
1013
 
874
1014
  try
875
1015
  {
876
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintTicketElement", L"NamespaceUri"))
1016
+ static std::optional<bool> is_property_present{};
1017
+
1018
+ if (!is_property_present.has_value())
1019
+ {
1020
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintTicketElement", L"NamespaceUri");
1021
+ }
1022
+
1023
+ if (!is_property_present.value())
877
1024
  {
878
1025
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
879
1026
  return -1;
@@ -895,7 +1042,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
895
1042
  {
896
1043
  try
897
1044
  {
898
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintTicketElement", L"LocalName"))
1045
+ static std::optional<bool> is_property_present{};
1046
+
1047
+ if (!is_property_present.has_value())
1048
+ {
1049
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintTicketElement", L"LocalName");
1050
+ }
1051
+
1052
+ if (!is_property_present.value())
899
1053
  {
900
1054
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
901
1055
  return nullptr;
@@ -920,7 +1074,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
920
1074
 
921
1075
  try
922
1076
  {
923
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintTicketElement", L"LocalName"))
1077
+ static std::optional<bool> is_property_present{};
1078
+
1079
+ if (!is_property_present.has_value())
1080
+ {
1081
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintTicketElement", L"LocalName");
1082
+ }
1083
+
1084
+ if (!is_property_present.value())
924
1085
  {
925
1086
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
926
1087
  return -1;
@@ -1014,7 +1175,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
1014
1175
  {
1015
1176
  try
1016
1177
  {
1017
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintTicketValidationRequestedEventArgs", L"GetDeferral", 0))
1178
+ static std::optional<bool> is_overload_present{};
1179
+
1180
+ if (!is_overload_present.has_value())
1181
+ {
1182
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintTicketValidationRequestedEventArgs", L"GetDeferral", 0);
1183
+ }
1184
+
1185
+ if (!is_overload_present.value())
1018
1186
  {
1019
1187
  py::set_arg_count_version_error(0);
1020
1188
  return nullptr;
@@ -1043,7 +1211,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
1043
1211
  {
1044
1212
  try
1045
1213
  {
1046
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintTicketValidationRequestedEventArgs", L"SetPrintTicketValidationStatus", 1))
1214
+ static std::optional<bool> is_overload_present{};
1215
+
1216
+ if (!is_overload_present.has_value())
1217
+ {
1218
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintTicketValidationRequestedEventArgs", L"SetPrintTicketValidationStatus", 1);
1219
+ }
1220
+
1221
+ if (!is_overload_present.value())
1047
1222
  {
1048
1223
  py::set_arg_count_version_error(1);
1049
1224
  return nullptr;
@@ -1071,7 +1246,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
1071
1246
  {
1072
1247
  try
1073
1248
  {
1074
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintTicketValidationRequestedEventArgs", L"PrintTicket"))
1249
+ static std::optional<bool> is_property_present{};
1250
+
1251
+ if (!is_property_present.has_value())
1252
+ {
1253
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrintTicketValidationRequestedEventArgs", L"PrintTicket");
1254
+ }
1255
+
1256
+ if (!is_property_present.value())
1075
1257
  {
1076
1258
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1077
1259
  return nullptr;
@@ -1163,7 +1345,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
1163
1345
  {
1164
1346
  try
1165
1347
  {
1166
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrinterSelectedEventArgs", L"GetDeferral", 0))
1348
+ static std::optional<bool> is_overload_present{};
1349
+
1350
+ if (!is_overload_present.has_value())
1351
+ {
1352
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrinterSelectedEventArgs", L"GetDeferral", 0);
1353
+ }
1354
+
1355
+ if (!is_overload_present.value())
1167
1356
  {
1168
1357
  py::set_arg_count_version_error(0);
1169
1358
  return nullptr;
@@ -1192,7 +1381,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
1192
1381
  {
1193
1382
  try
1194
1383
  {
1195
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrinterSelectedEventArgs", L"SetAdaptiveCard", 1))
1384
+ static std::optional<bool> is_overload_present{};
1385
+
1386
+ if (!is_overload_present.has_value())
1387
+ {
1388
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrinterSelectedEventArgs", L"SetAdaptiveCard", 1);
1389
+ }
1390
+
1391
+ if (!is_overload_present.value())
1196
1392
  {
1197
1393
  py::set_arg_count_version_error(1);
1198
1394
  return nullptr;
@@ -1224,7 +1420,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
1224
1420
  {
1225
1421
  try
1226
1422
  {
1227
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrinterSelectedEventArgs", L"SetAdditionalFeatures", 1))
1423
+ static std::optional<bool> is_overload_present{};
1424
+
1425
+ if (!is_overload_present.has_value())
1426
+ {
1427
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrinterSelectedEventArgs", L"SetAdditionalFeatures", 1);
1428
+ }
1429
+
1430
+ if (!is_overload_present.value())
1228
1431
  {
1229
1432
  py::set_arg_count_version_error(1);
1230
1433
  return nullptr;
@@ -1256,7 +1459,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
1256
1459
  {
1257
1460
  try
1258
1461
  {
1259
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrinterSelectedEventArgs", L"SetAdditionalParameters", 1))
1462
+ static std::optional<bool> is_overload_present{};
1463
+
1464
+ if (!is_overload_present.has_value())
1465
+ {
1466
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrinterSelectedEventArgs", L"SetAdditionalParameters", 1);
1467
+ }
1468
+
1469
+ if (!is_overload_present.value())
1260
1470
  {
1261
1471
  py::set_arg_count_version_error(1);
1262
1472
  return nullptr;
@@ -1284,7 +1494,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
1284
1494
  {
1285
1495
  try
1286
1496
  {
1287
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrinterSelectedEventArgs", L"PrintTicket"))
1497
+ static std::optional<bool> is_property_present{};
1498
+
1499
+ if (!is_property_present.has_value())
1500
+ {
1501
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrinterSelectedEventArgs", L"PrintTicket");
1502
+ }
1503
+
1504
+ if (!is_property_present.value())
1288
1505
  {
1289
1506
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1290
1507
  return nullptr;
@@ -1309,7 +1526,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
1309
1526
 
1310
1527
  try
1311
1528
  {
1312
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrinterSelectedEventArgs", L"PrintTicket"))
1529
+ static std::optional<bool> is_property_present{};
1530
+
1531
+ if (!is_property_present.has_value())
1532
+ {
1533
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrinterSelectedEventArgs", L"PrintTicket");
1534
+ }
1535
+
1536
+ if (!is_property_present.value())
1313
1537
  {
1314
1538
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1315
1539
  return -1;
@@ -1331,7 +1555,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
1331
1555
  {
1332
1556
  try
1333
1557
  {
1334
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrinterSelectedEventArgs", L"AllowedAdditionalFeaturesAndParametersCount"))
1558
+ static std::optional<bool> is_property_present{};
1559
+
1560
+ if (!is_property_present.has_value())
1561
+ {
1562
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrinterSelectedEventArgs", L"AllowedAdditionalFeaturesAndParametersCount");
1563
+ }
1564
+
1565
+ if (!is_property_present.value())
1335
1566
  {
1336
1567
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1337
1568
  return nullptr;
@@ -1350,7 +1581,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
1350
1581
  {
1351
1582
  try
1352
1583
  {
1353
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrinterSelectedEventArgs", L"SourceAppInfo"))
1584
+ static std::optional<bool> is_property_present{};
1585
+
1586
+ if (!is_property_present.has_value())
1587
+ {
1588
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportPrinterSelectedEventArgs", L"SourceAppInfo");
1589
+ }
1590
+
1591
+ if (!is_property_present.value())
1354
1592
  {
1355
1593
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1356
1594
  return nullptr;
@@ -1442,7 +1680,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
1442
1680
  {
1443
1681
  try
1444
1682
  {
1445
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSessionInfo", L"Printer"))
1683
+ static std::optional<bool> is_property_present{};
1684
+
1685
+ if (!is_property_present.has_value())
1686
+ {
1687
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSessionInfo", L"Printer");
1688
+ }
1689
+
1690
+ if (!is_property_present.value())
1446
1691
  {
1447
1692
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1448
1693
  return nullptr;
@@ -1461,7 +1706,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
1461
1706
  {
1462
1707
  try
1463
1708
  {
1464
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSessionInfo", L"SourceAppInfo"))
1709
+ static std::optional<bool> is_property_present{};
1710
+
1711
+ if (!is_property_present.has_value())
1712
+ {
1713
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSessionInfo", L"SourceAppInfo");
1714
+ }
1715
+
1716
+ if (!is_property_present.value())
1465
1717
  {
1466
1718
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1467
1719
  return nullptr;
@@ -1552,7 +1804,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
1552
1804
  {
1553
1805
  try
1554
1806
  {
1555
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSettingsActivatedEventArgs", L"GetDeferral", 0))
1807
+ static std::optional<bool> is_overload_present{};
1808
+
1809
+ if (!is_overload_present.has_value())
1810
+ {
1811
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSettingsActivatedEventArgs", L"GetDeferral", 0);
1812
+ }
1813
+
1814
+ if (!is_overload_present.value())
1556
1815
  {
1557
1816
  py::set_arg_count_version_error(0);
1558
1817
  return nullptr;
@@ -1577,7 +1836,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
1577
1836
  {
1578
1837
  try
1579
1838
  {
1580
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSettingsActivatedEventArgs", L"Kind"))
1839
+ static std::optional<bool> is_property_present{};
1840
+
1841
+ if (!is_property_present.has_value())
1842
+ {
1843
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSettingsActivatedEventArgs", L"Kind");
1844
+ }
1845
+
1846
+ if (!is_property_present.value())
1581
1847
  {
1582
1848
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1583
1849
  return nullptr;
@@ -1596,7 +1862,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
1596
1862
  {
1597
1863
  try
1598
1864
  {
1599
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSettingsActivatedEventArgs", L"PreviousExecutionState"))
1865
+ static std::optional<bool> is_property_present{};
1866
+
1867
+ if (!is_property_present.has_value())
1868
+ {
1869
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSettingsActivatedEventArgs", L"PreviousExecutionState");
1870
+ }
1871
+
1872
+ if (!is_property_present.value())
1600
1873
  {
1601
1874
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1602
1875
  return nullptr;
@@ -1615,7 +1888,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
1615
1888
  {
1616
1889
  try
1617
1890
  {
1618
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSettingsActivatedEventArgs", L"SplashScreen"))
1891
+ static std::optional<bool> is_property_present{};
1892
+
1893
+ if (!is_property_present.has_value())
1894
+ {
1895
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSettingsActivatedEventArgs", L"SplashScreen");
1896
+ }
1897
+
1898
+ if (!is_property_present.value())
1619
1899
  {
1620
1900
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1621
1901
  return nullptr;
@@ -1634,7 +1914,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
1634
1914
  {
1635
1915
  try
1636
1916
  {
1637
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSettingsActivatedEventArgs", L"User"))
1917
+ static std::optional<bool> is_property_present{};
1918
+
1919
+ if (!is_property_present.has_value())
1920
+ {
1921
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSettingsActivatedEventArgs", L"User");
1922
+ }
1923
+
1924
+ if (!is_property_present.value())
1638
1925
  {
1639
1926
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1640
1927
  return nullptr;
@@ -1653,7 +1940,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
1653
1940
  {
1654
1941
  try
1655
1942
  {
1656
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSettingsActivatedEventArgs", L"Session"))
1943
+ static std::optional<bool> is_property_present{};
1944
+
1945
+ if (!is_property_present.has_value())
1946
+ {
1947
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSettingsActivatedEventArgs", L"Session");
1948
+ }
1949
+
1950
+ if (!is_property_present.value())
1657
1951
  {
1658
1952
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1659
1953
  return nullptr;
@@ -1748,7 +2042,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
1748
2042
  {
1749
2043
  try
1750
2044
  {
1751
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSettingsUISession", L"UpdatePrintTicket", 1))
2045
+ static std::optional<bool> is_overload_present{};
2046
+
2047
+ if (!is_overload_present.has_value())
2048
+ {
2049
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSettingsUISession", L"UpdatePrintTicket", 1);
2050
+ }
2051
+
2052
+ if (!is_overload_present.value())
1752
2053
  {
1753
2054
  py::set_arg_count_version_error(1);
1754
2055
  return nullptr;
@@ -1776,7 +2077,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
1776
2077
  {
1777
2078
  try
1778
2079
  {
1779
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSettingsUISession", L"DocumentTitle"))
2080
+ static std::optional<bool> is_property_present{};
2081
+
2082
+ if (!is_property_present.has_value())
2083
+ {
2084
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSettingsUISession", L"DocumentTitle");
2085
+ }
2086
+
2087
+ if (!is_property_present.value())
1780
2088
  {
1781
2089
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1782
2090
  return nullptr;
@@ -1795,7 +2103,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
1795
2103
  {
1796
2104
  try
1797
2105
  {
1798
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSettingsUISession", L"LaunchKind"))
2106
+ static std::optional<bool> is_property_present{};
2107
+
2108
+ if (!is_property_present.has_value())
2109
+ {
2110
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSettingsUISession", L"LaunchKind");
2111
+ }
2112
+
2113
+ if (!is_property_present.value())
1799
2114
  {
1800
2115
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1801
2116
  return nullptr;
@@ -1814,7 +2129,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
1814
2129
  {
1815
2130
  try
1816
2131
  {
1817
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSettingsUISession", L"SessionInfo"))
2132
+ static std::optional<bool> is_property_present{};
2133
+
2134
+ if (!is_property_present.has_value())
2135
+ {
2136
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSettingsUISession", L"SessionInfo");
2137
+ }
2138
+
2139
+ if (!is_property_present.value())
1818
2140
  {
1819
2141
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1820
2142
  return nullptr;
@@ -1833,7 +2155,14 @@ namespace py::cpp::Windows::Graphics::Printing::PrintSupport
1833
2155
  {
1834
2156
  try
1835
2157
  {
1836
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSettingsUISession", L"SessionPrintTicket"))
2158
+ static std::optional<bool> is_property_present{};
2159
+
2160
+ if (!is_property_present.has_value())
2161
+ {
2162
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Printing.PrintSupport.PrintSupportSettingsUISession", L"SessionPrintTicket");
2163
+ }
2164
+
2165
+ if (!is_property_present.value())
1837
2166
  {
1838
2167
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1839
2168
  return nullptr;
@@ -1947,17 +2276,20 @@ PyMODINIT_FUNC PyInit__winrt_windows_graphics_printing_printsupport(void) noexce
1947
2276
  return nullptr;
1948
2277
  }
1949
2278
 
1950
- if (py::register_python_type(module.get(), &type_spec_PrintSupportExtensionSession, object_bases.get(), nullptr) == -1)
2279
+ py::pytype_handle PrintSupportExtensionSession_type{py::register_python_type(module.get(), &type_spec_PrintSupportExtensionSession, object_bases.get(), nullptr)};
2280
+ if (!PrintSupportExtensionSession_type)
1951
2281
  {
1952
2282
  return nullptr;
1953
2283
  }
1954
2284
 
1955
- if (py::register_python_type(module.get(), &type_spec_PrintSupportExtensionTriggerDetails, object_bases.get(), nullptr) == -1)
2285
+ py::pytype_handle PrintSupportExtensionTriggerDetails_type{py::register_python_type(module.get(), &type_spec_PrintSupportExtensionTriggerDetails, object_bases.get(), nullptr)};
2286
+ if (!PrintSupportExtensionTriggerDetails_type)
1956
2287
  {
1957
2288
  return nullptr;
1958
2289
  }
1959
2290
 
1960
- if (py::register_python_type(module.get(), &type_spec_PrintSupportPrintDeviceCapabilitiesChangedEventArgs, object_bases.get(), nullptr) == -1)
2291
+ py::pytype_handle PrintSupportPrintDeviceCapabilitiesChangedEventArgs_type{py::register_python_type(module.get(), &type_spec_PrintSupportPrintDeviceCapabilitiesChangedEventArgs, object_bases.get(), nullptr)};
2292
+ if (!PrintSupportPrintDeviceCapabilitiesChangedEventArgs_type)
1961
2293
  {
1962
2294
  return nullptr;
1963
2295
  }
@@ -1968,37 +2300,44 @@ PyMODINIT_FUNC PyInit__winrt_windows_graphics_printing_printsupport(void) noexce
1968
2300
  return nullptr;
1969
2301
  }
1970
2302
 
1971
- if (py::register_python_type(module.get(), &type_spec_PrintSupportPrintDeviceCapabilitiesUpdatePolicy, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_PrintSupportPrintDeviceCapabilitiesUpdatePolicy_Static.get())) == -1)
2303
+ py::pytype_handle PrintSupportPrintDeviceCapabilitiesUpdatePolicy_type{py::register_python_type(module.get(), &type_spec_PrintSupportPrintDeviceCapabilitiesUpdatePolicy, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_PrintSupportPrintDeviceCapabilitiesUpdatePolicy_Static.get()))};
2304
+ if (!PrintSupportPrintDeviceCapabilitiesUpdatePolicy_type)
1972
2305
  {
1973
2306
  return nullptr;
1974
2307
  }
1975
2308
 
1976
- if (py::register_python_type(module.get(), &type_spec_PrintSupportPrintTicketElement, object_bases.get(), nullptr) == -1)
2309
+ py::pytype_handle PrintSupportPrintTicketElement_type{py::register_python_type(module.get(), &type_spec_PrintSupportPrintTicketElement, object_bases.get(), nullptr)};
2310
+ if (!PrintSupportPrintTicketElement_type)
1977
2311
  {
1978
2312
  return nullptr;
1979
2313
  }
1980
2314
 
1981
- if (py::register_python_type(module.get(), &type_spec_PrintSupportPrintTicketValidationRequestedEventArgs, object_bases.get(), nullptr) == -1)
2315
+ py::pytype_handle PrintSupportPrintTicketValidationRequestedEventArgs_type{py::register_python_type(module.get(), &type_spec_PrintSupportPrintTicketValidationRequestedEventArgs, object_bases.get(), nullptr)};
2316
+ if (!PrintSupportPrintTicketValidationRequestedEventArgs_type)
1982
2317
  {
1983
2318
  return nullptr;
1984
2319
  }
1985
2320
 
1986
- if (py::register_python_type(module.get(), &type_spec_PrintSupportPrinterSelectedEventArgs, object_bases.get(), nullptr) == -1)
2321
+ py::pytype_handle PrintSupportPrinterSelectedEventArgs_type{py::register_python_type(module.get(), &type_spec_PrintSupportPrinterSelectedEventArgs, object_bases.get(), nullptr)};
2322
+ if (!PrintSupportPrinterSelectedEventArgs_type)
1987
2323
  {
1988
2324
  return nullptr;
1989
2325
  }
1990
2326
 
1991
- if (py::register_python_type(module.get(), &type_spec_PrintSupportSessionInfo, object_bases.get(), nullptr) == -1)
2327
+ py::pytype_handle PrintSupportSessionInfo_type{py::register_python_type(module.get(), &type_spec_PrintSupportSessionInfo, object_bases.get(), nullptr)};
2328
+ if (!PrintSupportSessionInfo_type)
1992
2329
  {
1993
2330
  return nullptr;
1994
2331
  }
1995
2332
 
1996
- if (py::register_python_type(module.get(), &type_spec_PrintSupportSettingsActivatedEventArgs, object_bases.get(), nullptr) == -1)
2333
+ py::pytype_handle PrintSupportSettingsActivatedEventArgs_type{py::register_python_type(module.get(), &type_spec_PrintSupportSettingsActivatedEventArgs, object_bases.get(), nullptr)};
2334
+ if (!PrintSupportSettingsActivatedEventArgs_type)
1997
2335
  {
1998
2336
  return nullptr;
1999
2337
  }
2000
2338
 
2001
- if (py::register_python_type(module.get(), &type_spec_PrintSupportSettingsUISession, object_bases.get(), nullptr) == -1)
2339
+ py::pytype_handle PrintSupportSettingsUISession_type{py::register_python_type(module.get(), &type_spec_PrintSupportSettingsUISession, object_bases.get(), nullptr)};
2340
+ if (!PrintSupportSettingsUISession_type)
2002
2341
  {
2003
2342
  return nullptr;
2004
2343
  }
@@ -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.Graphics.Printing.PrintSupport
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,19 +10,19 @@ 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.ApplicationModel[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.ApplicationModel.Activation[all]==2.1.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Data.Xml.Dom[all]==2.1.0; extra == "all"
20
- Requires-Dist: winrt-Windows.Devices.Printers[all]==2.1.0; extra == "all"
21
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
22
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
23
- Requires-Dist: winrt-Windows.Graphics.Printing.PrintTicket[all]==2.1.0; extra == "all"
24
- Requires-Dist: winrt-Windows.System[all]==2.1.0; extra == "all"
25
- Requires-Dist: winrt-Windows.UI.Shell[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.ApplicationModel[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.ApplicationModel.Activation[all]==2.2.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Data.Xml.Dom[all]==2.2.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Devices.Printers[all]==2.2.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
22
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
23
+ Requires-Dist: winrt-Windows.Graphics.Printing.PrintTicket[all]==2.2.0; extra == "all"
24
+ Requires-Dist: winrt-Windows.System[all]==2.2.0; extra == "all"
25
+ Requires-Dist: winrt-Windows.UI.Shell[all]==2.2.0; extra == "all"
26
26
 
27
27
  <!-- warning: Please don't edit this file. It was automatically generated. -->
28
28
 
@@ -0,0 +1,12 @@
1
+ winrt-runtime==2.2.0
2
+
3
+ [all]
4
+ winrt-Windows.ApplicationModel[all]==2.2.0
5
+ winrt-Windows.ApplicationModel.Activation[all]==2.2.0
6
+ winrt-Windows.Data.Xml.Dom[all]==2.2.0
7
+ winrt-Windows.Devices.Printers[all]==2.2.0
8
+ winrt-Windows.Foundation[all]==2.2.0
9
+ winrt-Windows.Foundation.Collections[all]==2.2.0
10
+ winrt-Windows.Graphics.Printing.PrintTicket[all]==2.2.0
11
+ winrt-Windows.System[all]==2.2.0
12
+ winrt-Windows.UI.Shell[all]==2.2.0
@@ -1,11 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
-
3
- winrt-Windows.ApplicationModel[all]==2.1.0
4
- winrt-Windows.ApplicationModel.Activation[all]==2.1.0
5
- winrt-Windows.Data.Xml.Dom[all]==2.1.0
6
- winrt-Windows.Devices.Printers[all]==2.1.0
7
- winrt-Windows.Foundation[all]==2.1.0
8
- winrt-Windows.Foundation.Collections[all]==2.1.0
9
- winrt-Windows.Graphics.Printing.PrintTicket[all]==2.1.0
10
- winrt-Windows.System[all]==2.1.0
11
- winrt-Windows.UI.Shell[all]==2.1.0
@@ -1,12 +0,0 @@
1
- winrt-runtime==2.1.0
2
-
3
- [all]
4
- winrt-Windows.ApplicationModel[all]==2.1.0
5
- winrt-Windows.ApplicationModel.Activation[all]==2.1.0
6
- winrt-Windows.Data.Xml.Dom[all]==2.1.0
7
- winrt-Windows.Devices.Printers[all]==2.1.0
8
- winrt-Windows.Foundation[all]==2.1.0
9
- winrt-Windows.Foundation.Collections[all]==2.1.0
10
- winrt-Windows.Graphics.Printing.PrintTicket[all]==2.1.0
11
- winrt-Windows.System[all]==2.1.0
12
- winrt-Windows.UI.Shell[all]==2.1.0