winrt-Windows.UI.Core.AnimationMetrics 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_core_animationmetrics-2.1.0 → winrt_windows_ui_core_animationmetrics-2.2.0}/PKG-INFO +5 -5
- winrt_windows_ui_core_animationmetrics-2.2.0/all-requirements.txt +4 -0
- {winrt_windows_ui_core_animationmetrics-2.1.0 → winrt_windows_ui_core_animationmetrics-2.2.0}/py.Windows.UI.Core.AnimationMetrics.cpp +310 -45
- {winrt_windows_ui_core_animationmetrics-2.1.0 → winrt_windows_ui_core_animationmetrics-2.2.0}/pyproject.toml +3 -2
- winrt_windows_ui_core_animationmetrics-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_ui_core_animationmetrics-2.1.0 → winrt_windows_ui_core_animationmetrics-2.2.0}/requirements.txt +2 -2
- {winrt_windows_ui_core_animationmetrics-2.1.0 → winrt_windows_ui_core_animationmetrics-2.2.0}/winrt/_winrt_windows_ui_core_animationmetrics.pyi +1 -1
- {winrt_windows_ui_core_animationmetrics-2.1.0 → winrt_windows_ui_core_animationmetrics-2.2.0}/winrt/windows/ui/core/animationmetrics/__init__.py +1 -1
- {winrt_windows_ui_core_animationmetrics-2.1.0 → winrt_windows_ui_core_animationmetrics-2.2.0}/winrt_Windows.UI.Core.AnimationMetrics.egg-info/PKG-INFO +5 -5
- winrt_windows_ui_core_animationmetrics-2.2.0/winrt_Windows.UI.Core.AnimationMetrics.egg-info/requires.txt +5 -0
- winrt_windows_ui_core_animationmetrics-2.1.0/all-requirements.txt +0 -4
- winrt_windows_ui_core_animationmetrics-2.1.0/pywinrt-version.txt +0 -1
- winrt_windows_ui_core_animationmetrics-2.1.0/winrt_Windows.UI.Core.AnimationMetrics.egg-info/requires.txt +0 -5
- {winrt_windows_ui_core_animationmetrics-2.1.0 → winrt_windows_ui_core_animationmetrics-2.2.0}/README.md +0 -0
- {winrt_windows_ui_core_animationmetrics-2.1.0 → winrt_windows_ui_core_animationmetrics-2.2.0}/setup.cfg +0 -0
- {winrt_windows_ui_core_animationmetrics-2.1.0 → winrt_windows_ui_core_animationmetrics-2.2.0}/setup.py +0 -0
- {winrt_windows_ui_core_animationmetrics-2.1.0 → winrt_windows_ui_core_animationmetrics-2.2.0}/winrt/windows/ui/core/animationmetrics/py.typed +0 -0
- {winrt_windows_ui_core_animationmetrics-2.1.0 → winrt_windows_ui_core_animationmetrics-2.2.0}/winrt_Windows.UI.Core.AnimationMetrics.egg-info/SOURCES.txt +0 -0
- {winrt_windows_ui_core_animationmetrics-2.1.0 → winrt_windows_ui_core_animationmetrics-2.2.0}/winrt_Windows.UI.Core.AnimationMetrics.egg-info/dependency_links.txt +0 -0
- {winrt_windows_ui_core_animationmetrics-2.1.0 → winrt_windows_ui_core_animationmetrics-2.2.0}/winrt_Windows.UI.Core.AnimationMetrics.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.UI.Core.AnimationMetrics
|
|
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,12 +10,12 @@ 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.
|
|
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
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -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.Core.AnimationMetrics.h"
|
|
4
4
|
|
|
@@ -22,7 +22,7 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
22
22
|
auto param0 = py::convert_to<winrt::Windows::UI::Core::AnimationMetrics::AnimationEffect>(args, 0);
|
|
23
23
|
auto param1 = py::convert_to<winrt::Windows::UI::Core::AnimationMetrics::AnimationEffectTarget>(args, 1);
|
|
24
24
|
|
|
25
|
-
winrt::Windows::UI::Core::AnimationMetrics::AnimationDescription instance{
|
|
25
|
+
winrt::Windows::UI::Core::AnimationMetrics::AnimationDescription instance{param0, param1};
|
|
26
26
|
return py::wrap(instance, type);
|
|
27
27
|
}
|
|
28
28
|
catch (...)
|
|
@@ -50,7 +50,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
50
50
|
{
|
|
51
51
|
try
|
|
52
52
|
{
|
|
53
|
-
|
|
53
|
+
static std::optional<bool> is_property_present{};
|
|
54
|
+
|
|
55
|
+
if (!is_property_present.has_value())
|
|
56
|
+
{
|
|
57
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.AnimationDescription", L"Animations");
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if (!is_property_present.value())
|
|
54
61
|
{
|
|
55
62
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
56
63
|
return nullptr;
|
|
@@ -69,7 +76,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
69
76
|
{
|
|
70
77
|
try
|
|
71
78
|
{
|
|
72
|
-
|
|
79
|
+
static std::optional<bool> is_property_present{};
|
|
80
|
+
|
|
81
|
+
if (!is_property_present.has_value())
|
|
82
|
+
{
|
|
83
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.AnimationDescription", L"DelayLimit");
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (!is_property_present.value())
|
|
73
87
|
{
|
|
74
88
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
75
89
|
return nullptr;
|
|
@@ -88,7 +102,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
88
102
|
{
|
|
89
103
|
try
|
|
90
104
|
{
|
|
91
|
-
|
|
105
|
+
static std::optional<bool> is_property_present{};
|
|
106
|
+
|
|
107
|
+
if (!is_property_present.has_value())
|
|
108
|
+
{
|
|
109
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.AnimationDescription", L"StaggerDelay");
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
if (!is_property_present.value())
|
|
92
113
|
{
|
|
93
114
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
94
115
|
return nullptr;
|
|
@@ -107,7 +128,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
107
128
|
{
|
|
108
129
|
try
|
|
109
130
|
{
|
|
110
|
-
|
|
131
|
+
static std::optional<bool> is_property_present{};
|
|
132
|
+
|
|
133
|
+
if (!is_property_present.has_value())
|
|
134
|
+
{
|
|
135
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.AnimationDescription", L"StaggerDelayFactor");
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
if (!is_property_present.value())
|
|
111
139
|
{
|
|
112
140
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
113
141
|
return nullptr;
|
|
@@ -126,7 +154,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
126
154
|
{
|
|
127
155
|
try
|
|
128
156
|
{
|
|
129
|
-
|
|
157
|
+
static std::optional<bool> is_property_present{};
|
|
158
|
+
|
|
159
|
+
if (!is_property_present.has_value())
|
|
160
|
+
{
|
|
161
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.AnimationDescription", L"ZOrder");
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
if (!is_property_present.value())
|
|
130
165
|
{
|
|
131
166
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
132
167
|
return nullptr;
|
|
@@ -216,7 +251,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
216
251
|
{
|
|
217
252
|
try
|
|
218
253
|
{
|
|
219
|
-
|
|
254
|
+
static std::optional<bool> is_property_present{};
|
|
255
|
+
|
|
256
|
+
if (!is_property_present.has_value())
|
|
257
|
+
{
|
|
258
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.OpacityAnimation", L"FinalOpacity");
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
if (!is_property_present.value())
|
|
220
262
|
{
|
|
221
263
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
222
264
|
return nullptr;
|
|
@@ -235,7 +277,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
235
277
|
{
|
|
236
278
|
try
|
|
237
279
|
{
|
|
238
|
-
|
|
280
|
+
static std::optional<bool> is_property_present{};
|
|
281
|
+
|
|
282
|
+
if (!is_property_present.has_value())
|
|
283
|
+
{
|
|
284
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.OpacityAnimation", L"InitialOpacity");
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
if (!is_property_present.value())
|
|
239
288
|
{
|
|
240
289
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
241
290
|
return nullptr;
|
|
@@ -254,7 +303,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
254
303
|
{
|
|
255
304
|
try
|
|
256
305
|
{
|
|
257
|
-
|
|
306
|
+
static std::optional<bool> is_property_present{};
|
|
307
|
+
|
|
308
|
+
if (!is_property_present.has_value())
|
|
309
|
+
{
|
|
310
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.OpacityAnimation", L"Control1");
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
if (!is_property_present.value())
|
|
258
314
|
{
|
|
259
315
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
260
316
|
return nullptr;
|
|
@@ -273,7 +329,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
273
329
|
{
|
|
274
330
|
try
|
|
275
331
|
{
|
|
276
|
-
|
|
332
|
+
static std::optional<bool> is_property_present{};
|
|
333
|
+
|
|
334
|
+
if (!is_property_present.has_value())
|
|
335
|
+
{
|
|
336
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.OpacityAnimation", L"Control2");
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
if (!is_property_present.value())
|
|
277
340
|
{
|
|
278
341
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
279
342
|
return nullptr;
|
|
@@ -292,7 +355,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
292
355
|
{
|
|
293
356
|
try
|
|
294
357
|
{
|
|
295
|
-
|
|
358
|
+
static std::optional<bool> is_property_present{};
|
|
359
|
+
|
|
360
|
+
if (!is_property_present.has_value())
|
|
361
|
+
{
|
|
362
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.OpacityAnimation", L"Delay");
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
if (!is_property_present.value())
|
|
296
366
|
{
|
|
297
367
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
298
368
|
return nullptr;
|
|
@@ -311,7 +381,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
311
381
|
{
|
|
312
382
|
try
|
|
313
383
|
{
|
|
314
|
-
|
|
384
|
+
static std::optional<bool> is_property_present{};
|
|
385
|
+
|
|
386
|
+
if (!is_property_present.has_value())
|
|
387
|
+
{
|
|
388
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.OpacityAnimation", L"Duration");
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
if (!is_property_present.value())
|
|
315
392
|
{
|
|
316
393
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
317
394
|
return nullptr;
|
|
@@ -330,7 +407,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
330
407
|
{
|
|
331
408
|
try
|
|
332
409
|
{
|
|
333
|
-
|
|
410
|
+
static std::optional<bool> is_property_present{};
|
|
411
|
+
|
|
412
|
+
if (!is_property_present.has_value())
|
|
413
|
+
{
|
|
414
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.OpacityAnimation", L"Type");
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
if (!is_property_present.value())
|
|
334
418
|
{
|
|
335
419
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
336
420
|
return nullptr;
|
|
@@ -422,7 +506,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
422
506
|
{
|
|
423
507
|
try
|
|
424
508
|
{
|
|
425
|
-
|
|
509
|
+
static std::optional<bool> is_property_present{};
|
|
510
|
+
|
|
511
|
+
if (!is_property_present.has_value())
|
|
512
|
+
{
|
|
513
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.PropertyAnimation", L"Control1");
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
if (!is_property_present.value())
|
|
426
517
|
{
|
|
427
518
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
428
519
|
return nullptr;
|
|
@@ -441,7 +532,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
441
532
|
{
|
|
442
533
|
try
|
|
443
534
|
{
|
|
444
|
-
|
|
535
|
+
static std::optional<bool> is_property_present{};
|
|
536
|
+
|
|
537
|
+
if (!is_property_present.has_value())
|
|
538
|
+
{
|
|
539
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.PropertyAnimation", L"Control2");
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
if (!is_property_present.value())
|
|
445
543
|
{
|
|
446
544
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
447
545
|
return nullptr;
|
|
@@ -460,7 +558,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
460
558
|
{
|
|
461
559
|
try
|
|
462
560
|
{
|
|
463
|
-
|
|
561
|
+
static std::optional<bool> is_property_present{};
|
|
562
|
+
|
|
563
|
+
if (!is_property_present.has_value())
|
|
564
|
+
{
|
|
565
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.PropertyAnimation", L"Delay");
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
if (!is_property_present.value())
|
|
464
569
|
{
|
|
465
570
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
466
571
|
return nullptr;
|
|
@@ -479,7 +584,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
479
584
|
{
|
|
480
585
|
try
|
|
481
586
|
{
|
|
482
|
-
|
|
587
|
+
static std::optional<bool> is_property_present{};
|
|
588
|
+
|
|
589
|
+
if (!is_property_present.has_value())
|
|
590
|
+
{
|
|
591
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.PropertyAnimation", L"Duration");
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
if (!is_property_present.value())
|
|
483
595
|
{
|
|
484
596
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
485
597
|
return nullptr;
|
|
@@ -498,7 +610,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
498
610
|
{
|
|
499
611
|
try
|
|
500
612
|
{
|
|
501
|
-
|
|
613
|
+
static std::optional<bool> is_property_present{};
|
|
614
|
+
|
|
615
|
+
if (!is_property_present.has_value())
|
|
616
|
+
{
|
|
617
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.PropertyAnimation", L"Type");
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
if (!is_property_present.value())
|
|
502
621
|
{
|
|
503
622
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
504
623
|
return nullptr;
|
|
@@ -588,7 +707,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
588
707
|
{
|
|
589
708
|
try
|
|
590
709
|
{
|
|
591
|
-
|
|
710
|
+
static std::optional<bool> is_property_present{};
|
|
711
|
+
|
|
712
|
+
if (!is_property_present.has_value())
|
|
713
|
+
{
|
|
714
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.ScaleAnimation", L"Control1");
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
if (!is_property_present.value())
|
|
592
718
|
{
|
|
593
719
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
594
720
|
return nullptr;
|
|
@@ -607,7 +733,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
607
733
|
{
|
|
608
734
|
try
|
|
609
735
|
{
|
|
610
|
-
|
|
736
|
+
static std::optional<bool> is_property_present{};
|
|
737
|
+
|
|
738
|
+
if (!is_property_present.has_value())
|
|
739
|
+
{
|
|
740
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.ScaleAnimation", L"Control2");
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
if (!is_property_present.value())
|
|
611
744
|
{
|
|
612
745
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
613
746
|
return nullptr;
|
|
@@ -626,7 +759,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
626
759
|
{
|
|
627
760
|
try
|
|
628
761
|
{
|
|
629
|
-
|
|
762
|
+
static std::optional<bool> is_property_present{};
|
|
763
|
+
|
|
764
|
+
if (!is_property_present.has_value())
|
|
765
|
+
{
|
|
766
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.ScaleAnimation", L"Delay");
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
if (!is_property_present.value())
|
|
630
770
|
{
|
|
631
771
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
632
772
|
return nullptr;
|
|
@@ -645,7 +785,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
645
785
|
{
|
|
646
786
|
try
|
|
647
787
|
{
|
|
648
|
-
|
|
788
|
+
static std::optional<bool> is_property_present{};
|
|
789
|
+
|
|
790
|
+
if (!is_property_present.has_value())
|
|
791
|
+
{
|
|
792
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.ScaleAnimation", L"Duration");
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
if (!is_property_present.value())
|
|
649
796
|
{
|
|
650
797
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
651
798
|
return nullptr;
|
|
@@ -664,7 +811,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
664
811
|
{
|
|
665
812
|
try
|
|
666
813
|
{
|
|
667
|
-
|
|
814
|
+
static std::optional<bool> is_property_present{};
|
|
815
|
+
|
|
816
|
+
if (!is_property_present.has_value())
|
|
817
|
+
{
|
|
818
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.ScaleAnimation", L"Type");
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
if (!is_property_present.value())
|
|
668
822
|
{
|
|
669
823
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
670
824
|
return nullptr;
|
|
@@ -683,7 +837,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
683
837
|
{
|
|
684
838
|
try
|
|
685
839
|
{
|
|
686
|
-
|
|
840
|
+
static std::optional<bool> is_property_present{};
|
|
841
|
+
|
|
842
|
+
if (!is_property_present.has_value())
|
|
843
|
+
{
|
|
844
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.ScaleAnimation", L"FinalScaleX");
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
if (!is_property_present.value())
|
|
687
848
|
{
|
|
688
849
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
689
850
|
return nullptr;
|
|
@@ -702,7 +863,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
702
863
|
{
|
|
703
864
|
try
|
|
704
865
|
{
|
|
705
|
-
|
|
866
|
+
static std::optional<bool> is_property_present{};
|
|
867
|
+
|
|
868
|
+
if (!is_property_present.has_value())
|
|
869
|
+
{
|
|
870
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.ScaleAnimation", L"FinalScaleY");
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
if (!is_property_present.value())
|
|
706
874
|
{
|
|
707
875
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
708
876
|
return nullptr;
|
|
@@ -721,7 +889,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
721
889
|
{
|
|
722
890
|
try
|
|
723
891
|
{
|
|
724
|
-
|
|
892
|
+
static std::optional<bool> is_property_present{};
|
|
893
|
+
|
|
894
|
+
if (!is_property_present.has_value())
|
|
895
|
+
{
|
|
896
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.ScaleAnimation", L"InitialScaleX");
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
if (!is_property_present.value())
|
|
725
900
|
{
|
|
726
901
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
727
902
|
return nullptr;
|
|
@@ -740,7 +915,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
740
915
|
{
|
|
741
916
|
try
|
|
742
917
|
{
|
|
743
|
-
|
|
918
|
+
static std::optional<bool> is_property_present{};
|
|
919
|
+
|
|
920
|
+
if (!is_property_present.has_value())
|
|
921
|
+
{
|
|
922
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.ScaleAnimation", L"InitialScaleY");
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
if (!is_property_present.value())
|
|
744
926
|
{
|
|
745
927
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
746
928
|
return nullptr;
|
|
@@ -759,7 +941,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
759
941
|
{
|
|
760
942
|
try
|
|
761
943
|
{
|
|
762
|
-
|
|
944
|
+
static std::optional<bool> is_property_present{};
|
|
945
|
+
|
|
946
|
+
if (!is_property_present.has_value())
|
|
947
|
+
{
|
|
948
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.ScaleAnimation", L"NormalizedOrigin");
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
if (!is_property_present.value())
|
|
763
952
|
{
|
|
764
953
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
765
954
|
return nullptr;
|
|
@@ -854,7 +1043,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
854
1043
|
{
|
|
855
1044
|
try
|
|
856
1045
|
{
|
|
857
|
-
|
|
1046
|
+
static std::optional<bool> is_property_present{};
|
|
1047
|
+
|
|
1048
|
+
if (!is_property_present.has_value())
|
|
1049
|
+
{
|
|
1050
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.TranslationAnimation", L"Control1");
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
if (!is_property_present.value())
|
|
858
1054
|
{
|
|
859
1055
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
860
1056
|
return nullptr;
|
|
@@ -873,7 +1069,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
873
1069
|
{
|
|
874
1070
|
try
|
|
875
1071
|
{
|
|
876
|
-
|
|
1072
|
+
static std::optional<bool> is_property_present{};
|
|
1073
|
+
|
|
1074
|
+
if (!is_property_present.has_value())
|
|
1075
|
+
{
|
|
1076
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.TranslationAnimation", L"Control2");
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
if (!is_property_present.value())
|
|
877
1080
|
{
|
|
878
1081
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
879
1082
|
return nullptr;
|
|
@@ -892,7 +1095,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
892
1095
|
{
|
|
893
1096
|
try
|
|
894
1097
|
{
|
|
895
|
-
|
|
1098
|
+
static std::optional<bool> is_property_present{};
|
|
1099
|
+
|
|
1100
|
+
if (!is_property_present.has_value())
|
|
1101
|
+
{
|
|
1102
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.TranslationAnimation", L"Delay");
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
if (!is_property_present.value())
|
|
896
1106
|
{
|
|
897
1107
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
898
1108
|
return nullptr;
|
|
@@ -911,7 +1121,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
911
1121
|
{
|
|
912
1122
|
try
|
|
913
1123
|
{
|
|
914
|
-
|
|
1124
|
+
static std::optional<bool> is_property_present{};
|
|
1125
|
+
|
|
1126
|
+
if (!is_property_present.has_value())
|
|
1127
|
+
{
|
|
1128
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.TranslationAnimation", L"Duration");
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
if (!is_property_present.value())
|
|
915
1132
|
{
|
|
916
1133
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
917
1134
|
return nullptr;
|
|
@@ -930,7 +1147,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
930
1147
|
{
|
|
931
1148
|
try
|
|
932
1149
|
{
|
|
933
|
-
|
|
1150
|
+
static std::optional<bool> is_property_present{};
|
|
1151
|
+
|
|
1152
|
+
if (!is_property_present.has_value())
|
|
1153
|
+
{
|
|
1154
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.TranslationAnimation", L"Type");
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
if (!is_property_present.value())
|
|
934
1158
|
{
|
|
935
1159
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
936
1160
|
return nullptr;
|
|
@@ -1020,7 +1244,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
1020
1244
|
{
|
|
1021
1245
|
try
|
|
1022
1246
|
{
|
|
1023
|
-
|
|
1247
|
+
static std::optional<bool> is_property_present{};
|
|
1248
|
+
|
|
1249
|
+
if (!is_property_present.has_value())
|
|
1250
|
+
{
|
|
1251
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.IPropertyAnimation", L"Control1");
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
if (!is_property_present.value())
|
|
1024
1255
|
{
|
|
1025
1256
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1026
1257
|
return nullptr;
|
|
@@ -1039,7 +1270,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
1039
1270
|
{
|
|
1040
1271
|
try
|
|
1041
1272
|
{
|
|
1042
|
-
|
|
1273
|
+
static std::optional<bool> is_property_present{};
|
|
1274
|
+
|
|
1275
|
+
if (!is_property_present.has_value())
|
|
1276
|
+
{
|
|
1277
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.IPropertyAnimation", L"Control2");
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
if (!is_property_present.value())
|
|
1043
1281
|
{
|
|
1044
1282
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1045
1283
|
return nullptr;
|
|
@@ -1058,7 +1296,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
1058
1296
|
{
|
|
1059
1297
|
try
|
|
1060
1298
|
{
|
|
1061
|
-
|
|
1299
|
+
static std::optional<bool> is_property_present{};
|
|
1300
|
+
|
|
1301
|
+
if (!is_property_present.has_value())
|
|
1302
|
+
{
|
|
1303
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.IPropertyAnimation", L"Delay");
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
if (!is_property_present.value())
|
|
1062
1307
|
{
|
|
1063
1308
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1064
1309
|
return nullptr;
|
|
@@ -1077,7 +1322,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
1077
1322
|
{
|
|
1078
1323
|
try
|
|
1079
1324
|
{
|
|
1080
|
-
|
|
1325
|
+
static std::optional<bool> is_property_present{};
|
|
1326
|
+
|
|
1327
|
+
if (!is_property_present.has_value())
|
|
1328
|
+
{
|
|
1329
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.IPropertyAnimation", L"Duration");
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
if (!is_property_present.value())
|
|
1081
1333
|
{
|
|
1082
1334
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1083
1335
|
return nullptr;
|
|
@@ -1096,7 +1348,14 @@ namespace py::cpp::Windows::UI::Core::AnimationMetrics
|
|
|
1096
1348
|
{
|
|
1097
1349
|
try
|
|
1098
1350
|
{
|
|
1099
|
-
|
|
1351
|
+
static std::optional<bool> is_property_present{};
|
|
1352
|
+
|
|
1353
|
+
if (!is_property_present.has_value())
|
|
1354
|
+
{
|
|
1355
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.AnimationMetrics.IPropertyAnimation", L"Type");
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
if (!is_property_present.value())
|
|
1100
1359
|
{
|
|
1101
1360
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1102
1361
|
return nullptr;
|
|
@@ -1210,32 +1469,38 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_core_animationmetrics(void) noexcept
|
|
|
1210
1469
|
return nullptr;
|
|
1211
1470
|
}
|
|
1212
1471
|
|
|
1213
|
-
|
|
1472
|
+
py::pytype_handle AnimationDescription_type{py::register_python_type(module.get(), &type_spec_AnimationDescription, object_bases.get(), nullptr)};
|
|
1473
|
+
if (!AnimationDescription_type)
|
|
1214
1474
|
{
|
|
1215
1475
|
return nullptr;
|
|
1216
1476
|
}
|
|
1217
1477
|
|
|
1218
|
-
|
|
1478
|
+
py::pytype_handle OpacityAnimation_type{py::register_python_type(module.get(), &type_spec_OpacityAnimation, object_bases.get(), nullptr)};
|
|
1479
|
+
if (!OpacityAnimation_type)
|
|
1219
1480
|
{
|
|
1220
1481
|
return nullptr;
|
|
1221
1482
|
}
|
|
1222
1483
|
|
|
1223
|
-
|
|
1484
|
+
py::pytype_handle PropertyAnimation_type{py::register_python_type(module.get(), &type_spec_PropertyAnimation, object_bases.get(), nullptr)};
|
|
1485
|
+
if (!PropertyAnimation_type)
|
|
1224
1486
|
{
|
|
1225
1487
|
return nullptr;
|
|
1226
1488
|
}
|
|
1227
1489
|
|
|
1228
|
-
|
|
1490
|
+
py::pytype_handle ScaleAnimation_type{py::register_python_type(module.get(), &type_spec_ScaleAnimation, object_bases.get(), nullptr)};
|
|
1491
|
+
if (!ScaleAnimation_type)
|
|
1229
1492
|
{
|
|
1230
1493
|
return nullptr;
|
|
1231
1494
|
}
|
|
1232
1495
|
|
|
1233
|
-
|
|
1496
|
+
py::pytype_handle TranslationAnimation_type{py::register_python_type(module.get(), &type_spec_TranslationAnimation, object_bases.get(), nullptr)};
|
|
1497
|
+
if (!TranslationAnimation_type)
|
|
1234
1498
|
{
|
|
1235
1499
|
return nullptr;
|
|
1236
1500
|
}
|
|
1237
1501
|
|
|
1238
|
-
|
|
1502
|
+
py::pytype_handle IPropertyAnimation_type{py::register_python_type(module.get(), &type_spec_IPropertyAnimation, object_bases.get(), nullptr)};
|
|
1503
|
+
if (!IPropertyAnimation_type)
|
|
1239
1504
|
{
|
|
1240
1505
|
return nullptr;
|
|
1241
1506
|
}
|
|
@@ -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.Core.AnimationMetrics
|
|
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,12 +10,12 @@ 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.
|
|
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
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.1.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|