winrt-Windows.ApplicationModel.Preview.Notes 2.2.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 (22) hide show
  1. {winrt_windows_applicationmodel_preview_notes-2.2.0 → winrt_windows_applicationmodel_preview_notes-3.0.0}/PKG-INFO +6 -6
  2. winrt_windows_applicationmodel_preview_notes-3.0.0/all-requirements.txt +5 -0
  3. {winrt_windows_applicationmodel_preview_notes-2.2.0 → winrt_windows_applicationmodel_preview_notes-3.0.0}/py.Windows.ApplicationModel.Preview.Notes.cpp +198 -78
  4. {winrt_windows_applicationmodel_preview_notes-2.2.0 → winrt_windows_applicationmodel_preview_notes-3.0.0}/pyproject.toml +2 -2
  5. winrt_windows_applicationmodel_preview_notes-3.0.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_applicationmodel_preview_notes-2.2.0 → winrt_windows_applicationmodel_preview_notes-3.0.0}/requirements.txt +2 -2
  7. {winrt_windows_applicationmodel_preview_notes-2.2.0 → winrt_windows_applicationmodel_preview_notes-3.0.0}/setup.py +1 -1
  8. winrt_windows_applicationmodel_preview_notes-3.0.0/winrt/_winrt_windows_applicationmodel_preview_notes.pyi +89 -0
  9. winrt_windows_applicationmodel_preview_notes-3.0.0/winrt/windows/applicationmodel/preview/notes/__init__.py +17 -0
  10. {winrt_windows_applicationmodel_preview_notes-2.2.0 → winrt_windows_applicationmodel_preview_notes-3.0.0}/winrt_Windows.ApplicationModel.Preview.Notes.egg-info/PKG-INFO +6 -6
  11. winrt_windows_applicationmodel_preview_notes-3.0.0/winrt_Windows.ApplicationModel.Preview.Notes.egg-info/requires.txt +6 -0
  12. winrt_windows_applicationmodel_preview_notes-2.2.0/all-requirements.txt +0 -5
  13. winrt_windows_applicationmodel_preview_notes-2.2.0/pywinrt-version.txt +0 -1
  14. winrt_windows_applicationmodel_preview_notes-2.2.0/winrt/_winrt_windows_applicationmodel_preview_notes.pyi +0 -76
  15. winrt_windows_applicationmodel_preview_notes-2.2.0/winrt/windows/applicationmodel/preview/notes/__init__.py +0 -16
  16. winrt_windows_applicationmodel_preview_notes-2.2.0/winrt_Windows.ApplicationModel.Preview.Notes.egg-info/requires.txt +0 -6
  17. {winrt_windows_applicationmodel_preview_notes-2.2.0 → winrt_windows_applicationmodel_preview_notes-3.0.0}/README.md +0 -0
  18. {winrt_windows_applicationmodel_preview_notes-2.2.0 → winrt_windows_applicationmodel_preview_notes-3.0.0}/setup.cfg +0 -0
  19. {winrt_windows_applicationmodel_preview_notes-2.2.0 → winrt_windows_applicationmodel_preview_notes-3.0.0}/winrt/windows/applicationmodel/preview/notes/py.typed +0 -0
  20. {winrt_windows_applicationmodel_preview_notes-2.2.0 → winrt_windows_applicationmodel_preview_notes-3.0.0}/winrt_Windows.ApplicationModel.Preview.Notes.egg-info/SOURCES.txt +0 -0
  21. {winrt_windows_applicationmodel_preview_notes-2.2.0 → winrt_windows_applicationmodel_preview_notes-3.0.0}/winrt_Windows.ApplicationModel.Preview.Notes.egg-info/dependency_links.txt +0 -0
  22. {winrt_windows_applicationmodel_preview_notes-2.2.0 → winrt_windows_applicationmodel_preview_notes-3.0.0}/winrt_Windows.ApplicationModel.Preview.Notes.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.ApplicationModel.Preview.Notes
3
- Version: 2.2.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,13 +10,13 @@ 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.2.0
15
+ Requires-Dist: winrt-runtime==3.0.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Graphics.Imaging[all]==2.2.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Graphics.Imaging[all]==3.0.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==3.0.0; extra == "all"
20
20
 
21
21
  <!-- warning: Please don't edit this file. It was automatically generated. -->
22
22
 
@@ -0,0 +1,5 @@
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.Imaging[all]==3.0.0
5
+ winrt-Windows.Storage.Streams[all]==3.0.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.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.ApplicationModel.Preview.Notes.h"
4
4
 
@@ -38,7 +38,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
38
38
  return nullptr;
39
39
  }
40
40
 
41
- return py::convert(self->obj.ViewId());
41
+ return py::convert([&]()
42
+ {
43
+ auto _gil = release_gil();
44
+ return self->obj.ViewId();
45
+ }());
42
46
  }
43
47
  catch (...)
44
48
  {
@@ -74,21 +78,18 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
74
78
  static PyMethodDef _methods_NotePlacementChangedPreviewEventArgs[] = {
75
79
  { "_assign_array_", _assign_array_NotePlacementChangedPreviewEventArgs, METH_O | METH_STATIC, nullptr },
76
80
  { "_from", reinterpret_cast<PyCFunction>(_from_NotePlacementChangedPreviewEventArgs), METH_O | METH_STATIC, nullptr },
77
- { }
78
- };
81
+ { }};
79
82
 
80
83
  static PyGetSetDef _getset_NotePlacementChangedPreviewEventArgs[] = {
81
84
  { "view_id", reinterpret_cast<getter>(NotePlacementChangedPreviewEventArgs_get_ViewId), nullptr, nullptr, nullptr },
82
- { }
83
- };
85
+ { }};
84
86
 
85
87
  static PyType_Slot _type_slots_NotePlacementChangedPreviewEventArgs[] = {
86
88
  { Py_tp_new, reinterpret_cast<void*>(_new_NotePlacementChangedPreviewEventArgs) },
87
89
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_NotePlacementChangedPreviewEventArgs) },
88
90
  { Py_tp_methods, reinterpret_cast<void*>(_methods_NotePlacementChangedPreviewEventArgs) },
