winrt-Windows.Devices.Display 2.0.0b1__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.Devices.Display-2.0.0b1/PKG-INFO +22 -0
- winrt-Windows.Devices.Display-2.0.0b1/README.md +7 -0
- winrt-Windows.Devices.Display-2.0.0b1/all-requirements.txt +4 -0
- winrt-Windows.Devices.Display-2.0.0b1/py.Windows.Devices.Display.cpp +687 -0
- winrt-Windows.Devices.Display-2.0.0b1/pyproject.toml +43 -0
- winrt-Windows.Devices.Display-2.0.0b1/pywinrt-version.txt +1 -0
- winrt-Windows.Devices.Display-2.0.0b1/requirements.txt +3 -0
- winrt-Windows.Devices.Display-2.0.0b1/setup.cfg +4 -0
- winrt-Windows.Devices.Display-2.0.0b1/setup.py +17 -0
- winrt-Windows.Devices.Display-2.0.0b1/winrt/_winrt_windows_devices_display.pyi +68 -0
- winrt-Windows.Devices.Display-2.0.0b1/winrt/windows/devices/display/__init__.py +41 -0
- winrt-Windows.Devices.Display-2.0.0b1/winrt_Windows.Devices.Display.egg-info/PKG-INFO +22 -0
- winrt-Windows.Devices.Display-2.0.0b1/winrt_Windows.Devices.Display.egg-info/SOURCES.txt +14 -0
- winrt-Windows.Devices.Display-2.0.0b1/winrt_Windows.Devices.Display.egg-info/dependency_links.txt +1 -0
- winrt-Windows.Devices.Display-2.0.0b1/winrt_Windows.Devices.Display.egg-info/requires.txt +5 -0
- winrt-Windows.Devices.Display-2.0.0b1/winrt_Windows.Devices.Display.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.Devices.Display
|
|
3
|
+
Version: 2.0.0b1
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License: MIT
|
|
6
|
+
Project-URL: Repository, https://github.com/pywrint/pywrinrt
|
|
7
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
8
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Requires-Python: <3.13,>=3.9
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
Provides-Extra: all
|
|
15
|
+
|
|
16
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
17
|
+
|
|
18
|
+
# winrt-Windows.Devices.Display
|
|
19
|
+
|
|
20
|
+
Windows Runtime (WinRT) APIs for for the `Windows.Devices.Display` namespace.
|
|
21
|
+
|
|
22
|
+
This package provides the `winrt.windows.devices.display` module.
|
|
@@ -0,0 +1,687 @@
|
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
|
|
2
|
+
|
|
3
|
+
#include "py.Windows.Devices.Display.h"
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
namespace py::cpp::Windows::Devices::Display
|
|
7
|
+
{
|
|
8
|
+
// ----- DisplayMonitor class --------------------
|
|
9
|
+
|
|
10
|
+
static PyObject* _new_DisplayMonitor(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
11
|
+
{
|
|
12
|
+
static_assert(py::py_type<winrt::Windows::Devices::Display::DisplayMonitor>::type_name);
|
|
13
|
+
py::set_invalid_activation_error(py::py_type<winrt::Windows::Devices::Display::DisplayMonitor>::type_name);
|
|
14
|
+
return nullptr;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static void _dealloc_DisplayMonitor(py::wrapper::Windows::Devices::Display::DisplayMonitor* self) noexcept
|
|
18
|
+
{
|
|
19
|
+
auto tp = Py_TYPE(self);
|
|
20
|
+
std::destroy_at(&self->obj);
|
|
21
|
+
tp->tp_free(self);
|
|
22
|
+
Py_DECREF(tp);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
static PyObject* DisplayMonitor_FromIdAsync(PyObject* /*unused*/, PyObject* args) noexcept
|
|
26
|
+
{
|
|
27
|
+
auto arg_count = PyTuple_Size(args);
|
|
28
|
+
|
|
29
|
+
if (arg_count == 1)
|
|
30
|
+
{
|
|
31
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Display.DisplayMonitor", L"FromIdAsync", 1))
|
|
32
|
+
{
|
|
33
|
+
py::set_arg_count_version_error(1);
|
|
34
|
+
return nullptr;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
try
|
|
38
|
+
{
|
|
39
|
+
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
40
|
+
|
|
41
|
+
return py::convert(winrt::Windows::Devices::Display::DisplayMonitor::FromIdAsync(param0));
|
|
42
|
+
}
|
|
43
|
+
catch (...)
|
|
44
|
+
{
|
|
45
|
+
py::to_PyErr();
|
|
46
|
+
return nullptr;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
else
|
|
50
|
+
{
|
|
51
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
52
|
+
return nullptr;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
static PyObject* DisplayMonitor_FromInterfaceIdAsync(PyObject* /*unused*/, PyObject* args) noexcept
|
|
57
|
+
{
|
|
58
|
+
auto arg_count = PyTuple_Size(args);
|
|
59
|
+
|
|
60
|
+
if (arg_count == 1)
|
|
61
|
+
{
|
|
62
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Display.DisplayMonitor", L"FromInterfaceIdAsync", 1))
|
|
63
|
+
{
|
|
64
|
+
py::set_arg_count_version_error(1);
|
|
65
|
+
return nullptr;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
try
|
|
69
|
+
{
|
|
70
|
+
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
71
|
+
|
|
72
|
+
return py::convert(winrt::Windows::Devices::Display::DisplayMonitor::FromInterfaceIdAsync(param0));
|
|
73
|
+
}
|
|
74
|
+
catch (...)
|
|
75
|
+
{
|
|
76
|
+
py::to_PyErr();
|
|
77
|
+
return nullptr;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
else
|
|
81
|
+
{
|
|
82
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
83
|
+
return nullptr;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
static PyObject* DisplayMonitor_GetDescriptor(py::wrapper::Windows::Devices::Display::DisplayMonitor* self, PyObject* args) noexcept
|
|
88
|
+
{
|
|
89
|
+
auto arg_count = PyTuple_Size(args);
|
|
90
|
+
|
|
91
|
+
if (arg_count == 1)
|
|
92
|
+
{
|
|
93
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Display.DisplayMonitor", L"GetDescriptor", 1))
|
|
94
|
+
{
|
|
95
|
+
py::set_arg_count_version_error(1);
|
|
96
|
+
return nullptr;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
try
|
|
100
|
+
{
|
|
101
|
+
auto param0 = py::convert_to<winrt::Windows::Devices::Display::DisplayMonitorDescriptorKind>(args, 0);
|
|
102
|
+
|
|
103
|
+
return py::convert(self->obj.GetDescriptor(param0));
|
|
104
|
+
}
|
|
105
|
+
catch (...)
|
|
106
|
+
{
|
|
107
|
+
py::to_PyErr();
|
|
108
|
+
return nullptr;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
else
|
|
112
|
+
{
|
|
113
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
114
|
+
return nullptr;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
static PyObject* DisplayMonitor_GetDeviceSelector(PyObject* /*unused*/, PyObject* args) noexcept
|
|
119
|
+
{
|
|
120
|
+
auto arg_count = PyTuple_Size(args);
|
|
121
|
+
|
|
122
|
+
if (arg_count == 0)
|
|
123
|
+
{
|
|
124
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Display.DisplayMonitor", L"GetDeviceSelector", 0))
|
|
125
|
+
{
|
|
126
|
+
py::set_arg_count_version_error(0);
|
|
127
|
+
return nullptr;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
try
|
|
131
|
+
{
|
|
132
|
+
return py::convert(winrt::Windows::Devices::Display::DisplayMonitor::GetDeviceSelector());
|
|
133
|
+
}
|
|
134
|
+
catch (...)
|
|
135
|
+
{
|
|
136
|
+
py::to_PyErr();
|
|
137
|
+
return nullptr;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
else
|
|
141
|
+
{
|
|
142
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
143
|
+
return nullptr;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
static PyObject* DisplayMonitor_get_BluePrimary(py::wrapper::Windows::Devices::Display::DisplayMonitor* self, void* /*unused*/) noexcept
|
|
148
|
+
{
|
|
149
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"BluePrimary"))
|
|
150
|
+
{
|
|
151
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
152
|
+
return nullptr;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
try
|
|
156
|
+
{
|
|
157
|
+
return py::convert(self->obj.BluePrimary());
|
|
158
|
+
}
|
|
159
|
+
catch (...)
|
|
160
|
+
{
|
|
161
|
+
py::to_PyErr();
|
|
162
|
+
return nullptr;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
static PyObject* DisplayMonitor_get_ConnectionKind(py::wrapper::Windows::Devices::Display::DisplayMonitor* self, void* /*unused*/) noexcept
|
|
167
|
+
{
|
|
168
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"ConnectionKind"))
|
|
169
|
+
{
|
|
170
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
171
|
+
return nullptr;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
try
|
|
175
|
+
{
|
|
176
|
+
return py::convert(self->obj.ConnectionKind());
|
|
177
|
+
}
|
|
178
|
+
catch (...)
|
|
179
|
+
{
|
|
180
|
+
py::to_PyErr();
|
|
181
|
+
return nullptr;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
static PyObject* DisplayMonitor_get_DeviceId(py::wrapper::Windows::Devices::Display::DisplayMonitor* self, void* /*unused*/) noexcept
|
|
186
|
+
{
|
|
187
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"DeviceId"))
|
|
188
|
+
{
|
|
189
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
190
|
+
return nullptr;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
try
|
|
194
|
+
{
|
|
195
|
+
return py::convert(self->obj.DeviceId());
|
|
196
|
+
}
|
|
197
|
+
catch (...)
|
|
198
|
+
{
|
|
199
|
+
py::to_PyErr();
|
|
200
|
+
return nullptr;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
static PyObject* DisplayMonitor_get_DisplayAdapterDeviceId(py::wrapper::Windows::Devices::Display::DisplayMonitor* self, void* /*unused*/) noexcept
|
|
205
|
+
{
|
|
206
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"DisplayAdapterDeviceId"))
|
|
207
|
+
{
|
|
208
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
209
|
+
return nullptr;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
try
|
|
213
|
+
{
|
|
214
|
+
return py::convert(self->obj.DisplayAdapterDeviceId());
|
|
215
|
+
}
|
|
216
|
+
catch (...)
|
|
217
|
+
{
|
|
218
|
+
py::to_PyErr();
|
|
219
|
+
return nullptr;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
static PyObject* DisplayMonitor_get_DisplayAdapterId(py::wrapper::Windows::Devices::Display::DisplayMonitor* self, void* /*unused*/) noexcept
|
|
224
|
+
{
|
|
225
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"DisplayAdapterId"))
|
|
226
|
+
{
|
|
227
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
228
|
+
return nullptr;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
try
|
|
232
|
+
{
|
|
233
|
+
return py::convert(self->obj.DisplayAdapterId());
|
|
234
|
+
}
|
|
235
|
+
catch (...)
|
|
236
|
+
{
|
|
237
|
+
py::to_PyErr();
|
|
238
|
+
return nullptr;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
static PyObject* DisplayMonitor_get_DisplayAdapterTargetId(py::wrapper::Windows::Devices::Display::DisplayMonitor* self, void* /*unused*/) noexcept
|
|
243
|
+
{
|
|
244
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"DisplayAdapterTargetId"))
|
|
245
|
+
{
|
|
246
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
247
|
+
return nullptr;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
try
|
|
251
|
+
{
|
|
252
|
+
return py::convert(self->obj.DisplayAdapterTargetId());
|
|
253
|
+
}
|
|
254
|
+
catch (...)
|
|
255
|
+
{
|
|
256
|
+
py::to_PyErr();
|
|
257
|
+
return nullptr;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
static PyObject* DisplayMonitor_get_DisplayName(py::wrapper::Windows::Devices::Display::DisplayMonitor* self, void* /*unused*/) noexcept
|
|
262
|
+
{
|
|
263
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"DisplayName"))
|
|
264
|
+
{
|
|
265
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
266
|
+
return nullptr;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
try
|
|
270
|
+
{
|
|
271
|
+
return py::convert(self->obj.DisplayName());
|
|
272
|
+
}
|
|
273
|
+
catch (...)
|
|
274
|
+
{
|
|
275
|
+
py::to_PyErr();
|
|
276
|
+
return nullptr;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
static PyObject* DisplayMonitor_get_GreenPrimary(py::wrapper::Windows::Devices::Display::DisplayMonitor* self, void* /*unused*/) noexcept
|
|
281
|
+
{
|
|
282
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"GreenPrimary"))
|
|
283
|
+
{
|
|
284
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
285
|
+
return nullptr;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
try
|
|
289
|
+
{
|
|
290
|
+
return py::convert(self->obj.GreenPrimary());
|
|
291
|
+
}
|
|
292
|
+
catch (...)
|
|
293
|
+
{
|
|
294
|
+
py::to_PyErr();
|
|
295
|
+
return nullptr;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
static PyObject* DisplayMonitor_get_MaxAverageFullFrameLuminanceInNits(py::wrapper::Windows::Devices::Display::DisplayMonitor* self, void* /*unused*/) noexcept
|
|
300
|
+
{
|
|
301
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"MaxAverageFullFrameLuminanceInNits"))
|
|
302
|
+
{
|
|
303
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
304
|
+
return nullptr;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
try
|
|
308
|
+
{
|
|
309
|
+
return py::convert(self->obj.MaxAverageFullFrameLuminanceInNits());
|
|
310
|
+
}
|
|
311
|
+
catch (...)
|
|
312
|
+
{
|
|
313
|
+
py::to_PyErr();
|
|
314
|
+
return nullptr;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
static PyObject* DisplayMonitor_get_MaxLuminanceInNits(py::wrapper::Windows::Devices::Display::DisplayMonitor* self, void* /*unused*/) noexcept
|
|
319
|
+
{
|
|
320
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"MaxLuminanceInNits"))
|
|
321
|
+
{
|
|
322
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
323
|
+
return nullptr;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
try
|
|
327
|
+
{
|
|
328
|
+
return py::convert(self->obj.MaxLuminanceInNits());
|
|
329
|
+
}
|
|
330
|
+
catch (...)
|
|
331
|
+
{
|
|
332
|
+
py::to_PyErr();
|
|
333
|
+
return nullptr;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
static PyObject* DisplayMonitor_get_MinLuminanceInNits(py::wrapper::Windows::Devices::Display::DisplayMonitor* self, void* /*unused*/) noexcept
|
|
338
|
+
{
|
|
339
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"MinLuminanceInNits"))
|
|
340
|
+
{
|
|
341
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
342
|
+
return nullptr;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
try
|
|
346
|
+
{
|
|
347
|
+
return py::convert(self->obj.MinLuminanceInNits());
|
|
348
|
+
}
|
|
349
|
+
catch (...)
|
|
350
|
+
{
|
|
351
|
+
py::to_PyErr();
|
|
352
|
+
return nullptr;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
static PyObject* DisplayMonitor_get_NativeResolutionInRawPixels(py::wrapper::Windows::Devices::Display::DisplayMonitor* self, void* /*unused*/) noexcept
|
|
357
|
+
{
|
|
358
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"NativeResolutionInRawPixels"))
|
|
359
|
+
{
|
|
360
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
361
|
+
return nullptr;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
try
|
|
365
|
+
{
|
|
366
|
+
return py::convert(self->obj.NativeResolutionInRawPixels());
|
|
367
|
+
}
|
|
368
|
+
catch (...)
|
|
369
|
+
{
|
|
370
|
+
py::to_PyErr();
|
|
371
|
+
return nullptr;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
static PyObject* DisplayMonitor_get_PhysicalConnector(py::wrapper::Windows::Devices::Display::DisplayMonitor* self, void* /*unused*/) noexcept
|
|
376
|
+
{
|
|
377
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"PhysicalConnector"))
|
|
378
|
+
{
|
|
379
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
380
|
+
return nullptr;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
try
|
|
384
|
+
{
|
|
385
|
+
return py::convert(self->obj.PhysicalConnector());
|
|
386
|
+
}
|
|
387
|
+
catch (...)
|
|
388
|
+
{
|
|
389
|
+
py::to_PyErr();
|
|
390
|
+
return nullptr;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
static PyObject* DisplayMonitor_get_PhysicalSizeInInches(py::wrapper::Windows::Devices::Display::DisplayMonitor* self, void* /*unused*/) noexcept
|
|
395
|
+
{
|
|
396
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"PhysicalSizeInInches"))
|
|
397
|
+
{
|
|
398
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
399
|
+
return nullptr;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
try
|
|
403
|
+
{
|
|
404
|
+
return py::convert(self->obj.PhysicalSizeInInches());
|
|
405
|
+
}
|
|
406
|
+
catch (...)
|
|
407
|
+
{
|
|
408
|
+
py::to_PyErr();
|
|
409
|
+
return nullptr;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
static PyObject* DisplayMonitor_get_RawDpiX(py::wrapper::Windows::Devices::Display::DisplayMonitor* self, void* /*unused*/) noexcept
|
|
414
|
+
{
|
|
415
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"RawDpiX"))
|
|
416
|
+
{
|
|
417
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
418
|
+
return nullptr;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
try
|
|
422
|
+
{
|
|
423
|
+
return py::convert(self->obj.RawDpiX());
|
|
424
|
+
}
|
|
425
|
+
catch (...)
|
|
426
|
+
{
|
|
427
|
+
py::to_PyErr();
|
|
428
|
+
return nullptr;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
static PyObject* DisplayMonitor_get_RawDpiY(py::wrapper::Windows::Devices::Display::DisplayMonitor* self, void* /*unused*/) noexcept
|
|
433
|
+
{
|
|
434
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"RawDpiY"))
|
|
435
|
+
{
|
|
436
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
437
|
+
return nullptr;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
try
|
|
441
|
+
{
|
|
442
|
+
return py::convert(self->obj.RawDpiY());
|
|
443
|
+
}
|
|
444
|
+
catch (...)
|
|
445
|
+
{
|
|
446
|
+
py::to_PyErr();
|
|
447
|
+
return nullptr;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
static PyObject* DisplayMonitor_get_RedPrimary(py::wrapper::Windows::Devices::Display::DisplayMonitor* self, void* /*unused*/) noexcept
|
|
452
|
+
{
|
|
453
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"RedPrimary"))
|
|
454
|
+
{
|
|
455
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
456
|
+
return nullptr;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
try
|
|
460
|
+
{
|
|
461
|
+
return py::convert(self->obj.RedPrimary());
|
|
462
|
+
}
|
|
463
|
+
catch (...)
|
|
464
|
+
{
|
|
465
|
+
py::to_PyErr();
|
|
466
|
+
return nullptr;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
static PyObject* DisplayMonitor_get_UsageKind(py::wrapper::Windows::Devices::Display::DisplayMonitor* self, void* /*unused*/) noexcept
|
|
471
|
+
{
|
|
472
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"UsageKind"))
|
|
473
|
+
{
|
|
474
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
475
|
+
return nullptr;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
try
|
|
479
|
+
{
|
|
480
|
+
return py::convert(self->obj.UsageKind());
|
|
481
|
+
}
|
|
482
|
+
catch (...)
|
|
483
|
+
{
|
|
484
|
+
py::to_PyErr();
|
|
485
|
+
return nullptr;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
static PyObject* DisplayMonitor_get_WhitePoint(py::wrapper::Windows::Devices::Display::DisplayMonitor* self, void* /*unused*/) noexcept
|
|
490
|
+
{
|
|
491
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"WhitePoint"))
|
|
492
|
+
{
|
|
493
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
494
|
+
return nullptr;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
try
|
|
498
|
+
{
|
|
499
|
+
return py::convert(self->obj.WhitePoint());
|
|
500
|
+
}
|
|
501
|
+
catch (...)
|
|
502
|
+
{
|
|
503
|
+
py::to_PyErr();
|
|
504
|
+
return nullptr;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
static PyObject* DisplayMonitor_get_IsDolbyVisionSupportedInHdrMode(py::wrapper::Windows::Devices::Display::DisplayMonitor* self, void* /*unused*/) noexcept
|
|
509
|
+
{
|
|
510
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"IsDolbyVisionSupportedInHdrMode"))
|
|
511
|
+
{
|
|
512
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
513
|
+
return nullptr;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
try
|
|
517
|
+
{
|
|
518
|
+
return py::convert(self->obj.IsDolbyVisionSupportedInHdrMode());
|
|
519
|
+
}
|
|
520
|
+
catch (...)
|
|
521
|
+
{
|
|
522
|
+
py::to_PyErr();
|
|
523
|
+
return nullptr;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
static PyObject* _assign_array_DisplayMonitor(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
528
|
+
{
|
|
529
|
+
auto array = std::make_unique<py::ComArray<winrt::Windows::Devices::Display::DisplayMonitor>>();
|
|
530
|
+
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
531
|
+
{
|
|
532
|
+
return nullptr;
|
|
533
|
+
}
|
|
534
|
+
Py_RETURN_NONE;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
static PyObject* _from_DisplayMonitor(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
538
|
+
{
|
|
539
|
+
try
|
|
540
|
+
{
|
|
541
|
+
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
542
|
+
return py::convert(return_value.as<winrt::Windows::Devices::Display::DisplayMonitor>());
|
|
543
|
+
}
|
|
544
|
+
catch (...)
|
|
545
|
+
{
|
|
546
|
+
py::to_PyErr();
|
|
547
|
+
return nullptr;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
static PyMethodDef _methods_DisplayMonitor[] = {
|
|
552
|
+
{ "get_descriptor", reinterpret_cast<PyCFunction>(DisplayMonitor_GetDescriptor), METH_VARARGS, nullptr },
|
|
553
|
+
{ "_assign_array_", _assign_array_DisplayMonitor, METH_O | METH_STATIC, nullptr },
|
|
554
|
+
{ "_from", reinterpret_cast<PyCFunction>(_from_DisplayMonitor), METH_O | METH_STATIC, nullptr },
|
|
555
|
+
{ }
|
|
556
|
+
};
|
|
557
|
+
|
|
558
|
+
static PyGetSetDef _getset_DisplayMonitor[] = {
|
|
559
|
+
{ "blue_primary", reinterpret_cast<getter>(DisplayMonitor_get_BluePrimary), nullptr, nullptr, nullptr },
|
|
560
|
+
{ "connection_kind", reinterpret_cast<getter>(DisplayMonitor_get_ConnectionKind), nullptr, nullptr, nullptr },
|
|
561
|
+
{ "device_id", reinterpret_cast<getter>(DisplayMonitor_get_DeviceId), nullptr, nullptr, nullptr },
|
|
562
|
+
{ "display_adapter_device_id", reinterpret_cast<getter>(DisplayMonitor_get_DisplayAdapterDeviceId), nullptr, nullptr, nullptr },
|
|
563
|
+
{ "display_adapter_id", reinterpret_cast<getter>(DisplayMonitor_get_DisplayAdapterId), nullptr, nullptr, nullptr },
|
|
564
|
+
{ "display_adapter_target_id", reinterpret_cast<getter>(DisplayMonitor_get_DisplayAdapterTargetId), nullptr, nullptr, nullptr },
|
|
565
|
+
{ "display_name", reinterpret_cast<getter>(DisplayMonitor_get_DisplayName), nullptr, nullptr, nullptr },
|
|
566
|
+
{ "green_primary", reinterpret_cast<getter>(DisplayMonitor_get_GreenPrimary), nullptr, nullptr, nullptr },
|
|
567
|
+
{ "max_average_full_frame_luminance_in_nits", reinterpret_cast<getter>(DisplayMonitor_get_MaxAverageFullFrameLuminanceInNits), nullptr, nullptr, nullptr },
|
|
568
|
+
{ "max_luminance_in_nits", reinterpret_cast<getter>(DisplayMonitor_get_MaxLuminanceInNits), nullptr, nullptr, nullptr },
|
|
569
|
+
{ "min_luminance_in_nits", reinterpret_cast<getter>(DisplayMonitor_get_MinLuminanceInNits), nullptr, nullptr, nullptr },
|
|
570
|
+
{ "native_resolution_in_raw_pixels", reinterpret_cast<getter>(DisplayMonitor_get_NativeResolutionInRawPixels), nullptr, nullptr, nullptr },
|
|
571
|
+
{ "physical_connector", reinterpret_cast<getter>(DisplayMonitor_get_PhysicalConnector), nullptr, nullptr, nullptr },
|
|
572
|
+
{ "physical_size_in_inches", reinterpret_cast<getter>(DisplayMonitor_get_PhysicalSizeInInches), nullptr, nullptr, nullptr },
|
|
573
|
+
{ "raw_dpi_x", reinterpret_cast<getter>(DisplayMonitor_get_RawDpiX), nullptr, nullptr, nullptr },
|
|
574
|
+
{ "raw_dpi_y", reinterpret_cast<getter>(DisplayMonitor_get_RawDpiY), nullptr, nullptr, nullptr },
|
|
575
|
+
{ "red_primary", reinterpret_cast<getter>(DisplayMonitor_get_RedPrimary), nullptr, nullptr, nullptr },
|
|
576
|
+
{ "usage_kind", reinterpret_cast<getter>(DisplayMonitor_get_UsageKind), nullptr, nullptr, nullptr },
|
|
577
|
+
{ "white_point", reinterpret_cast<getter>(DisplayMonitor_get_WhitePoint), nullptr, nullptr, nullptr },
|
|
578
|
+
{ "is_dolby_vision_supported_in_hdr_mode", reinterpret_cast<getter>(DisplayMonitor_get_IsDolbyVisionSupportedInHdrMode), nullptr, nullptr, nullptr },
|
|
579
|
+
{ }
|
|
580
|
+
};
|
|
581
|
+
|
|
582
|
+
static PyType_Slot _type_slots_DisplayMonitor[] =
|
|
583
|
+
{
|
|
584
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_DisplayMonitor) },
|
|
585
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DisplayMonitor) },
|
|
586
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_DisplayMonitor) },
|
|
587
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_DisplayMonitor) },
|
|
588
|
+
{ },
|
|
589
|
+
};
|
|
590
|
+
|
|
591
|
+
static PyType_Spec type_spec_DisplayMonitor =
|
|
592
|
+
{
|
|
593
|
+
"winrt._winrt_windows_devices_display.DisplayMonitor",
|
|
594
|
+
sizeof(py::wrapper::Windows::Devices::Display::DisplayMonitor),
|
|
595
|
+
0,
|
|
596
|
+
Py_TPFLAGS_DEFAULT,
|
|
597
|
+
_type_slots_DisplayMonitor
|
|
598
|
+
};
|
|
599
|
+
|
|
600
|
+
static PyGetSetDef getset_DisplayMonitor_Static[] = {
|
|
601
|
+
{ }
|
|
602
|
+
};
|
|
603
|
+
|
|
604
|
+
static PyMethodDef methods_DisplayMonitor_Static[] = {
|
|
605
|
+
{ "from_id_async", reinterpret_cast<PyCFunction>(DisplayMonitor_FromIdAsync), METH_VARARGS, nullptr },
|
|
606
|
+
{ "from_interface_id_async", reinterpret_cast<PyCFunction>(DisplayMonitor_FromInterfaceIdAsync), METH_VARARGS, nullptr },
|
|
607
|
+
{ "get_device_selector", reinterpret_cast<PyCFunction>(DisplayMonitor_GetDeviceSelector), METH_VARARGS, nullptr },
|
|
608
|
+
{ }
|
|
609
|
+
};
|
|
610
|
+
|
|
611
|
+
static PyType_Slot type_slots_DisplayMonitor_Static[] =
|
|
612
|
+
{
|
|
613
|
+
{ Py_tp_base, reinterpret_cast<void*>(&PyType_Type) },
|
|
614
|
+
{ Py_tp_getset, reinterpret_cast<void*>(getset_DisplayMonitor_Static) },
|
|
615
|
+
{ Py_tp_methods, reinterpret_cast<void*>(methods_DisplayMonitor_Static) },
|
|
616
|
+
{ }
|
|
617
|
+
};
|
|
618
|
+
|
|
619
|
+
static PyType_Spec type_spec_DisplayMonitor_Static =
|
|
620
|
+
{
|
|
621
|
+
"winrt._winrt_windows_devices_display.DisplayMonitor_Static",
|
|
622
|
+
static_cast<int>(PyType_Type.tp_basicsize),
|
|
623
|
+
static_cast<int>(PyType_Type.tp_itemsize),
|
|
624
|
+
Py_TPFLAGS_DEFAULT,
|
|
625
|
+
type_slots_DisplayMonitor_Static
|
|
626
|
+
};
|
|
627
|
+
|
|
628
|
+
// ----- Windows.Devices.Display Initialization --------------------
|
|
629
|
+
PyDoc_STRVAR(module_doc, "Windows::Devices::Display");
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
static PyModuleDef module_def
|
|
633
|
+
= {PyModuleDef_HEAD_INIT,
|
|
634
|
+
"_winrt_windows_devices_display",
|
|
635
|
+
module_doc,
|
|
636
|
+
0,
|
|
637
|
+
nullptr,
|
|
638
|
+
nullptr,
|
|
639
|
+
nullptr,
|
|
640
|
+
nullptr,
|
|
641
|
+
nullptr};
|
|
642
|
+
|
|
643
|
+
} // py::cpp::Windows::Devices::Display
|
|
644
|
+
|
|
645
|
+
PyMODINIT_FUNC PyInit__winrt_windows_devices_display(void) noexcept
|
|
646
|
+
{
|
|
647
|
+
using namespace py::cpp::Windows::Devices::Display;
|
|
648
|
+
|
|
649
|
+
if (py::import_winrt_runtime() == -1)
|
|
650
|
+
{
|
|
651
|
+
return nullptr;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
py::pyobj_handle module{PyModule_Create(&module_def)};
|
|
655
|
+
|
|
656
|
+
if (!module)
|
|
657
|
+
{
|
|
658
|
+
return nullptr;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
auto object_type = py::get_object_type();
|
|
662
|
+
if (!object_type)
|
|
663
|
+
{
|
|
664
|
+
return nullptr;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
|
|
668
|
+
|
|
669
|
+
if (!object_bases)
|
|
670
|
+
{
|
|
671
|
+
return nullptr;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
py::pyobj_handle type_DisplayMonitor_Static{PyType_FromSpec(&type_spec_DisplayMonitor_Static)};
|
|
675
|
+
if (!type_DisplayMonitor_Static)
|
|
676
|
+
{
|
|
677
|
+
return nullptr;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
if (py::register_python_type(module.get(), &type_spec_DisplayMonitor, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_DisplayMonitor_Static.get())) == -1)
|
|
681
|
+
{
|
|
682
|
+
return nullptr;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
return module.detach();
|
|
687
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
[build-system]
|
|
4
|
+
requires = ["setuptools", "setuptools-scm", "winrt-sdk"]
|
|
5
|
+
build-backend = "setuptools.build_meta"
|
|
6
|
+
|
|
7
|
+
[project]
|
|
8
|
+
name = "winrt-Windows.Devices.Display"
|
|
9
|
+
description = "Python projection of Windows Runtime (WinRT) APIs"
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
license = { text = "MIT" }
|
|
12
|
+
classifiers = [
|
|
13
|
+
"Operating System :: Microsoft :: Windows",
|
|
14
|
+
"Programming Language :: Python :: 3",
|
|
15
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
]
|
|
18
|
+
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
+
requires-python = ">=3.9,<3.13"
|
|
20
|
+
|
|
21
|
+
[project.urls]
|
|
22
|
+
# Homepage = "https://github.com/pywrint/pywrinrt"
|
|
23
|
+
# Documentation = "https://readthedocs.org"
|
|
24
|
+
Repository = "https://github.com/pywrint/pywrinrt"
|
|
25
|
+
Changelog = "https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md"
|
|
26
|
+
|
|
27
|
+
[tool.setuptools.dynamic]
|
|
28
|
+
version = { file = "pywinrt-version.txt" }
|
|
29
|
+
dependencies = { file = "requirements.txt" }
|
|
30
|
+
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
|
+
|
|
32
|
+
[tool.cibuildwheel]
|
|
33
|
+
# use local winrt-sdk build dependency
|
|
34
|
+
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
35
|
+
# don't install winrt-sdk from PyPI
|
|
36
|
+
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
37
|
+
# don't build for PyPy
|
|
38
|
+
skip = "pp*"
|
|
39
|
+
# suppress warnings about ARM64 testing
|
|
40
|
+
test-skip = "*-win_arm64"
|
|
41
|
+
|
|
42
|
+
[tool.cibuildwheel.windows]
|
|
43
|
+
archs = ["x86", "AMD64", "ARM64"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.0.0-beta.1
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
from setuptools import Extension, setup
|
|
4
|
+
from winrt_sdk import get_include_dirs
|
|
5
|
+
|
|
6
|
+
setup(
|
|
7
|
+
ext_modules=[
|
|
8
|
+
Extension(
|
|
9
|
+
"winrt._winrt_windows_devices_display",
|
|
10
|
+
sources=["py.Windows.Devices.Display.cpp"],
|
|
11
|
+
include_dirs=get_include_dirs(),
|
|
12
|
+
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
+
libraries=["windowsapp"],
|
|
14
|
+
)
|
|
15
|
+
],
|
|
16
|
+
package_data={"winrt": ["*.pyi"]},
|
|
17
|
+
)
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.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
|
+
|
|
15
|
+
from winrt.windows.devices.display import DisplayMonitorConnectionKind, DisplayMonitorDescriptorKind, DisplayMonitorPhysicalConnectorKind, DisplayMonitorUsageKind
|
|
16
|
+
|
|
17
|
+
Self = typing.TypeVar('Self')
|
|
18
|
+
|
|
19
|
+
class DisplayMonitor_Static(type):
|
|
20
|
+
def from_id_async(cls, device_id: str, /) -> winrt.windows.foundation.IAsyncOperation[DisplayMonitor]: ...
|
|
21
|
+
def from_interface_id_async(cls, device_interface_id: str, /) -> winrt.windows.foundation.IAsyncOperation[DisplayMonitor]: ...
|
|
22
|
+
def get_device_selector(cls) -> str: ...
|
|
23
|
+
|
|
24
|
+
class DisplayMonitor(winrt.system.Object, metaclass=DisplayMonitor_Static):
|
|
25
|
+
@staticmethod
|
|
26
|
+
def _from(obj: winrt.system.Object, /) -> DisplayMonitor: ...
|
|
27
|
+
def get_descriptor(self, descriptor_kind: DisplayMonitorDescriptorKind, /) -> winrt.system.UInt8: ...
|
|
28
|
+
@_property
|
|
29
|
+
def blue_primary(self) -> winrt.windows.foundation.Point: ...
|
|
30
|
+
@_property
|
|
31
|
+
def connection_kind(self) -> DisplayMonitorConnectionKind: ...
|
|
32
|
+
@_property
|
|
33
|
+
def device_id(self) -> str: ...
|
|
34
|
+
@_property
|
|
35
|
+
def display_adapter_device_id(self) -> str: ...
|
|
36
|
+
@_property
|
|
37
|
+
def display_adapter_id(self) -> winrt.windows.graphics.DisplayAdapterId: ...
|
|
38
|
+
@_property
|
|
39
|
+
def display_adapter_target_id(self) -> winrt.system.UInt32: ...
|
|
40
|
+
@_property
|
|
41
|
+
def display_name(self) -> str: ...
|
|
42
|
+
@_property
|
|
43
|
+
def green_primary(self) -> winrt.windows.foundation.Point: ...
|
|
44
|
+
@_property
|
|
45
|
+
def max_average_full_frame_luminance_in_nits(self) -> winrt.system.Single: ...
|
|
46
|
+
@_property
|
|
47
|
+
def max_luminance_in_nits(self) -> winrt.system.Single: ...
|
|
48
|
+
@_property
|
|
49
|
+
def min_luminance_in_nits(self) -> winrt.system.Single: ...
|
|
50
|
+
@_property
|
|
51
|
+
def native_resolution_in_raw_pixels(self) -> winrt.windows.graphics.SizeInt32: ...
|
|
52
|
+
@_property
|
|
53
|
+
def physical_connector(self) -> DisplayMonitorPhysicalConnectorKind: ...
|
|
54
|
+
@_property
|
|
55
|
+
def physical_size_in_inches(self) -> typing.Optional[typing.Optional[winrt.windows.foundation.Size]]: ...
|
|
56
|
+
@_property
|
|
57
|
+
def raw_dpi_x(self) -> winrt.system.Single: ...
|
|
58
|
+
@_property
|
|
59
|
+
def raw_dpi_y(self) -> winrt.system.Single: ...
|
|
60
|
+
@_property
|
|
61
|
+
def red_primary(self) -> winrt.windows.foundation.Point: ...
|
|
62
|
+
@_property
|
|
63
|
+
def usage_kind(self) -> DisplayMonitorUsageKind: ...
|
|
64
|
+
@_property
|
|
65
|
+
def white_point(self) -> winrt.windows.foundation.Point: ...
|
|
66
|
+
@_property
|
|
67
|
+
def is_dolby_vision_supported_in_hdr_mode(self) -> bool: ...
|
|
68
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
|
|
5
|
+
import winrt.system
|
|
6
|
+
from winrt import _winrt_windows_devices_display
|
|
7
|
+
|
|
8
|
+
__all__ = [
|
|
9
|
+
"DisplayMonitorConnectionKind",
|
|
10
|
+
"DisplayMonitorDescriptorKind",
|
|
11
|
+
"DisplayMonitorPhysicalConnectorKind",
|
|
12
|
+
"DisplayMonitorUsageKind",
|
|
13
|
+
"DisplayMonitor",
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
class DisplayMonitorConnectionKind(enum.IntEnum):
|
|
17
|
+
INTERNAL = 0
|
|
18
|
+
WIRED = 1
|
|
19
|
+
WIRELESS = 2
|
|
20
|
+
VIRTUAL = 3
|
|
21
|
+
|
|
22
|
+
class DisplayMonitorDescriptorKind(enum.IntEnum):
|
|
23
|
+
EDID = 0
|
|
24
|
+
DISPLAY_ID = 1
|
|
25
|
+
|
|
26
|
+
class DisplayMonitorPhysicalConnectorKind(enum.IntEnum):
|
|
27
|
+
UNKNOWN = 0
|
|
28
|
+
H_D15 = 1
|
|
29
|
+
ANALOG_T_V = 2
|
|
30
|
+
DVI = 3
|
|
31
|
+
HDMI = 4
|
|
32
|
+
LVDS = 5
|
|
33
|
+
SDI = 6
|
|
34
|
+
DISPLAY_PORT = 7
|
|
35
|
+
|
|
36
|
+
class DisplayMonitorUsageKind(enum.IntEnum):
|
|
37
|
+
STANDARD = 0
|
|
38
|
+
HEAD_MOUNTED = 1
|
|
39
|
+
SPECIAL_PURPOSE = 2
|
|
40
|
+
|
|
41
|
+
DisplayMonitor = _winrt_windows_devices_display.DisplayMonitor
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.Devices.Display
|
|
3
|
+
Version: 2.0.0b1
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License: MIT
|
|
6
|
+
Project-URL: Repository, https://github.com/pywrint/pywrinrt
|
|
7
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
8
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Requires-Python: <3.13,>=3.9
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
Provides-Extra: all
|
|
15
|
+
|
|
16
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
17
|
+
|
|
18
|
+
# winrt-Windows.Devices.Display
|
|
19
|
+
|
|
20
|
+
Windows Runtime (WinRT) APIs for for the `Windows.Devices.Display` namespace.
|
|
21
|
+
|
|
22
|
+
This package provides the `winrt.windows.devices.display` module.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
all-requirements.txt
|
|
3
|
+
py.Windows.Devices.Display.cpp
|
|
4
|
+
pyproject.toml
|
|
5
|
+
pywinrt-version.txt
|
|
6
|
+
requirements.txt
|
|
7
|
+
setup.py
|
|
8
|
+
winrt/_winrt_windows_devices_display.pyi
|
|
9
|
+
winrt/windows/devices/display/__init__.py
|
|
10
|
+
winrt_Windows.Devices.Display.egg-info/PKG-INFO
|
|
11
|
+
winrt_Windows.Devices.Display.egg-info/SOURCES.txt
|
|
12
|
+
winrt_Windows.Devices.Display.egg-info/dependency_links.txt
|
|
13
|
+
winrt_Windows.Devices.Display.egg-info/requires.txt
|
|
14
|
+
winrt_Windows.Devices.Display.egg-info/top_level.txt
|
winrt-Windows.Devices.Display-2.0.0b1/winrt_Windows.Devices.Display.egg-info/dependency_links.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
winrt
|