winrt-Windows.Graphics.Capture 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_graphics_capture-2.1.0 → winrt_windows_graphics_capture-2.2.0}/PKG-INFO +11 -11
- winrt_windows_graphics_capture-2.2.0/all-requirements.txt +10 -0
- {winrt_windows_graphics_capture-2.1.0 → winrt_windows_graphics_capture-2.2.0}/py.Windows.Graphics.Capture.cpp +246 -37
- {winrt_windows_graphics_capture-2.1.0 → winrt_windows_graphics_capture-2.2.0}/pyproject.toml +3 -2
- winrt_windows_graphics_capture-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_graphics_capture-2.1.0 → winrt_windows_graphics_capture-2.2.0}/requirements.txt +2 -2
- {winrt_windows_graphics_capture-2.1.0 → winrt_windows_graphics_capture-2.2.0}/winrt/_winrt_windows_graphics_capture.pyi +1 -1
- {winrt_windows_graphics_capture-2.1.0 → winrt_windows_graphics_capture-2.2.0}/winrt/windows/graphics/capture/__init__.py +1 -1
- {winrt_windows_graphics_capture-2.1.0 → winrt_windows_graphics_capture-2.2.0}/winrt_Windows.Graphics.Capture.egg-info/PKG-INFO +11 -11
- winrt_windows_graphics_capture-2.2.0/winrt_Windows.Graphics.Capture.egg-info/requires.txt +11 -0
- winrt_windows_graphics_capture-2.1.0/all-requirements.txt +0 -10
- winrt_windows_graphics_capture-2.1.0/pywinrt-version.txt +0 -1
- winrt_windows_graphics_capture-2.1.0/winrt_Windows.Graphics.Capture.egg-info/requires.txt +0 -11
- {winrt_windows_graphics_capture-2.1.0 → winrt_windows_graphics_capture-2.2.0}/README.md +0 -0
- {winrt_windows_graphics_capture-2.1.0 → winrt_windows_graphics_capture-2.2.0}/setup.cfg +0 -0
- {winrt_windows_graphics_capture-2.1.0 → winrt_windows_graphics_capture-2.2.0}/setup.py +0 -0
- {winrt_windows_graphics_capture-2.1.0 → winrt_windows_graphics_capture-2.2.0}/winrt/windows/graphics/capture/py.typed +0 -0
- {winrt_windows_graphics_capture-2.1.0 → winrt_windows_graphics_capture-2.2.0}/winrt_Windows.Graphics.Capture.egg-info/SOURCES.txt +0 -0
- {winrt_windows_graphics_capture-2.1.0 → winrt_windows_graphics_capture-2.2.0}/winrt_Windows.Graphics.Capture.egg-info/dependency_links.txt +0 -0
- {winrt_windows_graphics_capture-2.1.0 → winrt_windows_graphics_capture-2.2.0}/winrt_Windows.Graphics.Capture.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Graphics.Capture
|
|
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,18 +10,18 @@ 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.Graphics[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.
|
|
20
|
-
Requires-Dist: winrt-Windows.Graphics.DirectX.Direct3D11[all]==2.
|
|
21
|
-
Requires-Dist: winrt-Windows.Security.Authorization.AppCapabilityAccess[all]==2.
|
|
22
|
-
Requires-Dist: winrt-Windows.System[all]==2.
|
|
23
|
-
Requires-Dist: winrt-Windows.UI[all]==2.
|
|
24
|
-
Requires-Dist: winrt-Windows.UI.Composition[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Graphics[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.2.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX.Direct3D11[all]==2.2.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Security.Authorization.AppCapabilityAccess[all]==2.2.0; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.System[all]==2.2.0; extra == "all"
|
|
23
|
+
Requires-Dist: winrt-Windows.UI[all]==2.2.0; extra == "all"
|
|
24
|
+
Requires-Dist: winrt-Windows.UI.Composition[all]==2.2.0; extra == "all"
|
|
25
25
|
|
|
26
26
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
27
27
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
|
+
|
|
3
|
+
winrt-Windows.Foundation[all]==2.2.0
|
|
4
|
+
winrt-Windows.Graphics[all]==2.2.0
|
|
5
|
+
winrt-Windows.Graphics.DirectX[all]==2.2.0
|
|
6
|
+
winrt-Windows.Graphics.DirectX.Direct3D11[all]==2.2.0
|
|
7
|
+
winrt-Windows.Security.Authorization.AppCapabilityAccess[all]==2.2.0
|
|
8
|
+
winrt-Windows.System[all]==2.2.0
|
|
9
|
+
winrt-Windows.UI[all]==2.2.0
|
|
10
|
+
winrt-Windows.UI.Composition[all]==2.2.0
|
|
@@ -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.Graphics.Capture.h"
|
|
4
4
|
|
|
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
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.Graphics.Capture.Direct3D11CaptureFrame", L"Close", 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::Capture
|
|
|
55
62
|
{
|
|
56
63
|
try
|
|
57
64
|
{
|
|
58
|
-
|
|
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.Capture.Direct3D11CaptureFrame", L"ContentSize");
|
|
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::Capture
|
|
|
74
88
|
{
|
|
75
89
|
try
|
|
76
90
|
{
|
|
77
|
-
|
|
91
|
+
static std::optional<bool> is_property_present{};
|
|
92
|
+
|
|
93
|
+
if (!is_property_present.has_value())
|
|
94
|
+
{
|
|
95
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFrame", L"Surface");
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (!is_property_present.value())
|
|
78
99
|
{
|
|
79
100
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
80
101
|
return nullptr;
|
|
@@ -93,7 +114,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
93
114
|
{
|
|
94
115
|
try
|
|
95
116
|
{
|
|
96
|
-
|
|
117
|
+
static std::optional<bool> is_property_present{};
|
|
118
|
+
|
|
119
|
+
if (!is_property_present.has_value())
|
|
120
|
+
{
|
|
121
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFrame", L"SystemRelativeTime");
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
if (!is_property_present.value())
|
|
97
125
|
{
|
|
98
126
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
99
127
|
return nullptr;
|
|
@@ -207,7 +235,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
207
235
|
{
|
|
208
236
|
try
|
|
209
237
|
{
|
|
210
|
-
|
|
238
|
+
static std::optional<bool> is_overload_present{};
|
|
239
|
+
|
|
240
|
+
if (!is_overload_present.has_value())
|
|
241
|
+
{
|
|
242
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"Close", 0);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
if (!is_overload_present.value())
|
|
211
246
|
{
|
|
212
247
|
py::set_arg_count_version_error(0);
|
|
213
248
|
return nullptr;
|
|
@@ -237,7 +272,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
237
272
|
{
|
|
238
273
|
try
|
|
239
274
|
{
|
|
240
|
-
|
|
275
|
+
static std::optional<bool> is_overload_present{};
|
|
276
|
+
|
|
277
|
+
if (!is_overload_present.has_value())
|
|
278
|
+
{
|
|
279
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"Create", 4);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
if (!is_overload_present.value())
|
|
241
283
|
{
|
|
242
284
|
py::set_arg_count_version_error(4);
|
|
243
285
|
return nullptr;
|
|
@@ -271,7 +313,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
271
313
|
{
|
|
272
314
|
try
|
|
273
315
|
{
|
|
274
|
-
|
|
316
|
+
static std::optional<bool> is_overload_present{};
|
|
317
|
+
|
|
318
|
+
if (!is_overload_present.has_value())
|
|
319
|
+
{
|
|
320
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"CreateCaptureSession", 1);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
if (!is_overload_present.value())
|
|
275
324
|
{
|
|
276
325
|
py::set_arg_count_version_error(1);
|
|
277
326
|
return nullptr;
|
|
@@ -302,7 +351,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
302
351
|
{
|
|
303
352
|
try
|
|
304
353
|
{
|
|
305
|
-
|
|
354
|
+
static std::optional<bool> is_overload_present{};
|
|
355
|
+
|
|
356
|
+
if (!is_overload_present.has_value())
|
|
357
|
+
{
|
|
358
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"CreateFreeThreaded", 4);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
if (!is_overload_present.value())
|
|
306
362
|
{
|
|
307
363
|
py::set_arg_count_version_error(4);
|
|
308
364
|
return nullptr;
|
|
@@ -336,7 +392,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
336
392
|
{
|
|
337
393
|
try
|
|
338
394
|
{
|
|
339
|
-
|
|
395
|
+
static std::optional<bool> is_overload_present{};
|
|
396
|
+
|
|
397
|
+
if (!is_overload_present.has_value())
|
|
398
|
+
{
|
|
399
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"Recreate", 4);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
if (!is_overload_present.value())
|
|
340
403
|
{
|
|
341
404
|
py::set_arg_count_version_error(4);
|
|
342
405
|
return nullptr;
|
|
@@ -371,7 +434,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
371
434
|
{
|
|
372
435
|
try
|
|
373
436
|
{
|
|
374
|
-
|
|
437
|
+
static std::optional<bool> is_overload_present{};
|
|
438
|
+
|
|
439
|
+
if (!is_overload_present.has_value())
|
|
440
|
+
{
|
|
441
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"TryGetNextFrame", 0);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
if (!is_overload_present.value())
|
|
375
445
|
{
|
|
376
446
|
py::set_arg_count_version_error(0);
|
|
377
447
|
return nullptr;
|
|
@@ -396,7 +466,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
396
466
|
{
|
|
397
467
|
try
|
|
398
468
|
{
|
|
399
|
-
|
|
469
|
+
static std::optional<bool> is_property_present{};
|
|
470
|
+
|
|
471
|
+
if (!is_property_present.has_value())
|
|
472
|
+
{
|
|
473
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"DispatcherQueue");
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
if (!is_property_present.value())
|
|
400
477
|
{
|
|
401
478
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
402
479
|
return nullptr;
|
|
@@ -415,7 +492,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
415
492
|
{
|
|
416
493
|
try
|
|
417
494
|
{
|
|
418
|
-
|
|
495
|
+
static std::optional<bool> is_event_present{};
|
|
496
|
+
|
|
497
|
+
if (!is_event_present.has_value())
|
|
498
|
+
{
|
|
499
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"FrameArrived");
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
if (!is_event_present.value())
|
|
419
503
|
{
|
|
420
504
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
421
505
|
return nullptr;
|
|
@@ -436,7 +520,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
436
520
|
{
|
|
437
521
|
try
|
|
438
522
|
{
|
|
439
|
-
|
|
523
|
+
static std::optional<bool> is_event_present{};
|
|
524
|
+
|
|
525
|
+
if (!is_event_present.has_value())
|
|
526
|
+
{
|
|
527
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"FrameArrived");
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
if (!is_event_present.value())
|
|
440
531
|
{
|
|
441
532
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
442
533
|
return nullptr;
|
|
@@ -575,7 +666,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
575
666
|
{
|
|
576
667
|
try
|
|
577
668
|
{
|
|
578
|
-
|
|
669
|
+
static std::optional<bool> is_overload_present{};
|
|
670
|
+
|
|
671
|
+
if (!is_overload_present.has_value())
|
|
672
|
+
{
|
|
673
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.GraphicsCaptureAccess", L"RequestAccessAsync", 1);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
if (!is_overload_present.value())
|
|
579
677
|
{
|
|
580
678
|
py::set_arg_count_version_error(1);
|
|
581
679
|
return nullptr;
|
|
@@ -671,7 +769,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
671
769
|
{
|
|
672
770
|
try
|
|
673
771
|
{
|
|
674
|
-
|
|
772
|
+
static std::optional<bool> is_overload_present{};
|
|
773
|
+
|
|
774
|
+
if (!is_overload_present.has_value())
|
|
775
|
+
{
|
|
776
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.GraphicsCaptureItem", L"CreateFromVisual", 1);
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
if (!is_overload_present.value())
|
|
675
780
|
{
|
|
676
781
|
py::set_arg_count_version_error(1);
|
|
677
782
|
return nullptr;
|
|
@@ -702,7 +807,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
702
807
|
{
|
|
703
808
|
try
|
|
704
809
|
{
|
|
705
|
-
|
|
810
|
+
static std::optional<bool> is_overload_present{};
|
|
811
|
+
|
|
812
|
+
if (!is_overload_present.has_value())
|
|
813
|
+
{
|
|
814
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.GraphicsCaptureItem", L"TryCreateFromDisplayId", 1);
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
if (!is_overload_present.value())
|
|
706
818
|
{
|
|
707
819
|
py::set_arg_count_version_error(1);
|
|
708
820
|
return nullptr;
|
|
@@ -733,7 +845,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
733
845
|
{
|
|
734
846
|
try
|
|
735
847
|
{
|
|
736
|
-
|
|
848
|
+
static std::optional<bool> is_overload_present{};
|
|
849
|
+
|
|
850
|
+
if (!is_overload_present.has_value())
|
|
851
|
+
{
|
|
852
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.GraphicsCaptureItem", L"TryCreateFromWindowId", 1);
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
if (!is_overload_present.value())
|
|
737
856
|
{
|
|
738
857
|
py::set_arg_count_version_error(1);
|
|
739
858
|
return nullptr;
|
|
@@ -760,7 +879,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
760
879
|
{
|
|
761
880
|
try
|
|
762
881
|
{
|
|
763
|
-
|
|
882
|
+
static std::optional<bool> is_property_present{};
|
|
883
|
+
|
|
884
|
+
if (!is_property_present.has_value())
|
|
885
|
+
{
|
|
886
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureItem", L"DisplayName");
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
if (!is_property_present.value())
|
|
764
890
|
{
|
|
765
891
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
766
892
|
return nullptr;
|
|
@@ -779,7 +905,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
779
905
|
{
|
|
780
906
|
try
|
|
781
907
|
{
|
|
782
|
-
|
|
908
|
+
static std::optional<bool> is_property_present{};
|
|
909
|
+
|
|
910
|
+
if (!is_property_present.has_value())
|
|
911
|
+
{
|
|
912
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureItem", L"Size");
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
if (!is_property_present.value())
|
|
783
916
|
{
|
|
784
917
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
785
918
|
return nullptr;
|
|
@@ -798,7 +931,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
798
931
|
{
|
|
799
932
|
try
|
|
800
933
|
{
|
|
801
|
-
|
|
934
|
+
static std::optional<bool> is_event_present{};
|
|
935
|
+
|
|
936
|
+
if (!is_event_present.has_value())
|
|
937
|
+
{
|
|
938
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Graphics.Capture.GraphicsCaptureItem", L"Closed");
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
if (!is_event_present.value())
|
|
802
942
|
{
|
|
803
943
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
804
944
|
return nullptr;
|
|
@@ -819,7 +959,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
819
959
|
{
|
|
820
960
|
try
|
|
821
961
|
{
|
|
822
|
-
|
|
962
|
+
static std::optional<bool> is_event_present{};
|
|
963
|
+
|
|
964
|
+
if (!is_event_present.has_value())
|
|
965
|
+
{
|
|
966
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Graphics.Capture.GraphicsCaptureItem", L"Closed");
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
if (!is_event_present.value())
|
|
823
970
|
{
|
|
824
971
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
825
972
|
return nullptr;
|
|
@@ -933,7 +1080,7 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
933
1080
|
{
|
|
934
1081
|
try
|
|
935
1082
|
{
|
|
936
|
-
winrt::Windows::Graphics::Capture::GraphicsCapturePicker instance{
|
|
1083
|
+
winrt::Windows::Graphics::Capture::GraphicsCapturePicker instance{};
|
|
937
1084
|
return py::wrap(instance, type);
|
|
938
1085
|
}
|
|
939
1086
|
catch (...)
|
|
@@ -965,7 +1112,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
965
1112
|
{
|
|
966
1113
|
try
|
|
967
1114
|
{
|
|
968
|
-
|
|
1115
|
+
static std::optional<bool> is_overload_present{};
|
|
1116
|
+
|
|
1117
|
+
if (!is_overload_present.has_value())
|
|
1118
|
+
{
|
|
1119
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.GraphicsCapturePicker", L"PickSingleItemAsync", 0);
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
if (!is_overload_present.value())
|
|
969
1123
|
{
|
|
970
1124
|
py::set_arg_count_version_error(0);
|
|
971
1125
|
return nullptr;
|
|
@@ -1061,7 +1215,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
1061
1215
|
{
|
|
1062
1216
|
try
|
|
1063
1217
|
{
|
|
1064
|
-
|
|
1218
|
+
static std::optional<bool> is_overload_present{};
|
|
1219
|
+
|
|
1220
|
+
if (!is_overload_present.has_value())
|
|
1221
|
+
{
|
|
1222
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"Close", 0);
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
if (!is_overload_present.value())
|
|
1065
1226
|
{
|
|
1066
1227
|
py::set_arg_count_version_error(0);
|
|
1067
1228
|
return nullptr;
|
|
@@ -1091,7 +1252,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
1091
1252
|
{
|
|
1092
1253
|
try
|
|
1093
1254
|
{
|
|
1094
|
-
|
|
1255
|
+
static std::optional<bool> is_overload_present{};
|
|
1256
|
+
|
|
1257
|
+
if (!is_overload_present.has_value())
|
|
1258
|
+
{
|
|
1259
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"IsSupported", 0);
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
if (!is_overload_present.value())
|
|
1095
1263
|
{
|
|
1096
1264
|
py::set_arg_count_version_error(0);
|
|
1097
1265
|
return nullptr;
|
|
@@ -1120,7 +1288,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
1120
1288
|
{
|
|
1121
1289
|
try
|
|
1122
1290
|
{
|
|
1123
|
-
|
|
1291
|
+
static std::optional<bool> is_overload_present{};
|
|
1292
|
+
|
|
1293
|
+
if (!is_overload_present.has_value())
|
|
1294
|
+
{
|
|
1295
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"StartCapture", 0);
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
if (!is_overload_present.value())
|
|
1124
1299
|
{
|
|
1125
1300
|
py::set_arg_count_version_error(0);
|
|
1126
1301
|
return nullptr;
|
|
@@ -1146,7 +1321,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
1146
1321
|
{
|
|
1147
1322
|
try
|
|
1148
1323
|
{
|
|
1149
|
-
|
|
1324
|
+
static std::optional<bool> is_property_present{};
|
|
1325
|
+
|
|
1326
|
+
if (!is_property_present.has_value())
|
|
1327
|
+
{
|
|
1328
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"IsCursorCaptureEnabled");
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
if (!is_property_present.value())
|
|
1150
1332
|
{
|
|
1151
1333
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1152
1334
|
return nullptr;
|
|
@@ -1171,7 +1353,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
1171
1353
|
|
|
1172
1354
|
try
|
|
1173
1355
|
{
|
|
1174
|
-
|
|
1356
|
+
static std::optional<bool> is_property_present{};
|
|
1357
|
+
|
|
1358
|
+
if (!is_property_present.has_value())
|
|
1359
|
+
{
|
|
1360
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"IsCursorCaptureEnabled");
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
if (!is_property_present.value())
|
|
1175
1364
|
{
|
|
1176
1365
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1177
1366
|
return -1;
|
|
@@ -1193,7 +1382,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
1193
1382
|
{
|
|
1194
1383
|
try
|
|
1195
1384
|
{
|
|
1196
|
-
|
|
1385
|
+
static std::optional<bool> is_property_present{};
|
|
1386
|
+
|
|
1387
|
+
if (!is_property_present.has_value())
|
|
1388
|
+
{
|
|
1389
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"IsBorderRequired");
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
if (!is_property_present.value())
|
|
1197
1393
|
{
|
|
1198
1394
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1199
1395
|
return nullptr;
|
|
@@ -1218,7 +1414,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
1218
1414
|
|
|
1219
1415
|
try
|
|
1220
1416
|
{
|
|
1221
|
-
|
|
1417
|
+
static std::optional<bool> is_property_present{};
|
|
1418
|
+
|
|
1419
|
+
if (!is_property_present.has_value())
|
|
1420
|
+
{
|
|
1421
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"IsBorderRequired");
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
if (!is_property_present.value())
|
|
1222
1425
|
{
|
|
1223
1426
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1224
1427
|
return -1;
|
|
@@ -1381,7 +1584,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_graphics_capture(void) noexcept
|
|
|
1381
1584
|
return nullptr;
|
|
1382
1585
|
}
|
|
1383
1586
|
|
|
1384
|
-
|
|
1587
|
+
py::pytype_handle Direct3D11CaptureFrame_type{py::register_python_type(module.get(), &type_spec_Direct3D11CaptureFrame, object_bases.get(), nullptr)};
|
|
1588
|
+
if (!Direct3D11CaptureFrame_type)
|
|
1385
1589
|
{
|
|
1386
1590
|
return nullptr;
|
|
1387
1591
|
}
|
|
@@ -1392,7 +1596,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_graphics_capture(void) noexcept
|
|
|
1392
1596
|
return nullptr;
|
|
1393
1597
|
}
|
|
1394
1598
|
|
|
1395
|
-
|
|
1599
|
+
py::pytype_handle Direct3D11CaptureFramePool_type{py::register_python_type(module.get(), &type_spec_Direct3D11CaptureFramePool, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_Direct3D11CaptureFramePool_Static.get()))};
|
|
1600
|
+
if (!Direct3D11CaptureFramePool_type)
|
|
1396
1601
|
{
|
|
1397
1602
|
return nullptr;
|
|
1398
1603
|
}
|
|
@@ -1403,7 +1608,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_graphics_capture(void) noexcept
|
|
|
1403
1608
|
return nullptr;
|
|
1404
1609
|
}
|
|
1405
1610
|
|
|
1406
|
-
|
|
1611
|
+
py::pytype_handle GraphicsCaptureAccess_type{py::register_python_type(module.get(), &type_spec_GraphicsCaptureAccess, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_GraphicsCaptureAccess_Static.get()))};
|
|
1612
|
+
if (!GraphicsCaptureAccess_type)
|
|
1407
1613
|
{
|
|
1408
1614
|
return nullptr;
|
|
1409
1615
|
}
|
|
@@ -1414,12 +1620,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_graphics_capture(void) noexcept
|
|
|
1414
1620
|
return nullptr;
|
|
1415
1621
|
}
|
|
1416
1622
|
|
|
1417
|
-
|
|
1623
|
+
py::pytype_handle GraphicsCaptureItem_type{py::register_python_type(module.get(), &type_spec_GraphicsCaptureItem, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_GraphicsCaptureItem_Static.get()))};
|
|
1624
|
+
if (!GraphicsCaptureItem_type)
|
|
1418
1625
|
{
|
|
1419
1626
|
return nullptr;
|
|
1420
1627
|
}
|
|
1421
1628
|
|
|
1422
|
-
|
|
1629
|
+
py::pytype_handle GraphicsCapturePicker_type{py::register_python_type(module.get(), &type_spec_GraphicsCapturePicker, object_bases.get(), nullptr)};
|
|
1630
|
+
if (!GraphicsCapturePicker_type)
|
|
1423
1631
|
{
|
|
1424
1632
|
return nullptr;
|
|
1425
1633
|
}
|
|
@@ -1430,7 +1638,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_graphics_capture(void) noexcept
|
|
|
1430
1638
|
return nullptr;
|
|
1431
1639
|
}
|
|
1432
1640
|
|
|
1433
|
-
|
|
1641
|
+
py::pytype_handle GraphicsCaptureSession_type{py::register_python_type(module.get(), &type_spec_GraphicsCaptureSession, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_GraphicsCaptureSession_Static.get()))};
|
|
1642
|
+
if (!GraphicsCaptureSession_type)
|
|
1434
1643
|
{
|
|
1435
1644
|
return nullptr;
|
|
1436
1645
|
}
|
{winrt_windows_graphics_capture-2.1.0 → winrt_windows_graphics_capture-2.2.0}/pyproject.toml
RENAMED
|
@@ -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
|
{winrt_windows_graphics_capture-2.1.0 → winrt_windows_graphics_capture-2.2.0}/requirements.txt
RENAMED
|
@@ -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.Graphics.Capture
|
|
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,18 +10,18 @@ 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.Graphics[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.
|
|
20
|
-
Requires-Dist: winrt-Windows.Graphics.DirectX.Direct3D11[all]==2.
|
|
21
|
-
Requires-Dist: winrt-Windows.Security.Authorization.AppCapabilityAccess[all]==2.
|
|
22
|
-
Requires-Dist: winrt-Windows.System[all]==2.
|
|
23
|
-
Requires-Dist: winrt-Windows.UI[all]==2.
|
|
24
|
-
Requires-Dist: winrt-Windows.UI.Composition[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Graphics[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.2.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX.Direct3D11[all]==2.2.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Security.Authorization.AppCapabilityAccess[all]==2.2.0; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.System[all]==2.2.0; extra == "all"
|
|
23
|
+
Requires-Dist: winrt-Windows.UI[all]==2.2.0; extra == "all"
|
|
24
|
+
Requires-Dist: winrt-Windows.UI.Composition[all]==2.2.0; extra == "all"
|
|
25
25
|
|
|
26
26
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
27
27
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
winrt-runtime==2.2.0
|
|
2
|
+
|
|
3
|
+
[all]
|
|
4
|
+
winrt-Windows.Foundation[all]==2.2.0
|
|
5
|
+
winrt-Windows.Graphics[all]==2.2.0
|
|
6
|
+
winrt-Windows.Graphics.DirectX[all]==2.2.0
|
|
7
|
+
winrt-Windows.Graphics.DirectX.Direct3D11[all]==2.2.0
|
|
8
|
+
winrt-Windows.Security.Authorization.AppCapabilityAccess[all]==2.2.0
|
|
9
|
+
winrt-Windows.System[all]==2.2.0
|
|
10
|
+
winrt-Windows.UI[all]==2.2.0
|
|
11
|
+
winrt-Windows.UI.Composition[all]==2.2.0
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
|
-
|
|
3
|
-
winrt-Windows.Foundation[all]==2.1.0
|
|
4
|
-
winrt-Windows.Graphics[all]==2.1.0
|
|
5
|
-
winrt-Windows.Graphics.DirectX[all]==2.1.0
|
|
6
|
-
winrt-Windows.Graphics.DirectX.Direct3D11[all]==2.1.0
|
|
7
|
-
winrt-Windows.Security.Authorization.AppCapabilityAccess[all]==2.1.0
|
|
8
|
-
winrt-Windows.System[all]==2.1.0
|
|
9
|
-
winrt-Windows.UI[all]==2.1.0
|
|
10
|
-
winrt-Windows.UI.Composition[all]==2.1.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.1.0
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
winrt-runtime==2.1.0
|
|
2
|
-
|
|
3
|
-
[all]
|
|
4
|
-
winrt-Windows.Foundation[all]==2.1.0
|
|
5
|
-
winrt-Windows.Graphics[all]==2.1.0
|
|
6
|
-
winrt-Windows.Graphics.DirectX[all]==2.1.0
|
|
7
|
-
winrt-Windows.Graphics.DirectX.Direct3D11[all]==2.1.0
|
|
8
|
-
winrt-Windows.Security.Authorization.AppCapabilityAccess[all]==2.1.0
|
|
9
|
-
winrt-Windows.System[all]==2.1.0
|
|
10
|
-
winrt-Windows.UI[all]==2.1.0
|
|
11
|
-
winrt-Windows.UI.Composition[all]==2.1.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|