winrt-Windows.System.Preview 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.
Files changed (20) hide show
  1. {winrt_windows_system_preview-2.0.1 → winrt_windows_system_preview-2.1.0}/PKG-INFO +4 -4
  2. winrt_windows_system_preview-2.1.0/all-requirements.txt +4 -0
  3. {winrt_windows_system_preview-2.0.1 → winrt_windows_system_preview-2.1.0}/py.Windows.System.Preview.cpp +90 -101
  4. winrt_windows_system_preview-2.1.0/pywinrt-version.txt +1 -0
  5. {winrt_windows_system_preview-2.0.1 → winrt_windows_system_preview-2.1.0}/requirements.txt +2 -2
  6. {winrt_windows_system_preview-2.0.1 → winrt_windows_system_preview-2.1.0}/winrt/_winrt_windows_system_preview.pyi +9 -9
  7. {winrt_windows_system_preview-2.0.1 → winrt_windows_system_preview-2.1.0}/winrt/windows/system/preview/__init__.py +1 -1
  8. {winrt_windows_system_preview-2.0.1 → winrt_windows_system_preview-2.1.0}/winrt_Windows.System.Preview.egg-info/PKG-INFO +4 -4
  9. winrt_windows_system_preview-2.1.0/winrt_Windows.System.Preview.egg-info/requires.txt +5 -0
  10. winrt_windows_system_preview-2.0.1/all-requirements.txt +0 -4
  11. winrt_windows_system_preview-2.0.1/pywinrt-version.txt +0 -1
  12. winrt_windows_system_preview-2.0.1/winrt_Windows.System.Preview.egg-info/requires.txt +0 -5
  13. {winrt_windows_system_preview-2.0.1 → winrt_windows_system_preview-2.1.0}/README.md +0 -0
  14. {winrt_windows_system_preview-2.0.1 → winrt_windows_system_preview-2.1.0}/pyproject.toml +0 -0
  15. {winrt_windows_system_preview-2.0.1 → winrt_windows_system_preview-2.1.0}/setup.cfg +0 -0
  16. {winrt_windows_system_preview-2.0.1 → winrt_windows_system_preview-2.1.0}/setup.py +0 -0
  17. {winrt_windows_system_preview-2.0.1 → winrt_windows_system_preview-2.1.0}/winrt/windows/system/preview/py.typed +0 -0
  18. {winrt_windows_system_preview-2.0.1 → winrt_windows_system_preview-2.1.0}/winrt_Windows.System.Preview.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_system_preview-2.0.1 → winrt_windows_system_preview-2.1.0}/winrt_Windows.System.Preview.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_system_preview-2.0.1 → winrt_windows_system_preview-2.1.0}/winrt_Windows.System.Preview.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.System.Preview