89
91
  { Py_tp_getset, reinterpret_cast<void*>(_getset_NotePlacementChangedPreviewEventArgs) },
90
- { }
91
- };
92
+ { }};
92
93
 
93
94
  static PyType_Spec type_spec_NotePlacementChangedPreviewEventArgs = {
94
95
  "winrt._winrt_windows_applicationmodel_preview_notes.NotePlacementChangedPreviewEventArgs",
@@ -131,7 +132,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
131
132
  return nullptr;
132
133
  }
133
134
 
134
- return py::convert(self->obj.IsVisible());
135
+ return py::convert([&]()
136
+ {
137
+ auto _gil = release_gil();
138
+ return self->obj.IsVisible();
139
+ }());
135
140
  }
136
141
  catch (...)
137
142
  {
@@ -157,7 +162,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
157
162
  return nullptr;
158
163
  }
159
164
 
160
- return py::convert(self->obj.ViewId());
165
+ return py::convert([&]()
166
+ {
167
+ auto _gil = release_gil();
168
+ return self->obj.ViewId();
169
+ }());
161
170
  }
162
171
  catch (...)
163
172
  {
@@ -193,22 +202,19 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
193
202
  static PyMethodDef _methods_NoteVisibilityChangedPreviewEventArgs[] = {
194
203
  { "_assign_array_", _assign_array_NoteVisibilityChangedPreviewEventArgs, METH_O | METH_STATIC, nullptr },
195
204
  { "_from", reinterpret_cast<PyCFunction>(_from_NoteVisibilityChangedPreviewEventArgs), METH_O | METH_STATIC, nullptr },
196
- { }
197
- };
205
+ { }};
198
206
 
199
207
  static PyGetSetDef _getset_NoteVisibilityChangedPreviewEventArgs[] = {
200
208
  { "is_visible", reinterpret_cast<getter>(NoteVisibilityChangedPreviewEventArgs_get_IsVisible), nullptr, nullptr, nullptr },
201
209
  { "view_id", reinterpret_cast<getter>(NoteVisibilityChangedPreviewEventArgs_get_ViewId), nullptr, nullptr, nullptr },
202
- { }
203
- };
210
+ { }};
204
211
 
205
212
  static PyType_Slot _type_slots_NoteVisibilityChangedPreviewEventArgs[] = {
206
213
  { Py_tp_new, reinterpret_cast<void*>(_new_NoteVisibilityChangedPreviewEventArgs) },
207
214
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_NoteVisibilityChangedPreviewEventArgs) },
208
215
  { Py_tp_methods, reinterpret_cast<void*>(_methods_NoteVisibilityChangedPreviewEventArgs) },
209
216
  { Py_tp_getset, reinterpret_cast<void*>(_getset_NoteVisibilityChangedPreviewEventArgs) },
210
- { }
211
- };
217
+ { }};
212
218
 
