winrt-Windows.UI.ViewManagement.Core 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.
- {winrt_windows_ui_viewmanagement_core-2.1.0 → winrt_windows_ui_viewmanagement_core-2.2.0}/PKG-INFO +6 -6
- winrt_windows_ui_viewmanagement_core-2.2.0/all-requirements.txt +5 -0
- {winrt_windows_ui_viewmanagement_core-2.1.0 → winrt_windows_ui_viewmanagement_core-2.2.0}/py.Windows.UI.ViewManagement.Core.cpp +487 -70
- {winrt_windows_ui_viewmanagement_core-2.1.0 → winrt_windows_ui_viewmanagement_core-2.2.0}/pyproject.toml +3 -2
- winrt_windows_ui_viewmanagement_core-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_ui_viewmanagement_core-2.1.0 → winrt_windows_ui_viewmanagement_core-2.2.0}/requirements.txt +2 -2
- {winrt_windows_ui_viewmanagement_core-2.1.0 → winrt_windows_ui_viewmanagement_core-2.2.0}/winrt/_winrt_windows_ui_viewmanagement_core.pyi +1 -1
- {winrt_windows_ui_viewmanagement_core-2.1.0 → winrt_windows_ui_viewmanagement_core-2.2.0}/winrt/windows/ui/viewmanagement/core/__init__.py +1 -1
- {winrt_windows_ui_viewmanagement_core-2.1.0 → winrt_windows_ui_viewmanagement_core-2.2.0}/winrt_Windows.UI.ViewManagement.Core.egg-info/PKG-INFO +6 -6
- winrt_windows_ui_viewmanagement_core-2.2.0/winrt_Windows.UI.ViewManagement.Core.egg-info/requires.txt +6 -0
- winrt_windows_ui_viewmanagement_core-2.1.0/all-requirements.txt +0 -5
- winrt_windows_ui_viewmanagement_core-2.1.0/pywinrt-version.txt +0 -1
- winrt_windows_ui_viewmanagement_core-2.1.0/winrt_Windows.UI.ViewManagement.Core.egg-info/requires.txt +0 -6
- {winrt_windows_ui_viewmanagement_core-2.1.0 → winrt_windows_ui_viewmanagement_core-2.2.0}/README.md +0 -0
- {winrt_windows_ui_viewmanagement_core-2.1.0 → winrt_windows_ui_viewmanagement_core-2.2.0}/setup.cfg +0 -0
- {winrt_windows_ui_viewmanagement_core-2.1.0 → winrt_windows_ui_viewmanagement_core-2.2.0}/setup.py +0 -0
- {winrt_windows_ui_viewmanagement_core-2.1.0 → winrt_windows_ui_viewmanagement_core-2.2.0}/winrt/windows/ui/viewmanagement/core/py.typed +0 -0
- {winrt_windows_ui_viewmanagement_core-2.1.0 → winrt_windows_ui_viewmanagement_core-2.2.0}/winrt_Windows.UI.ViewManagement.Core.egg-info/SOURCES.txt +0 -0
- {winrt_windows_ui_viewmanagement_core-2.1.0 → winrt_windows_ui_viewmanagement_core-2.2.0}/winrt_Windows.UI.ViewManagement.Core.egg-info/dependency_links.txt +0 -0
- {winrt_windows_ui_viewmanagement_core-2.1.0 → winrt_windows_ui_viewmanagement_core-2.2.0}/winrt_Windows.UI.ViewManagement.Core.egg-info/top_level.txt +0 -0
{winrt_windows_ui_viewmanagement_core-2.1.0 → winrt_windows_ui_viewmanagement_core-2.2.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.UI.ViewManagement.Core
|
|
3
|
-
Version: 2.
|
|
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,13 +10,13 @@ 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
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.UI[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.UI[all]==2.2.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
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.ViewManagement.Core.h"
|
|
4
4
|
|
|
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
29
29
|
{
|
|
30
30
|
try
|
|
31
31
|
{
|
|
32
|
-
|
|
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.ViewManagement.Core.CoreFrameworkInputView", L"GetForCurrentView", 0);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (!is_overload_present.value())
|
|
33
40
|
{
|
|
34
41
|
py::set_arg_count_version_error(0);
|
|
35
42
|
return nullptr;
|
|
@@ -58,7 +65,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
58
65
|
{
|
|
59
66
|
try
|
|
60
67
|
{
|
|
61
|
-
|
|
68
|
+
static std::optional<bool> is_overload_present{};
|
|
69
|
+
|
|
70
|
+
if (!is_overload_present.has_value())
|
|
71
|
+
{
|
|
72
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.Core.CoreFrameworkInputView", L"GetForUIContext", 1);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (!is_overload_present.value())
|
|
62
76
|
{
|
|
63
77
|
py::set_arg_count_version_error(1);
|
|
64
78
|
return nullptr;
|
|
@@ -85,7 +99,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
85
99
|
{
|
|
86
100
|
try
|
|
87
101
|
{
|
|
88
|
-
|
|
102
|
+
static std::optional<bool> is_event_present{};
|
|
103
|
+
|
|
104
|
+
if (!is_event_present.has_value())
|
|
105
|
+
{
|
|
106
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ViewManagement.Core.CoreFrameworkInputView", L"OcclusionsChanged");
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (!is_event_present.value())
|
|
89
110
|
{
|
|
90
111
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
91
112
|
return nullptr;
|
|
@@ -106,7 +127,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
106
127
|
{
|
|
107
128
|
try
|
|
108
129
|
{
|
|
109
|
-
|
|
130
|
+
static std::optional<bool> is_event_present{};
|
|
131
|
+
|
|
132
|
+
if (!is_event_present.has_value())
|
|
133
|
+
{
|
|
134
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ViewManagement.Core.CoreFrameworkInputView", L"OcclusionsChanged");
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
if (!is_event_present.value())
|
|
110
138
|
{
|
|
111
139
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
112
140
|
return nullptr;
|
|
@@ -128,7 +156,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
128
156
|
{
|
|
129
157
|
try
|
|
130
158
|
{
|
|
131
|
-
|
|
159
|
+
static std::optional<bool> is_event_present{};
|
|
160
|
+
|
|
161
|
+
if (!is_event_present.has_value())
|
|
162
|
+
{
|
|
163
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ViewManagement.Core.CoreFrameworkInputView", L"PrimaryViewAnimationStarting");
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
if (!is_event_present.value())
|
|
132
167
|
{
|
|
133
168
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
134
169
|
return nullptr;
|
|
@@ -149,7 +184,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
149
184
|
{
|
|
150
185
|
try
|
|
151
186
|
{
|
|
152
|
-
|
|
187
|
+
static std::optional<bool> is_event_present{};
|
|
188
|
+
|
|
189
|
+
if (!is_event_present.has_value())
|
|
190
|
+
{
|
|
191
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ViewManagement.Core.CoreFrameworkInputView", L"PrimaryViewAnimationStarting");
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
if (!is_event_present.value())
|
|
153
195
|
{
|
|
154
196
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
155
197
|
return nullptr;
|
|
@@ -268,7 +310,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
268
310
|
{
|
|
269
311
|
try
|
|
270
312
|
{
|
|
271
|
-
|
|
313
|
+
static std::optional<bool> is_property_present{};
|
|
314
|
+
|
|
315
|
+
if (!is_property_present.has_value())
|
|
316
|
+
{
|
|
317
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.Core.CoreFrameworkInputViewAnimationStartingEventArgs", L"AnimationDuration");
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
if (!is_property_present.value())
|
|
272
321
|
{
|
|
273
322
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
274
323
|
return nullptr;
|
|
@@ -287,7 +336,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
287
336
|
{
|
|
288
337
|
try
|
|
289
338
|
{
|
|
290
|
-
|
|
339
|
+
static std::optional<bool> is_property_present{};
|
|
340
|
+
|
|
341
|
+
if (!is_property_present.has_value())
|
|
342
|
+
{
|
|
343
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.Core.CoreFrameworkInputViewAnimationStartingEventArgs", L"FrameworkAnimationRecommended");
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
if (!is_property_present.value())
|
|
291
347
|
{
|
|
292
348
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
293
349
|
return nullptr;
|
|
@@ -306,7 +362,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
306
362
|
{
|
|
307
363
|
try
|
|
308
364
|
{
|
|
309
|
-
|
|
365
|
+
static std::optional<bool> is_property_present{};
|
|
366
|
+
|
|
367
|
+
if (!is_property_present.has_value())
|
|
368
|
+
{
|
|
369
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.Core.CoreFrameworkInputViewAnimationStartingEventArgs", L"Occlusions");
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
if (!is_property_present.value())
|
|
310
373
|
{
|
|
311
374
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
312
375
|
return nullptr;
|
|
@@ -394,7 +457,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
394
457
|
{
|
|
395
458
|
try
|
|
396
459
|
{
|
|
397
|
-
|
|
460
|
+
static std::optional<bool> is_property_present{};
|
|
461
|
+
|
|
462
|
+
if (!is_property_present.has_value())
|
|
463
|
+
{
|
|
464
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.Core.CoreFrameworkInputViewOcclusionsChangedEventArgs", L"Handled");
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
if (!is_property_present.value())
|
|
398
468
|
{
|
|
399
469
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
400
470
|
return nullptr;
|
|
@@ -413,7 +483,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
413
483
|
{
|
|
414
484
|
try
|
|
415
485
|
{
|
|
416
|
-
|
|
486
|
+
static std::optional<bool> is_property_present{};
|
|
487
|
+
|
|
488
|
+
if (!is_property_present.has_value())
|
|
489
|
+
{
|
|
490
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.Core.CoreFrameworkInputViewOcclusionsChangedEventArgs", L"Occlusions");
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
if (!is_property_present.value())
|
|
417
494
|
{
|
|
418
495
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
419
496
|
return nullptr;
|
|
@@ -504,7 +581,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
504
581
|
{
|
|
505
582
|
try
|
|
506
583
|
{
|
|
507
|
-
|
|
584
|
+
static std::optional<bool> is_overload_present{};
|
|
585
|
+
|
|
586
|
+
if (!is_overload_present.has_value())
|
|
587
|
+
{
|
|
588
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.Core.CoreInputView", L"GetCoreInputViewOcclusions", 0);
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
if (!is_overload_present.value())
|
|
508
592
|
{
|
|
509
593
|
py::set_arg_count_version_error(0);
|
|
510
594
|
return nullptr;
|
|
@@ -533,7 +617,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
533
617
|
{
|
|
534
618
|
try
|
|
535
619
|
{
|
|
536
|
-
|
|
620
|
+
static std::optional<bool> is_overload_present{};
|
|
621
|
+
|
|
622
|
+
if (!is_overload_present.has_value())
|
|
623
|
+
{
|
|
624
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.Core.CoreInputView", L"GetForCurrentView", 0);
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
if (!is_overload_present.value())
|
|
537
628
|
{
|
|
538
629
|
py::set_arg_count_version_error(0);
|
|
539
630
|
return nullptr;
|
|
@@ -562,7 +653,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
562
653
|
{
|
|
563
654
|
try
|
|
564
655
|
{
|
|
565
|
-
|
|
656
|
+
static std::optional<bool> is_overload_present{};
|
|
657
|
+
|
|
658
|
+
if (!is_overload_present.has_value())
|
|
659
|
+
{
|
|
660
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.Core.CoreInputView", L"GetForUIContext", 1);
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
if (!is_overload_present.value())
|
|
566
664
|
{
|
|
567
665
|
py::set_arg_count_version_error(1);
|
|
568
666
|
return nullptr;
|
|
@@ -593,7 +691,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
593
691
|
{
|
|
594
692
|
try
|
|
595
693
|
{
|
|
596
|
-
|
|
694
|
+
static std::optional<bool> is_overload_present{};
|
|
695
|
+
|
|
696
|
+
if (!is_overload_present.has_value())
|
|
697
|
+
{
|
|
698
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.Core.CoreInputView", L"IsKindSupported", 1);
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
if (!is_overload_present.value())
|
|
597
702
|
{
|
|
598
703
|
py::set_arg_count_version_error(1);
|
|
599
704
|
return nullptr;
|
|
@@ -624,7 +729,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
624
729
|
{
|
|
625
730
|
try
|
|
626
731
|
{
|
|
627
|
-
|
|
732
|
+
static std::optional<bool> is_overload_present{};
|
|
733
|
+
|
|
734
|
+
if (!is_overload_present.has_value())
|
|
735
|
+
{
|
|
736
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.Core.CoreInputView", L"TryHide", 0);
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
if (!is_overload_present.value())
|
|
628
740
|
{
|
|
629
741
|
py::set_arg_count_version_error(0);
|
|
630
742
|
return nullptr;
|
|
@@ -653,7 +765,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
653
765
|
{
|
|
654
766
|
try
|
|
655
767
|
{
|
|
656
|
-
|
|
768
|
+
static std::optional<bool> is_overload_present{};
|
|
769
|
+
|
|
770
|
+
if (!is_overload_present.has_value())
|
|
771
|
+
{
|
|
772
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.Core.CoreInputView", L"TryHidePrimaryView", 0);
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
if (!is_overload_present.value())
|
|
657
776
|
{
|
|
658
777
|
py::set_arg_count_version_error(0);
|
|
659
778
|
return nullptr;
|
|
@@ -682,7 +801,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
682
801
|
{
|
|
683
802
|
try
|
|
684
803
|
{
|
|
685
|
-
|
|
804
|
+
static std::optional<bool> is_overload_present{};
|
|
805
|
+
|
|
806
|
+
if (!is_overload_present.has_value())
|
|
807
|
+
{
|
|
808
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.Core.CoreInputView", L"TryShow", 0);
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
if (!is_overload_present.value())
|
|
686
812
|
{
|
|
687
813
|
py::set_arg_count_version_error(0);
|
|
688
814
|
return nullptr;
|
|
@@ -700,7 +826,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
700
826
|
{
|
|
701
827
|
try
|
|
702
828
|
{
|
|
703
|
-
|
|
829
|
+
static std::optional<bool> is_overload_present{};
|
|
830
|
+
|
|
831
|
+
if (!is_overload_present.has_value())
|
|
832
|
+
{
|
|
833
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.Core.CoreInputView", L"TryShow", 1);
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
if (!is_overload_present.value())
|
|
704
837
|
{
|
|
705
838
|
py::set_arg_count_version_error(1);
|
|
706
839
|
return nullptr;
|
|
@@ -731,7 +864,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
731
864
|
{
|
|
732
865
|
try
|
|
733
866
|
{
|
|
734
|
-
|
|
867
|
+
static std::optional<bool> is_overload_present{};
|
|
868
|
+
|
|
869
|
+
if (!is_overload_present.has_value())
|
|
870
|
+
{
|
|
871
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.Core.CoreInputView", L"TryShowPrimaryView", 0);
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
if (!is_overload_present.value())
|
|
735
875
|
{
|
|
736
876
|
py::set_arg_count_version_error(0);
|
|
737
877
|
return nullptr;
|
|
@@ -760,7 +900,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
760
900
|
{
|
|
761
901
|
try
|
|
762
902
|
{
|
|
763
|
-
|
|
903
|
+
static std::optional<bool> is_overload_present{};
|
|
904
|
+
|
|
905
|
+
if (!is_overload_present.has_value())
|
|
906
|
+
{
|
|
907
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.Core.CoreInputView", L"TryTransferXYFocusToPrimaryView", 2);
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
if (!is_overload_present.value())
|
|
764
911
|
{
|
|
765
912
|
py::set_arg_count_version_error(2);
|
|
766
913
|
return nullptr;
|
|
@@ -788,7 +935,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
788
935
|
{
|
|
789
936
|
try
|
|
790
937
|
{
|
|
791
|
-
|
|
938
|
+
static std::optional<bool> is_event_present{};
|
|
939
|
+
|
|
940
|
+
if (!is_event_present.has_value())
|
|
941
|
+
{
|
|
942
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ViewManagement.Core.CoreInputView", L"OcclusionsChanged");
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
if (!is_event_present.value())
|
|
792
946
|
{
|
|
793
947
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
794
948
|
return nullptr;
|
|
@@ -809,7 +963,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
809
963
|
{
|
|
810
964
|
try
|
|
811
965
|
{
|
|
812
|
-
|
|
966
|
+
static std::optional<bool> is_event_present{};
|
|
967
|
+
|
|
968
|
+
if (!is_event_present.has_value())
|
|
969
|
+
{
|
|
970
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ViewManagement.Core.CoreInputView", L"OcclusionsChanged");
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
if (!is_event_present.value())
|
|
813
974
|
{
|
|
814
975
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
815
976
|
return nullptr;
|
|
@@ -831,7 +992,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
831
992
|
{
|
|
832
993
|
try
|
|
833
994
|
{
|
|
834
|
-
|
|
995
|
+
static std::optional<bool> is_event_present{};
|
|
996
|
+
|
|
997
|
+
if (!is_event_present.has_value())
|
|
998
|
+
{
|
|
999
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ViewManagement.Core.CoreInputView", L"XYFocusTransferredToPrimaryView");
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
if (!is_event_present.value())
|
|
835
1003
|
{
|
|
836
1004
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
837
1005
|
return nullptr;
|
|
@@ -852,7 +1020,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
852
1020
|
{
|
|
853
1021
|
try
|
|
854
1022
|
{
|
|
855
|
-
|
|
1023
|
+
static std::optional<bool> is_event_present{};
|
|
1024
|
+
|
|
1025
|
+
if (!is_event_present.has_value())
|
|
1026
|
+
{
|
|
1027
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ViewManagement.Core.CoreInputView", L"XYFocusTransferredToPrimaryView");
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
if (!is_event_present.value())
|
|
856
1031
|
{
|
|
857
1032
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
858
1033
|
return nullptr;
|
|
@@ -874,7 +1049,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
874
1049
|
{
|
|
875
1050
|
try
|
|
876
1051
|
{
|
|
877
|
-
|
|
1052
|
+
static std::optional<bool> is_event_present{};
|
|
1053
|
+
|
|
1054
|
+
if (!is_event_present.has_value())
|
|
1055
|
+
{
|
|
1056
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ViewManagement.Core.CoreInputView", L"XYFocusTransferringFromPrimaryView");
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
if (!is_event_present.value())
|
|
878
1060
|
{
|
|
879
1061
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
880
1062
|
return nullptr;
|
|
@@ -895,7 +1077,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
895
1077
|
{
|
|
896
1078
|
try
|
|
897
1079
|
{
|
|
898
|
-
|
|
1080
|
+
static std::optional<bool> is_event_present{};
|
|
1081
|
+
|
|
1082
|
+
if (!is_event_present.has_value())
|
|
1083
|
+
{
|
|
1084
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ViewManagement.Core.CoreInputView", L"XYFocusTransferringFromPrimaryView");
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
if (!is_event_present.value())
|
|
899
1088
|
{
|
|
900
1089
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
901
1090
|
return nullptr;
|
|
@@ -917,7 +1106,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
917
1106
|
{
|
|
918
1107
|
try
|
|
919
1108
|
{
|
|
920
|
-
|
|
1109
|
+
static std::optional<bool> is_event_present{};
|
|
1110
|
+
|
|
1111
|
+
if (!is_event_present.has_value())
|
|
1112
|
+
{
|
|
1113
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ViewManagement.Core.CoreInputView", L"PrimaryViewHiding");
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
if (!is_event_present.value())
|
|
921
1117
|
{
|
|
922
1118
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
923
1119
|
return nullptr;
|
|
@@ -938,7 +1134,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
938
1134
|
{
|
|
939
1135
|
try
|
|
940
1136
|
{
|
|
941
|
-
|
|
1137
|
+
static std::optional<bool> is_event_present{};
|
|
1138
|
+
|
|
1139
|
+
if (!is_event_present.has_value())
|
|
1140
|
+
{
|
|
1141
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ViewManagement.Core.CoreInputView", L"PrimaryViewHiding");
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
if (!is_event_present.value())
|
|
942
1145
|
{
|
|
943
1146
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
944
1147
|
return nullptr;
|
|
@@ -960,7 +1163,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
960
1163
|
{
|
|
961
1164
|
try
|
|
962
1165
|
{
|
|
963
|
-
|
|
1166
|
+
static std::optional<bool> is_event_present{};
|
|
1167
|
+
|
|
1168
|
+
if (!is_event_present.has_value())
|
|
1169
|
+
{
|
|
1170
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ViewManagement.Core.CoreInputView", L"PrimaryViewShowing");
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
if (!is_event_present.value())
|
|
964
1174
|
{
|
|
965
1175
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
966
1176
|
return nullptr;
|
|
@@ -981,7 +1191,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
981
1191
|
{
|
|
982
1192
|
try
|
|
983
1193
|
{
|
|
984
|
-
|
|
1194
|
+
static std::optional<bool> is_event_present{};
|
|
1195
|
+
|
|
1196
|
+
if (!is_event_present.has_value())
|
|
1197
|
+
{
|
|
1198
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ViewManagement.Core.CoreInputView", L"PrimaryViewShowing");
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
if (!is_event_present.value())
|
|
985
1202
|
{
|
|
986
1203
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
987
1204
|
return nullptr;
|
|
@@ -1003,7 +1220,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
1003
1220
|
{
|
|
1004
1221
|
try
|
|
1005
1222
|
{
|
|
1006
|
-
|
|
1223
|
+
static std::optional<bool> is_event_present{};
|
|
1224
|
+
|
|
1225
|
+
if (!is_event_present.has_value())
|
|
1226
|
+
{
|
|
1227
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ViewManagement.Core.CoreInputView", L"PrimaryViewAnimationStarting");
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
if (!is_event_present.value())
|
|
1007
1231
|
{
|
|
1008
1232
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1009
1233
|
return nullptr;
|
|
@@ -1024,7 +1248,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
1024
1248
|
{
|
|
1025
1249
|
try
|
|
1026
1250
|
{
|
|
1027
|
-
|
|
1251
|
+
static std::optional<bool> is_event_present{};
|
|
1252
|
+
|
|
1253
|
+
if (!is_event_present.has_value())
|
|
1254
|
+
{
|
|
1255
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ViewManagement.Core.CoreInputView", L"PrimaryViewAnimationStarting");
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
if (!is_event_present.value())
|
|
1028
1259
|
{
|
|
1029
1260
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1030
1261
|
return nullptr;
|
|
@@ -1046,7 +1277,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
1046
1277
|
{
|
|
1047
1278
|
try
|
|
1048
1279
|
{
|
|
1049
|
-
|
|
1280
|
+
static std::optional<bool> is_event_present{};
|
|
1281
|
+
|
|
1282
|
+
if (!is_event_present.has_value())
|
|
1283
|
+
{
|
|
1284
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ViewManagement.Core.CoreInputView", L"SupportedKindsChanged");
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
if (!is_event_present.value())
|
|
1050
1288
|
{
|
|
1051
1289
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1052
1290
|
return nullptr;
|
|
@@ -1067,7 +1305,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
1067
1305
|
{
|
|
1068
1306
|
try
|
|
1069
1307
|
{
|
|
1070
|
-
|
|
1308
|
+
static std::optional<bool> is_event_present{};
|
|
1309
|
+
|
|
1310
|
+
if (!is_event_present.has_value())
|
|
1311
|
+
{
|
|
1312
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ViewManagement.Core.CoreInputView", L"SupportedKindsChanged");
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
if (!is_event_present.value())
|
|
1071
1316
|
{
|
|
1072
1317
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1073
1318
|
return nullptr;
|
|
@@ -1203,7 +1448,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
1203
1448
|
{
|
|
1204
1449
|
try
|
|
1205
1450
|
{
|
|
1206
|
-
|
|
1451
|
+
static std::optional<bool> is_property_present{};
|
|
1452
|
+
|
|
1453
|
+
if (!is_property_present.has_value())
|
|
1454
|
+
{
|
|
1455
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.Core.CoreInputViewAnimationStartingEventArgs", L"Handled");
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
if (!is_property_present.value())
|
|
1207
1459
|
{
|
|
1208
1460
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1209
1461
|
return nullptr;
|
|
@@ -1228,7 +1480,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
1228
1480
|
|
|
1229
1481
|
try
|
|
1230
1482
|
{
|
|
1231
|
-
|
|
1483
|
+
static std::optional<bool> is_property_present{};
|
|
1484
|
+
|
|
1485
|
+
if (!is_property_present.has_value())
|
|
1486
|
+
{
|
|
1487
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.Core.CoreInputViewAnimationStartingEventArgs", L"Handled");
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
if (!is_property_present.value())
|
|
1232
1491
|
{
|
|
1233
1492
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1234
1493
|
return -1;
|
|
@@ -1250,7 +1509,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
1250
1509
|
{
|
|
1251
1510
|
try
|
|
1252
1511
|
{
|
|
1253
|
-
|
|
1512
|
+
static std::optional<bool> is_property_present{};
|
|
1513
|
+
|
|
1514
|
+
if (!is_property_present.has_value())
|
|
1515
|
+
{
|
|
1516
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.Core.CoreInputViewAnimationStartingEventArgs", L"AnimationDuration");
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
if (!is_property_present.value())
|
|
1254
1520
|
{
|
|
1255
1521
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1256
1522
|
return nullptr;
|
|
@@ -1269,7 +1535,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
1269
1535
|
{
|
|
1270
1536
|
try
|
|
1271
1537
|
{
|
|
1272
|
-
|
|
1538
|
+
static std::optional<bool> is_property_present{};
|
|
1539
|
+
|
|
1540
|
+
if (!is_property_present.has_value())
|
|
1541
|
+
{
|
|
1542
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.Core.CoreInputViewAnimationStartingEventArgs", L"Occlusions");
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
if (!is_property_present.value())
|
|
1273
1546
|
{
|
|
1274
1547
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1275
1548
|
return nullptr;
|
|
@@ -1361,7 +1634,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
1361
1634
|
{
|
|
1362
1635
|
try
|
|
1363
1636
|
{
|
|
1364
|
-
|
|
1637
|
+
static std::optional<bool> is_overload_present{};
|
|
1638
|
+
|
|
1639
|
+
if (!is_overload_present.has_value())
|
|
1640
|
+
{
|
|
1641
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.Core.CoreInputViewHidingEventArgs", L"TryCancel", 0);
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
if (!is_overload_present.value())
|
|
1365
1645
|
{
|
|
1366
1646
|
py::set_arg_count_version_error(0);
|
|
1367
1647
|
return nullptr;
|
|
@@ -1453,7 +1733,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
1453
1733
|
{
|
|
1454
1734
|
try
|
|
1455
1735
|
{
|
|
1456
|
-
|
|
1736
|
+
static std::optional<bool> is_property_present{};
|
|
1737
|
+
|
|
1738
|
+
if (!is_property_present.has_value())
|
|
1739
|
+
{
|
|
1740
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.Core.CoreInputViewOcclusion", L"OccludingRect");
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
if (!is_property_present.value())
|
|
1457
1744
|
{
|
|
1458
1745
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1459
1746
|
return nullptr;
|
|
@@ -1472,7 +1759,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
1472
1759
|
{
|
|
1473
1760
|
try
|
|
1474
1761
|
{
|
|
1475
|
-
|
|
1762
|
+
static std::optional<bool> is_property_present{};
|
|
1763
|
+
|
|
1764
|
+
if (!is_property_present.has_value())
|
|
1765
|
+
{
|
|
1766
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.Core.CoreInputViewOcclusion", L"OcclusionKind");
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
if (!is_property_present.value())
|
|
1476
1770
|
{
|
|
1477
1771
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1478
1772
|
return nullptr;
|
|
@@ -1559,7 +1853,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
1559
1853
|
{
|
|
1560
1854
|
try
|
|
1561
1855
|
{
|
|
1562
|
-
|
|
1856
|
+
static std::optional<bool> is_property_present{};
|
|
1857
|
+
|
|
1858
|
+
if (!is_property_present.has_value())
|
|
1859
|
+
{
|
|
1860
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.Core.CoreInputViewOcclusionsChangedEventArgs", L"Handled");
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
if (!is_property_present.value())
|
|
1563
1864
|
{
|
|
1564
1865
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1565
1866
|
return nullptr;
|
|
@@ -1584,7 +1885,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
1584
1885
|
|
|
1585
1886
|
try
|
|
1586
1887
|
{
|
|
1587
|
-
|
|
1888
|
+
static std::optional<bool> is_property_present{};
|
|
1889
|
+
|
|
1890
|
+
if (!is_property_present.has_value())
|
|
1891
|
+
{
|
|
1892
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.Core.CoreInputViewOcclusionsChangedEventArgs", L"Handled");
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
if (!is_property_present.value())
|
|
1588
1896
|
{
|
|
1589
1897
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1590
1898
|
return -1;
|
|
@@ -1606,7 +1914,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
1606
1914
|
{
|
|
1607
1915
|
try
|
|
1608
1916
|
{
|
|
1609
|
-
|
|
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.UI.ViewManagement.Core.CoreInputViewOcclusionsChangedEventArgs", L"Occlusions");
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
if (!is_property_present.value())
|
|
1610
1925
|
{
|
|
1611
1926
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1612
1927
|
return nullptr;
|
|
@@ -1697,7 +2012,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
1697
2012
|
{
|
|
1698
2013
|
try
|
|
1699
2014
|
{
|
|
1700
|
-
|
|
2015
|
+
static std::optional<bool> is_overload_present{};
|
|
2016
|
+
|
|
2017
|
+
if (!is_overload_present.has_value())
|
|
2018
|
+
{
|
|
2019
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.Core.CoreInputViewShowingEventArgs", L"TryCancel", 0);
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
if (!is_overload_present.value())
|
|
1701
2023
|
{
|
|
1702
2024
|
py::set_arg_count_version_error(0);
|
|
1703
2025
|
return nullptr;
|
|
@@ -1789,7 +2111,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
1789
2111
|
{
|
|
1790
2112
|
try
|
|
1791
2113
|
{
|
|
1792
|
-
|
|
2114
|
+
static std::optional<bool> is_property_present{};
|
|
2115
|
+
|
|
2116
|
+
if (!is_property_present.has_value())
|
|
2117
|
+
{
|
|
2118
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.Core.CoreInputViewTransferringXYFocusEventArgs", L"TransferHandled");
|
|
2119
|
+
}
|
|
2120
|
+
|
|
2121
|
+
if (!is_property_present.value())
|
|
1793
2122
|
{
|
|
1794
2123
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1795
2124
|
return nullptr;
|
|
@@ -1814,7 +2143,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
1814
2143
|
|
|
1815
2144
|
try
|
|
1816
2145
|
{
|
|
1817
|
-
|
|
2146
|
+
static std::optional<bool> is_property_present{};
|
|
2147
|
+
|
|
2148
|
+
if (!is_property_present.has_value())
|
|
2149
|
+
{
|
|
2150
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.Core.CoreInputViewTransferringXYFocusEventArgs", L"TransferHandled");
|
|
2151
|
+
}
|
|
2152
|
+
|
|
2153
|
+
if (!is_property_present.value())
|
|
1818
2154
|
{
|
|
1819
2155
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1820
2156
|
return -1;
|
|
@@ -1836,7 +2172,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
1836
2172
|
{
|
|
1837
2173
|
try
|
|
1838
2174
|
{
|
|
1839
|
-
|
|
2175
|
+
static std::optional<bool> is_property_present{};
|
|
2176
|
+
|
|
2177
|
+
if (!is_property_present.has_value())
|
|
2178
|
+
{
|
|
2179
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.Core.CoreInputViewTransferringXYFocusEventArgs", L"KeepPrimaryViewVisible");
|
|
2180
|
+
}
|
|
2181
|
+
|
|
2182
|
+
if (!is_property_present.value())
|
|
1840
2183
|
{
|
|
1841
2184
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1842
2185
|
return nullptr;
|
|
@@ -1861,7 +2204,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
1861
2204
|
|
|
1862
2205
|
try
|
|
1863
2206
|
{
|
|
1864
|
-
|
|
2207
|
+
static std::optional<bool> is_property_present{};
|
|
2208
|
+
|
|
2209
|
+
if (!is_property_present.has_value())
|
|
2210
|
+
{
|
|
2211
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.Core.CoreInputViewTransferringXYFocusEventArgs", L"KeepPrimaryViewVisible");
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
if (!is_property_present.value())
|
|
1865
2215
|
{
|
|
1866
2216
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1867
2217
|
return -1;
|
|
@@ -1883,7 +2233,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
1883
2233
|
{
|
|
1884
2234
|
try
|
|
1885
2235
|
{
|
|
1886
|
-
|
|
2236
|
+
static std::optional<bool> is_property_present{};
|
|
2237
|
+
|
|
2238
|
+
if (!is_property_present.has_value())
|
|
2239
|
+
{
|
|
2240
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.Core.CoreInputViewTransferringXYFocusEventArgs", L"Direction");
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2243
|
+
if (!is_property_present.value())
|
|
1887
2244
|
{
|
|
1888
2245
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1889
2246
|
return nullptr;
|
|
@@ -1902,7 +2259,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
1902
2259
|
{
|
|
1903
2260
|
try
|
|
1904
2261
|
{
|
|
1905
|
-
|
|
2262
|
+
static std::optional<bool> is_property_present{};
|
|
2263
|
+
|
|
2264
|
+
if (!is_property_present.has_value())
|
|
2265
|
+
{
|
|
2266
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ViewManagement.Core.CoreInputViewTransferringXYFocusEventArgs", L"Origin");
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2269
|
+
if (!is_property_present.value())
|
|
1906
2270
|
{
|
|
1907
2271
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1908
2272
|
return nullptr;
|
|
@@ -1995,7 +2359,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
1995
2359
|
{
|
|
1996
2360
|
try
|
|
1997
2361
|
{
|
|
1998
|
-
|
|
2362
|
+
static std::optional<bool> is_overload_present{};
|
|
2363
|
+
|
|
2364
|
+
if (!is_overload_present.has_value())
|
|
2365
|
+
{
|
|
2366
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.Core.UISettingsController", L"RequestDefaultAsync", 0);
|
|
2367
|
+
}
|
|
2368
|
+
|
|
2369
|
+
if (!is_overload_present.value())
|
|
1999
2370
|
{
|
|
2000
2371
|
py::set_arg_count_version_error(0);
|
|
2001
2372
|
return nullptr;
|
|
@@ -2024,7 +2395,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
2024
2395
|
{
|
|
2025
2396
|
try
|
|
2026
2397
|
{
|
|
2027
|
-
|
|
2398
|
+
static std::optional<bool> is_overload_present{};
|
|
2399
|
+
|
|
2400
|
+
if (!is_overload_present.has_value())
|
|
2401
|
+
{
|
|
2402
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.Core.UISettingsController", L"SetAdvancedEffectsEnabled", 1);
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
if (!is_overload_present.value())
|
|
2028
2406
|
{
|
|
2029
2407
|
py::set_arg_count_version_error(1);
|
|
2030
2408
|
return nullptr;
|
|
@@ -2056,7 +2434,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
2056
2434
|
{
|
|
2057
2435
|
try
|
|
2058
2436
|
{
|
|
2059
|
-
|
|
2437
|
+
static std::optional<bool> is_overload_present{};
|
|
2438
|
+
|
|
2439
|
+
if (!is_overload_present.has_value())
|
|
2440
|
+
{
|
|
2441
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.Core.UISettingsController", L"SetAnimationsEnabled", 1);
|
|
2442
|
+
}
|
|
2443
|
+
|
|
2444
|
+
if (!is_overload_present.value())
|
|
2060
2445
|
{
|
|
2061
2446
|
py::set_arg_count_version_error(1);
|
|
2062
2447
|
return nullptr;
|
|
@@ -2088,7 +2473,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
2088
2473
|
{
|
|
2089
2474
|
try
|
|
2090
2475
|
{
|
|
2091
|
-
|
|
2476
|
+
static std::optional<bool> is_overload_present{};
|
|
2477
|
+
|
|
2478
|
+
if (!is_overload_present.has_value())
|
|
2479
|
+
{
|
|
2480
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.Core.UISettingsController", L"SetAutoHideScrollBars", 1);
|
|
2481
|
+
}
|
|
2482
|
+
|
|
2483
|
+
if (!is_overload_present.value())
|
|
2092
2484
|
{
|
|
2093
2485
|
py::set_arg_count_version_error(1);
|
|
2094
2486
|
return nullptr;
|
|
@@ -2120,7 +2512,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
2120
2512
|
{
|
|
2121
2513
|
try
|
|
2122
2514
|
{
|
|
2123
|
-
|
|
2515
|
+
static std::optional<bool> is_overload_present{};
|
|
2516
|
+
|
|
2517
|
+
if (!is_overload_present.has_value())
|
|
2518
|
+
{
|
|
2519
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.Core.UISettingsController", L"SetMessageDuration", 1);
|
|
2520
|
+
}
|
|
2521
|
+
|
|
2522
|
+
if (!is_overload_present.value())
|
|
2124
2523
|
{
|
|
2125
2524
|
py::set_arg_count_version_error(1);
|
|
2126
2525
|
return nullptr;
|
|
@@ -2152,7 +2551,14 @@ namespace py::cpp::Windows::UI::ViewManagement::Core
|
|
|
2152
2551
|
{
|
|
2153
2552
|
try
|
|
2154
2553
|
{
|
|
2155
|
-
|
|
2554
|
+
static std::optional<bool> is_overload_present{};
|
|
2555
|
+
|
|
2556
|
+
if (!is_overload_present.has_value())
|
|
2557
|
+
{
|
|
2558
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.Core.UISettingsController", L"SetTextScaleFactor", 1);
|
|
2559
|
+
}
|
|
2560
|
+
|
|
2561
|
+
if (!is_overload_present.value())
|
|
2156
2562
|
{
|
|
2157
2563
|
py::set_arg_count_version_error(1);
|
|
2158
2564
|
return nullptr;
|
|
@@ -2307,17 +2713,20 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_viewmanagement_core(void) noexcept
|
|
|
2307
2713
|
return nullptr;
|
|
2308
2714
|
}
|
|
2309
2715
|
|
|
2310
|
-
|
|
2716
|
+
py::pytype_handle CoreFrameworkInputView_type{py::register_python_type(module.get(), &type_spec_CoreFrameworkInputView, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_CoreFrameworkInputView_Static.get()))};
|
|
2717
|
+
if (!CoreFrameworkInputView_type)
|
|
2311
2718
|
{
|
|
2312
2719
|
return nullptr;
|
|
2313
2720
|
}
|
|
2314
2721
|
|
|
2315
|
-
|
|
2722
|
+
py::pytype_handle CoreFrameworkInputViewAnimationStartingEventArgs_type{py::register_python_type(module.get(), &type_spec_CoreFrameworkInputViewAnimationStartingEventArgs, object_bases.get(), nullptr)};
|
|
2723
|
+
if (!CoreFrameworkInputViewAnimationStartingEventArgs_type)
|
|
2316
2724
|
{
|
|
2317
2725
|
return nullptr;
|
|
2318
2726
|
}
|
|
2319
2727
|
|
|
2320
|
-
|
|
2728
|
+
py::pytype_handle CoreFrameworkInputViewOcclusionsChangedEventArgs_type{py::register_python_type(module.get(), &type_spec_CoreFrameworkInputViewOcclusionsChangedEventArgs, object_bases.get(), nullptr)};
|
|
2729
|
+
if (!CoreFrameworkInputViewOcclusionsChangedEventArgs_type)
|
|
2321
2730
|
{
|
|
2322
2731
|
return nullptr;
|
|
2323
2732
|
}
|
|
@@ -2328,37 +2737,44 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_viewmanagement_core(void) noexcept
|
|
|
2328
2737
|
return nullptr;
|
|
2329
2738
|
}
|
|
2330
2739
|
|
|
2331
|
-
|
|
2740
|
+
py::pytype_handle CoreInputView_type{py::register_python_type(module.get(), &type_spec_CoreInputView, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_CoreInputView_Static.get()))};
|
|
2741
|
+
if (!CoreInputView_type)
|
|
2332
2742
|
{
|
|
2333
2743
|
return nullptr;
|
|
2334
2744
|
}
|
|
2335
2745
|
|
|
2336
|
-
|
|
2746
|
+
py::pytype_handle CoreInputViewAnimationStartingEventArgs_type{py::register_python_type(module.get(), &type_spec_CoreInputViewAnimationStartingEventArgs, object_bases.get(), nullptr)};
|
|
2747
|
+
if (!CoreInputViewAnimationStartingEventArgs_type)
|
|
2337
2748
|
{
|
|
2338
2749
|
return nullptr;
|
|
2339
2750
|
}
|
|
2340
2751
|
|
|
2341
|
-
|
|
2752
|
+
py::pytype_handle CoreInputViewHidingEventArgs_type{py::register_python_type(module.get(), &type_spec_CoreInputViewHidingEventArgs, object_bases.get(), nullptr)};
|
|
2753
|
+
if (!CoreInputViewHidingEventArgs_type)
|
|
2342
2754
|
{
|
|
2343
2755
|
return nullptr;
|
|
2344
2756
|
}
|
|
2345
2757
|
|
|
2346
|
-
|
|
2758
|
+
py::pytype_handle CoreInputViewOcclusion_type{py::register_python_type(module.get(), &type_spec_CoreInputViewOcclusion, object_bases.get(), nullptr)};
|
|
2759
|
+
if (!CoreInputViewOcclusion_type)
|
|
2347
2760
|
{
|
|
2348
2761
|
return nullptr;
|
|
2349
2762
|
}
|
|
2350
2763
|
|
|
2351
|
-
|
|
2764
|
+
py::pytype_handle CoreInputViewOcclusionsChangedEventArgs_type{py::register_python_type(module.get(), &type_spec_CoreInputViewOcclusionsChangedEventArgs, object_bases.get(), nullptr)};
|
|
2765
|
+
if (!CoreInputViewOcclusionsChangedEventArgs_type)
|
|
2352
2766
|
{
|
|
2353
2767
|
return nullptr;
|
|
2354
2768
|
}
|
|
2355
2769
|
|
|
2356
|
-
|
|
2770
|
+
py::pytype_handle CoreInputViewShowingEventArgs_type{py::register_python_type(module.get(), &type_spec_CoreInputViewShowingEventArgs, object_bases.get(), nullptr)};
|
|
2771
|
+
if (!CoreInputViewShowingEventArgs_type)
|
|
2357
2772
|
{
|
|
2358
2773
|
return nullptr;
|
|
2359
2774
|
}
|
|
2360
2775
|
|
|
2361
|
-
|
|
2776
|
+
py::pytype_handle CoreInputViewTransferringXYFocusEventArgs_type{py::register_python_type(module.get(), &type_spec_CoreInputViewTransferringXYFocusEventArgs, object_bases.get(), nullptr)};
|
|
2777
|
+
if (!CoreInputViewTransferringXYFocusEventArgs_type)
|
|
2362
2778
|
{
|
|
2363
2779
|
return nullptr;
|
|
2364
2780
|
}
|
|
@@ -2369,7 +2785,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_viewmanagement_core(void) noexcept
|
|
|
2369
2785
|
return nullptr;
|
|
2370
2786
|
}
|
|
2371
2787
|
|
|
2372
|
-
|
|
2788
|
+
py::pytype_handle UISettingsController_type{py::register_python_type(module.get(), &type_spec_UISettingsController, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_UISettingsController_Static.get()))};
|
|
2789
|
+
if (!UISettingsController_type)
|
|
2373
2790
|
{
|
|
2374
2791
|
return nullptr;
|
|
2375
2792
|
}
|
|
@@ -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.
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.2.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.2.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.UI.ViewManagement.Core
|
|
3
|
-
Version: 2.
|
|
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,13 +10,13 @@ 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
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.UI[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.UI[all]==2.2.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.1.0
|
{winrt_windows_ui_viewmanagement_core-2.1.0 → winrt_windows_ui_viewmanagement_core-2.2.0}/README.md
RENAMED
|
File without changes
|
{winrt_windows_ui_viewmanagement_core-2.1.0 → winrt_windows_ui_viewmanagement_core-2.2.0}/setup.cfg
RENAMED
|
File without changes
|
{winrt_windows_ui_viewmanagement_core-2.1.0 → winrt_windows_ui_viewmanagement_core-2.2.0}/setup.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|