winrt-Windows.Devices.Display 2.3.0__tar.gz → 3.0.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.
Files changed (21) hide show
  1. {winrt_windows_devices_display-2.3.0 → winrt_windows_devices_display-3.0.0}/PKG-INFO +5 -5
  2. winrt_windows_devices_display-3.0.0/all-requirements.txt +4 -0
  3. {winrt_windows_devices_display-2.3.0 → winrt_windows_devices_display-3.0.0}/py.Windows.Devices.Display.cpp +145 -44
  4. {winrt_windows_devices_display-2.3.0 → winrt_windows_devices_display-3.0.0}/pyproject.toml +2 -2
  5. winrt_windows_devices_display-3.0.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_devices_display-2.3.0 → winrt_windows_devices_display-3.0.0}/requirements.txt +2 -2
  7. {winrt_windows_devices_display-2.3.0 → winrt_windows_devices_display-3.0.0}/setup.py +1 -1
  8. winrt_windows_devices_display-3.0.0/winrt/_winrt_windows_devices_display.pyi +92 -0
  9. {winrt_windows_devices_display-2.3.0 → winrt_windows_devices_display-3.0.0}/winrt/windows/devices/display/__init__.py +5 -4
  10. {winrt_windows_devices_display-2.3.0 → winrt_windows_devices_display-3.0.0}/winrt_Windows.Devices.Display.egg-info/PKG-INFO +5 -5
  11. winrt_windows_devices_display-3.0.0/winrt_Windows.Devices.Display.egg-info/requires.txt +5 -0
  12. winrt_windows_devices_display-2.3.0/all-requirements.txt +0 -4
  13. winrt_windows_devices_display-2.3.0/pywinrt-version.txt +0 -1
  14. winrt_windows_devices_display-2.3.0/winrt/_winrt_windows_devices_display.pyi +0 -70
  15. winrt_windows_devices_display-2.3.0/winrt_Windows.Devices.Display.egg-info/requires.txt +0 -5
  16. {winrt_windows_devices_display-2.3.0 → winrt_windows_devices_display-3.0.0}/README.md +0 -0
  17. {winrt_windows_devices_display-2.3.0 → winrt_windows_devices_display-3.0.0}/setup.cfg +0 -0
  18. {winrt_windows_devices_display-2.3.0 → winrt_windows_devices_display-3.0.0}/winrt/windows/devices/display/py.typed +0 -0
  19. {winrt_windows_devices_display-2.3.0 → winrt_windows_devices_display-3.0.0}/winrt_Windows.Devices.Display.egg-info/SOURCES.txt +0 -0
  20. {winrt_windows_devices_display-2.3.0 → winrt_windows_devices_display-3.0.0}/winrt_Windows.Devices.Display.egg-info/dependency_links.txt +0 -0
  21. {winrt_windows_devices_display-2.3.0 → winrt_windows_devices_display-3.0.0}/winrt_Windows.Devices.Display.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Devices.Display