213
219
  static PyType_Spec type_spec_NoteVisibilityChangedPreviewEventArgs = {
214
220
  "winrt._winrt_windows_applicationmodel_preview_notes.NoteVisibilityChangedPreviewEventArgs",
@@ -236,7 +242,7 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
236
242
 
237
243
  static PyObject* NotesWindowManagerPreview_GetForCurrentApp(PyObject* /*unused*/, PyObject* args) noexcept
238
244
  {
239
- auto arg_count = PyTuple_Size(args);
245
+ auto arg_count = PyTuple_GET_SIZE(args);
240
246
 
241
247
  if (arg_count == 0)
242
248
  {
@@ -255,7 +261,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
255
261
  return nullptr;
256
262
  }
257
263
 
258
- return py::convert(winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview::GetForCurrentApp());
264
+ return py::convert([&]()
265
+ {
266
+ auto _gil = release_gil();
267
+ return winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview::GetForCurrentApp();
268
+ }());
259
269
  }
260
270
  catch (...)
261
271
  {
@@ -272,7 +282,7 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
272
282
 
273
283
  static PyObject* NotesWindowManagerPreview_GetNotePlacement(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* args) noexcept
274
284
  {
275
- auto arg_count = PyTuple_Size(args);
285
+ auto arg_count = PyTuple_GET_SIZE(args);
276
286
 
277
287
  if (arg_count == 1)
278
288
  {
@@ -293,7 +303,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
293
303
 
294
304
  auto param0 = py::convert_to<int32_t>(args, 0);
295
305
 
296
- return py::convert(self->obj.GetNotePlacement(param0));
306
+ return py::convert([&]()
307
+ {
308
+ auto _gil = release_gil();
309
+ return self->obj.GetNotePlacement(param0);
310
+ }());
297
311
  }
298
312
  catch (...)
299
313
  {
@@ -310,7 +324,7 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
310
324
 
311
325
  static PyObject* NotesWindowManagerPreview_HideNote(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* args) noexcept
312
326
  {
313
- auto arg_count = PyTuple_Size(args);
327
+ auto arg_count = PyTuple_GET_SIZE(args);
314
328
 
315
329
  if (arg_count == 1)
316
330
  {
@@ -331,7 +345,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
331
345
 
332
346
  auto param0 = py::convert_to<int32_t>(args, 0);
333
347
 
334
- self->obj.HideNote(param0);
348
+ {
349
+ auto _gil = release_gil();
350
+ self->obj.HideNote(param0);
351
+ }
352
+
335
353
  Py_RETURN_NONE;
336
354
  }
337
355
  catch (...)
@@ -349,7 +367,7 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
349
367
 
350
368
  static PyObject* NotesWindowManagerPreview_SetFocusToNextView(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* args) noexcept
351
369
  {
352
- auto arg_count = PyTuple_Size(args);
370
+ auto arg_count = PyTuple_GET_SIZE(args);
353
371
 
354
372
  if (arg_count == 0)
355
373
  {
@@ -368,7 +386,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
368
386
  return nullptr;
369
387
  }
370
388
 
371
- self->obj.SetFocusToNextView();
389
+ {
390
+ auto _gil = release_gil();
391
+ self->obj.SetFocusToNextView();
392
+ }
393
+
372
394
  Py_RETURN_NONE;
373
395
  }
374
396
  catch (...)
@@ -386,7 +408,7 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
386
408
 
387
409
  static PyObject* NotesWindowManagerPreview_SetFocusToPreviousView(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* args) noexcept
388
410
  {
389
- auto arg_count = PyTuple_Size(args);
411
+ auto arg_count = PyTuple_GET_SIZE(args);
390
412
 
391
413
  if (arg_count == 0)
392
414
  {
@@ -405,7 +427,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
405
427
  return nullptr;
406
428
  }
407
429
 
408
- self->obj.SetFocusToPreviousView();
430
+ {
431
+ auto _gil = release_gil();
432
+ self->obj.SetFocusToPreviousView();
433
+ }
434
+
409
435
  Py_RETURN_NONE;
410
436
  }
411
437
  catch (...)
@@ -423,7 +449,7 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
423
449
 
424
450
  static PyObject* NotesWindowManagerPreview_SetNotesThumbnailAsync(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* args) noexcept
425
451
  {
426
- auto arg_count = PyTuple_Size(args);
452
+ auto arg_count = PyTuple_GET_SIZE(args);
427
453
 
428
454
  if (arg_count == 1)
429
455
  {
@@ -444,7 +470,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
444
470
 
445
471
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
446
472
 
447
- return py::convert(self->obj.SetNotesThumbnailAsync(param0));
473
+ return py::convert([&]()
474
+ {
475
+ auto _gil = release_gil();
476
+ return self->obj.SetNotesThumbnailAsync(param0);
477
+ }());
448
478
  }
449
479
  catch (...)
450
480
  {
@@ -461,7 +491,7 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
461
491
 
462
492
  static PyObject* NotesWindowManagerPreview_SetThumbnailImageForTaskSwitcherAsync(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* args) noexcept
463
493
  {
464
- auto arg_count = PyTuple_Size(args);
494
+ auto arg_count = PyTuple_GET_SIZE(args);
465
495
 
466
496
  if (arg_count == 1)
467
497
  {
@@ -482,7 +512,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
482
512
 
483
513
  auto param0 = py::convert_to<winrt::Windows::Graphics::Imaging::SoftwareBitmap>(args, 0);
484
514
 
485
- return py::convert(self->obj.SetThumbnailImageForTaskSwitcherAsync(param0));
515
+ return py::convert([&]()
516
+ {
517
+ auto _gil = release_gil();
518
+ return self->obj.SetThumbnailImageForTaskSwitcherAsync(param0);
519
+ }());
486
520
  }
487
521
  catch (...)
488
522
  {
@@ -499,7 +533,7 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
499
533
 
500
534
  static PyObject* NotesWindowManagerPreview_ShowNote(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* args) noexcept
501
535
  {
502
- auto arg_count = PyTuple_Size(args);
536
+ auto arg_count = PyTuple_GET_SIZE(args);
503
537
 
504
538
  if (arg_count == 1)
505
539
  {
@@ -520,7 +554,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
520
554
 
521
555
  auto param0 = py::convert_to<int32_t>(args, 0);
522
556
 
523
- self->obj.ShowNote(param0);
557
+ {
558
+ auto _gil = release_gil();
559
+ self->obj.ShowNote(param0);
560
+ }
561
+
524
562
  Py_RETURN_NONE;
525
563
  }
526
564
  catch (...)
@@ -538,7 +576,7 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
538
576
 
539
577
  static PyObject* NotesWindowManagerPreview_ShowNoteRelativeTo(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* args) noexcept
540
578
  {
541
- auto arg_count = PyTuple_Size(args);
579
+ auto arg_count = PyTuple_GET_SIZE(args);
542
580
 
543
581
  if (arg_count == 2)
544
582
  {
@@ -560,7 +598,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
560
598
  auto param0 = py::convert_to<int32_t>(args, 0);
561
599
  auto param1 = py::convert_to<int32_t>(args, 1);
562
600
 
563
- self->obj.ShowNoteRelativeTo(param0, param1);
601
+ {
602
+ auto _gil = release_gil();
603
+ self->obj.ShowNoteRelativeTo(param0, param1);
604
+ }
605
+
564
606
  Py_RETURN_NONE;
565
607
  }
566
608
  catch (...)
@@ -569,7 +611,18 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
569
611
  return nullptr;
570
612
  }
571
613
  }
572
- else if (arg_count == 3)
614
+ else
615
+ {
616
+ py::set_invalid_arg_count_error(arg_count);
617
+ return nullptr;
618
+ }
619
+ }
620
+
621
+ static PyObject* NotesWindowManagerPreview_ShowNoteRelativeToWithOptions(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* args) noexcept
622
+ {
623
+ auto arg_count = PyTuple_GET_SIZE(args);
624
+
625
+ if (arg_count == 3)
573
626
  {
574
627
  try
575
628
  {
@@ -590,7 +643,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
590
643
  auto param1 = py::convert_to<int32_t>(args, 1);
591
644
  auto param2 = py::convert_to<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreviewShowNoteOptions>(args, 2);
592
645
 
593
- self->obj.ShowNoteRelativeTo(param0, param1, param2);
646
+ {
647
+ auto _gil = release_gil();
648
+ self->obj.ShowNoteRelativeTo(param0, param1, param2);
649
+ }
650
+
594
651
  Py_RETURN_NONE;
595
652
  }
596
653
  catch (...)
@@ -608,7 +665,7 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
608
665
 
609
666
  static PyObject* NotesWindowManagerPreview_ShowNoteWithPlacement(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* args) noexcept
610
667
  {
611
- auto arg_count = PyTuple_Size(args);
668
+ auto arg_count = PyTuple_GET_SIZE(args);
612
669
 
613
670
  if (arg_count == 2)
614
671
  {
@@ -630,7 +687,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
630
687
  auto param0 = py::convert_to<int32_t>(args, 0);
631
688
  auto param1 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 1);
632
689
 
633
- self->obj.ShowNoteWithPlacement(param0, param1);
690
+ {
691
+ auto _gil = release_gil();
692
+ self->obj.ShowNoteWithPlacement(param0, param1);
693
+ }
694
+
634
695
  Py_RETURN_NONE;
635
696
  }
636
697
  catch (...)
@@ -639,7 +700,18 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
639
700
  return nullptr;
640
701
  }
641
702
  }
642
- else if (arg_count == 3)
703
+ else
704
+ {
705
+ py::set_invalid_arg_count_error(arg_count);
706
+ return nullptr;
707
+ }
708
+ }
709
+
710
+ static PyObject* NotesWindowManagerPreview_ShowNoteWithPlacementWithOptions(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* args) noexcept
711
+ {
712
+ auto arg_count = PyTuple_GET_SIZE(args);
713
+
714
+ if (arg_count == 3)
643
715
  {
644
716
  try
645
717
  {
@@ -660,7 +732,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
660
732
  auto param1 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 1);
661
733
  auto param2 = py::convert_to<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreviewShowNoteOptions>(args, 2);
662
734
 
663
- self->obj.ShowNoteWithPlacement(param0, param1, param2);
735
+ {
736
+ auto _gil = release_gil();
737
+ self->obj.ShowNoteWithPlacement(param0, param1, param2);
738
+ }
739
+
664
740
  Py_RETURN_NONE;
665
741
  }
666
742
  catch (...)
@@ -678,7 +754,7 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
678
754
 
679
755
  static PyObject* NotesWindowManagerPreview_TrySetNoteSize(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* args) noexcept
680
756
  {
681
- auto arg_count = PyTuple_Size(args);
757
+ auto arg_count = PyTuple_GET_SIZE(args);
682
758
 
683
759
  if (arg_count == 2)
684
760
  {
@@ -700,7 +776,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
700
776
  auto param0 = py::convert_to<int32_t>(args, 0);
701
777
  auto param1 = py::convert_to<winrt::Windows::Foundation::Size>(args, 1);
702
778
 
703
- return py::convert(self->obj.TrySetNoteSize(param0, param1));
779
+ return py::convert([&]()
780
+ {
781
+ auto _gil = release_gil();
782
+ return self->obj.TrySetNoteSize(param0, param1);
783
+ }());
704
784
  }
705
785
  catch (...)
706
786
  {
@@ -732,7 +812,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
732
812
  return nullptr;
733
813
  }
734
814
 
735
- return py::convert(self->obj.IsScreenLocked());
815
+ return py::convert([&]()
816
+ {
817
+ auto _gil = release_gil();
818
+ return self->obj.IsScreenLocked();
819
+ }());
736
820
  }
737
821
  catch (...)
738
822
  {
@@ -760,7 +844,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
760
844
 
761
845
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview, winrt::Windows::ApplicationModel::Preview::Notes::NotePlacementChangedPreviewEventArgs>>(arg);
762
846
 
763
- return py::convert(self->obj.NotePlacementChanged(param0));
847
+ return py::convert([&]()
848
+ {
849
+ auto _gil = release_gil();
850
+ return self->obj.NotePlacementChanged(param0);
851
+ }());
764
852
  }
765
853
  catch (...)
766
854
  {
@@ -788,7 +876,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
788
876
 
789
877
  auto param0 = py::convert_to<winrt::event_token>(arg);
790
878
 
791
- self->obj.NotePlacementChanged(param0);
879
+ {
880
+ auto _gil = release_gil();
881
+ self->obj.NotePlacementChanged(param0);
882
+ }
883
+
792
884
  Py_RETURN_NONE;
793
885
  }
794
886
  catch (...)
@@ -817,7 +909,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
817
909
 
818
910
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview, winrt::Windows::ApplicationModel::Preview::Notes::NoteVisibilityChangedPreviewEventArgs>>(arg);
819
911
 
820
- return py::convert(self->obj.NoteVisibilityChanged(param0));
912
+ return py::convert([&]()
913
+ {
914
+ auto _gil = release_gil();
915
+ return self->obj.NoteVisibilityChanged(param0);
916
+ }());
821
917
  }
822
918
  catch (...)
823
919
  {
@@ -845,7 +941,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
845
941
 
846
942
  auto param0 = py::convert_to<winrt::event_token>(arg);
847
943
 
848
- self->obj.NoteVisibilityChanged(param0);
944
+ {
945
+ auto _gil = release_gil();
946
+ self->obj.NoteVisibilityChanged(param0);
947
+ }
948
+
849
949
  Py_RETURN_NONE;
850
950
  }
851
951
  catch (...)
@@ -874,7 +974,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
874
974
 
875
975
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview, winrt::Windows::Foundation::IInspectable>>(arg);
876
976
 
877
- return py::convert(self->obj.SystemLockStateChanged(param0));
977
+ return py::convert([&]()
978
+ {
979
+ auto _gil = release_gil();
980
+ return self->obj.SystemLockStateChanged(param0);
981
+ }());
878
982
  }
879
983
  catch (...)
880
984
  {
@@ -902,7 +1006,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
902
1006
 
903
1007
  auto param0 = py::convert_to<winrt::event_token>(arg);
904
1008
 
905
- self->obj.SystemLockStateChanged(param0);
1009
+ {
1010
+ auto _gil = release_gil();
1011
+ self->obj.SystemLockStateChanged(param0);
1012
+ }
1013
+
906
1014
  Py_RETURN_NONE;
907
1015
  }
908
1016
  catch (...)
@@ -945,7 +1053,9 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
945
1053
  { "set_thumbnail_image_for_task_switcher_async", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_SetThumbnailImageForTaskSwitcherAsync), METH_VARARGS, nullptr },
946
1054
  { "show_note", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_ShowNote), METH_VARARGS, nullptr },
947
1055
  { "show_note_relative_to", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_ShowNoteRelativeTo), METH_VARARGS, nullptr },
1056
+ { "show_note_relative_to_with_options", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_ShowNoteRelativeToWithOptions), METH_VARARGS, nullptr },
948
1057
  { "show_note_with_placement", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_ShowNoteWithPlacement), METH_VARARGS, nullptr },
1058
+ { "show_note_with_placement_with_options", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_ShowNoteWithPlacementWithOptions), METH_VARARGS, nullptr },
949
1059
  { "try_set_note_size", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_TrySetNoteSize), METH_VARARGS, nullptr },
