winrt-Windows.System.Display 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_system_display-2.0.1 → winrt_windows_system_display-2.1.0}/PKG-INFO +2 -2
- {winrt_windows_system_display-2.0.1 → winrt_windows_system_display-2.1.0}/py.Windows.System.Display.cpp +28 -33
- winrt_windows_system_display-2.1.0/pywinrt-version.txt +1 -0
- {winrt_windows_system_display-2.0.1 → winrt_windows_system_display-2.1.0}/requirements.txt +2 -2
- {winrt_windows_system_display-2.0.1 → winrt_windows_system_display-2.1.0}/winrt/_winrt_windows_system_display.pyi +2 -2
- {winrt_windows_system_display-2.0.1 → winrt_windows_system_display-2.1.0}/winrt/windows/system/display/__init__.py +1 -1
- {winrt_windows_system_display-2.0.1 → winrt_windows_system_display-2.1.0}/winrt_Windows.System.Display.egg-info/PKG-INFO +2 -2
- winrt_windows_system_display-2.1.0/winrt_Windows.System.Display.egg-info/requires.txt +1 -0
- winrt_windows_system_display-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_system_display-2.0.1/winrt_Windows.System.Display.egg-info/requires.txt +0 -1
- {winrt_windows_system_display-2.0.1 → winrt_windows_system_display-2.1.0}/README.md +0 -0
- {winrt_windows_system_display-2.0.1 → winrt_windows_system_display-2.1.0}/pyproject.toml +0 -0
- {winrt_windows_system_display-2.0.1 → winrt_windows_system_display-2.1.0}/setup.cfg +0 -0
- {winrt_windows_system_display-2.0.1 → winrt_windows_system_display-2.1.0}/setup.py +0 -0
- {winrt_windows_system_display-2.0.1 → winrt_windows_system_display-2.1.0}/winrt/windows/system/display/py.typed +0 -0
- {winrt_windows_system_display-2.0.1 → winrt_windows_system_display-2.1.0}/winrt_Windows.System.Display.egg-info/SOURCES.txt +0 -0
- {winrt_windows_system_display-2.0.1 → winrt_windows_system_display-2.1.0}/winrt_Windows.System.Display.egg-info/dependency_links.txt +0 -0
- {winrt_windows_system_display-2.0.1 → winrt_windows_system_display-2.1.0}/winrt_Windows.System.Display.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.Display
|
|
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,7 +12,7 @@ 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
|
|
|
17
17
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
18
|
|
|
@@ -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.System.Display.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::System::Display
|
|
7
6
|
{
|
|
8
7
|
// ----- DisplayRequest class --------------------
|
|
@@ -50,14 +49,14 @@ namespace py::cpp::Windows::System::Display
|
|
|
50
49
|
|
|
51
50
|
if (arg_count == 0)
|
|
52
51
|
{
|
|
53
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Display.DisplayRequest", L"RequestActive", 0))
|
|
54
|
-
{
|
|
55
|
-
py::set_arg_count_version_error(0);
|
|
56
|
-
return nullptr;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
52
|
try
|
|
60
53
|
{
|
|
54
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Display.DisplayRequest", L"RequestActive", 0))
|
|
55
|
+
{
|
|
56
|
+
py::set_arg_count_version_error(0);
|
|
57
|
+
return nullptr;
|
|
58
|
+
}
|
|
59
|
+
|
|
61
60
|
self->obj.RequestActive();
|
|
62
61
|
Py_RETURN_NONE;
|
|
63
62
|
}
|
|
@@ -80,14 +79,14 @@ namespace py::cpp::Windows::System::Display
|
|
|
80
79
|
|
|
81
80
|
if (arg_count == 0)
|
|
82
81
|
{
|
|
83
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Display.DisplayRequest", L"RequestRelease", 0))
|
|
84
|
-
{
|
|
85
|
-
py::set_arg_count_version_error(0);
|
|
86
|
-
return nullptr;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
82
|
try
|
|
90
83
|
{
|
|
84
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Display.DisplayRequest", L"RequestRelease", 0))
|
|
85
|
+
{
|
|
86
|
+
py::set_arg_count_version_error(0);
|
|
87
|
+
return nullptr;
|
|
88
|
+
}
|
|
89
|
+
|
|
91
90
|
self->obj.RequestRelease();
|
|
92
91
|
Py_RETURN_NONE;
|
|
93
92
|
}
|
|
@@ -140,39 +139,35 @@ namespace py::cpp::Windows::System::Display
|
|
|
140
139
|
{ }
|
|
141
140
|
};
|
|
142
141
|
|
|
143
|
-
static PyType_Slot _type_slots_DisplayRequest[] =
|
|
144
|
-
{
|
|
142
|
+
static PyType_Slot _type_slots_DisplayRequest[] = {
|
|
145
143
|
{ Py_tp_new, reinterpret_cast<void*>(_new_DisplayRequest) },
|
|
146
144
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DisplayRequest) },
|
|
147
145
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_DisplayRequest) },
|
|
148
146
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_DisplayRequest) },
|
|
149
|
-
{ }
|
|
147
|
+
{ }
|
|
150
148
|
};
|
|
151
149
|
|
|
152
|
-
static PyType_Spec type_spec_DisplayRequest =
|
|
153
|
-
{
|
|
150
|
+
static PyType_Spec type_spec_DisplayRequest = {
|
|
154
151
|
"winrt._winrt_windows_system_display.DisplayRequest",
|
|
155
152
|
sizeof(py::wrapper::Windows::System::Display::DisplayRequest),
|
|
156
153
|
0,
|
|
157
154
|
Py_TPFLAGS_DEFAULT,
|
|
158
|
-
_type_slots_DisplayRequest
|
|
159
|
-
};
|
|
155
|
+
_type_slots_DisplayRequest};
|
|
160
156
|
|
|
161
157
|
// ----- Windows.System.Display Initialization --------------------
|
|
162
|
-
PyDoc_STRVAR(module_doc, "Windows::System::Display");
|
|
163
158
|
|
|
159
|
+
PyDoc_STRVAR(module_doc, "Windows.System.Display");
|
|
164
160
|
|
|
165
|
-
static PyModuleDef module_def
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
161
|
+
static PyModuleDef module_def = {
|
|
162
|
+
PyModuleDef_HEAD_INIT,
|
|
163
|
+
"_winrt_windows_system_display",
|
|
164
|
+
module_doc,
|
|
165
|
+
0,
|
|
166
|
+
nullptr,
|
|
167
|
+
nullptr,
|
|
168
|
+
nullptr,
|
|
169
|
+
nullptr,
|
|
170
|
+
nullptr};
|
|
176
171
|
} // py::cpp::Windows::System::Display
|
|
177
172
|
|
|
178
173
|
PyMODINIT_FUNC PyInit__winrt_windows_system_display(void) noexcept
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.0
|
|
@@ -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
|
|
@@ -1,4 +1,4 @@
|
|
|
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
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -16,7 +16,7 @@ Self = typing.TypeVar('Self')
|
|
|
16
16
|
class DisplayRequest(winrt.system.Object):
|
|
17
17
|
@staticmethod
|
|
18
18
|
def _from(obj: winrt.system.Object, /) -> DisplayRequest: ...
|
|
19
|
-
def __new__(cls: typing.Type[DisplayRequest]) -> DisplayRequest
|
|
19
|
+
def __new__(cls: typing.Type[DisplayRequest]) -> DisplayRequest: ...
|
|
20
20
|
def request_active(self) -> None: ...
|
|
21
21
|
def request_release(self) -> None: ...
|
|
22
22
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.Display
|
|
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,7 +12,7 @@ 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
|
|
|
17
17
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
18
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
winrt-runtime==2.1.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.1
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
winrt-runtime==2.0.1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|