3
- Version: 2.0.1
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,10 +12,10 @@ 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.1
15
+ Requires-Dist: winrt-runtime==2.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Devices.Sensors[all]==2.0.1; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.Devices.Sensors[all]==2.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==2.1.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 v2.1.0
2
+
3
+ winrt-Windows.Devices.Sensors[all]==2.1.0
4
+ winrt-Windows.Foundation[all]==2.1.0
@@ -1,8 +1,7 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
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.Preview.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::System::Preview
7
6
  {
8
7
  // ----- TwoPanelHingedDevicePosturePreview class --------------------
@@ -28,14 +27,14 @@ namespace py::cpp::Windows::System::Preview
28
27
 
29
28
  if (arg_count == 0)
30
29
  {
31
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreview", L"GetCurrentPostureAsync", 0))
32
- {
33
- py::set_arg_count_version_error(0);
34
- return nullptr;
35
- }
36
-
37
30
  try
38
31
  {
32
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreview", L"GetCurrentPostureAsync", 0))
33
+ {
34
+ py::set_arg_count_version_error(0);
35
+ return nullptr;
36
+ }
37
+
39
38
  return py::convert(self->obj.GetCurrentPostureAsync());
40
39
  }
41
40
  catch (...)
@@ -57,14 +56,14 @@ namespace py::cpp::Windows::System::Preview
57
56
 
58
57
  if (arg_count == 0)
59
58
  {
60
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreview", L"GetDefaultAsync", 0))
61
- {
62
- py::set_arg_count_version_error(0);
63
- return nullptr;
64
- }
65
-
66
59
  try
67
60
  {
61
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreview", L"GetDefaultAsync", 0))
62
+ {
63
+ py::set_arg_count_version_error(0);
64
+ return nullptr;
65
+ }
66
+
68
67
  return py::convert(winrt::Windows::System::Preview::TwoPanelHingedDevicePosturePreview::GetDefaultAsync());
69
68
  }
70
69
  catch (...)
@@ -82,14 +81,14 @@ namespace py::cpp::Windows::System::Preview
82
81
 
83
82
  static PyObject* TwoPanelHingedDevicePosturePreview_add_PostureChanged(py::wrapper::Windows::System::Preview::TwoPanelHingedDevicePosturePreview* self, PyObject* arg) noexcept
84
83
  {
85
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreview", L"PostureChanged"))
86
- {
87
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
88
- return nullptr;
89
- }
90
-
91
84
  try
92
85
  {
86
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreview", L"PostureChanged"))
87
+ {
88
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
89
+ return nullptr;
90
+ }
91
+
93
92
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::System::Preview::TwoPanelHingedDevicePosturePreview, winrt::Windows::System::Preview::TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs>>(arg);
94
93
 
95
94
  return py::convert(self->obj.PostureChanged(param0));
@@ -103,14 +102,14 @@ namespace py::cpp::Windows::System::Preview
103
102
 
104
103
  static PyObject* TwoPanelHingedDevicePosturePreview_remove_PostureChanged(py::wrapper::Windows::System::Preview::TwoPanelHingedDevicePosturePreview* self, PyObject* arg) noexcept
105
104
  {
106
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreview", L"PostureChanged"))
107
- {
108
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
109
- return nullptr;
110
- }
111
-
112
105
  try
113
106
  {
107
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreview", L"PostureChanged"))
108
+ {
109
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
110
+ return nullptr;
111
+ }
112
+
114
113
  auto param0 = py::convert_to<winrt::event_token>(arg);
115
114
 
116
115
  self->obj.PostureChanged(param0);
@@ -160,23 +159,20 @@ namespace py::cpp::Windows::System::Preview
160
159
  { }
161
160
  };
162
161
 
163
- static PyType_Slot _type_slots_TwoPanelHingedDevicePosturePreview[] =
164
- {
162
+ static PyType_Slot _type_slots_TwoPanelHingedDevicePosturePreview[] = {
165
163
  { Py_tp_new, reinterpret_cast<void*>(_new_TwoPanelHingedDevicePosturePreview) },
166
164
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_TwoPanelHingedDevicePosturePreview) },
167
165
  { Py_tp_methods, reinterpret_cast<void*>(_methods_TwoPanelHingedDevicePosturePreview) },
168
166
  { Py_tp_getset, reinterpret_cast<void*>(_getset_TwoPanelHingedDevicePosturePreview) },
169
- { },
167
+ { }
170
168
  };
171
169
 
172
- static PyType_Spec type_spec_TwoPanelHingedDevicePosturePreview =
173
- {
170
+ static PyType_Spec type_spec_TwoPanelHingedDevicePosturePreview = {
174
171
  "winrt._winrt_windows_system_preview.TwoPanelHingedDevicePosturePreview",
175
172
  sizeof(py::wrapper::Windows::System::Preview::TwoPanelHingedDevicePosturePreview),
176
173
  0,
177
174
  Py_TPFLAGS_DEFAULT,
178
- _type_slots_TwoPanelHingedDevicePosturePreview
179
- };
175
+ _type_slots_TwoPanelHingedDevicePosturePreview};
180
176
 
181
177
  static PyGetSetDef getset_TwoPanelHingedDevicePosturePreview_Static[] = {
182
178
  { }
@@ -223,14 +219,14 @@ namespace py::cpp::Windows::System::Preview
223
219
 
224
220
  static PyObject* TwoPanelHingedDevicePosturePreviewReading_get_HingeState(py::wrapper::Windows::System::Preview::TwoPanelHingedDevicePosturePreviewReading* self, void* /*unused*/) noexcept
225
221
  {
226
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading", L"HingeState"))
227
- {
228
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
229
- return nullptr;
230
- }
231
-
232
222
  try
233
223
  {
224
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading", L"HingeState"))
225
+ {
226
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
227
+ return nullptr;
228
+ }
229
+
234
230
  return py::convert(self->obj.HingeState());
235
231
  }
236
232
  catch (...)
@@ -242,14 +238,14 @@ namespace py::cpp::Windows::System::Preview
242
238
 
243
239
  static PyObject* TwoPanelHingedDevicePosturePreviewReading_get_Panel1Id(py::wrapper::Windows::System::Preview::TwoPanelHingedDevicePosturePreviewReading* self, void* /*unused*/) noexcept
244
240
  {
245
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading", L"Panel1Id"))
246
- {
247
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
248
- return nullptr;
249
- }
250
-
251
241
  try
252
242
  {
243
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading", L"Panel1Id"))
244
+ {
245
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
246
+ return nullptr;
247
+ }
248
+
253
249
  return py::convert(self->obj.Panel1Id());
254
250
  }
255
251
  catch (...)
@@ -261,14 +257,14 @@ namespace py::cpp::Windows::System::Preview
261
257
 
262
258
  static PyObject* TwoPanelHingedDevicePosturePreviewReading_get_Panel1Orientation(py::wrapper::Windows::System::Preview::TwoPanelHingedDevicePosturePreviewReading* self, void* /*unused*/) noexcept
263
259
  {
264
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading", L"Panel1Orientation"))
265
- {
266
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
267
- return nullptr;
268
- }
269
-
270
260
  try
271
261
  {
262
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading", L"Panel1Orientation"))
263
+ {
264
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
265
+ return nullptr;
266
+ }
267
+
272
268
  return py::convert(self->obj.Panel1Orientation());
273
269
  }
274
270
  catch (...)
@@ -280,14 +276,14 @@ namespace py::cpp::Windows::System::Preview
280
276
 
281
277
  static PyObject* TwoPanelHingedDevicePosturePreviewReading_get_Panel2Id(py::wrapper::Windows::System::Preview::TwoPanelHingedDevicePosturePreviewReading* self, void* /*unused*/) noexcept
282
278
  {
283
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading", L"Panel2Id"))
284
- {
285
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
286
- return nullptr;
287
- }
288
-
289
279
  try
290
280
  {
281
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading", L"Panel2Id"))
282
+ {
283
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
284
+ return nullptr;
285
+ }
286
+
291
287
  return py::convert(self->obj.Panel2Id());
292
288
  }
293
289
  catch (...)
@@ -299,14 +295,14 @@ namespace py::cpp::Windows::System::Preview
299
295
 
300
296
  static PyObject* TwoPanelHingedDevicePosturePreviewReading_get_Panel2Orientation(py::wrapper::Windows::System::Preview::TwoPanelHingedDevicePosturePreviewReading* self, void* /*unused*/) noexcept
301
297
  {
302
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading", L"Panel2Orientation"))
303
- {
304
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
305
- return nullptr;
306
- }
307
-
308
298
  try
309
299
  {
300
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading", L"Panel2Orientation"))
301
+ {
302
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
303
+ return nullptr;
304
+ }
305
+
310
306
  return py::convert(self->obj.Panel2Orientation());
311
307
  }
312
308
  catch (...)
@@ -318,14 +314,14 @@ namespace py::cpp::Windows::System::Preview
318
314
 
319
315
  static PyObject* TwoPanelHingedDevicePosturePreviewReading_get_Timestamp(py::wrapper::Windows::System::Preview::TwoPanelHingedDevicePosturePreviewReading* self, void* /*unused*/) noexcept
320
316
  {
321
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading", L"Timestamp"))
322
- {
323
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
324
- return nullptr;
325
- }
326
-
327
317
  try
328
318
  {
319
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading", L"Timestamp"))
320
+ {
321
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
322
+ return nullptr;
323
+ }
324
+
329
325
  return py::convert(self->obj.Timestamp());
330
326
  }
331
327
  catch (...)
@@ -375,23 +371,20 @@ namespace py::cpp::Windows::System::Preview
375
371
  { }
376
372
  };
377
373
 
378
- static PyType_Slot _type_slots_TwoPanelHingedDevicePosturePreviewReading[] =
379
- {
374
+ static PyType_Slot _type_slots_TwoPanelHingedDevicePosturePreviewReading[] = {
380
375
  { Py_tp_new, reinterpret_cast<void*>(_new_TwoPanelHingedDevicePosturePreviewReading) },
381
376
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_TwoPanelHingedDevicePosturePreviewReading) },
382
377
  { Py_tp_methods, reinterpret_cast<void*>(_methods_TwoPanelHingedDevicePosturePreviewReading) },
383
378
  { Py_tp_getset, reinterpret_cast<void*>(_getset_TwoPanelHingedDevicePosturePreviewReading) },
384
- { },
379
+ { }
385
380
  };
386
381
 
387
- static PyType_Spec type_spec_TwoPanelHingedDevicePosturePreviewReading =
388
- {
382
+ static PyType_Spec type_spec_TwoPanelHingedDevicePosturePreviewReading = {
389
383
  "winrt._winrt_windows_system_preview.TwoPanelHingedDevicePosturePreviewReading",
390
384
  sizeof(py::wrapper::Windows::System::Preview::TwoPanelHingedDevicePosturePreviewReading),
391
385
  0,
392
386
  Py_TPFLAGS_DEFAULT,
393
- _type_slots_TwoPanelHingedDevicePosturePreviewReading
394
- };
387
+ _type_slots_TwoPanelHingedDevicePosturePreviewReading};
395
388
 
396
389
  // ----- TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs class --------------------
397
390
 
@@ -412,14 +405,14 @@ namespace py::cpp::Windows::System::Preview
412
405
 
413
406
  static PyObject* TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs_get_Reading(py::wrapper::Windows::System::Preview::TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs* self, void* /*unused*/) noexcept
414
407
  {
415
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs", L"Reading"))
416
- {
417
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
418
- return nullptr;
419
- }
420
-
421
408
  try
422
409
  {
410
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs", L"Reading"))
411
+ {
412
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
413
+ return nullptr;
414
+ }
415
+
423
416
  return py::convert(self->obj.Reading());
424
417
  }
425
418
  catch (...)
@@ -464,39 +457,35 @@ namespace py::cpp::Windows::System::Preview
464
457
  { }
465
458
  };
466
459
 
467
- static PyType_Slot _type_slots_TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs[] =
468
- {
460
+ static PyType_Slot _type_slots_TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs[] = {
469
461
  { Py_tp_new, reinterpret_cast<void*>(_new_TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs) },
470
462
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs) },
471
463
  { Py_tp_methods, reinterpret_cast<void*>(_methods_TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs) },
472
464
  { Py_tp_getset, reinterpret_cast<void*>(_getset_TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs) },
473
- { },
465
+ { }
474
466
  };
475
467
 
476
- static PyType_Spec type_spec_TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs =
477
- {
468
+ static PyType_Spec type_spec_TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs = {
478
469
  "winrt._winrt_windows_system_preview.TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs",
479
470
  sizeof(py::wrapper::Windows::System::Preview::TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs),
480
471
  0,
481
472
  Py_TPFLAGS_DEFAULT,
482
- _type_slots_TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs
483
- };
473
+ _type_slots_TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs};
484
474
 
485
475
  // ----- Windows.System.Preview Initialization --------------------
486
- PyDoc_STRVAR(module_doc, "Windows::System::Preview");
487
-
488
476
 
489
- static PyModuleDef module_def
490
- = {PyModuleDef_HEAD_INIT,
491
- "_winrt_windows_system_preview",
492
- module_doc,
493
- 0,
494
- nullptr,
495
- nullptr,
496
- nullptr,
497
- nullptr,
498
- nullptr};
477
+ PyDoc_STRVAR(module_doc, "Windows.System.Preview");
499
478
 
479
+ static PyModuleDef module_def = {
480
+ PyModuleDef_HEAD_INIT,
481
+ "_winrt_windows_system_preview",
482
+ module_doc,
483
+ 0,
484
+ nullptr,
485
+ nullptr,
486
+ nullptr,
487
+ nullptr,
488
+ nullptr};
500
489
  } // py::cpp::Windows::System::Preview
501
490
 
502
491
  PyMODINIT_FUNC PyInit__winrt_windows_system_preview(void) noexcept
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
- winrt-runtime==2.0.1
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
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
@@ -9,8 +9,8 @@ from builtins import property as _property
9
9
 
10
10
  import winrt._winrt
11
11
  import winrt.system
12
- import winrt.windows.devices.sensors
13
- import winrt.windows.foundation
12
+ import winrt.windows.devices.sensors as windows_devices_sensors
13
+ import winrt.windows.foundation as windows_foundation
14
14
 
15
15
  from winrt.windows.system.preview import HingeState
16
16
 
@@ -18,15 +18,15 @@ Self = typing.TypeVar('Self')
18
18
 
19
19
  @typing.final
20
20
  class TwoPanelHingedDevicePosturePreview_Static(type):
21
- def get_default_async(cls) -> winrt.windows.foundation.IAsyncOperation[TwoPanelHingedDevicePosturePreview]: ...
21
+ def get_default_async(cls) -> windows_foundation.IAsyncOperation[TwoPanelHingedDevicePosturePreview]: ...
22
22
 
23
23
  @typing.final
24
24
  class TwoPanelHingedDevicePosturePreview(winrt.system.Object, metaclass=TwoPanelHingedDevicePosturePreview_Static):
25
25
  @staticmethod
26
26
  def _from(obj: winrt.system.Object, /) -> TwoPanelHingedDevicePosturePreview: ...
27
- def get_current_posture_async(self) -> winrt.windows.foundation.IAsyncOperation[TwoPanelHingedDevicePosturePreviewReading]: ...
28
- def add_posture_changed(self, handler: winrt.windows.foundation.TypedEventHandler[TwoPanelHingedDevicePosturePreview, TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
29
- def remove_posture_changed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
27
+ def get_current_posture_async(self) -> windows_foundation.IAsyncOperation[TwoPanelHingedDevicePosturePreviewReading]: ...
28
+ def add_posture_changed(self, handler: windows_foundation.TypedEventHandler[TwoPanelHingedDevicePosturePreview, TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
29
+ def remove_posture_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
30
30
 
31
31
  @typing.final
32
32
  class TwoPanelHingedDevicePosturePreviewReading(winrt.system.Object):
@@ -37,11 +37,11 @@ class TwoPanelHingedDevicePosturePreviewReading(winrt.system.Object):
37
37
  @_property
38
38
  def panel1_id(self) -> str: ...
39
39
  @_property
40
- def panel1_orientation(self) -> winrt.windows.devices.sensors.SimpleOrientation: ...
40
+ def panel1_orientation(self) -> windows_devices_sensors.SimpleOrientation: ...
41
41
  @_property
42
42
  def panel2_id(self) -> str: ...
43
43
  @_property
44
- def panel2_orientation(self) -> winrt.windows.devices.sensors.SimpleOrientation: ...
44
+ def panel2_orientation(self) -> windows_devices_sensors.SimpleOrientation: ...
45
45
  @_property
46
46
  def timestamp(self) -> datetime.datetime: ...
47
47
 
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  import enum
4
4
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.System.Preview
3
- Version: 2.0.1
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,10 +12,10 @@ 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.1
15
+ Requires-Dist: winrt-runtime==2.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Devices.Sensors[all]==2.0.1; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.Devices.Sensors[all]==2.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==2.1.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==2.1.0
2
+
3
+ [all]
4
+ winrt-Windows.Devices.Sensors[all]==2.1.0
5
+ winrt-Windows.Foundation[all]==2.1.0
@@ -1,4 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
2
-
3
- winrt-Windows.Devices.Sensors[all]==2.0.1
4
- winrt-Windows.Foundation[all]==2.0.1
@@ -1 +0,0 @@
1
- 2.0.1
@@ -1,5 +0,0 @@
1
- winrt-runtime==2.0.1
2
-
3
- [all]
4
- winrt-Windows.Devices.Sensors[all]==2.0.1
5
- winrt-Windows.Foundation[all]==2.0.1