950
1060
  { "add_note_placement_changed", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_add_NotePlacementChanged), METH_O, nullptr },
951
1061
  { "remove_note_placement_changed", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_remove_NotePlacementChanged), METH_O, nullptr },
@@ -955,21 +1065,18 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
955
1065
  { "remove_system_lock_state_changed", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_remove_SystemLockStateChanged), METH_O, nullptr },
956
1066
  { "_assign_array_", _assign_array_NotesWindowManagerPreview, METH_O | METH_STATIC, nullptr },
957
1067
  { "_from", reinterpret_cast<PyCFunction>(_from_NotesWindowManagerPreview), METH_O | METH_STATIC, nullptr },
958
- { }
959
- };
1068
+ { }};
960
1069
 
961
1070
  static PyGetSetDef _getset_NotesWindowManagerPreview[] = {
962
1071
  { "is_screen_locked", reinterpret_cast<getter>(NotesWindowManagerPreview_get_IsScreenLocked), nullptr, nullptr, nullptr },
963
- { }
964
- };
1072
+ { }};
965
1073
 
966
1074
  static PyType_Slot _type_slots_NotesWindowManagerPreview[] = {
967
1075
  { Py_tp_new, reinterpret_cast<void*>(_new_NotesWindowManagerPreview) },
968
1076
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_NotesWindowManagerPreview) },
969
1077
  { Py_tp_methods, reinterpret_cast<void*>(_methods_NotesWindowManagerPreview) },