3
- Version: 2.3.0
3
+ Version: 3.0.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.0.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Graphics[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Graphics[all]==3.0.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,4 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
+
3
+ winrt-Windows.Foundation[all]==3.0.0
4
+ winrt-Windows.Graphics[all]==3.0.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
3
  #include "py.Windows.Devices.Display.h"
4
4
 
@@ -23,7 +23,7 @@ namespace py::cpp::Windows::Devices::Display
23
23
 
24
24
  static PyObject* DisplayMonitor_FromIdAsync(PyObject* /*unused*/, PyObject* args) noexcept
25
25
  {
26
- auto arg_count = PyTuple_Size(args);
26
+ auto arg_count = PyTuple_GET_SIZE(args);
27
27
 
28
28
  if (arg_count == 1)
29
29
  {
@@ -44,7 +44,11 @@ namespace py::cpp::Windows::Devices::Display
44
44
 
45
45
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
46
46
 
47
- return py::convert(winrt::Windows::Devices::Display::DisplayMonitor::FromIdAsync(param0));
47
+ return py::convert([&]()
48
+ {
49
+ auto _gil = release_gil();
50
+ return winrt::Windows::Devices::Display::DisplayMonitor::FromIdAsync(param0);
51
+ }());
48
52
  }
49
53
  catch (...)
50
54
  {
@@ -61,7 +65,7 @@ namespace py::cpp::Windows::Devices::Display
61
65
 
62
66
  static PyObject* DisplayMonitor_FromInterfaceIdAsync(PyObject* /*unused*/, PyObject* args) noexcept
63
67
  {
64
- auto arg_count = PyTuple_Size(args);
68
+ auto arg_count = PyTuple_GET_SIZE(args);
65
69
 
66
70
  if (arg_count == 1)
67
71
  {
@@ -82,7 +86,11 @@ namespace py::cpp::Windows::Devices::Display
82
86
 
83
87
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
84
88
 
85
- return py::convert(winrt::Windows::Devices::Display::DisplayMonitor::FromInterfaceIdAsync(param0));
89
+ return py::convert([&]()
90
+ {
91
+ auto _gil = release_gil();
92
+ return winrt::Windows::Devices::Display::DisplayMonitor::FromInterfaceIdAsync(param0);
93
+ }());
86
94
  }
87
95
  catch (...)
88
96
  {
@@ -99,7 +107,7 @@ namespace py::cpp::Windows::Devices::Display
99
107
 
100
108
  static PyObject* DisplayMonitor_GetDescriptor(py::wrapper::Windows::Devices::Display::DisplayMonitor* self, PyObject* args) noexcept
101
109
  {
102
- auto arg_count = PyTuple_Size(args);
110
+ auto arg_count = PyTuple_GET_SIZE(args);
103
111
 
104
112
  if (arg_count == 1)
105
113
  {
@@ -120,7 +128,11 @@ namespace py::cpp::Windows::Devices::Display
120
128
 
121
129
  auto param0 = py::convert_to<winrt::Windows::Devices::Display::DisplayMonitorDescriptorKind>(args, 0);
122
130
 
123
- return py::convert(self->obj.GetDescriptor(param0));
131
+ return py::convert([&]()
132
+ {
133
+ auto _gil = release_gil();
134
+ return self->obj.GetDescriptor(param0);
135
+ }());
124
136
  }
125
137
  catch (...)
126
138
  {
@@ -137,7 +149,7 @@ namespace py::cpp::Windows::Devices::Display
137
149
 
138
150
  static PyObject* DisplayMonitor_GetDeviceSelector(PyObject* /*unused*/, PyObject* args) noexcept
139
151
  {
140
- auto arg_count = PyTuple_Size(args);
152
+ auto arg_count = PyTuple_GET_SIZE(args);
141
153
 
142
154
  if (arg_count == 0)
143
155
  {
@@ -156,7 +168,11 @@ namespace py::cpp::Windows::Devices::Display
156
168
  return nullptr;
157
169
  }
158
170
 
159
- return py::convert(winrt::Windows::Devices::Display::DisplayMonitor::GetDeviceSelector());
171
+ return py::convert([&]()
172
+ {
173
+ auto _gil = release_gil();
174
+ return winrt::Windows::Devices::Display::DisplayMonitor::GetDeviceSelector();
175
+ }());
160
176
  }
161
177
  catch (...)
162
178
  {
@@ -188,7 +204,11 @@ namespace py::cpp::Windows::Devices::Display
188
204
  return nullptr;
189
205
  }
190
206
 
191
- return py::convert(self->obj.BluePrimary());
207
+ return py::convert([&]()
208
+ {
209
+ auto _gil = release_gil();
210
+ return self->obj.BluePrimary();
211
+ }());
192
212
  }
193
213
  catch (...)
194
214
  {
@@ -214,7 +234,11 @@ namespace py::cpp::Windows::Devices::Display
214
234
  return nullptr;
215
235
  }
216
236
 
217
- return py::convert(self->obj.ConnectionKind());
237
+ return py::convert([&]()
238
+ {
239
+ auto _gil = release_gil();
240
+ return self->obj.ConnectionKind();
241
+ }());
218
242
  }
219
243
  catch (...)
220
244
  {
@@ -240,7 +264,11 @@ namespace py::cpp::Windows::Devices::Display
240
264
  return nullptr;
241
265
  }
242
266
 
243
- return py::convert(self->obj.DeviceId());
267
+ return py::convert([&]()
268
+ {
269
+ auto _gil = release_gil();
270
+ return self->obj.DeviceId();
271
+ }());
244
272
  }
245
273
  catch (...)
246
274
  {
@@ -266,7 +294,11 @@ namespace py::cpp::Windows::Devices::Display
266
294
  return nullptr;
267
295
  }
268
296
 
269
- return py::convert(self->obj.DisplayAdapterDeviceId());
297
+ return py::convert([&]()
298
+ {
299
+ auto _gil = release_gil();
300
+ return self->obj.DisplayAdapterDeviceId();
301
+ }());
270
302
  }
271
303
  catch (...)
272
304
  {
@@ -292,7 +324,11 @@ namespace py::cpp::Windows::Devices::Display
292
324
  return nullptr;
293
325
  }
294
326
 
295
- return py::convert(self->obj.DisplayAdapterId());
327
+ return py::convert([&]()
328
+ {
329
+ auto _gil = release_gil();
330
+ return self->obj.DisplayAdapterId();
331
+ }());
296
332
  }
297
333
  catch (...)
298
334
  {
@@ -318,7 +354,11 @@ namespace py::cpp::Windows::Devices::Display
318
354
  return nullptr;
319
355
  }
320
356
 
321
- return py::convert(self->obj.DisplayAdapterTargetId());
357
+ return py::convert([&]()
358
+ {
359
+ auto _gil = release_gil();
360
+ return self->obj.DisplayAdapterTargetId();
361
+ }());
322
362
  }
323
363
  catch (...)
324
364
  {
@@ -344,7 +384,11 @@ namespace py::cpp::Windows::Devices::Display
344
384
  return nullptr;
345
385
  }
346
386
 
347
- return py::convert(self->obj.DisplayName());
387
+ return py::convert([&]()
388
+ {
389
+ auto _gil = release_gil();
390
+ return self->obj.DisplayName();
391
+ }());
348
392
  }
