winrt-Windows.Graphics.Capture 2.0.1__tar.gz → 2.1.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.0.1 → winrt_windows_graphics_capture-2.1.0}/PKG-INFO +10 -10
- winrt_windows_graphics_capture-2.1.0/all-requirements.txt +10 -0
- {winrt_windows_graphics_capture-2.0.1 → winrt_windows_graphics_capture-2.1.0}/py.Windows.Graphics.Capture.cpp +213 -233
- winrt_windows_graphics_capture-2.1.0/pywinrt-version.txt +1 -0
- {winrt_windows_graphics_capture-2.0.1 → winrt_windows_graphics_capture-2.1.0}/requirements.txt +2 -2
- winrt_windows_graphics_capture-2.1.0/winrt/_winrt_windows_graphics_capture.pyi +111 -0
- {winrt_windows_graphics_capture-2.0.1 → winrt_windows_graphics_capture-2.1.0}/winrt/windows/graphics/capture/__init__.py +1 -1
- {winrt_windows_graphics_capture-2.0.1 → winrt_windows_graphics_capture-2.1.0}/winrt_Windows.Graphics.Capture.egg-info/PKG-INFO +10 -10
- winrt_windows_graphics_capture-2.1.0/winrt_Windows.Graphics.Capture.egg-info/requires.txt +11 -0
- winrt_windows_graphics_capture-2.0.1/all-requirements.txt +0 -10
- winrt_windows_graphics_capture-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_graphics_capture-2.0.1/winrt/_winrt_windows_graphics_capture.pyi +0 -112
- winrt_windows_graphics_capture-2.0.1/winrt_Windows.Graphics.Capture.egg-info/requires.txt +0 -11
- {winrt_windows_graphics_capture-2.0.1 → winrt_windows_graphics_capture-2.1.0}/README.md +0 -0
- {winrt_windows_graphics_capture-2.0.1 → winrt_windows_graphics_capture-2.1.0}/pyproject.toml +0 -0
- {winrt_windows_graphics_capture-2.0.1 → winrt_windows_graphics_capture-2.1.0}/setup.cfg +0 -0
- {winrt_windows_graphics_capture-2.0.1 → winrt_windows_graphics_capture-2.1.0}/setup.py +0 -0
- {winrt_windows_graphics_capture-2.0.1 → winrt_windows_graphics_capture-2.1.0}/winrt/windows/graphics/capture/py.typed +0 -0
- {winrt_windows_graphics_capture-2.0.1 → winrt_windows_graphics_capture-2.1.0}/winrt_Windows.Graphics.Capture.egg-info/SOURCES.txt +0 -0
- {winrt_windows_graphics_capture-2.0.1 → winrt_windows_graphics_capture-2.1.0}/winrt_Windows.Graphics.Capture.egg-info/dependency_links.txt +0 -0
- {winrt_windows_graphics_capture-2.0.1 → winrt_windows_graphics_capture-2.1.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.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,16 +12,16 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.Graphics[all]==2.0
|
|
19
|
-
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.0
|
|
20
|
-
Requires-Dist: winrt-Windows.Graphics.DirectX.Direct3D11[all]==2.0
|
|
21
|
-
Requires-Dist: winrt-Windows.Security.Authorization.AppCapabilityAccess[all]==2.0
|
|
22
|
-
Requires-Dist: winrt-Windows.System[all]==2.0
|
|
23
|
-
Requires-Dist: winrt-Windows.UI[all]==2.0
|
|
24
|
-
Requires-Dist: winrt-Windows.UI.Composition[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Graphics[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.1.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX.Direct3D11[all]==2.1.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Security.Authorization.AppCapabilityAccess[all]==2.1.0; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.System[all]==2.1.0; extra == "all"
|
|
23
|
+
Requires-Dist: winrt-Windows.UI[all]==2.1.0; extra == "all"
|
|
24
|
+
Requires-Dist: winrt-Windows.UI.Composition[all]==2.1.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.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,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Graphics.Capture.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::Graphics::Capture
|
|
7
6
|
{
|
|
8
7
|
// ----- Direct3D11CaptureFrame class --------------------
|
|
@@ -28,14 +27,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
28
27
|
|
|
29
28
|
if (arg_count == 0)
|
|
30
29
|
{
|
|
31
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFrame", L"Close", 0))
|
|
32
|
-
{
|
|
33
|
-
py::set_arg_count_version_error(0);
|
|
34
|
-
return nullptr;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
30
|
try
|
|
38
31
|
{
|
|
32
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFrame", L"Close", 0))
|
|
33
|
+
{
|
|
34
|
+
py::set_arg_count_version_error(0);
|
|
35
|
+
return nullptr;
|
|
36
|
+
}
|
|
37
|
+
|
|
39
38
|
self->obj.Close();
|
|
40
39
|
Py_RETURN_NONE;
|
|
41
40
|
}
|
|
@@ -54,14 +53,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
54
53
|
|
|
55
54
|
static PyObject* Direct3D11CaptureFrame_get_ContentSize(py::wrapper::Windows::Graphics::Capture::Direct3D11CaptureFrame* self, void* /*unused*/) noexcept
|
|
56
55
|
{
|
|
57
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFrame", L"ContentSize"))
|
|
58
|
-
{
|
|
59
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
60
|
-
return nullptr;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
56
|
try
|
|
64
57
|
{
|
|
58
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFrame", L"ContentSize"))
|
|
59
|
+
{
|
|
60
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
61
|
+
return nullptr;
|
|
62
|
+
}
|
|
63
|
+
|
|
65
64
|
return py::convert(self->obj.ContentSize());
|
|
66
65
|
}
|
|
67
66
|
catch (...)
|
|
@@ -73,14 +72,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
73
72
|
|
|
74
73
|
static PyObject* Direct3D11CaptureFrame_get_Surface(py::wrapper::Windows::Graphics::Capture::Direct3D11CaptureFrame* self, void* /*unused*/) noexcept
|
|
75
74
|
{
|
|
76
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFrame", L"Surface"))
|
|
77
|
-
{
|
|
78
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
79
|
-
return nullptr;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
75
|
try
|
|
83
76
|
{
|
|
77
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFrame", L"Surface"))
|
|
78
|
+
{
|
|
79
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
80
|
+
return nullptr;
|
|
81
|
+
}
|
|
82
|
+
|
|
84
83
|
return py::convert(self->obj.Surface());
|
|
85
84
|
}
|
|
86
85
|
catch (...)
|
|
@@ -92,14 +91,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
92
91
|
|
|
93
92
|
static PyObject* Direct3D11CaptureFrame_get_SystemRelativeTime(py::wrapper::Windows::Graphics::Capture::Direct3D11CaptureFrame* self, void* /*unused*/) noexcept
|
|
94
93
|
{
|
|
95
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFrame", L"SystemRelativeTime"))
|
|
96
|
-
{
|
|
97
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
98
|
-
return nullptr;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
94
|
try
|
|
102
95
|
{
|
|
96
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFrame", L"SystemRelativeTime"))
|
|
97
|
+
{
|
|
98
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
99
|
+
return nullptr;
|
|
100
|
+
}
|
|
101
|
+
|
|
103
102
|
return py::convert(self->obj.SystemRelativeTime());
|
|
104
103
|
}
|
|
105
104
|
catch (...)
|
|
@@ -157,7 +156,7 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
157
156
|
{ "_assign_array_", _assign_array_Direct3D11CaptureFrame, METH_O | METH_STATIC, nullptr },
|
|
158
157
|
{ "_from", reinterpret_cast<PyCFunction>(_from_Direct3D11CaptureFrame), METH_O | METH_STATIC, nullptr },
|
|
159
158
|
{ "__enter__", reinterpret_cast<PyCFunction>(_enter_Direct3D11CaptureFrame), METH_NOARGS, nullptr },
|
|
160
|
-
{ "__exit__",
|
|
159
|
+
{ "__exit__", reinterpret_cast<PyCFunction>(_exit_Direct3D11CaptureFrame), METH_VARARGS, nullptr },
|
|
161
160
|
{ }
|
|
162
161
|
};
|
|
163
162
|
|
|
@@ -168,23 +167,20 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
168
167
|
{ }
|
|
169
168
|
};
|
|
170
169
|
|
|
171
|
-
static PyType_Slot _type_slots_Direct3D11CaptureFrame[] =
|
|
172
|
-
{
|
|
170
|
+
static PyType_Slot _type_slots_Direct3D11CaptureFrame[] = {
|
|
173
171
|
{ Py_tp_new, reinterpret_cast<void*>(_new_Direct3D11CaptureFrame) },
|
|
174
172
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_Direct3D11CaptureFrame) },
|
|
175
173
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_Direct3D11CaptureFrame) },
|
|
176
174
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_Direct3D11CaptureFrame) },
|
|
177
|
-
{ }
|
|
175
|
+
{ }
|
|
178
176
|
};
|
|
179
177
|
|
|
180
|
-
static PyType_Spec type_spec_Direct3D11CaptureFrame =
|
|
181
|
-
{
|
|
178
|
+
static PyType_Spec type_spec_Direct3D11CaptureFrame = {
|
|
182
179
|
"winrt._winrt_windows_graphics_capture.Direct3D11CaptureFrame",
|
|
183
180
|
sizeof(py::wrapper::Windows::Graphics::Capture::Direct3D11CaptureFrame),
|
|
184
181
|
0,
|
|
185
182
|
Py_TPFLAGS_DEFAULT,
|
|
186
|
-
_type_slots_Direct3D11CaptureFrame
|
|
187
|
-
};
|
|
183
|
+
_type_slots_Direct3D11CaptureFrame};
|
|
188
184
|
|
|
189
185
|
// ----- Direct3D11CaptureFramePool class --------------------
|
|
190
186
|
|
|
@@ -209,14 +205,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
209
205
|
|
|
210
206
|
if (arg_count == 0)
|
|
211
207
|
{
|
|
212
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"Close", 0))
|
|
213
|
-
{
|
|
214
|
-
py::set_arg_count_version_error(0);
|
|
215
|
-
return nullptr;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
208
|
try
|
|
219
209
|
{
|
|
210
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"Close", 0))
|
|
211
|
+
{
|
|
212
|
+
py::set_arg_count_version_error(0);
|
|
213
|
+
return nullptr;
|
|
214
|
+
}
|
|
215
|
+
|
|
220
216
|
self->obj.Close();
|
|
221
217
|
Py_RETURN_NONE;
|
|
222
218
|
}
|
|
@@ -239,14 +235,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
239
235
|
|
|
240
236
|
if (arg_count == 4)
|
|
241
237
|
{
|
|
242
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"Create", 4))
|
|
243
|
-
{
|
|
244
|
-
py::set_arg_count_version_error(4);
|
|
245
|
-
return nullptr;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
238
|
try
|
|
249
239
|
{
|
|
240
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"Create", 4))
|
|
241
|
+
{
|
|
242
|
+
py::set_arg_count_version_error(4);
|
|
243
|
+
return nullptr;
|
|
244
|
+
}
|
|
245
|
+
|
|
250
246
|
auto param0 = py::convert_to<winrt::Windows::Graphics::DirectX::Direct3D11::IDirect3DDevice>(args, 0);
|
|
251
247
|
auto param1 = py::convert_to<winrt::Windows::Graphics::DirectX::DirectXPixelFormat>(args, 1);
|
|
252
248
|
auto param2 = py::convert_to<int32_t>(args, 2);
|
|
@@ -273,14 +269,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
273
269
|
|
|
274
270
|
if (arg_count == 1)
|
|
275
271
|
{
|
|
276
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"CreateCaptureSession", 1))
|
|
277
|
-
{
|
|
278
|
-
py::set_arg_count_version_error(1);
|
|
279
|
-
return nullptr;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
272
|
try
|
|
283
273
|
{
|
|
274
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"CreateCaptureSession", 1))
|
|
275
|
+
{
|
|
276
|
+
py::set_arg_count_version_error(1);
|
|
277
|
+
return nullptr;
|
|
278
|
+
}
|
|
279
|
+
|
|
284
280
|
auto param0 = py::convert_to<winrt::Windows::Graphics::Capture::GraphicsCaptureItem>(args, 0);
|
|
285
281
|
|
|
286
282
|
return py::convert(self->obj.CreateCaptureSession(param0));
|
|
@@ -304,14 +300,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
304
300
|
|
|
305
301
|
if (arg_count == 4)
|
|
306
302
|
{
|
|
307
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"CreateFreeThreaded", 4))
|
|
308
|
-
{
|
|
309
|
-
py::set_arg_count_version_error(4);
|
|
310
|
-
return nullptr;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
303
|
try
|
|
314
304
|
{
|
|
305
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"CreateFreeThreaded", 4))
|
|
306
|
+
{
|
|
307
|
+
py::set_arg_count_version_error(4);
|
|
308
|
+
return nullptr;
|
|
309
|
+
}
|
|
310
|
+
|
|
315
311
|
auto param0 = py::convert_to<winrt::Windows::Graphics::DirectX::Direct3D11::IDirect3DDevice>(args, 0);
|
|
316
312
|
auto param1 = py::convert_to<winrt::Windows::Graphics::DirectX::DirectXPixelFormat>(args, 1);
|
|
317
313
|
auto param2 = py::convert_to<int32_t>(args, 2);
|
|
@@ -338,14 +334,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
338
334
|
|
|
339
335
|
if (arg_count == 4)
|
|
340
336
|
{
|
|
341
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"Recreate", 4))
|
|
342
|
-
{
|
|
343
|
-
py::set_arg_count_version_error(4);
|
|
344
|
-
return nullptr;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
337
|
try
|
|
348
338
|
{
|
|
339
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"Recreate", 4))
|
|
340
|
+
{
|
|
341
|
+
py::set_arg_count_version_error(4);
|
|
342
|
+
return nullptr;
|
|
343
|
+
}
|
|
344
|
+
|
|
349
345
|
auto param0 = py::convert_to<winrt::Windows::Graphics::DirectX::Direct3D11::IDirect3DDevice>(args, 0);
|
|
350
346
|
auto param1 = py::convert_to<winrt::Windows::Graphics::DirectX::DirectXPixelFormat>(args, 1);
|
|
351
347
|
auto param2 = py::convert_to<int32_t>(args, 2);
|
|
@@ -373,14 +369,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
373
369
|
|
|
374
370
|
if (arg_count == 0)
|
|
375
371
|
{
|
|
376
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"TryGetNextFrame", 0))
|
|
377
|
-
{
|
|
378
|
-
py::set_arg_count_version_error(0);
|
|
379
|
-
return nullptr;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
372
|
try
|
|
383
373
|
{
|
|
374
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"TryGetNextFrame", 0))
|
|
375
|
+
{
|
|
376
|
+
py::set_arg_count_version_error(0);
|
|
377
|
+
return nullptr;
|
|
378
|
+
}
|
|
379
|
+
|
|
384
380
|
return py::convert(self->obj.TryGetNextFrame());
|
|
385
381
|
}
|
|
386
382
|
catch (...)
|
|
@@ -398,14 +394,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
398
394
|
|
|
399
395
|
static PyObject* Direct3D11CaptureFramePool_get_DispatcherQueue(py::wrapper::Windows::Graphics::Capture::Direct3D11CaptureFramePool* self, void* /*unused*/) noexcept
|
|
400
396
|
{
|
|
401
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"DispatcherQueue"))
|
|
402
|
-
{
|
|
403
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
404
|
-
return nullptr;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
397
|
try
|
|
408
398
|
{
|
|
399
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"DispatcherQueue"))
|
|
400
|
+
{
|
|
401
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
402
|
+
return nullptr;
|
|
403
|
+
}
|
|
404
|
+
|
|
409
405
|
return py::convert(self->obj.DispatcherQueue());
|
|
410
406
|
}
|
|
411
407
|
catch (...)
|
|
@@ -417,14 +413,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
417
413
|
|
|
418
414
|
static PyObject* Direct3D11CaptureFramePool_add_FrameArrived(py::wrapper::Windows::Graphics::Capture::Direct3D11CaptureFramePool* self, PyObject* arg) noexcept
|
|
419
415
|
{
|
|
420
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"FrameArrived"))
|
|
421
|
-
{
|
|
422
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
423
|
-
return nullptr;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
416
|
try
|
|
427
417
|
{
|
|
418
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"FrameArrived"))
|
|
419
|
+
{
|
|
420
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
421
|
+
return nullptr;
|
|
422
|
+
}
|
|
423
|
+
|
|
428
424
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Graphics::Capture::Direct3D11CaptureFramePool, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
429
425
|
|
|
430
426
|
return py::convert(self->obj.FrameArrived(param0));
|
|
@@ -438,14 +434,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
438
434
|
|
|
439
435
|
static PyObject* Direct3D11CaptureFramePool_remove_FrameArrived(py::wrapper::Windows::Graphics::Capture::Direct3D11CaptureFramePool* self, PyObject* arg) noexcept
|
|
440
436
|
{
|
|
441
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"FrameArrived"))
|
|
442
|
-
{
|
|
443
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
444
|
-
return nullptr;
|
|
445
|
-
}
|
|
446
|
-
|
|
447
437
|
try
|
|
448
438
|
{
|
|
439
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFramePool", L"FrameArrived"))
|
|
440
|
+
{
|
|
441
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
442
|
+
return nullptr;
|
|
443
|
+
}
|
|
444
|
+
|
|
449
445
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
450
446
|
|
|
451
447
|
self->obj.FrameArrived(param0);
|
|
@@ -511,7 +507,7 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
511
507
|
{ "_assign_array_", _assign_array_Direct3D11CaptureFramePool, METH_O | METH_STATIC, nullptr },
|
|
512
508
|
{ "_from", reinterpret_cast<PyCFunction>(_from_Direct3D11CaptureFramePool), METH_O | METH_STATIC, nullptr },
|
|
513
509
|
{ "__enter__", reinterpret_cast<PyCFunction>(_enter_Direct3D11CaptureFramePool), METH_NOARGS, nullptr },
|
|
514
|
-
{ "__exit__",
|
|
510
|
+
{ "__exit__", reinterpret_cast<PyCFunction>(_exit_Direct3D11CaptureFramePool), METH_VARARGS, nullptr },
|
|
515
511
|
{ }
|
|
516
512
|
};
|
|
517
513
|
|
|
@@ -520,23 +516,20 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
520
516
|
{ }
|
|
521
517
|
};
|
|
522
518
|
|
|
523
|
-
static PyType_Slot _type_slots_Direct3D11CaptureFramePool[] =
|
|
524
|
-
{
|
|
519
|
+
static PyType_Slot _type_slots_Direct3D11CaptureFramePool[] = {
|
|
525
520
|
{ Py_tp_new, reinterpret_cast<void*>(_new_Direct3D11CaptureFramePool) },
|
|
526
521
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_Direct3D11CaptureFramePool) },
|
|
527
522
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_Direct3D11CaptureFramePool) },
|
|
528
523
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_Direct3D11CaptureFramePool) },
|
|
529
|
-
{ }
|
|
524
|
+
{ }
|
|
530
525
|
};
|
|
531
526
|
|
|
532
|
-
static PyType_Spec type_spec_Direct3D11CaptureFramePool =
|
|
533
|
-
{
|
|
527
|
+
static PyType_Spec type_spec_Direct3D11CaptureFramePool = {
|
|
534
528
|
"winrt._winrt_windows_graphics_capture.Direct3D11CaptureFramePool",
|
|
535
529
|
sizeof(py::wrapper::Windows::Graphics::Capture::Direct3D11CaptureFramePool),
|
|
536
530
|
0,
|
|
537
531
|
Py_TPFLAGS_DEFAULT,
|
|
538
|
-
_type_slots_Direct3D11CaptureFramePool
|
|
539
|
-
};
|
|
532
|
+
_type_slots_Direct3D11CaptureFramePool};
|
|
540
533
|
|
|
541
534
|
static PyGetSetDef getset_Direct3D11CaptureFramePool_Static[] = {
|
|
542
535
|
{ }
|
|
@@ -580,14 +573,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
580
573
|
|
|
581
574
|
if (arg_count == 1)
|
|
582
575
|
{
|
|
583
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.GraphicsCaptureAccess", L"RequestAccessAsync", 1))
|
|
584
|
-
{
|
|
585
|
-
py::set_arg_count_version_error(1);
|
|
586
|
-
return nullptr;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
576
|
try
|
|
590
577
|
{
|
|
578
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.GraphicsCaptureAccess", L"RequestAccessAsync", 1))
|
|
579
|
+
{
|
|
580
|
+
py::set_arg_count_version_error(1);
|
|
581
|
+
return nullptr;
|
|
582
|
+
}
|
|
583
|
+
|
|
591
584
|
auto param0 = py::convert_to<winrt::Windows::Graphics::Capture::GraphicsCaptureAccessKind>(args, 0);
|
|
592
585
|
|
|
593
586
|
return py::convert(winrt::Windows::Graphics::Capture::GraphicsCaptureAccess::RequestAccessAsync(param0));
|
|
@@ -613,22 +606,19 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
613
606
|
{ }
|
|
614
607
|
};
|
|
615
608
|
|
|
616
|
-
static PyType_Slot _type_slots_GraphicsCaptureAccess[] =
|
|
617
|
-
{
|
|
609
|
+
static PyType_Slot _type_slots_GraphicsCaptureAccess[] = {
|
|
618
610
|
{ Py_tp_new, reinterpret_cast<void*>(_new_GraphicsCaptureAccess) },
|
|
619
611
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_GraphicsCaptureAccess) },
|
|
620
612
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_GraphicsCaptureAccess) },
|
|
621
|
-
{ }
|
|
613
|
+
{ }
|
|
622
614
|
};
|
|
623
615
|
|
|
624
|
-
static PyType_Spec type_spec_GraphicsCaptureAccess =
|
|
625
|
-
{
|
|
616
|
+
static PyType_Spec type_spec_GraphicsCaptureAccess = {
|
|
626
617
|
"winrt._winrt_windows_graphics_capture.GraphicsCaptureAccess",
|
|
627
618
|
0,
|
|
628
619
|
0,
|
|
629
620
|
Py_TPFLAGS_DEFAULT,
|
|
630
|
-
_type_slots_GraphicsCaptureAccess
|
|
631
|
-
};
|
|
621
|
+
_type_slots_GraphicsCaptureAccess};
|
|
632
622
|
|
|
633
623
|
static PyGetSetDef getset_GraphicsCaptureAccess_Static[] = {
|
|
634
624
|
{ }
|
|
@@ -679,14 +669,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
679
669
|
|
|
680
670
|
if (arg_count == 1)
|
|
681
671
|
{
|
|
682
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.GraphicsCaptureItem", L"CreateFromVisual", 1))
|
|
683
|
-
{
|
|
684
|
-
py::set_arg_count_version_error(1);
|
|
685
|
-
return nullptr;
|
|
686
|
-
}
|
|
687
|
-
|
|
688
672
|
try
|
|
689
673
|
{
|
|
674
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.GraphicsCaptureItem", L"CreateFromVisual", 1))
|
|
675
|
+
{
|
|
676
|
+
py::set_arg_count_version_error(1);
|
|
677
|
+
return nullptr;
|
|
678
|
+
}
|
|
679
|
+
|
|
690
680
|
auto param0 = py::convert_to<winrt::Windows::UI::Composition::Visual>(args, 0);
|
|
691
681
|
|
|
692
682
|
return py::convert(winrt::Windows::Graphics::Capture::GraphicsCaptureItem::CreateFromVisual(param0));
|
|
@@ -710,14 +700,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
710
700
|
|
|
711
701
|
if (arg_count == 1)
|
|
712
702
|
{
|
|
713
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.GraphicsCaptureItem", L"TryCreateFromDisplayId", 1))
|
|
714
|
-
{
|
|
715
|
-
py::set_arg_count_version_error(1);
|
|
716
|
-
return nullptr;
|
|
717
|
-
}
|
|
718
|
-
|
|
719
703
|
try
|
|
720
704
|
{
|
|
705
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.GraphicsCaptureItem", L"TryCreateFromDisplayId", 1))
|
|
706
|
+
{
|
|
707
|
+
py::set_arg_count_version_error(1);
|
|
708
|
+
return nullptr;
|
|
709
|
+
}
|
|
710
|
+
|
|
721
711
|
auto param0 = py::convert_to<winrt::Windows::Graphics::DisplayId>(args, 0);
|
|
722
712
|
|
|
723
713
|
return py::convert(winrt::Windows::Graphics::Capture::GraphicsCaptureItem::TryCreateFromDisplayId(param0));
|
|
@@ -741,14 +731,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
741
731
|
|
|
742
732
|
if (arg_count == 1)
|
|
743
733
|
{
|
|
744
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.GraphicsCaptureItem", L"TryCreateFromWindowId", 1))
|
|
745
|
-
{
|
|
746
|
-
py::set_arg_count_version_error(1);
|
|
747
|
-
return nullptr;
|
|
748
|
-
}
|
|
749
|
-
|
|
750
734
|
try
|
|
751
735
|
{
|
|
736
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.GraphicsCaptureItem", L"TryCreateFromWindowId", 1))
|
|
737
|
+
{
|
|
738
|
+
py::set_arg_count_version_error(1);
|
|
739
|
+
return nullptr;
|
|
740
|
+
}
|
|
741
|
+
|
|
752
742
|
auto param0 = py::convert_to<winrt::Windows::UI::WindowId>(args, 0);
|
|
753
743
|
|
|
754
744
|
return py::convert(winrt::Windows::Graphics::Capture::GraphicsCaptureItem::TryCreateFromWindowId(param0));
|
|
@@ -768,14 +758,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
768
758
|
|
|
769
759
|
static PyObject* GraphicsCaptureItem_get_DisplayName(py::wrapper::Windows::Graphics::Capture::GraphicsCaptureItem* self, void* /*unused*/) noexcept
|
|
770
760
|
{
|
|
771
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureItem", L"DisplayName"))
|
|
772
|
-
{
|
|
773
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
774
|
-
return nullptr;
|
|
775
|
-
}
|
|
776
|
-
|
|
777
761
|
try
|
|
778
762
|
{
|
|
763
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureItem", L"DisplayName"))
|
|
764
|
+
{
|
|
765
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
766
|
+
return nullptr;
|
|
767
|
+
}
|
|
768
|
+
|
|
779
769
|
return py::convert(self->obj.DisplayName());
|
|
780
770
|
}
|
|
781
771
|
catch (...)
|
|
@@ -787,14 +777,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
787
777
|
|
|
788
778
|
static PyObject* GraphicsCaptureItem_get_Size(py::wrapper::Windows::Graphics::Capture::GraphicsCaptureItem* self, void* /*unused*/) noexcept
|
|
789
779
|
{
|
|
790
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureItem", L"Size"))
|
|
791
|
-
{
|
|
792
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
793
|
-
return nullptr;
|
|
794
|
-
}
|
|
795
|
-
|
|
796
780
|
try
|
|
797
781
|
{
|
|
782
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureItem", L"Size"))
|
|
783
|
+
{
|
|
784
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
785
|
+
return nullptr;
|
|
786
|
+
}
|
|
787
|
+
|
|
798
788
|
return py::convert(self->obj.Size());
|
|
799
789
|
}
|
|
800
790
|
catch (...)
|
|
@@ -806,14 +796,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
806
796
|
|
|
807
797
|
static PyObject* GraphicsCaptureItem_add_Closed(py::wrapper::Windows::Graphics::Capture::GraphicsCaptureItem* self, PyObject* arg) noexcept
|
|
808
798
|
{
|
|
809
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Graphics.Capture.GraphicsCaptureItem", L"Closed"))
|
|
810
|
-
{
|
|
811
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
812
|
-
return nullptr;
|
|
813
|
-
}
|
|
814
|
-
|
|
815
799
|
try
|
|
816
800
|
{
|
|
801
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Graphics.Capture.GraphicsCaptureItem", L"Closed"))
|
|
802
|
+
{
|
|
803
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
804
|
+
return nullptr;
|
|
805
|
+
}
|
|
806
|
+
|
|
817
807
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Graphics::Capture::GraphicsCaptureItem, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
818
808
|
|
|
819
809
|
return py::convert(self->obj.Closed(param0));
|
|
@@ -827,14 +817,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
827
817
|
|
|
828
818
|
static PyObject* GraphicsCaptureItem_remove_Closed(py::wrapper::Windows::Graphics::Capture::GraphicsCaptureItem* self, PyObject* arg) noexcept
|
|
829
819
|
{
|
|
830
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Graphics.Capture.GraphicsCaptureItem", L"Closed"))
|
|
831
|
-
{
|
|
832
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
833
|
-
return nullptr;
|
|
834
|
-
}
|
|
835
|
-
|
|
836
820
|
try
|
|
837
821
|
{
|
|
822
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Graphics.Capture.GraphicsCaptureItem", L"Closed"))
|
|
823
|
+
{
|
|
824
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
825
|
+
return nullptr;
|
|
826
|
+
}
|
|
827
|
+
|
|
838
828
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
839
829
|
|
|
840
830
|
self->obj.Closed(param0);
|
|
@@ -885,23 +875,20 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
885
875
|
{ }
|
|
886
876
|
};
|
|
887
877
|
|
|
888
|
-
static PyType_Slot _type_slots_GraphicsCaptureItem[] =
|
|
889
|
-
{
|
|
878
|
+
static PyType_Slot _type_slots_GraphicsCaptureItem[] = {
|
|
890
879
|
{ Py_tp_new, reinterpret_cast<void*>(_new_GraphicsCaptureItem) },
|
|
891
880
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_GraphicsCaptureItem) },
|
|
892
881
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_GraphicsCaptureItem) },
|
|
893
882
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_GraphicsCaptureItem) },
|
|
894
|
-
{ }
|
|
883
|
+
{ }
|
|
895
884
|
};
|
|
896
885
|
|
|
897
|
-
static PyType_Spec type_spec_GraphicsCaptureItem =
|
|
898
|
-
{
|
|
886
|
+
static PyType_Spec type_spec_GraphicsCaptureItem = {
|
|
899
887
|
"winrt._winrt_windows_graphics_capture.GraphicsCaptureItem",
|
|
900
888
|
sizeof(py::wrapper::Windows::Graphics::Capture::GraphicsCaptureItem),
|
|
901
889
|
0,
|
|
902
890
|
Py_TPFLAGS_DEFAULT,
|
|
903
|
-
_type_slots_GraphicsCaptureItem
|
|
904
|
-
};
|
|
891
|
+
_type_slots_GraphicsCaptureItem};
|
|
905
892
|
|
|
906
893
|
static PyGetSetDef getset_GraphicsCaptureItem_Static[] = {
|
|
907
894
|
{ }
|
|
@@ -976,14 +963,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
976
963
|
|
|
977
964
|
if (arg_count == 0)
|
|
978
965
|
{
|
|
979
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.GraphicsCapturePicker", L"PickSingleItemAsync", 0))
|
|
980
|
-
{
|
|
981
|
-
py::set_arg_count_version_error(0);
|
|
982
|
-
return nullptr;
|
|
983
|
-
}
|
|
984
|
-
|
|
985
966
|
try
|
|
986
967
|
{
|
|
968
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.GraphicsCapturePicker", L"PickSingleItemAsync", 0))
|
|
969
|
+
{
|
|
970
|
+
py::set_arg_count_version_error(0);
|
|
971
|
+
return nullptr;
|
|
972
|
+
}
|
|
973
|
+
|
|
987
974
|
return py::convert(self->obj.PickSingleItemAsync());
|
|
988
975
|
}
|
|
989
976
|
catch (...)
|
|
@@ -1034,23 +1021,20 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
1034
1021
|
{ }
|
|
1035
1022
|
};
|
|
1036
1023
|
|
|
1037
|
-
static PyType_Slot _type_slots_GraphicsCapturePicker[] =
|
|
1038
|
-
{
|
|
1024
|
+
static PyType_Slot _type_slots_GraphicsCapturePicker[] = {
|
|
1039
1025
|
{ Py_tp_new, reinterpret_cast<void*>(_new_GraphicsCapturePicker) },
|
|
1040
1026
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_GraphicsCapturePicker) },
|
|
1041
1027
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_GraphicsCapturePicker) },
|
|
1042
1028
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_GraphicsCapturePicker) },
|
|
1043
|
-
{ }
|
|
1029
|
+
{ }
|
|
1044
1030
|
};
|
|
1045
1031
|
|
|
1046
|
-
static PyType_Spec type_spec_GraphicsCapturePicker =
|
|
1047
|
-
{
|
|
1032
|
+
static PyType_Spec type_spec_GraphicsCapturePicker = {
|
|
1048
1033
|
"winrt._winrt_windows_graphics_capture.GraphicsCapturePicker",
|
|
1049
1034
|
sizeof(py::wrapper::Windows::Graphics::Capture::GraphicsCapturePicker),
|
|
1050
1035
|
0,
|
|
1051
1036
|
Py_TPFLAGS_DEFAULT,
|
|
1052
|
-
_type_slots_GraphicsCapturePicker
|
|
1053
|
-
};
|
|
1037
|
+
_type_slots_GraphicsCapturePicker};
|
|
1054
1038
|
|
|
1055
1039
|
// ----- GraphicsCaptureSession class --------------------
|
|
1056
1040
|
|
|
@@ -1075,14 +1059,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
1075
1059
|
|
|
1076
1060
|
if (arg_count == 0)
|
|
1077
1061
|
{
|
|
1078
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"Close", 0))
|
|
1079
|
-
{
|
|
1080
|
-
py::set_arg_count_version_error(0);
|
|
1081
|
-
return nullptr;
|
|
1082
|
-
}
|
|
1083
|
-
|
|
1084
1062
|
try
|
|
1085
1063
|
{
|
|
1064
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"Close", 0))
|
|
1065
|
+
{
|
|
1066
|
+
py::set_arg_count_version_error(0);
|
|
1067
|
+
return nullptr;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1086
1070
|
self->obj.Close();
|
|
1087
1071
|
Py_RETURN_NONE;
|
|
1088
1072
|
}
|
|
@@ -1105,14 +1089,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
1105
1089
|
|
|
1106
1090
|
if (arg_count == 0)
|
|
1107
1091
|
{
|
|
1108
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"IsSupported", 0))
|
|
1109
|
-
{
|
|
1110
|
-
py::set_arg_count_version_error(0);
|
|
1111
|
-
return nullptr;
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
1092
|
try
|
|
1115
1093
|
{
|
|
1094
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"IsSupported", 0))
|
|
1095
|
+
{
|
|
1096
|
+
py::set_arg_count_version_error(0);
|
|
1097
|
+
return nullptr;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1116
1100
|
return py::convert(winrt::Windows::Graphics::Capture::GraphicsCaptureSession::IsSupported());
|
|
1117
1101
|
}
|
|
1118
1102
|
catch (...)
|
|
@@ -1134,14 +1118,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
1134
1118
|
|
|
1135
1119
|
if (arg_count == 0)
|
|
1136
1120
|
{
|
|
1137
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"StartCapture", 0))
|
|
1138
|
-
{
|
|
1139
|
-
py::set_arg_count_version_error(0);
|
|
1140
|
-
return nullptr;
|
|
1141
|
-
}
|
|
1142
|
-
|
|
1143
1121
|
try
|
|
1144
1122
|
{
|
|
1123
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"StartCapture", 0))
|
|
1124
|
+
{
|
|
1125
|
+
py::set_arg_count_version_error(0);
|
|
1126
|
+
return nullptr;
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1145
1129
|
self->obj.StartCapture();
|
|
1146
1130
|
Py_RETURN_NONE;
|
|
1147
1131
|
}
|
|
@@ -1160,14 +1144,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
1160
1144
|
|
|
1161
1145
|
static PyObject* GraphicsCaptureSession_get_IsCursorCaptureEnabled(py::wrapper::Windows::Graphics::Capture::GraphicsCaptureSession* self, void* /*unused*/) noexcept
|
|
1162
1146
|
{
|
|
1163
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"IsCursorCaptureEnabled"))
|
|
1164
|
-
{
|
|
1165
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1166
|
-
return nullptr;
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
1147
|
try
|
|
1170
1148
|
{
|
|
1149
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"IsCursorCaptureEnabled"))
|
|
1150
|
+
{
|
|
1151
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1152
|
+
return nullptr;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1171
1155
|
return py::convert(self->obj.IsCursorCaptureEnabled());
|
|
1172
1156
|
}
|
|
1173
1157
|
catch (...)
|
|
@@ -1179,12 +1163,6 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
1179
1163
|
|
|
1180
1164
|
static int GraphicsCaptureSession_put_IsCursorCaptureEnabled(py::wrapper::Windows::Graphics::Capture::GraphicsCaptureSession* self, PyObject* arg, void* /*unused*/) noexcept
|
|
1181
1165
|
{
|
|
1182
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"IsCursorCaptureEnabled"))
|
|
1183
|
-
{
|
|
1184
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1185
|
-
return -1;
|
|
1186
|
-
}
|
|
1187
|
-
|
|
1188
1166
|
if (arg == nullptr)
|
|
1189
1167
|
{
|
|
1190
1168
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -1193,6 +1171,12 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
1193
1171
|
|
|
1194
1172
|
try
|
|
1195
1173
|
{
|
|
1174
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"IsCursorCaptureEnabled"))
|
|
1175
|
+
{
|
|
1176
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1177
|
+
return -1;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1196
1180
|
auto param0 = py::convert_to<bool>(arg);
|
|
1197
1181
|
|
|
1198
1182
|
self->obj.IsCursorCaptureEnabled(param0);
|
|
@@ -1207,14 +1191,14 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
1207
1191
|
|
|
1208
1192
|
static PyObject* GraphicsCaptureSession_get_IsBorderRequired(py::wrapper::Windows::Graphics::Capture::GraphicsCaptureSession* self, void* /*unused*/) noexcept
|
|
1209
1193
|
{
|
|
1210
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"IsBorderRequired"))
|
|
1211
|
-
{
|
|
1212
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1213
|
-
return nullptr;
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
1194
|
try
|
|
1217
1195
|
{
|
|
1196
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"IsBorderRequired"))
|
|
1197
|
+
{
|
|
1198
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1199
|
+
return nullptr;
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1218
1202
|
return py::convert(self->obj.IsBorderRequired());
|
|
1219
1203
|
}
|
|
1220
1204
|
catch (...)
|
|
@@ -1226,12 +1210,6 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
1226
1210
|
|
|
1227
1211
|
static int GraphicsCaptureSession_put_IsBorderRequired(py::wrapper::Windows::Graphics::Capture::GraphicsCaptureSession* self, PyObject* arg, void* /*unused*/) noexcept
|
|
1228
1212
|
{
|
|
1229
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"IsBorderRequired"))
|
|
1230
|
-
{
|
|
1231
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1232
|
-
return -1;
|
|
1233
|
-
}
|
|
1234
|
-
|
|
1235
1213
|
if (arg == nullptr)
|
|
1236
1214
|
{
|
|
1237
1215
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -1240,6 +1218,12 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
1240
1218
|
|
|
1241
1219
|
try
|
|
1242
1220
|
{
|
|
1221
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"IsBorderRequired"))
|
|
1222
|
+
{
|
|
1223
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1224
|
+
return -1;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1243
1227
|
auto param0 = py::convert_to<bool>(arg);
|
|
1244
1228
|
|
|
1245
1229
|
self->obj.IsBorderRequired(param0);
|
|
@@ -1301,7 +1285,7 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
1301
1285
|
{ "_assign_array_", _assign_array_GraphicsCaptureSession, METH_O | METH_STATIC, nullptr },
|
|
1302
1286
|
{ "_from", reinterpret_cast<PyCFunction>(_from_GraphicsCaptureSession), METH_O | METH_STATIC, nullptr },
|
|
1303
1287
|
{ "__enter__", reinterpret_cast<PyCFunction>(_enter_GraphicsCaptureSession), METH_NOARGS, nullptr },
|
|
1304
|
-
{ "__exit__",
|
|
1288
|
+
{ "__exit__", reinterpret_cast<PyCFunction>(_exit_GraphicsCaptureSession), METH_VARARGS, nullptr },
|
|
1305
1289
|
{ }
|
|
1306
1290
|
};
|
|
1307
1291
|
|
|
@@ -1311,23 +1295,20 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
1311
1295
|
{ }
|
|
1312
1296
|
};
|
|
1313
1297
|
|
|
1314
|
-
static PyType_Slot _type_slots_GraphicsCaptureSession[] =
|
|
1315
|
-
{
|
|
1298
|
+
static PyType_Slot _type_slots_GraphicsCaptureSession[] = {
|
|
1316
1299
|
{ Py_tp_new, reinterpret_cast<void*>(_new_GraphicsCaptureSession) },
|
|
1317
1300
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_GraphicsCaptureSession) },
|
|
1318
1301
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_GraphicsCaptureSession) },
|
|
1319
1302
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_GraphicsCaptureSession) },
|
|
1320
|
-
{ }
|
|
1303
|
+
{ }
|
|
1321
1304
|
};
|
|
1322
1305
|
|
|
1323
|
-
static PyType_Spec type_spec_GraphicsCaptureSession =
|
|
1324
|
-
{
|
|
1306
|
+
static PyType_Spec type_spec_GraphicsCaptureSession = {
|
|
1325
1307
|
"winrt._winrt_windows_graphics_capture.GraphicsCaptureSession",
|
|
1326
1308
|
sizeof(py::wrapper::Windows::Graphics::Capture::GraphicsCaptureSession),
|
|
1327
1309
|
0,
|
|
1328
1310
|
Py_TPFLAGS_DEFAULT,
|
|
1329
|
-
_type_slots_GraphicsCaptureSession
|
|
1330
|
-
};
|
|
1311
|
+
_type_slots_GraphicsCaptureSession};
|
|
1331
1312
|
|
|
1332
1313
|
static PyGetSetDef getset_GraphicsCaptureSession_Static[] = {
|
|
1333
1314
|
{ }
|
|
@@ -1356,20 +1337,19 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
1356
1337
|
};
|
|
1357
1338
|
|
|
1358
1339
|
// ----- Windows.Graphics.Capture Initialization --------------------
|
|
1359
|
-
PyDoc_STRVAR(module_doc, "Windows::Graphics::Capture");
|
|
1360
|
-
|
|
1361
1340
|
|
|
1362
|
-
|
|
1363
|
-
= {PyModuleDef_HEAD_INIT,
|
|
1364
|
-
"_winrt_windows_graphics_capture",
|
|
1365
|
-
module_doc,
|
|
1366
|
-
0,
|
|
1367
|
-
nullptr,
|
|
1368
|
-
nullptr,
|
|
1369
|
-
nullptr,
|
|
1370
|
-
nullptr,
|
|
1371
|
-
nullptr};
|
|
1341
|
+
PyDoc_STRVAR(module_doc, "Windows.Graphics.Capture");
|
|
1372
1342
|
|
|
1343
|
+
static PyModuleDef module_def = {
|
|
1344
|
+
PyModuleDef_HEAD_INIT,
|
|
1345
|
+
"_winrt_windows_graphics_capture",
|
|
1346
|
+
module_doc,
|
|
1347
|
+
0,
|
|
1348
|
+
nullptr,
|
|
1349
|
+
nullptr,
|
|
1350
|
+
nullptr,
|
|
1351
|
+
nullptr,
|
|
1352
|
+
nullptr};
|
|
1373
1353
|
} // py::cpp::Windows::Graphics::Capture
|
|
1374
1354
|
|
|
1375
1355
|
PyMODINIT_FUNC PyInit__winrt_windows_graphics_capture(void) noexcept
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.0
|
{winrt_windows_graphics_capture-2.0.1 → winrt_windows_graphics_capture-2.1.0}/requirements.txt
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0
|
|
3
|
+
winrt-runtime==2.1.0
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.graphics as windows_graphics
|
|
14
|
+
import winrt.windows.graphics.directx as windows_graphics_directx
|
|
15
|
+
import winrt.windows.graphics.directx.direct3d11 as windows_graphics_directx_direct3d11
|
|
16
|
+
import winrt.windows.security.authorization.appcapabilityaccess as windows_security_authorization_appcapabilityaccess
|
|
17
|
+
import winrt.windows.system as windows_system
|
|
18
|
+
import winrt.windows.ui as windows_ui
|
|
19
|
+
import winrt.windows.ui.composition as windows_ui_composition
|
|
20
|
+
|
|
21
|
+
from winrt.windows.graphics.capture import GraphicsCaptureAccessKind
|
|
22
|
+
|
|
23
|
+
Self = typing.TypeVar('Self')
|
|
24
|
+
|
|
25
|
+
@typing.final
|
|
26
|
+
class Direct3D11CaptureFrame(winrt.system.Object):
|
|
27
|
+
def __enter__(self: Self) -> Self: ...
|
|
28
|
+
def __exit__(self, *args) -> None: ...
|
|
29
|
+
@staticmethod
|
|
30
|
+
def _from(obj: winrt.system.Object, /) -> Direct3D11CaptureFrame: ...
|
|
31
|
+
def close(self) -> None: ...
|
|
32
|
+
@_property
|
|
33
|
+
def content_size(self) -> windows_graphics.SizeInt32: ...
|
|
34
|
+
@_property
|
|
35
|
+
def surface(self) -> typing.Optional[windows_graphics_directx_direct3d11.IDirect3DSurface]: ...
|
|
36
|
+
@_property
|
|
37
|
+
def system_relative_time(self) -> datetime.timedelta: ...
|
|
38
|
+
|
|
39
|
+
@typing.final
|
|
40
|
+
class Direct3D11CaptureFramePool_Static(type):
|
|
41
|
+
def create(cls, device: typing.Optional[windows_graphics_directx_direct3d11.IDirect3DDevice], pixel_format: windows_graphics_directx.DirectXPixelFormat, number_of_buffers: winrt.system.Int32, size: windows_graphics.SizeInt32, /) -> typing.Optional[Direct3D11CaptureFramePool]: ...
|
|
42
|
+
def create_free_threaded(cls, device: typing.Optional[windows_graphics_directx_direct3d11.IDirect3DDevice], pixel_format: windows_graphics_directx.DirectXPixelFormat, number_of_buffers: winrt.system.Int32, size: windows_graphics.SizeInt32, /) -> typing.Optional[Direct3D11CaptureFramePool]: ...
|
|
43
|
+
|
|
44
|
+
@typing.final
|
|
45
|
+
class Direct3D11CaptureFramePool(winrt.system.Object, metaclass=Direct3D11CaptureFramePool_Static):
|
|
46
|
+
def __enter__(self: Self) -> Self: ...
|
|
47
|
+
def __exit__(self, *args) -> None: ...
|
|
48
|
+
@staticmethod
|
|
49
|
+
def _from(obj: winrt.system.Object, /) -> Direct3D11CaptureFramePool: ...
|
|
50
|
+
def close(self) -> None: ...
|
|
51
|
+
def create_capture_session(self, item: typing.Optional[GraphicsCaptureItem], /) -> typing.Optional[GraphicsCaptureSession]: ...
|
|
52
|
+
def recreate(self, device: typing.Optional[windows_graphics_directx_direct3d11.IDirect3DDevice], pixel_format: windows_graphics_directx.DirectXPixelFormat, number_of_buffers: winrt.system.Int32, size: windows_graphics.SizeInt32, /) -> None: ...
|
|
53
|
+
def try_get_next_frame(self) -> typing.Optional[Direct3D11CaptureFrame]: ...
|
|
54
|
+
def add_frame_arrived(self, handler: windows_foundation.TypedEventHandler[Direct3D11CaptureFramePool, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
55
|
+
def remove_frame_arrived(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
56
|
+
@_property
|
|
57
|
+
def dispatcher_queue(self) -> typing.Optional[windows_system.DispatcherQueue]: ...
|
|
58
|
+
|
|
59
|
+
@typing.final
|
|
60
|
+
class GraphicsCaptureAccess_Static(type):
|
|
61
|
+
def request_access_async(cls, request: GraphicsCaptureAccessKind, /) -> windows_foundation.IAsyncOperation[windows_security_authorization_appcapabilityaccess.AppCapabilityAccessStatus]: ...
|
|
62
|
+
|
|
63
|
+
@typing.final
|
|
64
|
+
class GraphicsCaptureAccess(winrt.system.Object, metaclass=GraphicsCaptureAccess_Static):
|
|
65
|
+
pass
|
|
66
|
+
|
|
67
|
+
@typing.final
|
|
68
|
+
class GraphicsCaptureItem_Static(type):
|
|
69
|
+
def create_from_visual(cls, visual: typing.Optional[windows_ui_composition.Visual], /) -> typing.Optional[GraphicsCaptureItem]: ...
|
|
70
|
+
def try_create_from_display_id(cls, display_id: windows_graphics.DisplayId, /) -> typing.Optional[GraphicsCaptureItem]: ...
|
|
71
|
+
def try_create_from_window_id(cls, window_id: windows_ui.WindowId, /) -> typing.Optional[GraphicsCaptureItem]: ...
|
|
72
|
+
|
|
73
|
+
@typing.final
|
|
74
|
+
class GraphicsCaptureItem(winrt.system.Object, metaclass=GraphicsCaptureItem_Static):
|
|
75
|
+
@staticmethod
|
|
76
|
+
def _from(obj: winrt.system.Object, /) -> GraphicsCaptureItem: ...
|
|
77
|
+
def add_closed(self, handler: windows_foundation.TypedEventHandler[GraphicsCaptureItem, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
78
|
+
def remove_closed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
79
|
+
@_property
|
|
80
|
+
def display_name(self) -> str: ...
|
|
81
|
+
@_property
|
|
82
|
+
def size(self) -> windows_graphics.SizeInt32: ...
|
|
83
|
+
|
|
84
|
+
@typing.final
|
|
85
|
+
class GraphicsCapturePicker(winrt.system.Object):
|
|
86
|
+
@staticmethod
|
|
87
|
+
def _from(obj: winrt.system.Object, /) -> GraphicsCapturePicker: ...
|
|
88
|
+
def __new__(cls: typing.Type[GraphicsCapturePicker]) -> GraphicsCapturePicker: ...
|
|
89
|
+
def pick_single_item_async(self) -> windows_foundation.IAsyncOperation[GraphicsCaptureItem]: ...
|
|
90
|
+
|
|
91
|
+
@typing.final
|
|
92
|
+
class GraphicsCaptureSession_Static(type):
|
|
93
|
+
def is_supported(cls) -> bool: ...
|
|
94
|
+
|
|
95
|
+
@typing.final
|
|
96
|
+
class GraphicsCaptureSession(winrt.system.Object, metaclass=GraphicsCaptureSession_Static):
|
|
97
|
+
def __enter__(self: Self) -> Self: ...
|
|
98
|
+
def __exit__(self, *args) -> None: ...
|
|
99
|
+
@staticmethod
|
|
100
|
+
def _from(obj: winrt.system.Object, /) -> GraphicsCaptureSession: ...
|
|
101
|
+
def close(self) -> None: ...
|
|
102
|
+
def start_capture(self) -> None: ...
|
|
103
|
+
@_property
|
|
104
|
+
def is_cursor_capture_enabled(self) -> bool: ...
|
|
105
|
+
@is_cursor_capture_enabled.setter
|
|
106
|
+
def is_cursor_capture_enabled(self, value: bool) -> None: ...
|
|
107
|
+
@_property
|
|
108
|
+
def is_border_required(self) -> bool: ...
|
|
109
|
+
@is_border_required.setter
|
|
110
|
+
def is_border_required(self, value: bool) -> None: ...
|
|
111
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Graphics.Capture
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,16 +12,16 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.Graphics[all]==2.0
|
|
19
|
-
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.0
|
|
20
|
-
Requires-Dist: winrt-Windows.Graphics.DirectX.Direct3D11[all]==2.0
|
|
21
|
-
Requires-Dist: winrt-Windows.Security.Authorization.AppCapabilityAccess[all]==2.0
|
|
22
|
-
Requires-Dist: winrt-Windows.System[all]==2.0
|
|
23
|
-
Requires-Dist: winrt-Windows.UI[all]==2.0
|
|
24
|
-
Requires-Dist: winrt-Windows.UI.Composition[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Graphics[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.1.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX.Direct3D11[all]==2.1.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Security.Authorization.AppCapabilityAccess[all]==2.1.0; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.System[all]==2.1.0; extra == "all"
|
|
23
|
+
Requires-Dist: winrt-Windows.UI[all]==2.1.0; extra == "all"
|
|
24
|
+
Requires-Dist: winrt-Windows.UI.Composition[all]==2.1.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.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
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
|
|
2
|
-
|
|
3
|
-
winrt-Windows.Foundation[all]==2.0.1
|
|
4
|
-
winrt-Windows.Graphics[all]==2.0.1
|
|
5
|
-
winrt-Windows.Graphics.DirectX[all]==2.0.1
|
|
6
|
-
winrt-Windows.Graphics.DirectX.Direct3D11[all]==2.0.1
|
|
7
|
-
winrt-Windows.Security.Authorization.AppCapabilityAccess[all]==2.0.1
|
|
8
|
-
winrt-Windows.System[all]==2.0.1
|
|
9
|
-
winrt-Windows.UI[all]==2.0.1
|
|
10
|
-
winrt-Windows.UI.Composition[all]==2.0.1
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.1
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
|
|
2
|
-
|
|
3
|
-
import datetime
|
|
4
|
-
import sys
|
|
5
|
-
import types
|
|
6
|
-
import typing
|
|
7
|
-
import uuid as _uuid
|
|
8
|
-
from builtins import property as _property
|
|
9
|
-
|
|
10
|
-
import winrt._winrt
|
|
11
|
-
import winrt.system
|
|
12
|
-
import winrt.windows.foundation
|
|
13
|
-
import winrt.windows.graphics
|
|
14
|
-
import winrt.windows.graphics.directx
|
|
15
|
-
import winrt.windows.graphics.directx.direct3d11
|
|
16
|
-
import winrt.windows.security.authorization.appcapabilityaccess
|
|
17
|
-
import winrt.windows.system
|
|
18
|
-
import winrt.windows.ui
|
|
19
|
-
import winrt.windows.ui.composition
|
|
20
|
-
|
|
21
|
-
from winrt.windows.graphics.capture import GraphicsCaptureAccessKind
|
|
22
|
-
|
|
23
|
-
Self = typing.TypeVar('Self')
|
|
24
|
-
|
|
25
|
-
@typing.final
|
|
26
|
-
class Direct3D11CaptureFrame(winrt.system.Object):
|
|
27
|
-
def __enter__(self: Self) -> Self: ...
|
|
28
|
-
def __exit__(self, *args) -> None: ...
|
|
29
|
-
@staticmethod
|
|
30
|
-
def _from(obj: winrt.system.Object, /) -> Direct3D11CaptureFrame: ...
|
|
31
|
-
def close(self) -> None: ...
|
|
32
|
-
@_property
|
|
33
|
-
def content_size(self) -> winrt.windows.graphics.SizeInt32: ...
|
|
34
|
-
@_property
|
|
35
|
-
def surface(self) -> typing.Optional[winrt.windows.graphics.directx.direct3d11.IDirect3DSurface]: ...
|
|
36
|
-
@_property
|
|
37
|
-
def system_relative_time(self) -> datetime.timedelta: ...
|
|
38
|
-
|
|
39
|
-
@typing.final
|
|
40
|
-
class Direct3D11CaptureFramePool_Static(type):
|
|
41
|
-
def create(cls, device: typing.Optional[winrt.windows.graphics.directx.direct3d11.IDirect3DDevice], pixel_format: winrt.windows.graphics.directx.DirectXPixelFormat, number_of_buffers: winrt.system.Int32, size: winrt.windows.graphics.SizeInt32, /) -> typing.Optional[Direct3D11CaptureFramePool]: ...
|
|
42
|
-
def create_free_threaded(cls, device: typing.Optional[winrt.windows.graphics.directx.direct3d11.IDirect3DDevice], pixel_format: winrt.windows.graphics.directx.DirectXPixelFormat, number_of_buffers: winrt.system.Int32, size: winrt.windows.graphics.SizeInt32, /) -> typing.Optional[Direct3D11CaptureFramePool]: ...
|
|
43
|
-
|
|
44
|
-
@typing.final
|
|
45
|
-
class Direct3D11CaptureFramePool(winrt.system.Object, metaclass=Direct3D11CaptureFramePool_Static):
|
|
46
|
-
def __enter__(self: Self) -> Self: ...
|
|
47
|
-
def __exit__(self, *args) -> None: ...
|
|
48
|
-
@staticmethod
|
|
49
|
-
def _from(obj: winrt.system.Object, /) -> Direct3D11CaptureFramePool: ...
|
|
50
|
-
def close(self) -> None: ...
|
|
51
|
-
def create_capture_session(self, item: typing.Optional[GraphicsCaptureItem], /) -> typing.Optional[GraphicsCaptureSession]: ...
|
|
52
|
-
def recreate(self, device: typing.Optional[winrt.windows.graphics.directx.direct3d11.IDirect3DDevice], pixel_format: winrt.windows.graphics.directx.DirectXPixelFormat, number_of_buffers: winrt.system.Int32, size: winrt.windows.graphics.SizeInt32, /) -> None: ...
|
|
53
|
-
def try_get_next_frame(self) -> typing.Optional[Direct3D11CaptureFrame]: ...
|
|
54
|
-
def add_frame_arrived(self, handler: winrt.windows.foundation.TypedEventHandler[Direct3D11CaptureFramePool, winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
55
|
-
def remove_frame_arrived(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
56
|
-
@_property
|
|
57
|
-
def dispatcher_queue(self) -> typing.Optional[winrt.windows.system.DispatcherQueue]: ...
|
|
58
|
-
|
|
59
|
-
@typing.final
|
|
60
|
-
class GraphicsCaptureAccess_Static(type):
|
|
61
|
-
def request_access_async(cls, request: GraphicsCaptureAccessKind, /) -> winrt.windows.foundation.IAsyncOperation[winrt.windows.security.authorization.appcapabilityaccess.AppCapabilityAccessStatus]: ...
|
|
62
|
-
|
|
63
|
-
@typing.final
|
|
64
|
-
class GraphicsCaptureAccess(winrt.system.Object, metaclass=GraphicsCaptureAccess_Static):
|
|
65
|
-
@staticmethod
|
|
66
|
-
def _from(obj: winrt.system.Object, /) -> GraphicsCaptureAccess: ...
|
|
67
|
-
|
|
68
|
-
@typing.final
|
|
69
|
-
class GraphicsCaptureItem_Static(type):
|
|
70
|
-
def create_from_visual(cls, visual: typing.Optional[winrt.windows.ui.composition.Visual], /) -> typing.Optional[GraphicsCaptureItem]: ...
|
|
71
|
-
def try_create_from_display_id(cls, display_id: winrt.windows.graphics.DisplayId, /) -> typing.Optional[GraphicsCaptureItem]: ...
|
|
72
|
-
def try_create_from_window_id(cls, window_id: winrt.windows.ui.WindowId, /) -> typing.Optional[GraphicsCaptureItem]: ...
|
|
73
|
-
|
|
74
|
-
@typing.final
|
|
75
|
-
class GraphicsCaptureItem(winrt.system.Object, metaclass=GraphicsCaptureItem_Static):
|
|
76
|
-
@staticmethod
|
|
77
|
-
def _from(obj: winrt.system.Object, /) -> GraphicsCaptureItem: ...
|
|
78
|
-
def add_closed(self, handler: winrt.windows.foundation.TypedEventHandler[GraphicsCaptureItem, winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
79
|
-
def remove_closed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
80
|
-
@_property
|
|
81
|
-
def display_name(self) -> str: ...
|
|
82
|
-
@_property
|
|
83
|
-
def size(self) -> winrt.windows.graphics.SizeInt32: ...
|
|
84
|
-
|
|
85
|
-
@typing.final
|
|
86
|
-
class GraphicsCapturePicker(winrt.system.Object):
|
|
87
|
-
@staticmethod
|
|
88
|
-
def _from(obj: winrt.system.Object, /) -> GraphicsCapturePicker: ...
|
|
89
|
-
def __new__(cls: typing.Type[GraphicsCapturePicker]) -> GraphicsCapturePicker:...
|
|
90
|
-
def pick_single_item_async(self) -> winrt.windows.foundation.IAsyncOperation[GraphicsCaptureItem]: ...
|
|
91
|
-
|
|
92
|
-
@typing.final
|
|
93
|
-
class GraphicsCaptureSession_Static(type):
|
|
94
|
-
def is_supported(cls) -> bool: ...
|
|
95
|
-
|
|
96
|
-
@typing.final
|
|
97
|
-
class GraphicsCaptureSession(winrt.system.Object, metaclass=GraphicsCaptureSession_Static):
|
|
98
|
-
def __enter__(self: Self) -> Self: ...
|
|
99
|
-
def __exit__(self, *args) -> None: ...
|
|
100
|
-
@staticmethod
|
|
101
|
-
def _from(obj: winrt.system.Object, /) -> GraphicsCaptureSession: ...
|
|
102
|
-
def close(self) -> None: ...
|
|
103
|
-
def start_capture(self) -> None: ...
|
|
104
|
-
@_property
|
|
105
|
-
def is_cursor_capture_enabled(self) -> bool: ...
|
|
106
|
-
@is_cursor_capture_enabled.setter
|
|
107
|
-
def is_cursor_capture_enabled(self, value: bool) -> None: ...
|
|
108
|
-
@_property
|
|
109
|
-
def is_border_required(self) -> bool: ...
|
|
110
|
-
@is_border_required.setter
|
|
111
|
-
def is_border_required(self, value: bool) -> None: ...
|
|
112
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
winrt-runtime==2.0.1
|
|
2
|
-
|
|
3
|
-
[all]
|
|
4
|
-
winrt-Windows.Foundation[all]==2.0.1
|
|
5
|
-
winrt-Windows.Graphics[all]==2.0.1
|
|
6
|
-
winrt-Windows.Graphics.DirectX[all]==2.0.1
|
|
7
|
-
winrt-Windows.Graphics.DirectX.Direct3D11[all]==2.0.1
|
|
8
|
-
winrt-Windows.Security.Authorization.AppCapabilityAccess[all]==2.0.1
|
|
9
|
-
winrt-Windows.System[all]==2.0.1
|
|
10
|
-
winrt-Windows.UI[all]==2.0.1
|
|
11
|
-
winrt-Windows.UI.Composition[all]==2.0.1
|
|
File without changes
|
{winrt_windows_graphics_capture-2.0.1 → winrt_windows_graphics_capture-2.1.0}/pyproject.toml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|