970
1078
  { Py_tp_getset, reinterpret_cast<void*>(_getset_NotesWindowManagerPreview) },
971
- { }
972
- };
1079
+ { }};
973
1080
 
974
1081
  static PyType_Spec type_spec_NotesWindowManagerPreview = {
975
1082
  "winrt._winrt_windows_applicationmodel_preview_notes.NotesWindowManagerPreview",
@@ -979,13 +1086,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
979
1086
  _type_slots_NotesWindowManagerPreview};
980
1087
 
981
1088
  static PyGetSetDef getset_NotesWindowManagerPreview_Static[] = {
982
- { }
983
- };
1089
+ { }};
984
1090
 
985
1091
  static PyMethodDef methods_NotesWindowManagerPreview_Static[] = {
986
1092
  { "get_for_current_app", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_GetForCurrentApp), METH_VARARGS, nullptr },
987
- { }
988
- };
1093
+ { }};
989
1094
 
990
1095
  static PyType_Slot type_slots_NotesWindowManagerPreview_Static[] =
991
1096
  {
@@ -995,26 +1100,24 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
995
1100
  { }
996
1101
  };
997
1102
 
998
- static PyType_Spec type_spec_NotesWindowManagerPreview_Static =
999
- {
1103
+ static PyType_Spec type_spec_NotesWindowManagerPreview_Static = {
1000
1104
  "winrt._winrt_windows_applicationmodel_preview_notes.NotesWindowManagerPreview_Static",
1001
1105
  static_cast<int>(PyType_Type.tp_basicsize),
1002
1106
  static_cast<int>(PyType_Type.tp_itemsize),
1003
1107
  Py_TPFLAGS_DEFAULT,
1004
- type_slots_NotesWindowManagerPreview_Static
1005
- };
1108
+ type_slots_NotesWindowManagerPreview_Static};
1006
1109
 
1007
1110
  // ----- NotesWindowManagerPreviewShowNoteOptions class --------------------
1008
1111
 
1009
1112
  static PyObject* _new_NotesWindowManagerPreviewShowNoteOptions(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
1010
1113
  {
1011
- if (kwds != nullptr)
1114
+ if (kwds)
1012
1115
  {
1013
1116
  py::set_invalid_kwd_args_error();
1014
1117
  return nullptr;
1015
1118
  }
1016
1119
 
1017
- auto arg_count = PyTuple_Size(args);
1120
+ auto arg_count = PyTuple_GET_SIZE(args);
1018
1121
  if (arg_count == 0)
1019
1122
  {
1020
1123
  try
@@ -1060,7 +1163,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
1060
1163
  return nullptr;
1061
1164
  }
1062
1165
 
1063
- return py::convert(self->obj.ShowWithFocus());
1166
+ return py::convert([&]()
1167
+ {
1168
+ auto _gil = release_gil();
1169
+ return self->obj.ShowWithFocus();
1170
+ }());
1064
1171
  }
1065
1172
  catch (...)
1066
1173
  {
@@ -1071,7 +1178,7 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
1071
1178
 
1072
1179
  static int NotesWindowManagerPreviewShowNoteOptions_put_ShowWithFocus(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreviewShowNoteOptions* self, PyObject* arg, void* /*unused*/) noexcept
1073
1180
  {
1074
- if (arg == nullptr)
1181
+ if (!arg)
1075
1182
  {
1076
1183
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
1077
1184
  return -1;
@@ -1094,7 +1201,11 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
1094
1201
 
1095
1202
  auto param0 = py::convert_to<bool>(arg);
1096
1203
 
1097
- self->obj.ShowWithFocus(param0);
1204
+ {
1205
+ auto _gil = release_gil();
1206
+ self->obj.ShowWithFocus(param0);
1207
+ }
1208
+
1098
1209
  return 0;
1099
1210
  }
1100
1211
  catch (...)
@@ -1131,21 +1242,18 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
1131
1242
  static PyMethodDef _methods_NotesWindowManagerPreviewShowNoteOptions[] = {
1132
1243
  { "_assign_array_", _assign_array_NotesWindowManagerPreviewShowNoteOptions, METH_O | METH_STATIC, nullptr },
1133
1244
  { "_from", reinterpret_cast<PyCFunction>(_from_NotesWindowManagerPreviewShowNoteOptions), METH_O | METH_STATIC, nullptr },
1134
- { }
1135
- };
1245
+ { }};
1136
1246
 
1137
1247
  static PyGetSetDef _getset_NotesWindowManagerPreviewShowNoteOptions[] = {
1138
1248
  { "show_with_focus", reinterpret_cast<getter>(NotesWindowManagerPreviewShowNoteOptions_get_ShowWithFocus), reinterpret_cast<setter>(NotesWindowManagerPreviewShowNoteOptions_put_ShowWithFocus), nullptr, nullptr },
1139
- { }
1140
- };
1249
+ { }};
1141
1250
 
1142
1251
  static PyType_Slot _type_slots_NotesWindowManagerPreviewShowNoteOptions[] = {
1143
1252
  { Py_tp_new, reinterpret_cast<void*>(_new_NotesWindowManagerPreviewShowNoteOptions) },
1144
1253
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_NotesWindowManagerPreviewShowNoteOptions) },
1145
1254
  { Py_tp_methods, reinterpret_cast<void*>(_methods_NotesWindowManagerPreviewShowNoteOptions) },
