winrt-Windows.Graphics.Capture 2.2.0__tar.gz → 2.3.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.2.0 → winrt_windows_graphics_capture-2.3.0}/PKG-INFO +11 -10
- winrt_windows_graphics_capture-2.3.0/all-requirements.txt +11 -0
- {winrt_windows_graphics_capture-2.2.0 → winrt_windows_graphics_capture-2.3.0}/py.Windows.Graphics.Capture.cpp +241 -1
- winrt_windows_graphics_capture-2.3.0/pywinrt-version.txt +1 -0
- {winrt_windows_graphics_capture-2.2.0 → winrt_windows_graphics_capture-2.3.0}/requirements.txt +2 -2
- {winrt_windows_graphics_capture-2.2.0 → winrt_windows_graphics_capture-2.3.0}/winrt/_winrt_windows_graphics_capture.pyi +19 -2
- {winrt_windows_graphics_capture-2.2.0 → winrt_windows_graphics_capture-2.3.0}/winrt/windows/graphics/capture/__init__.py +6 -1
- {winrt_windows_graphics_capture-2.2.0 → winrt_windows_graphics_capture-2.3.0}/winrt_Windows.Graphics.Capture.egg-info/PKG-INFO +11 -10
- winrt_windows_graphics_capture-2.3.0/winrt_Windows.Graphics.Capture.egg-info/requires.txt +12 -0
- winrt_windows_graphics_capture-2.2.0/all-requirements.txt +0 -10
- winrt_windows_graphics_capture-2.2.0/pywinrt-version.txt +0 -1
- winrt_windows_graphics_capture-2.2.0/winrt_Windows.Graphics.Capture.egg-info/requires.txt +0 -11
- {winrt_windows_graphics_capture-2.2.0 → winrt_windows_graphics_capture-2.3.0}/README.md +0 -0
- {winrt_windows_graphics_capture-2.2.0 → winrt_windows_graphics_capture-2.3.0}/pyproject.toml +0 -0
- {winrt_windows_graphics_capture-2.2.0 → winrt_windows_graphics_capture-2.3.0}/setup.cfg +0 -0
- {winrt_windows_graphics_capture-2.2.0 → winrt_windows_graphics_capture-2.3.0}/setup.py +0 -0
- {winrt_windows_graphics_capture-2.2.0 → winrt_windows_graphics_capture-2.3.0}/winrt/windows/graphics/capture/py.typed +0 -0
- {winrt_windows_graphics_capture-2.2.0 → winrt_windows_graphics_capture-2.3.0}/winrt_Windows.Graphics.Capture.egg-info/SOURCES.txt +0 -0
- {winrt_windows_graphics_capture-2.2.0 → winrt_windows_graphics_capture-2.3.0}/winrt_Windows.Graphics.Capture.egg-info/dependency_links.txt +0 -0
- {winrt_windows_graphics_capture-2.2.0 → winrt_windows_graphics_capture-2.3.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.3.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,17 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
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.3.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.
|
|
19
|
-
Requires-Dist: winrt-Windows.Graphics
|
|
20
|
-
Requires-Dist: winrt-Windows.Graphics.DirectX
|
|
21
|
-
Requires-Dist: winrt-Windows.
|
|
22
|
-
Requires-Dist: winrt-Windows.
|
|
23
|
-
Requires-Dist: winrt-Windows.
|
|
24
|
-
Requires-Dist: winrt-Windows.UI
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Graphics[all]==2.3.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.3.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX.Direct3D11[all]==2.3.0; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.Security.Authorization.AppCapabilityAccess[all]==2.3.0; extra == "all"
|
|
23
|
+
Requires-Dist: winrt-Windows.System[all]==2.3.0; extra == "all"
|
|
24
|
+
Requires-Dist: winrt-Windows.UI[all]==2.3.0; extra == "all"
|
|
25
|
+
Requires-Dist: winrt-Windows.UI.Composition[all]==2.3.0; extra == "all"
|
|
25
26
|
|
|
26
27
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
27
28
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
2
|
+
|
|
3
|
+
winrt-Windows.Foundation[all]==2.3.0
|
|
4
|
+
winrt-Windows.Foundation.Collections[all]==2.3.0
|
|
5
|
+
winrt-Windows.Graphics[all]==2.3.0
|
|
6
|
+
winrt-Windows.Graphics.DirectX[all]==2.3.0
|
|
7
|
+
winrt-Windows.Graphics.DirectX.Direct3D11[all]==2.3.0
|
|
8
|
+
winrt-Windows.Security.Authorization.AppCapabilityAccess[all]==2.3.0
|
|
9
|
+
winrt-Windows.System[all]==2.3.0
|
|
10
|
+
winrt-Windows.UI[all]==2.3.0
|
|
11
|
+
winrt-Windows.UI.Composition[all]==2.3.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.3.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Graphics.Capture.h"
|
|
4
4
|
|
|
@@ -136,6 +136,58 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
+
static PyObject* Direct3D11CaptureFrame_get_DirtyRegionMode(py::wrapper::Windows::Graphics::Capture::Direct3D11CaptureFrame* self, void* /*unused*/) noexcept
|
|
140
|
+
{
|
|
141
|
+
try
|
|
142
|
+
{
|
|
143
|
+
static std::optional<bool> is_property_present{};
|
|
144
|
+
|
|
145
|
+
if (!is_property_present.has_value())
|
|
146
|
+
{
|
|
147
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFrame", L"DirtyRegionMode");
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if (!is_property_present.value())
|
|
151
|
+
{
|
|
152
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
153
|
+
return nullptr;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
return py::convert(self->obj.DirtyRegionMode());
|
|
157
|
+
}
|
|
158
|
+
catch (...)
|
|
159
|
+
{
|
|
160
|
+
py::to_PyErr();
|
|
161
|
+
return nullptr;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
static PyObject* Direct3D11CaptureFrame_get_DirtyRegions(py::wrapper::Windows::Graphics::Capture::Direct3D11CaptureFrame* self, void* /*unused*/) noexcept
|
|
166
|
+
{
|
|
167
|
+
try
|
|
168
|
+
{
|
|
169
|
+
static std::optional<bool> is_property_present{};
|
|
170
|
+
|
|
171
|
+
if (!is_property_present.has_value())
|
|
172
|
+
{
|
|
173
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.Direct3D11CaptureFrame", L"DirtyRegions");
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
if (!is_property_present.value())
|
|
177
|
+
{
|
|
178
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
179
|
+
return nullptr;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
return py::convert(self->obj.DirtyRegions());
|
|
183
|
+
}
|
|
184
|
+
catch (...)
|
|
185
|
+
{
|
|
186
|
+
py::to_PyErr();
|
|
187
|
+
return nullptr;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
139
191
|
static PyObject* _assign_array_Direct3D11CaptureFrame(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
140
192
|
{
|
|
141
193
|
auto array = std::make_unique<py::ComArray<winrt::Windows::Graphics::Capture::Direct3D11CaptureFrame>>();
|
|
@@ -192,6 +244,8 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
192
244
|
{ "content_size", reinterpret_cast<getter>(Direct3D11CaptureFrame_get_ContentSize), nullptr, nullptr, nullptr },
|
|
193
245
|
{ "surface", reinterpret_cast<getter>(Direct3D11CaptureFrame_get_Surface), nullptr, nullptr, nullptr },
|
|
194
246
|
{ "system_relative_time", reinterpret_cast<getter>(Direct3D11CaptureFrame_get_SystemRelativeTime), nullptr, nullptr, nullptr },
|
|
247
|
+
{ "dirty_region_mode", reinterpret_cast<getter>(Direct3D11CaptureFrame_get_DirtyRegionMode), nullptr, nullptr, nullptr },
|
|
248
|
+
{ "dirty_regions", reinterpret_cast<getter>(Direct3D11CaptureFrame_get_DirtyRegions), nullptr, nullptr, nullptr },
|
|
195
249
|
{ }
|
|
196
250
|
};
|
|
197
251
|
|
|
@@ -1439,6 +1493,189 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
1439
1493
|
}
|
|
1440
1494
|
}
|
|
1441
1495
|
|
|
1496
|
+
static PyObject* GraphicsCaptureSession_get_DirtyRegionMode(py::wrapper::Windows::Graphics::Capture::GraphicsCaptureSession* self, void* /*unused*/) noexcept
|
|
1497
|
+
{
|
|
1498
|
+
try
|
|
1499
|
+
{
|
|
1500
|
+
static std::optional<bool> is_property_present{};
|
|
1501
|
+
|
|
1502
|
+
if (!is_property_present.has_value())
|
|
1503
|
+
{
|
|
1504
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"DirtyRegionMode");
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
if (!is_property_present.value())
|
|
1508
|
+
{
|
|
1509
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1510
|
+
return nullptr;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
return py::convert(self->obj.DirtyRegionMode());
|
|
1514
|
+
}
|
|
1515
|
+
catch (...)
|
|
1516
|
+
{
|
|
1517
|
+
py::to_PyErr();
|
|
1518
|
+
return nullptr;
|
|
1519
|
+
}
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
static int GraphicsCaptureSession_put_DirtyRegionMode(py::wrapper::Windows::Graphics::Capture::GraphicsCaptureSession* self, PyObject* arg, void* /*unused*/) noexcept
|
|
1523
|
+
{
|
|
1524
|
+
if (arg == nullptr)
|
|
1525
|
+
{
|
|
1526
|
+
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
1527
|
+
return -1;
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
try
|
|
1531
|
+
{
|
|
1532
|
+
static std::optional<bool> is_property_present{};
|
|
1533
|
+
|
|
1534
|
+
if (!is_property_present.has_value())
|
|
1535
|
+
{
|
|
1536
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"DirtyRegionMode");
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
if (!is_property_present.value())
|
|
1540
|
+
{
|
|
1541
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1542
|
+
return -1;
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
auto param0 = py::convert_to<winrt::Windows::Graphics::Capture::GraphicsCaptureDirtyRegionMode>(arg);
|
|
1546
|
+
|
|
1547
|
+
self->obj.DirtyRegionMode(param0);
|
|
1548
|
+
return 0;
|
|
1549
|
+
}
|
|
1550
|
+
catch (...)
|
|
1551
|
+
{
|
|
1552
|
+
py::to_PyErr();
|
|
1553
|
+
return -1;
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
static PyObject* GraphicsCaptureSession_get_MinUpdateInterval(py::wrapper::Windows::Graphics::Capture::GraphicsCaptureSession* self, void* /*unused*/) noexcept
|
|
1558
|
+
{
|
|
1559
|
+
try
|
|
1560
|
+
{
|
|
1561
|
+
static std::optional<bool> is_property_present{};
|
|
1562
|
+
|
|
1563
|
+
if (!is_property_present.has_value())
|
|
1564
|
+
{
|
|
1565
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"MinUpdateInterval");
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
if (!is_property_present.value())
|
|
1569
|
+
{
|
|
1570
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1571
|
+
return nullptr;
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
return py::convert(self->obj.MinUpdateInterval());
|
|
1575
|
+
}
|
|
1576
|
+
catch (...)
|
|
1577
|
+
{
|
|
1578
|
+
py::to_PyErr();
|
|
1579
|
+
return nullptr;
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
static int GraphicsCaptureSession_put_MinUpdateInterval(py::wrapper::Windows::Graphics::Capture::GraphicsCaptureSession* self, PyObject* arg, void* /*unused*/) noexcept
|
|
1584
|
+
{
|
|
1585
|
+
if (arg == nullptr)
|
|
1586
|
+
{
|
|
1587
|
+
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
1588
|
+
return -1;
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
try
|
|
1592
|
+
{
|
|
1593
|
+
static std::optional<bool> is_property_present{};
|
|
1594
|
+
|
|
1595
|
+
if (!is_property_present.has_value())
|
|
1596
|
+
{
|
|
1597
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"MinUpdateInterval");
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
if (!is_property_present.value())
|
|
1601
|
+
{
|
|
1602
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1603
|
+
return -1;
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
auto param0 = py::convert_to<winrt::Windows::Foundation::TimeSpan>(arg);
|
|
1607
|
+
|
|
1608
|
+
self->obj.MinUpdateInterval(param0);
|
|
1609
|
+
return 0;
|
|
1610
|
+
}
|
|
1611
|
+
catch (...)
|
|
1612
|
+
{
|
|
1613
|
+
py::to_PyErr();
|
|
1614
|
+
return -1;
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
static PyObject* GraphicsCaptureSession_get_IncludeSecondaryWindows(py::wrapper::Windows::Graphics::Capture::GraphicsCaptureSession* self, void* /*unused*/) noexcept
|
|
1619
|
+
{
|
|
1620
|
+
try
|
|
1621
|
+
{
|
|
1622
|
+
static std::optional<bool> is_property_present{};
|
|
1623
|
+
|
|
1624
|
+
if (!is_property_present.has_value())
|
|
1625
|
+
{
|
|
1626
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"IncludeSecondaryWindows");
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
if (!is_property_present.value())
|
|
1630
|
+
{
|
|
1631
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1632
|
+
return nullptr;
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1635
|
+
return py::convert(self->obj.IncludeSecondaryWindows());
|
|
1636
|
+
}
|
|
1637
|
+
catch (...)
|
|
1638
|
+
{
|
|
1639
|
+
py::to_PyErr();
|
|
1640
|
+
return nullptr;
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
static int GraphicsCaptureSession_put_IncludeSecondaryWindows(py::wrapper::Windows::Graphics::Capture::GraphicsCaptureSession* self, PyObject* arg, void* /*unused*/) noexcept
|
|
1645
|
+
{
|
|
1646
|
+
if (arg == nullptr)
|
|
1647
|
+
{
|
|
1648
|
+
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
1649
|
+
return -1;
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
try
|
|
1653
|
+
{
|
|
1654
|
+
static std::optional<bool> is_property_present{};
|
|
1655
|
+
|
|
1656
|
+
if (!is_property_present.has_value())
|
|
1657
|
+
{
|
|
1658
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"IncludeSecondaryWindows");
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
if (!is_property_present.value())
|
|
1662
|
+
{
|
|
1663
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1664
|
+
return -1;
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
auto param0 = py::convert_to<bool>(arg);
|
|
1668
|
+
|
|
1669
|
+
self->obj.IncludeSecondaryWindows(param0);
|
|
1670
|
+
return 0;
|
|
1671
|
+
}
|
|
1672
|
+
catch (...)
|
|
1673
|
+
{
|
|
1674
|
+
py::to_PyErr();
|
|
1675
|
+
return -1;
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1442
1679
|
static PyObject* _assign_array_GraphicsCaptureSession(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
1443
1680
|
{
|
|
1444
1681
|
auto array = std::make_unique<py::ComArray<winrt::Windows::Graphics::Capture::GraphicsCaptureSession>>();
|
|
@@ -1495,6 +1732,9 @@ namespace py::cpp::Windows::Graphics::Capture
|
|
|
1495
1732
|
static PyGetSetDef _getset_GraphicsCaptureSession[] = {
|
|
1496
1733
|
{ "is_cursor_capture_enabled", reinterpret_cast<getter>(GraphicsCaptureSession_get_IsCursorCaptureEnabled), reinterpret_cast<setter>(GraphicsCaptureSession_put_IsCursorCaptureEnabled), nullptr, nullptr },
|
|
1497
1734
|
{ "is_border_required", reinterpret_cast<getter>(GraphicsCaptureSession_get_IsBorderRequired), reinterpret_cast<setter>(GraphicsCaptureSession_put_IsBorderRequired), nullptr, nullptr },
|
|
1735
|
+
{ "dirty_region_mode", reinterpret_cast<getter>(GraphicsCaptureSession_get_DirtyRegionMode), reinterpret_cast<setter>(GraphicsCaptureSession_put_DirtyRegionMode), nullptr, nullptr },
|
|
1736
|
+
{ "min_update_interval", reinterpret_cast<getter>(GraphicsCaptureSession_get_MinUpdateInterval), reinterpret_cast<setter>(GraphicsCaptureSession_put_MinUpdateInterval), nullptr, nullptr },
|
|
1737
|
+
{ "include_secondary_windows", reinterpret_cast<getter>(GraphicsCaptureSession_get_IncludeSecondaryWindows), reinterpret_cast<setter>(GraphicsCaptureSession_put_IncludeSecondaryWindows), nullptr, nullptr },
|
|
1498
1738
|
{ }
|
|
1499
1739
|
};
|
|
1500
1740
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.3.0
|
{winrt_windows_graphics_capture-2.2.0 → winrt_windows_graphics_capture-2.3.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.3.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.3.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.3.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -10,6 +10,7 @@ from builtins import property as _property
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
12
|
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
13
14
|
import winrt.windows.graphics as windows_graphics
|
|
14
15
|
import winrt.windows.graphics.directx as windows_graphics_directx
|
|
15
16
|
import winrt.windows.graphics.directx.direct3d11 as windows_graphics_directx_direct3d11
|
|
@@ -18,7 +19,7 @@ import winrt.windows.system as windows_system
|
|
|
18
19
|
import winrt.windows.ui as windows_ui
|
|
19
20
|
import winrt.windows.ui.composition as windows_ui_composition
|
|
20
21
|
|
|
21
|
-
from winrt.windows.graphics.capture import GraphicsCaptureAccessKind
|
|
22
|
+
from winrt.windows.graphics.capture import GraphicsCaptureAccessKind, GraphicsCaptureDirtyRegionMode
|
|
22
23
|
|
|
23
24
|
Self = typing.TypeVar('Self')
|
|
24
25
|
|
|
@@ -35,6 +36,10 @@ class Direct3D11CaptureFrame(winrt.system.Object):
|
|
|
35
36
|
def surface(self) -> typing.Optional[windows_graphics_directx_direct3d11.IDirect3DSurface]: ...
|
|
36
37
|
@_property
|
|
37
38
|
def system_relative_time(self) -> datetime.timedelta: ...
|
|
39
|
+
@_property
|
|
40
|
+
def dirty_region_mode(self) -> GraphicsCaptureDirtyRegionMode: ...
|
|
41
|
+
@_property
|
|
42
|
+
def dirty_regions(self) -> typing.Optional[windows_foundation_collections.IVectorView[windows_graphics.RectInt32]]: ...
|
|
38
43
|
|
|
39
44
|
@typing.final
|
|
40
45
|
class Direct3D11CaptureFramePool_Static(type):
|
|
@@ -108,4 +113,16 @@ class GraphicsCaptureSession(winrt.system.Object, metaclass=GraphicsCaptureSessi
|
|
|
108
113
|
def is_border_required(self) -> bool: ...
|
|
109
114
|
@is_border_required.setter
|
|
110
115
|
def is_border_required(self, value: bool) -> None: ...
|
|
116
|
+
@_property
|
|
117
|
+
def dirty_region_mode(self) -> GraphicsCaptureDirtyRegionMode: ...
|
|
118
|
+
@dirty_region_mode.setter
|
|
119
|
+
def dirty_region_mode(self, value: GraphicsCaptureDirtyRegionMode) -> None: ...
|
|
120
|
+
@_property
|
|
121
|
+
def min_update_interval(self) -> datetime.timedelta: ...
|
|
122
|
+
@min_update_interval.setter
|
|
123
|
+
def min_update_interval(self, value: datetime.timedelta) -> None: ...
|
|
124
|
+
@_property
|
|
125
|
+
def include_secondary_windows(self) -> bool: ...
|
|
126
|
+
@include_secondary_windows.setter
|
|
127
|
+
def include_secondary_windows(self, value: bool) -> None: ...
|
|
111
128
|
|
|
@@ -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.3.0
|
|
2
2
|
|
|
3
3
|
import enum
|
|
4
4
|
|
|
@@ -7,6 +7,7 @@ from winrt import _winrt_windows_graphics_capture
|
|
|
7
7
|
|
|
8
8
|
__all__ = [
|
|
9
9
|
"GraphicsCaptureAccessKind",
|
|
10
|
+
"GraphicsCaptureDirtyRegionMode",
|
|
10
11
|
"Direct3D11CaptureFrame",
|
|
11
12
|
"Direct3D11CaptureFramePool",
|
|
12
13
|
"GraphicsCaptureAccess",
|
|
@@ -19,6 +20,10 @@ class GraphicsCaptureAccessKind(enum.IntEnum):
|
|
|
19
20
|
BORDERLESS = 0
|
|
20
21
|
PROGRAMMATIC = 1
|
|
21
22
|
|
|
23
|
+
class GraphicsCaptureDirtyRegionMode(enum.IntEnum):
|
|
24
|
+
REPORT_ONLY = 0
|
|
25
|
+
REPORT_AND_RENDER = 1
|
|
26
|
+
|
|
22
27
|
Direct3D11CaptureFrame = _winrt_windows_graphics_capture.Direct3D11CaptureFrame
|
|
23
28
|
Direct3D11CaptureFramePool = _winrt_windows_graphics_capture.Direct3D11CaptureFramePool
|
|
24
29
|
GraphicsCaptureAccess = _winrt_windows_graphics_capture.GraphicsCaptureAccess
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Graphics.Capture
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.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,17 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
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.3.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.
|
|
19
|
-
Requires-Dist: winrt-Windows.Graphics
|
|
20
|
-
Requires-Dist: winrt-Windows.Graphics.DirectX
|
|
21
|
-
Requires-Dist: winrt-Windows.
|
|
22
|
-
Requires-Dist: winrt-Windows.
|
|
23
|
-
Requires-Dist: winrt-Windows.
|
|
24
|
-
Requires-Dist: winrt-Windows.UI
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Graphics[all]==2.3.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.3.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX.Direct3D11[all]==2.3.0; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.Security.Authorization.AppCapabilityAccess[all]==2.3.0; extra == "all"
|
|
23
|
+
Requires-Dist: winrt-Windows.System[all]==2.3.0; extra == "all"
|
|
24
|
+
Requires-Dist: winrt-Windows.UI[all]==2.3.0; extra == "all"
|
|
25
|
+
Requires-Dist: winrt-Windows.UI.Composition[all]==2.3.0; extra == "all"
|
|
25
26
|
|
|
26
27
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
27
28
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
winrt-runtime==2.3.0
|
|
2
|
+
|
|
3
|
+
[all]
|
|
4
|
+
winrt-Windows.Foundation[all]==2.3.0
|
|
5
|
+
winrt-Windows.Foundation.Collections[all]==2.3.0
|
|
6
|
+
winrt-Windows.Graphics[all]==2.3.0
|
|
7
|
+
winrt-Windows.Graphics.DirectX[all]==2.3.0
|
|
8
|
+
winrt-Windows.Graphics.DirectX.Direct3D11[all]==2.3.0
|
|
9
|
+
winrt-Windows.Security.Authorization.AppCapabilityAccess[all]==2.3.0
|
|
10
|
+
winrt-Windows.System[all]==2.3.0
|
|
11
|
+
winrt-Windows.UI[all]==2.3.0
|
|
12
|
+
winrt-Windows.UI.Composition[all]==2.3.0
|
|
@@ -1,10 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
2.2.0
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
|
File without changes
|
{winrt_windows_graphics_capture-2.2.0 → winrt_windows_graphics_capture-2.3.0}/pyproject.toml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|