349
393
  catch (...)
350
394
  {
@@ -370,7 +414,11 @@ namespace py::cpp::Windows::Devices::Display
370
414
  return nullptr;
371
415
  }
372
416
 
373
- return py::convert(self->obj.GreenPrimary());
417
+ return py::convert([&]()
418
+ {
419
+ auto _gil = release_gil();
420
+ return self->obj.GreenPrimary();
421
+ }());
374
422
  }
375
423
  catch (...)
376
424
  {
@@ -396,7 +444,11 @@ namespace py::cpp::Windows::Devices::Display
396
444
  return nullptr;
397
445
  }
398
446
 
399
- return py::convert(self->obj.MaxAverageFullFrameLuminanceInNits());
447
+ return py::convert([&]()
448
+ {
449
+ auto _gil = release_gil();
450
+ return self->obj.MaxAverageFullFrameLuminanceInNits();
451
+ }());
400
452
  }
401
453
  catch (...)
402
454
  {
@@ -422,7 +474,11 @@ namespace py::cpp::Windows::Devices::Display
422
474
  return nullptr;
423
475
  }
424
476
 
425
- return py::convert(self->obj.MaxLuminanceInNits());
477
+ return py::convert([&]()
478
+ {
479
+ auto _gil = release_gil();
480
+ return self->obj.MaxLuminanceInNits();
481
+ }());
426
482
  }
427
483
  catch (...)
428
484
  {
@@ -448,7 +504,11 @@ namespace py::cpp::Windows::Devices::Display
448
504
  return nullptr;
449
505
  }
450
506
 
451
- return py::convert(self->obj.MinLuminanceInNits());
507
+ return py::convert([&]()
508
+ {
509
+ auto _gil = release_gil();
510
+ return self->obj.MinLuminanceInNits();
511
+ }());
452
512
  }
453
513
  catch (...)
454
514
  {
@@ -474,7 +534,11 @@ namespace py::cpp::Windows::Devices::Display
474
534
  return nullptr;
475
535
  }
476
536
 