1146
1255
  { Py_tp_getset, reinterpret_cast<void*>(_getset_NotesWindowManagerPreviewShowNoteOptions) },
1147
- { }
1148
- };
1256
+ { }};
1149
1257
 
1150
1258
  static PyType_Spec type_spec_NotesWindowManagerPreviewShowNoteOptions = {
1151
1259
  "winrt._winrt_windows_applicationmodel_preview_notes.NotesWindowManagerPreviewShowNoteOptions",
@@ -1186,6 +1294,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_preview_notes(void) noexce
1186
1294
  return nullptr;
1187
1295
  }
1188
1296
 
1297
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
1298
+ if (!inspectable_meta_type)
1299
+ {
1300
+ return nullptr;
1301
+ }
1302
+
1189
1303
  auto object_type = py::get_object_type();
1190
1304
  if (!object_type)
1191
1305
  {
@@ -1199,19 +1313,25 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_preview_notes(void) noexce
1199
1313
  return nullptr;
1200
1314
  }
1201
1315
 
1202
- py::pytype_handle NotePlacementChangedPreviewEventArgs_type{py::register_python_type(module.get(), &type_spec_NotePlacementChangedPreviewEventArgs, object_bases.get(), nullptr)};
1316
+ py::pytype_handle NotePlacementChangedPreviewEventArgs_type{py::register_python_type(module.get(), &type_spec_NotePlacementChangedPreviewEventArgs, object_bases.get(), inspectable_meta_type)};
1203
1317
  if (!NotePlacementChangedPreviewEventArgs_type)
1204
1318
  {
1205
1319
  return nullptr;
1206
1320
  }
1207
1321
 
1208
- py::pytype_handle NoteVisibilityChangedPreviewEventArgs_type{py::register_python_type(module.get(), &type_spec_NoteVisibilityChangedPreviewEventArgs, object_bases.get(), nullptr)};
1322
+ py::pytype_handle NoteVisibilityChangedPreviewEventArgs_type{py::register_python_type(module.get(), &type_spec_NoteVisibilityChangedPreviewEventArgs, object_bases.get(), inspectable_meta_type)};
1209
1323
  if (!NoteVisibilityChangedPreviewEventArgs_type)
1210
1324
  {
1211
1325
  return nullptr;
1212
1326
  }
1213
1327
 
1214
- py::pyobj_handle type_NotesWindowManagerPreview_Static{PyType_FromSpec(&type_spec_NotesWindowManagerPreview_Static)};
1328
+ py::pyobj_handle NotesWindowManagerPreview_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
1329
+ if (!NotesWindowManagerPreview_Static_bases)
1330
+ {
1331
+ return nullptr;
1332
+ }
1333
+
1334
+ py::pyobj_handle type_NotesWindowManagerPreview_Static{PyType_FromSpecWithBases(&type_spec_NotesWindowManagerPreview_Static, NotesWindowManagerPreview_Static_bases.get())};
1215
1335
  if (!type_NotesWindowManagerPreview_Static)
1216
1336
  {
1217
1337
  return nullptr;
@@ -1223,7 +1343,7 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_preview_notes(void) noexce
1223
1343
  return nullptr;
1224
1344
  }
1225
1345
 
1226
- py::pytype_handle NotesWindowManagerPreviewShowNoteOptions_type{py::register_python_type(module.get(), &type_spec_NotesWindowManagerPreviewShowNoteOptions, object_bases.get(), nullptr)};
1346
+ py::pytype_handle NotesWindowManagerPreviewShowNoteOptions_type{py::register_python_type(module.get(), &type_spec_NotesWindowManagerPreviewShowNoteOptions, object_bases.get(), inspectable_meta_type)};
1227
1347
  if (!NotesWindowManagerPreviewShowNoteOptions_type)
1228
1348
  {
1229
1349
  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.2.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
- winrt-runtime==2.2.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_applicationmodel_preview_notes",
@@ -0,0 +1,89 @@
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.imaging as windows_graphics_imaging
14
+ import winrt.windows.storage.streams as windows_storage_streams
15
+
16
+ Self = typing.TypeVar('Self')
17
+
18
+ @typing.final
19
+ class NotePlacementChangedPreviewEventArgs(winrt.system.Object):
20
+ # System.Int32 Windows.ApplicationModel.Preview.Notes.NotePlacementChangedPreviewEventArgs::get_ViewId()
21
+ @_property
22
+ def view_id(self) -> winrt.system.Int32: ...
23
+
24
+ @typing.final
25
+ class NoteVisibilityChangedPreviewEventArgs(winrt.system.Object):
26
+ # System.Boolean Windows.ApplicationModel.Preview.Notes.NoteVisibilityChangedPreviewEventArgs::get_IsVisible()
27
+ @_property
28
+ def is_visible(self) -> bool: ...
29
+ # System.Int32 Windows.ApplicationModel.Preview.Notes.NoteVisibilityChangedPreviewEventArgs::get_ViewId()
30
+ @_property
31
+ def view_id(self) -> winrt.system.Int32: ...
32
+
33
+ @typing.final
34
+ class NotesWindowManagerPreview_Static(winrt._winrt.IInspectable_Static):
35
+ # Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview::GetForCurrentApp()
36
+ def get_for_current_app(cls) -> NotesWindowManagerPreview: ...
37
+
38
+ @typing.final
39
+ class NotesWindowManagerPreview(winrt.system.Object, metaclass=NotesWindowManagerPreview_Static):
40
+ # Windows.Storage.Streams.IBuffer Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview::GetNotePlacement(System.Int32)
41
+ def get_note_placement(self, note_view_id: winrt.system.Int32, /) -> windows_storage_streams.IBuffer: ...
42
+ # System.Void Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview::HideNote(System.Int32)
43
+ def hide_note(self, note_view_id: winrt.system.Int32, /) -> None: ...
44
+ # System.Void Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview::SetFocusToNextView()
45
+ def set_focus_to_next_view(self) -> None: ...
46
+ # System.Void Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview::SetFocusToPreviousView()
47
+ def set_focus_to_previous_view(self) -> None: ...
48
+ # Windows.Foundation.IAsyncAction Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview::SetNotesThumbnailAsync(Windows.Storage.Streams.IBuffer)
49
+ def set_notes_thumbnail_async(self, thumbnail: windows_storage_streams.IBuffer, /) -> windows_foundation.IAsyncAction: ...
50
+ # Windows.Foundation.IAsyncAction Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview::SetThumbnailImageForTaskSwitcherAsync(Windows.Graphics.Imaging.SoftwareBitmap)
51
+ def set_thumbnail_image_for_task_switcher_async(self, bitmap: windows_graphics_imaging.SoftwareBitmap, /) -> windows_foundation.IAsyncAction: ...
52
+ # System.Void Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview::ShowNote(System.Int32)
53
+ def show_note(self, note_view_id: winrt.system.Int32, /) -> None: ...
54
+ # System.Void Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview::ShowNoteRelativeTo(System.Int32,System.Int32)
55
+ def show_note_relative_to(self, note_view_id: winrt.system.Int32, anchor_note_view_id: winrt.system.Int32, /) -> None: ...
56
+ # System.Void Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview::ShowNoteRelativeTo(System.Int32,System.Int32,Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreviewShowNoteOptions)
57
+ def show_note_relative_to_with_options(self, note_view_id: winrt.system.Int32, anchor_note_view_id: winrt.system.Int32, options: NotesWindowManagerPreviewShowNoteOptions, /) -> None: ...
58
+ # System.Void Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview::ShowNoteWithPlacement(System.Int32,Windows.Storage.Streams.IBuffer)
59
+ def show_note_with_placement(self, note_view_id: winrt.system.Int32, data: windows_storage_streams.IBuffer, /) -> None: ...
60
+ # System.Void Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview::ShowNoteWithPlacement(System.Int32,Windows.Storage.Streams.IBuffer,Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreviewShowNoteOptions)
61
+ def show_note_with_placement_with_options(self, note_view_id: winrt.system.Int32, data: windows_storage_streams.IBuffer, options: NotesWindowManagerPreviewShowNoteOptions, /) -> None: ...
62
+ # System.Boolean Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview::TrySetNoteSize(System.Int32,Windows.Foundation.Size)
63
+ def try_set_note_size(self, note_view_id: winrt.system.Int32, size: typing.Union[windows_foundation.Size, typing.Tuple[winrt.system.Single, winrt.system.Single]], /) -> bool: ...
64
+ # Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview::add_NotePlacementChanged(Windows.Foundation.TypedEventHandler`2<Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview,Windows.ApplicationModel.Preview.Notes.NotePlacementChangedPreviewEventArgs>)
65
+ def add_note_placement_changed(self, handler: windows_foundation.TypedEventHandler[NotesWindowManagerPreview, NotePlacementChangedPreviewEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
66
+ # System.Void Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview::remove_NotePlacementChanged(Windows.Foundation.EventRegistrationToken)
67
+ def remove_note_placement_changed(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
68
+ # Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview::add_NoteVisibilityChanged(Windows.Foundation.TypedEventHandler`2<Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview,Windows.ApplicationModel.Preview.Notes.NoteVisibilityChangedPreviewEventArgs>)
69
+ def add_note_visibility_changed(self, handler: windows_foundation.TypedEventHandler[NotesWindowManagerPreview, NoteVisibilityChangedPreviewEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
70
+ # System.Void Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview::remove_NoteVisibilityChanged(Windows.Foundation.EventRegistrationToken)
71
+ def remove_note_visibility_changed(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
72
+ # Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview::add_SystemLockStateChanged(Windows.Foundation.TypedEventHandler`2<Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview,System.Object>)
73
+ def add_system_lock_state_changed(self, handler: windows_foundation.TypedEventHandler[NotesWindowManagerPreview, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
74
+ # System.Void Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview::remove_SystemLockStateChanged(Windows.Foundation.EventRegistrationToken)
75
+ def remove_system_lock_state_changed(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
76
+ # System.Boolean Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview::get_IsScreenLocked()
77
+ @_property
78
+ def is_screen_locked(self) -> bool: ...
79
+
80
+ @typing.final
81
+ class NotesWindowManagerPreviewShowNoteOptions(winrt.system.Object):
82
+ def __new__(cls: typing.Type[Self]) -> Self: ...
83
+ # System.Boolean Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreviewShowNoteOptions::get_ShowWithFocus()
84
+ @_property
85
+ def show_with_focus(self) -> bool: ...
86
+ # System.Void Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreviewShowNoteOptions::put_ShowWithFocus(System.Boolean)
87
+ @show_with_focus.setter
88
+ def show_with_focus(self, value: bool) -> None: ...
89
+
@@ -0,0 +1,17 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
+
3
+ import winrt.system
4
+ from winrt._winrt_windows_applicationmodel_preview_notes import (
5
+ NotePlacementChangedPreviewEventArgs,
6
+ NoteVisibilityChangedPreviewEventArgs,
7
+ NotesWindowManagerPreview,
8
+ NotesWindowManagerPreviewShowNoteOptions,
9
+ )
10
+
11
+ __all__ = [
12
+ "NotePlacementChangedPreviewEventArgs",
13
+ "NoteVisibilityChangedPreviewEventArgs",
14
+ "NotesWindowManagerPreview",
15
+ "NotesWindowManagerPreviewShowNoteOptions",
16
+ ]
17
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.ApplicationModel.Preview.Notes
3
- Version: 2.2.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,13 +10,13 @@ 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.2.0
15
+ Requires-Dist: winrt-runtime==3.0.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Graphics.Imaging[all]==2.2.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Graphics.Imaging[all]==3.0.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==3.0.0; extra == "all"
20
20
 
21
21
  <!-- warning: Please don't edit this file. It was automatically generated. -->
22
22
 
@@ -0,0 +1,6 @@
1
+ winrt-runtime==3.0.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==3.0.0
5
+ winrt-Windows.Graphics.Imaging[all]==3.0.0
6
+ winrt-Windows.Storage.Streams[all]==3.0.0
@@ -1,5 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
-
3
- winrt-Windows.Foundation[all]==2.2.0
4
- winrt-Windows.Graphics.Imaging[all]==2.2.0
5
- winrt-Windows.Storage.Streams[all]==2.2.0
@@ -1,76 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.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.imaging as windows_graphics_imaging
14
- import winrt.windows.storage.streams as windows_storage_streams
15
-
16
- Self = typing.TypeVar('Self')
17
-
18
- @typing.final
19
- class NotePlacementChangedPreviewEventArgs(winrt.system.Object):
20
- @staticmethod
21
- def _from(obj: winrt.system.Object, /) -> NotePlacementChangedPreviewEventArgs: ...
22
- @_property
23
- def view_id(self) -> winrt.system.Int32: ...
24
-
25
- @typing.final
26
- class NoteVisibilityChangedPreviewEventArgs(winrt.system.Object):
27
- @staticmethod
28
- def _from(obj: winrt.system.Object, /) -> NoteVisibilityChangedPreviewEventArgs: ...
29
- @_property
30
- def is_visible(self) -> bool: ...
31
- @_property
32
- def view_id(self) -> winrt.system.Int32: ...
33
-
34
- @typing.final
35
- class NotesWindowManagerPreview_Static(type):
36
- def get_for_current_app(cls) -> typing.Optional[NotesWindowManagerPreview]: ...
37
-
38
- @typing.final
39
- class NotesWindowManagerPreview(winrt.system.Object, metaclass=NotesWindowManagerPreview_Static):
40
- @staticmethod
41
- def _from(obj: winrt.system.Object, /) -> NotesWindowManagerPreview: ...
42
- def get_note_placement(self, note_view_id: winrt.system.Int32, /) -> typing.Optional[windows_storage_streams.IBuffer]: ...
43
- def hide_note(self, note_view_id: winrt.system.Int32, /) -> None: ...
44
- def set_focus_to_next_view(self) -> None: ...
45
- def set_focus_to_previous_view(self) -> None: ...
46
- def set_notes_thumbnail_async(self, thumbnail: typing.Optional[windows_storage_streams.IBuffer], /) -> windows_foundation.IAsyncAction: ...
47
- def set_thumbnail_image_for_task_switcher_async(self, bitmap: typing.Optional[windows_graphics_imaging.SoftwareBitmap], /) -> windows_foundation.IAsyncAction: ...
48
- def show_note(self, note_view_id: winrt.system.Int32, /) -> None: ...
49
- @typing.overload
50
- def show_note_relative_to(self, note_view_id: winrt.system.Int32, anchor_note_view_id: winrt.system.Int32, /) -> None: ...
51
- @typing.overload
52
- def show_note_relative_to(self, note_view_id: winrt.system.Int32, anchor_note_view_id: winrt.system.Int32, options: typing.Optional[NotesWindowManagerPreviewShowNoteOptions], /) -> None: ...
53
- @typing.overload
54
- def show_note_with_placement(self, note_view_id: winrt.system.Int32, data: typing.Optional[windows_storage_streams.IBuffer], /) -> None: ...
55
- @typing.overload
56
- def show_note_with_placement(self, note_view_id: winrt.system.Int32, data: typing.Optional[windows_storage_streams.IBuffer], options: typing.Optional[NotesWindowManagerPreviewShowNoteOptions], /) -> None: ...
57
- def try_set_note_size(self, note_view_id: winrt.system.Int32, size: windows_foundation.Size, /) -> bool: ...
58
- def add_note_placement_changed(self, handler: windows_foundation.TypedEventHandler[NotesWindowManagerPreview, NotePlacementChangedPreviewEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
59
- def remove_note_placement_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
60
- def add_note_visibility_changed(self, handler: windows_foundation.TypedEventHandler[NotesWindowManagerPreview, NoteVisibilityChangedPreviewEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
61
- def remove_note_visibility_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
62
- def add_system_lock_state_changed(self, handler: windows_foundation.TypedEventHandler[NotesWindowManagerPreview, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
63
- def remove_system_lock_state_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
64
- @_property
65
- def is_screen_locked(self) -> bool: ...
66
-
67
- @typing.final
68
- class NotesWindowManagerPreviewShowNoteOptions(winrt.system.Object):
69
- @staticmethod
70
- def _from(obj: winrt.system.Object, /) -> NotesWindowManagerPreviewShowNoteOptions: ...
71
- def __new__(cls: typing.Type[NotesWindowManagerPreviewShowNoteOptions]) -> NotesWindowManagerPreviewShowNoteOptions: ...
72
- @_property
73
- def show_with_focus(self) -> bool: ...
74
- @show_with_focus.setter
75
- def show_with_focus(self, value: bool) -> None: ...
76
-
@@ -1,16 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
-
3
- import winrt.system
4
- from winrt import _winrt_windows_applicationmodel_preview_notes
5
-
6
- __all__ = [
7
- "NotePlacementChangedPreviewEventArgs",
8
- "NoteVisibilityChangedPreviewEventArgs",
9
- "NotesWindowManagerPreview",
10
- "NotesWindowManagerPreviewShowNoteOptions",
11
- ]
12
-
13
- NotePlacementChangedPreviewEventArgs = _winrt_windows_applicationmodel_preview_notes.NotePlacementChangedPreviewEventArgs
14
- NoteVisibilityChangedPreviewEventArgs = _winrt_windows_applicationmodel_preview_notes.NoteVisibilityChangedPreviewEventArgs
15
- NotesWindowManagerPreview = _winrt_windows_applicationmodel_preview_notes.NotesWindowManagerPreview
16
- NotesWindowManagerPreviewShowNoteOptions = _winrt_windows_applicationmodel_preview_notes.NotesWindowManagerPreviewShowNoteOptions
@@ -1,6 +0,0 @@
1
- winrt-runtime==2.2.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.2.0
5
- winrt-Windows.Graphics.Imaging[all]==2.2.0
6
- winrt-Windows.Storage.Streams[all]==2.2.0