477
- return py::convert(self->obj.NativeResolutionInRawPixels());
537
+ return py::convert([&]()
538
+ {
539
+ auto _gil = release_gil();
540
+ return self->obj.NativeResolutionInRawPixels();
541
+ }());
478
542
  }
479
543
  catch (...)
480
544
  {
@@ -500,7 +564,11 @@ namespace py::cpp::Windows::Devices::Display
500
564
  return nullptr;
501
565
  }
502
566
 
503
- return py::convert(self->obj.PhysicalConnector());
567
+ return py::convert([&]()
568
+ {
569
+ auto _gil = release_gil();
570
+ return self->obj.PhysicalConnector();
571
+ }());
504
572
  }
505
573
  catch (...)
506
574
  {
@@ -526,7 +594,11 @@ namespace py::cpp::Windows::Devices::Display
526
594
  return nullptr;
527
595
  }
528
596
 
529
- return py::convert(self->obj.PhysicalSizeInInches());
597
+ return py::convert([&]()
598
+ {
599
+ auto _gil = release_gil();
600
+ return self->obj.PhysicalSizeInInches();
601
+ }());
530
602
  }
531
603
  catch (...)
532
604
  {
@@ -552,7 +624,11 @@ namespace py::cpp::Windows::Devices::Display
552
624
  return nullptr;
553
625
  }
554
626
 
555
- return py::convert(self->obj.RawDpiX());
627
+ return py::convert([&]()
628
+ {
629
+ auto _gil = release_gil();
630
+ return self->obj.RawDpiX();
631
+ }());
556
632
  }
557
633
  catch (...)
558
634
  {
@@ -578,7 +654,11 @@ namespace py::cpp::Windows::Devices::Display
578
654
  return nullptr;
579
655
  }
580
656
 
581
- return py::convert(self->obj.RawDpiY());
657
+ return py::convert([&]()
658
+ {
659
+ auto _gil = release_gil();
660
+ return self->obj.RawDpiY();
661
+ }());
582
662
  }
583
663
  catch (...)
584
664
  {
@@ -604,7 +684,11 @@ namespace py::cpp::Windows::Devices::Display
604
684
  return nullptr;
605
685
  }
606
686
 
607
- return py::convert(self->obj.RedPrimary());
687
+ return py::convert([&]()
688
+ {
689
+ auto _gil = release_gil();
690
+ return self->obj.RedPrimary();
691
+ }());
608
692
  }
609
693
  catch (...)
610
694
  {
@@ -630,7 +714,11 @@ namespace py::cpp::Windows::Devices::Display
630
714
  return nullptr;
631
715
  }
632
716
 
633
- return py::convert(self->obj.UsageKind());
717
+ return py::convert([&]()
718
+ {
719
+ auto _gil = release_gil();
720
+ return self->obj.UsageKind();
721
+ }());
634
722
  }
635
723
  catch (...)
636
724
  {
@@ -656,7 +744,11 @@ namespace py::cpp::Windows::Devices::Display
656
744
  return nullptr;
657
745
  }
658
746
 
659
- return py::convert(self->obj.WhitePoint());
747
+ return py::convert([&]()
748
+ {
749
+ auto _gil = release_gil();
750
+ return self->obj.WhitePoint();
751
+ }());
660
752
  }
661
753
  catch (...)
662
754
  {
@@ -682,7 +774,11 @@ namespace py::cpp::Windows::Devices::Display
682
774
  return nullptr;
683
775
  }
684
776
 
685
- return py::convert(self->obj.IsDolbyVisionSupportedInHdrMode());
777
+ return py::convert([&]()
778
+ {
779
+ auto _gil = release_gil();
780
+ return self->obj.IsDolbyVisionSupportedInHdrMode();
781
+ }());
686
782
  }
687
783
  catch (...)
688
784
  {
@@ -719,8 +815,7 @@ namespace py::cpp::Windows::Devices::Display
719
815
  { "get_descriptor", reinterpret_cast<PyCFunction>(DisplayMonitor_GetDescriptor), METH_VARARGS, nullptr },
720
816
  { "_assign_array_", _assign_array_DisplayMonitor, METH_O | METH_STATIC, nullptr },
721
817
  { "_from", reinterpret_cast<PyCFunction>(_from_DisplayMonitor), METH_O | METH_STATIC, nullptr },
722
- { }
723
- };
818
+ { }};
724
819
 
725
820
  static PyGetSetDef _getset_DisplayMonitor[] = {
726
821
  { "blue_primary", reinterpret_cast<getter>(DisplayMonitor_get_BluePrimary), nullptr, nullptr, nullptr },
@@ -743,16 +838,14 @@ namespace py::cpp::Windows::Devices::Display
743
838
  { "usage_kind", reinterpret_cast<getter>(DisplayMonitor_get_UsageKind), nullptr, nullptr, nullptr },
744
839
  { "white_point", reinterpret_cast<getter>(DisplayMonitor_get_WhitePoint), nullptr, nullptr, nullptr },
745
840
  { "is_dolby_vision_supported_in_hdr_mode", reinterpret_cast<getter>(DisplayMonitor_get_IsDolbyVisionSupportedInHdrMode), nullptr, nullptr, nullptr },
746
- { }
747
- };
841
+ { }};
748
842
 
749
843
  static PyType_Slot _type_slots_DisplayMonitor[] = {
750
844
  { Py_tp_new, reinterpret_cast<void*>(_new_DisplayMonitor) },
751
845
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DisplayMonitor) },
752
846
  { Py_tp_methods, reinterpret_cast<void*>(_methods_DisplayMonitor) },
753
847
  { Py_tp_getset, reinterpret_cast<void*>(_getset_DisplayMonitor) },
754
- { }
755
- };
848
+ { }};
756
849
 
757
850
  static PyType_Spec type_spec_DisplayMonitor = {
758
851
  "winrt._winrt_windows_devices_display.DisplayMonitor",
@@ -762,15 +855,13 @@ namespace py::cpp::Windows::Devices::Display
762
855
  _type_slots_DisplayMonitor};
763
856
 
764
857
  static PyGetSetDef getset_DisplayMonitor_Static[] = {
765
- { }
766
- };
858
+ { }};
767
859
 
768
860
  static PyMethodDef methods_DisplayMonitor_Static[] = {
769
861
  { "from_id_async", reinterpret_cast<PyCFunction>(DisplayMonitor_FromIdAsync), METH_VARARGS, nullptr },
770
862
  { "from_interface_id_async", reinterpret_cast<PyCFunction>(DisplayMonitor_FromInterfaceIdAsync), METH_VARARGS, nullptr },
771
863
  { "get_device_selector", reinterpret_cast<PyCFunction>(DisplayMonitor_GetDeviceSelector), METH_VARARGS, nullptr },
772
- { }
773
- };
864
+ { }};
774
865
 
775
866
  static PyType_Slot type_slots_DisplayMonitor_Static[] =
776
867
  {
@@ -780,14 +871,12 @@ namespace py::cpp::Windows::Devices::Display
780
871
  { }
781
872
  };
782
873
 
783
- static PyType_Spec type_spec_DisplayMonitor_Static =
784
- {
874
+ static PyType_Spec type_spec_DisplayMonitor_Static = {
785
875
  "winrt._winrt_windows_devices_display.DisplayMonitor_Static",
786
876
  static_cast<int>(PyType_Type.tp_basicsize),
787
877
  static_cast<int>(PyType_Type.tp_itemsize),
788
878
  Py_TPFLAGS_DEFAULT,
789
- type_slots_DisplayMonitor_Static
790
- };
879
+ type_slots_DisplayMonitor_Static};
791
880
 
792
881
  // ----- Windows.Devices.Display Initialization --------------------
793
882
 
@@ -821,6 +910,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices_display(void) noexcept
821
910
  return nullptr;
822
911
  }
823
912
 
913
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
914
+ if (!inspectable_meta_type)
915
+ {
916
+ return nullptr;
917
+ }
918
+
824
919
  auto object_type = py::get_object_type();
825
920
  if (!object_type)
826
921
  {
@@ -834,7 +929,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices_display(void) noexcept
834
929
  return nullptr;
835
930
  }
836
931
 
837
- py::pyobj_handle type_DisplayMonitor_Static{PyType_FromSpec(&type_spec_DisplayMonitor_Static)};
932
+ py::pyobj_handle DisplayMonitor_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
933
+ if (!DisplayMonitor_Static_bases)
934
+ {
935
+ return nullptr;
936
+ }
937
+
938
+ py::pyobj_handle type_DisplayMonitor_Static{PyType_FromSpecWithBases(&type_spec_DisplayMonitor_Static, DisplayMonitor_Static_bases.get())};
838
939
  if (!type_DisplayMonitor_Static)
839
940
  {
840
941
  return nullptr;
@@ -16,7 +16,7 @@ classifiers = [
16
16
  "Intended Audience :: Developers",
17
17
  ]
18
18
  dynamic = ["version", "dependencies", "optional-dependencies"]
19
- requires-python = ">=3.9,<3.14"
19
+ requires-python = ">=3.9"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
37
- environment = { PYTHONPATH="../winrt-sdk/src" }
37
+ environment = { PYTHONPATH="../../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
39
  build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
40
  before-build = "uv pip install setuptools"
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
- winrt-runtime==2.3.0
3
+ winrt-runtime==3.0.0
@@ -19,7 +19,7 @@ class build_ext_ex(build_ext):
19
19
 
20
20
 
21
21
  setup(
22
- cmdclass = {'build_ext': build_ext_ex},
22
+ cmdclass={"build_ext": build_ext_ex},
23
23
  ext_modules=[
24
24
  Extension(
25
25
  "winrt._winrt_windows_devices_display",
@@ -0,0 +1,92 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.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
+
15
+ from winrt.windows.devices.display import DisplayMonitorConnectionKind, DisplayMonitorDescriptorKind, DisplayMonitorPhysicalConnectorKind, DisplayMonitorUsageKind
16
+
17
+ Self = typing.TypeVar('Self')
18
+
19
+ @typing.final
20
+ class DisplayMonitor_Static(winrt._winrt.IInspectable_Static):
21
+ # Windows.Foundation.IAsyncOperation`1<Windows.Devices.Display.DisplayMonitor> Windows.Devices.Display.DisplayMonitor::FromIdAsync(System.String)
22
+ def from_id_async(cls, device_id: str, /) -> windows_foundation.IAsyncOperation[DisplayMonitor]: ...
23
+ # Windows.Foundation.IAsyncOperation`1<Windows.Devices.Display.DisplayMonitor> Windows.Devices.Display.DisplayMonitor::FromInterfaceIdAsync(System.String)
24
+ def from_interface_id_async(cls, device_interface_id: str, /) -> windows_foundation.IAsyncOperation[DisplayMonitor]: ...
25
+ # System.String Windows.Devices.Display.DisplayMonitor::GetDeviceSelector()
26
+ def get_device_selector(cls) -> str: ...
27
+
28
+ @typing.final
29
+ class DisplayMonitor(winrt.system.Object, metaclass=DisplayMonitor_Static):
30
+ # System.Byte[] Windows.Devices.Display.DisplayMonitor::GetDescriptor(Windows.Devices.Display.DisplayMonitorDescriptorKind)
31
+ def get_descriptor(self, descriptor_kind: DisplayMonitorDescriptorKind, /) -> winrt.system.Array[winrt.system.UInt8]: ...
32
+ # Windows.Foundation.Point Windows.Devices.Display.DisplayMonitor::get_BluePrimary()
33
+ @_property
34
+ def blue_primary(self) -> windows_foundation.Point: ...
35
+ # Windows.Devices.Display.DisplayMonitorConnectionKind Windows.Devices.Display.DisplayMonitor::get_ConnectionKind()
36
+ @_property
37
+ def connection_kind(self) -> DisplayMonitorConnectionKind: ...
38
+ # System.String Windows.Devices.Display.DisplayMonitor::get_DeviceId()
39
+ @_property
40
+ def device_id(self) -> str: ...
41
+ # System.String Windows.Devices.Display.DisplayMonitor::get_DisplayAdapterDeviceId()
42
+ @_property
43
+ def display_adapter_device_id(self) -> str: ...
44
+ # Windows.Graphics.DisplayAdapterId Windows.Devices.Display.DisplayMonitor::get_DisplayAdapterId()
45
+ @_property
46
+ def display_adapter_id(self) -> windows_graphics.DisplayAdapterId: ...
47
+ # System.UInt32 Windows.Devices.Display.DisplayMonitor::get_DisplayAdapterTargetId()
48
+ @_property
49
+ def display_adapter_target_id(self) -> winrt.system.UInt32: ...
50
+ # System.String Windows.Devices.Display.DisplayMonitor::get_DisplayName()
51
+ @_property
52
+ def display_name(self) -> str: ...
53
+ # Windows.Foundation.Point Windows.Devices.Display.DisplayMonitor::get_GreenPrimary()
54
+ @_property
55
+ def green_primary(self) -> windows_foundation.Point: ...
56
+ # System.Single Windows.Devices.Display.DisplayMonitor::get_MaxAverageFullFrameLuminanceInNits()
57
+ @_property
58
+ def max_average_full_frame_luminance_in_nits(self) -> winrt.system.Single: ...
59
+ # System.Single Windows.Devices.Display.DisplayMonitor::get_MaxLuminanceInNits()
60
+ @_property
61
+ def max_luminance_in_nits(self) -> winrt.system.Single: ...
62
+ # System.Single Windows.Devices.Display.DisplayMonitor::get_MinLuminanceInNits()
63
+ @_property
64
+ def min_luminance_in_nits(self) -> winrt.system.Single: ...
65
+ # Windows.Graphics.SizeInt32 Windows.Devices.Display.DisplayMonitor::get_NativeResolutionInRawPixels()
66
+ @_property
67
+ def native_resolution_in_raw_pixels(self) -> windows_graphics.SizeInt32: ...
68
+ # Windows.Devices.Display.DisplayMonitorPhysicalConnectorKind Windows.Devices.Display.DisplayMonitor::get_PhysicalConnector()
69
+ @_property
70
+ def physical_connector(self) -> DisplayMonitorPhysicalConnectorKind: ...
71
+ # Windows.Foundation.IReference`1<Windows.Foundation.Size> Windows.Devices.Display.DisplayMonitor::get_PhysicalSizeInInches()
72
+ @_property
73
+ def physical_size_in_inches(self) -> typing.Optional[windows_foundation.Size]: ...
74
+ # System.Single Windows.Devices.Display.DisplayMonitor::get_RawDpiX()
75
+ @_property
76
+ def raw_dpi_x(self) -> winrt.system.Single: ...
77
+ # System.Single Windows.Devices.Display.DisplayMonitor::get_RawDpiY()
78
+ @_property
79
+ def raw_dpi_y(self) -> winrt.system.Single: ...
80
+ # Windows.Foundation.Point Windows.Devices.Display.DisplayMonitor::get_RedPrimary()
81
+ @_property
82
+ def red_primary(self) -> windows_foundation.Point: ...
83
+ # Windows.Devices.Display.DisplayMonitorUsageKind Windows.Devices.Display.DisplayMonitor::get_UsageKind()
84
+ @_property
85
+ def usage_kind(self) -> DisplayMonitorUsageKind: ...
86
+ # Windows.Foundation.Point Windows.Devices.Display.DisplayMonitor::get_WhitePoint()
87
+ @_property
88
+ def white_point(self) -> windows_foundation.Point: ...
89
+ # System.Boolean Windows.Devices.Display.DisplayMonitor::get_IsDolbyVisionSupportedInHdrMode()
90
+ @_property
91
+ def is_dolby_vision_supported_in_hdr_mode(self) -> bool: ...
92
+
@@ -1,9 +1,11 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
3
  import enum
4
4
 
5
5
  import winrt.system
6
- from winrt import _winrt_windows_devices_display
6
+ from winrt._winrt_windows_devices_display import (
7
+ DisplayMonitor,
8
+ )
7
9
 
8
10
  __all__ = [
9
11
  "DisplayMonitorConnectionKind",
@@ -25,7 +27,7 @@ class DisplayMonitorDescriptorKind(enum.IntEnum):
25
27
 
26
28
  class DisplayMonitorPhysicalConnectorKind(enum.IntEnum):
27
29
  UNKNOWN = 0
28
- H_D15 = 1
30
+ HD15 = 1
29
31
  ANALOG_T_V = 2
30
32
  DVI = 3
31
33
  HDMI = 4
@@ -38,4 +40,3 @@ class DisplayMonitorUsageKind(enum.IntEnum):
38
40
  HEAD_MOUNTED = 1
39
41
  SPECIAL_PURPOSE = 2
40
42
 
41
- DisplayMonitor = _winrt_windows_devices_display.DisplayMonitor
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Devices.Display
3
- Version: 2.3.0
3
+ Version: 3.0.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.0.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Graphics[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Graphics[all]==3.0.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,5 @@
1
+ winrt-runtime==3.0.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==3.0.0
5
+ winrt-Windows.Graphics[all]==3.0.0
@@ -1,4 +0,0 @@
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.Graphics[all]==2.3.0
@@ -1,70 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.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
-
15
- from winrt.windows.devices.display import DisplayMonitorConnectionKind, DisplayMonitorDescriptorKind, DisplayMonitorPhysicalConnectorKind, DisplayMonitorUsageKind
16
-
17
- Self = typing.TypeVar('Self')
18
-
19
- @typing.final
20
- class DisplayMonitor_Static(type):
21
- def from_id_async(cls, device_id: str, /) -> windows_foundation.IAsyncOperation[DisplayMonitor]: ...
22
- def from_interface_id_async(cls, device_interface_id: str, /) -> windows_foundation.IAsyncOperation[DisplayMonitor]: ...
23
- def get_device_selector(cls) -> str: ...
24
-
25
- @typing.final
26
- class DisplayMonitor(winrt.system.Object, metaclass=DisplayMonitor_Static):
27
- @staticmethod
28
- def _from(obj: winrt.system.Object, /) -> DisplayMonitor: ...
29
- def get_descriptor(self, descriptor_kind: DisplayMonitorDescriptorKind, /) -> winrt.system.Array[winrt.system.UInt8]: ...
30
- @_property
31
- def blue_primary(self) -> windows_foundation.Point: ...
32
- @_property
33
- def connection_kind(self) -> DisplayMonitorConnectionKind: ...
34
- @_property
35
- def device_id(self) -> str: ...
36
- @_property
37
- def display_adapter_device_id(self) -> str: ...
38
- @_property
39
- def display_adapter_id(self) -> windows_graphics.DisplayAdapterId: ...
40
- @_property
41
- def display_adapter_target_id(self) -> winrt.system.UInt32: ...
42
- @_property
43
- def display_name(self) -> str: ...
44
- @_property
45
- def green_primary(self) -> windows_foundation.Point: ...
46
- @_property
47
- def max_average_full_frame_luminance_in_nits(self) -> winrt.system.Single: ...
48
- @_property
49
- def max_luminance_in_nits(self) -> winrt.system.Single: ...
50
- @_property
51
- def min_luminance_in_nits(self) -> winrt.system.Single: ...
52
- @_property
53
- def native_resolution_in_raw_pixels(self) -> windows_graphics.SizeInt32: ...
54
- @_property
55
- def physical_connector(self) -> DisplayMonitorPhysicalConnectorKind: ...
56
- @_property
57
- def physical_size_in_inches(self) -> typing.Optional[typing.Optional[windows_foundation.Size]]: ...
58
- @_property
59
- def raw_dpi_x(self) -> winrt.system.Single: ...
60
- @_property
61
- def raw_dpi_y(self) -> winrt.system.Single: ...
62
- @_property
63
- def red_primary(self) -> windows_foundation.Point: ...
64
- @_property
65
- def usage_kind(self) -> DisplayMonitorUsageKind: ...
66
- @_property
67
- def white_point(self) -> windows_foundation.Point: ...
68
- @_property
69
- def is_dolby_vision_supported_in_hdr_mode(self) -> bool: ...
70
-
@@ -1,5 +0,0 @@
1
- winrt-runtime==2.3.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.3.0
5
- winrt-Windows.Graphics[all]==2.3.0