winrt-Windows.ApplicationModel.Preview.Notes 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_applicationmodel_preview_notes-2.0.1 → winrt_windows_applicationmodel_preview_notes-2.1.0}/PKG-INFO +5 -5
  2. winrt_windows_applicationmodel_preview_notes-2.1.0/all-requirements.txt +5 -0
  3. {winrt_windows_applicationmodel_preview_notes-2.0.1 → winrt_windows_applicationmodel_preview_notes-2.1.0}/py.Windows.ApplicationModel.Preview.Notes.cpp +178 -192
  4. winrt_windows_applicationmodel_preview_notes-2.1.0/pywinrt-version.txt +1 -0
  5. {winrt_windows_applicationmodel_preview_notes-2.0.1 → winrt_windows_applicationmodel_preview_notes-2.1.0}/requirements.txt +2 -2
  6. {winrt_windows_applicationmodel_preview_notes-2.0.1 → winrt_windows_applicationmodel_preview_notes-2.1.0}/winrt/_winrt_windows_applicationmodel_preview_notes.pyi +17 -17
  7. {winrt_windows_applicationmodel_preview_notes-2.0.1 → winrt_windows_applicationmodel_preview_notes-2.1.0}/winrt/windows/applicationmodel/preview/notes/__init__.py +1 -1
  8. {winrt_windows_applicationmodel_preview_notes-2.0.1 → winrt_windows_applicationmodel_preview_notes-2.1.0}/winrt_Windows.ApplicationModel.Preview.Notes.egg-info/PKG-INFO +5 -5
  9. winrt_windows_applicationmodel_preview_notes-2.1.0/winrt_Windows.ApplicationModel.Preview.Notes.egg-info/requires.txt +6 -0
  10. winrt_windows_applicationmodel_preview_notes-2.0.1/all-requirements.txt +0 -5
  11. winrt_windows_applicationmodel_preview_notes-2.0.1/pywinrt-version.txt +0 -1
  12. winrt_windows_applicationmodel_preview_notes-2.0.1/winrt_Windows.ApplicationModel.Preview.Notes.egg-info/requires.txt +0 -6
  13. {winrt_windows_applicationmodel_preview_notes-2.0.1 → winrt_windows_applicationmodel_preview_notes-2.1.0}/README.md +0 -0
  14. {winrt_windows_applicationmodel_preview_notes-2.0.1 → winrt_windows_applicationmodel_preview_notes-2.1.0}/pyproject.toml +0 -0
  15. {winrt_windows_applicationmodel_preview_notes-2.0.1 → winrt_windows_applicationmodel_preview_notes-2.1.0}/setup.cfg +0 -0
  16. {winrt_windows_applicationmodel_preview_notes-2.0.1 → winrt_windows_applicationmodel_preview_notes-2.1.0}/setup.py +0 -0
  17. {winrt_windows_applicationmodel_preview_notes-2.0.1 → winrt_windows_applicationmodel_preview_notes-2.1.0}/winrt/windows/applicationmodel/preview/notes/py.typed +0 -0
  18. {winrt_windows_applicationmodel_preview_notes-2.0.1 → winrt_windows_applicationmodel_preview_notes-2.1.0}/winrt_Windows.ApplicationModel.Preview.Notes.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_applicationmodel_preview_notes-2.0.1 → winrt_windows_applicationmodel_preview_notes-2.1.0}/winrt_Windows.ApplicationModel.Preview.Notes.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_applicationmodel_preview_notes-2.0.1 → winrt_windows_applicationmodel_preview_notes-2.1.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.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,11 +12,11 @@ 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.Foundation[all]==2.0.1; extra == "all"
18
- Requires-Dist: winrt-Windows.Graphics.Imaging[all]==2.0.1; extra == "all"
19
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Graphics.Imaging[all]==2.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.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 v2.1.0
2
+
3
+ winrt-Windows.Foundation[all]==2.1.0
4
+ winrt-Windows.Graphics.Imaging[all]==2.1.0
5
+ winrt-Windows.Storage.Streams[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.ApplicationModel.Preview.Notes.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::ApplicationModel::Preview::Notes
7
6
  {
8
7
  // ----- NotePlacementChangedPreviewEventArgs class --------------------
@@ -24,14 +23,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
24
23
 
25
24
  static PyObject* NotePlacementChangedPreviewEventArgs_get_ViewId(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotePlacementChangedPreviewEventArgs* self, void* /*unused*/) noexcept
26
25
  {
27
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Preview.Notes.NotePlacementChangedPreviewEventArgs", L"ViewId"))
28
- {
29
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
30
- return nullptr;
31
- }
32
-
33
26
  try
34
27
  {
28
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Preview.Notes.NotePlacementChangedPreviewEventArgs", L"ViewId"))
29
+ {
30
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
31
+ return nullptr;
32
+ }
33
+
35
34
  return py::convert(self->obj.ViewId());
36
35
  }
37
36
  catch (...)
@@ -76,23 +75,20 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
76
75
  { }
77
76
  };
78
77
 
79
- static PyType_Slot _type_slots_NotePlacementChangedPreviewEventArgs[] =
80
- {
78
+ static PyType_Slot _type_slots_NotePlacementChangedPreviewEventArgs[] = {
81
79
  { Py_tp_new, reinterpret_cast<void*>(_new_NotePlacementChangedPreviewEventArgs) },
82
80
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_NotePlacementChangedPreviewEventArgs) },
83
81
  { Py_tp_methods, reinterpret_cast<void*>(_methods_NotePlacementChangedPreviewEventArgs) },
84
82
  { Py_tp_getset, reinterpret_cast<void*>(_getset_NotePlacementChangedPreviewEventArgs) },
85
- { },
83
+ { }
86
84
  };
87
85
 
88
- static PyType_Spec type_spec_NotePlacementChangedPreviewEventArgs =
89
- {
86
+ static PyType_Spec type_spec_NotePlacementChangedPreviewEventArgs = {
90
87
  "winrt._winrt_windows_applicationmodel_preview_notes.NotePlacementChangedPreviewEventArgs",
91
88
  sizeof(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotePlacementChangedPreviewEventArgs),
92
89
  0,
93
90
  Py_TPFLAGS_DEFAULT,
94
- _type_slots_NotePlacementChangedPreviewEventArgs
95
- };
91
+ _type_slots_NotePlacementChangedPreviewEventArgs};
96
92
 
97
93
  // ----- NoteVisibilityChangedPreviewEventArgs class --------------------
98
94
 
@@ -113,14 +109,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
113
109
 
114
110
  static PyObject* NoteVisibilityChangedPreviewEventArgs_get_IsVisible(py::wrapper::Windows::ApplicationModel::Preview::Notes::NoteVisibilityChangedPreviewEventArgs* self, void* /*unused*/) noexcept
115
111
  {
116
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Preview.Notes.NoteVisibilityChangedPreviewEventArgs", L"IsVisible"))
117
- {
118
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
119
- return nullptr;
120
- }
121
-
122
112
  try
123
113
  {
114
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Preview.Notes.NoteVisibilityChangedPreviewEventArgs", L"IsVisible"))
115
+ {
116
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
117
+ return nullptr;
118
+ }
119
+
124
120
  return py::convert(self->obj.IsVisible());
125
121
  }
126
122
  catch (...)
@@ -132,14 +128,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
132
128
 
133
129
  static PyObject* NoteVisibilityChangedPreviewEventArgs_get_ViewId(py::wrapper::Windows::ApplicationModel::Preview::Notes::NoteVisibilityChangedPreviewEventArgs* self, void* /*unused*/) noexcept
134
130
  {
135
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Preview.Notes.NoteVisibilityChangedPreviewEventArgs", L"ViewId"))
136
- {
137
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
138
- return nullptr;
139
- }
140
-
141
131
  try
142
132
  {
133
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Preview.Notes.NoteVisibilityChangedPreviewEventArgs", L"ViewId"))
134
+ {
135
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
136
+ return nullptr;
137
+ }
138
+
143
139
  return py::convert(self->obj.ViewId());
144
140
  }
145
141
  catch (...)
@@ -185,23 +181,20 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
185
181
  { }
186
182
  };
187
183
 
188
- static PyType_Slot _type_slots_NoteVisibilityChangedPreviewEventArgs[] =
189
- {
184
+ static PyType_Slot _type_slots_NoteVisibilityChangedPreviewEventArgs[] = {
190
185
  { Py_tp_new, reinterpret_cast<void*>(_new_NoteVisibilityChangedPreviewEventArgs) },
191
186
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_NoteVisibilityChangedPreviewEventArgs) },
192
187
  { Py_tp_methods, reinterpret_cast<void*>(_methods_NoteVisibilityChangedPreviewEventArgs) },
193
188
  { Py_tp_getset, reinterpret_cast<void*>(_getset_NoteVisibilityChangedPreviewEventArgs) },
194
- { },
189
+ { }
195
190
  };
196
191
 
197
- static PyType_Spec type_spec_NoteVisibilityChangedPreviewEventArgs =
198
- {
192
+ static PyType_Spec type_spec_NoteVisibilityChangedPreviewEventArgs = {
199
193
  "winrt._winrt_windows_applicationmodel_preview_notes.NoteVisibilityChangedPreviewEventArgs",
200
194
  sizeof(py::wrapper::Windows::ApplicationModel::Preview::Notes::NoteVisibilityChangedPreviewEventArgs),
201
195
  0,
202
196
  Py_TPFLAGS_DEFAULT,
203
- _type_slots_NoteVisibilityChangedPreviewEventArgs
204
- };
197
+ _type_slots_NoteVisibilityChangedPreviewEventArgs};
205
198
 
206
199
  // ----- NotesWindowManagerPreview class --------------------
207
200
 
@@ -226,14 +219,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
226
219
 
227
220
  if (arg_count == 0)
228
221
  {
229
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"GetForCurrentApp", 0))
230
- {
231
- py::set_arg_count_version_error(0);
232
- return nullptr;
233
- }
234
-
235
222
  try
236
223
  {
224
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"GetForCurrentApp", 0))
225
+ {
226
+ py::set_arg_count_version_error(0);
227
+ return nullptr;
228
+ }
229
+
237
230
  return py::convert(winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview::GetForCurrentApp());
238
231
  }
239
232
  catch (...)
@@ -255,14 +248,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
255
248
 
256
249
  if (arg_count == 1)
257
250
  {
258
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"GetNotePlacement", 1))
259
- {
260
- py::set_arg_count_version_error(1);
261
- return nullptr;
262
- }
263
-
264
251
  try
265
252
  {
253
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"GetNotePlacement", 1))
254
+ {
255
+ py::set_arg_count_version_error(1);
256
+ return nullptr;
257
+ }
258
+
266
259
  auto param0 = py::convert_to<int32_t>(args, 0);
267
260
 
268
261
  return py::convert(self->obj.GetNotePlacement(param0));
@@ -286,14 +279,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
286
279
 
287
280
  if (arg_count == 1)
288
281
  {
289
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"HideNote", 1))
290
- {
291
- py::set_arg_count_version_error(1);
292
- return nullptr;
293
- }
294
-
295
282
  try
296
283
  {
284
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"HideNote", 1))
285
+ {
286
+ py::set_arg_count_version_error(1);
287
+ return nullptr;
288
+ }
289
+
297
290
  auto param0 = py::convert_to<int32_t>(args, 0);
298
291
 
299
292
  self->obj.HideNote(param0);
@@ -318,14 +311,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
318
311
 
319
312
  if (arg_count == 0)
320
313
  {
321
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"SetFocusToNextView", 0))
322
- {
323
- py::set_arg_count_version_error(0);
324
- return nullptr;
325
- }
326
-
327
314
  try
328
315
  {
316
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"SetFocusToNextView", 0))
317
+ {
318
+ py::set_arg_count_version_error(0);
319
+ return nullptr;
320
+ }
321
+
329
322
  self->obj.SetFocusToNextView();
330
323
  Py_RETURN_NONE;
331
324
  }
@@ -348,14 +341,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
348
341
 
349
342
  if (arg_count == 0)
350
343
  {
351
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"SetFocusToPreviousView", 0))
352
- {
353
- py::set_arg_count_version_error(0);
354
- return nullptr;
355
- }
356
-
357
344
  try
358
345
  {
346
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"SetFocusToPreviousView", 0))
347
+ {
348
+ py::set_arg_count_version_error(0);
349
+ return nullptr;
350
+ }
351
+
359
352
  self->obj.SetFocusToPreviousView();
360
353
  Py_RETURN_NONE;
361
354
  }
@@ -378,14 +371,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
378
371
 
379
372
  if (arg_count == 1)
380
373
  {
381
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"SetNotesThumbnailAsync", 1))
382
- {
383
- py::set_arg_count_version_error(1);
384
- return nullptr;
385
- }
386
-
387
374
  try
388
375
  {
376
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"SetNotesThumbnailAsync", 1))
377
+ {
378
+ py::set_arg_count_version_error(1);
379
+ return nullptr;
380
+ }
381
+
389
382
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
390
383
 
391
384
  return py::convert(self->obj.SetNotesThumbnailAsync(param0));
@@ -409,14 +402,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
409
402
 
410
403
  if (arg_count == 1)
411
404
  {
412
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"SetThumbnailImageForTaskSwitcherAsync", 1))
413
- {
414
- py::set_arg_count_version_error(1);
415
- return nullptr;
416
- }
417
-
418
405
  try
419
406
  {
407
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"SetThumbnailImageForTaskSwitcherAsync", 1))
408
+ {
409
+ py::set_arg_count_version_error(1);
410
+ return nullptr;
411
+ }
412
+
420
413
  auto param0 = py::convert_to<winrt::Windows::Graphics::Imaging::SoftwareBitmap>(args, 0);
421
414
 
422
415
  return py::convert(self->obj.SetThumbnailImageForTaskSwitcherAsync(param0));
@@ -440,14 +433,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
440
433
 
441
434
  if (arg_count == 1)
442
435
  {
443
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"ShowNote", 1))
444
- {
445
- py::set_arg_count_version_error(1);
446
- return nullptr;
447
- }
448
-
449
436
  try
450
437
  {
438
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"ShowNote", 1))
439
+ {
440
+ py::set_arg_count_version_error(1);
441
+ return nullptr;
442
+ }
443
+
451
444
  auto param0 = py::convert_to<int32_t>(args, 0);
452
445
 
453
446
  self->obj.ShowNote(param0);
@@ -472,14 +465,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
472
465
 
473
466
  if (arg_count == 2)
474
467
  {
475
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"ShowNoteRelativeTo", 2))
476
- {
477
- py::set_arg_count_version_error(2);
478
- return nullptr;
479
- }
480
-
481
468
  try
482
469
  {
470
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"ShowNoteRelativeTo", 2))
471
+ {
472
+ py::set_arg_count_version_error(2);
473
+ return nullptr;
474
+ }
475
+
483
476
  auto param0 = py::convert_to<int32_t>(args, 0);
484
477
  auto param1 = py::convert_to<int32_t>(args, 1);
485
478
 
@@ -494,14 +487,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
494
487
  }
495
488
  else if (arg_count == 3)
496
489
  {
497
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"ShowNoteRelativeTo", 3))
498
- {
499
- py::set_arg_count_version_error(3);
500
- return nullptr;
501
- }
502
-
503
490
  try
504
491
  {
492
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"ShowNoteRelativeTo", 3))
493
+ {
494
+ py::set_arg_count_version_error(3);
495
+ return nullptr;
496
+ }
497
+
505
498
  auto param0 = py::convert_to<int32_t>(args, 0);
506
499
  auto param1 = py::convert_to<int32_t>(args, 1);
507
500
  auto param2 = py::convert_to<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreviewShowNoteOptions>(args, 2);
@@ -528,14 +521,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
528
521
 
529
522
  if (arg_count == 2)
530
523
  {
531
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"ShowNoteWithPlacement", 2))
532
- {
533
- py::set_arg_count_version_error(2);
534
- return nullptr;
535
- }
536
-
537
524
  try
538
525
  {
526
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"ShowNoteWithPlacement", 2))
527
+ {
528
+ py::set_arg_count_version_error(2);
529
+ return nullptr;
530
+ }
531
+
539
532
  auto param0 = py::convert_to<int32_t>(args, 0);
540
533
  auto param1 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 1);
541
534
 
@@ -550,14 +543,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
550
543
  }
551
544
  else if (arg_count == 3)
552
545
  {
553
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"ShowNoteWithPlacement", 3))
554
- {
555
- py::set_arg_count_version_error(3);
556
- return nullptr;
557
- }
558
-
559
546
  try
560
547
  {
548
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"ShowNoteWithPlacement", 3))
549
+ {
550
+ py::set_arg_count_version_error(3);
551
+ return nullptr;
552
+ }
553
+
561
554
  auto param0 = py::convert_to<int32_t>(args, 0);
562
555
  auto param1 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 1);
563
556
  auto param2 = py::convert_to<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreviewShowNoteOptions>(args, 2);
@@ -584,14 +577,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
584
577
 
585
578
  if (arg_count == 2)
586
579
  {
587
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"TrySetNoteSize", 2))
588
- {
589
- py::set_arg_count_version_error(2);
590
- return nullptr;
591
- }
592
-
593
580
  try
594
581
  {
582
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"TrySetNoteSize", 2))
583
+ {
584
+ py::set_arg_count_version_error(2);
585
+ return nullptr;
586
+ }
587
+
595
588
  auto param0 = py::convert_to<int32_t>(args, 0);
596
589
  auto param1 = py::convert_to<winrt::Windows::Foundation::Size>(args, 1);
597
590
 
@@ -612,14 +605,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
612
605
 
613
606
  static PyObject* NotesWindowManagerPreview_get_IsScreenLocked(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, void* /*unused*/) noexcept
614
607
  {
615
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"IsScreenLocked"))
616
- {
617
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
618
- return nullptr;
619
- }
620
-
621
608
  try
622
609
  {
610
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"IsScreenLocked"))
611
+ {
612
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
613
+ return nullptr;
614
+ }
615
+
623
616
  return py::convert(self->obj.IsScreenLocked());
624
617
  }
625
618
  catch (...)
@@ -631,14 +624,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
631
624
 
632
625
  static PyObject* NotesWindowManagerPreview_add_NotePlacementChanged(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* arg) noexcept
633
626
  {
634
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"NotePlacementChanged"))
635
- {
636
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
637
- return nullptr;
638
- }
639
-
640
627
  try
641
628
  {
629
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"NotePlacementChanged"))
630
+ {
631
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
632
+ return nullptr;
633
+ }
634
+
642
635
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview, winrt::Windows::ApplicationModel::Preview::Notes::NotePlacementChangedPreviewEventArgs>>(arg);
643
636
 
644
637
  return py::convert(self->obj.NotePlacementChanged(param0));
@@ -652,14 +645,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
652
645
 
653
646
  static PyObject* NotesWindowManagerPreview_remove_NotePlacementChanged(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* arg) noexcept
654
647
  {
655
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"NotePlacementChanged"))
656
- {
657
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
658
- return nullptr;
659
- }
660
-
661
648
  try
662
649
  {
650
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"NotePlacementChanged"))
651
+ {
652
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
653
+ return nullptr;
654
+ }
655
+
663
656
  auto param0 = py::convert_to<winrt::event_token>(arg);
664
657
 
665
658
  self->obj.NotePlacementChanged(param0);
@@ -674,14 +667,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
674
667
 
675
668
  static PyObject* NotesWindowManagerPreview_add_NoteVisibilityChanged(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* arg) noexcept
676
669
  {
677
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"NoteVisibilityChanged"))
678
- {
679
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
680
- return nullptr;
681
- }
682
-
683
670
  try
684
671
  {
672
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"NoteVisibilityChanged"))
673
+ {
674
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
675
+ return nullptr;
676
+ }
677
+
685
678
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview, winrt::Windows::ApplicationModel::Preview::Notes::NoteVisibilityChangedPreviewEventArgs>>(arg);
686
679
 
687
680
  return py::convert(self->obj.NoteVisibilityChanged(param0));
@@ -695,14 +688,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
695
688
 
696
689
  static PyObject* NotesWindowManagerPreview_remove_NoteVisibilityChanged(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* arg) noexcept
697
690
  {
698
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"NoteVisibilityChanged"))
699
- {
700
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
701
- return nullptr;
702
- }
703
-
704
691
  try
705
692
  {
693
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"NoteVisibilityChanged"))
694
+ {
695
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
696
+ return nullptr;
697
+ }
698
+
706
699
  auto param0 = py::convert_to<winrt::event_token>(arg);
707
700
 
708
701
  self->obj.NoteVisibilityChanged(param0);
@@ -717,14 +710,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
717
710
 
718
711
  static PyObject* NotesWindowManagerPreview_add_SystemLockStateChanged(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* arg) noexcept
719
712
  {
720
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"SystemLockStateChanged"))
721
- {
722
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
723
- return nullptr;
724
- }
725
-
726
713
  try
727
714
  {
715
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"SystemLockStateChanged"))
716
+ {
717
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
718
+ return nullptr;
719
+ }
720
+
728
721
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview, winrt::Windows::Foundation::IInspectable>>(arg);
729
722
 
730
723
  return py::convert(self->obj.SystemLockStateChanged(param0));
@@ -738,14 +731,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
738
731
 
739
732
  static PyObject* NotesWindowManagerPreview_remove_SystemLockStateChanged(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* arg) noexcept
740
733
  {
741
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"SystemLockStateChanged"))
742
- {
743
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
744
- return nullptr;
745
- }
746
-
747
734
  try
748
735
  {
736
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"SystemLockStateChanged"))
737
+ {
738
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
739
+ return nullptr;
740
+ }
741
+
749
742
  auto param0 = py::convert_to<winrt::event_token>(arg);
750
743
 
751
744
  self->obj.SystemLockStateChanged(param0);
@@ -809,23 +802,20 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
809
802
  { }
810
803
  };
811
804
 
812
- static PyType_Slot _type_slots_NotesWindowManagerPreview[] =
813
- {
805
+ static PyType_Slot _type_slots_NotesWindowManagerPreview[] = {
814
806
  { Py_tp_new, reinterpret_cast<void*>(_new_NotesWindowManagerPreview) },
815
807
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_NotesWindowManagerPreview) },
816
808
  { Py_tp_methods, reinterpret_cast<void*>(_methods_NotesWindowManagerPreview) },
817
809
  { Py_tp_getset, reinterpret_cast<void*>(_getset_NotesWindowManagerPreview) },
818
- { },
810
+ { }
819
811
  };
820
812
 
821
- static PyType_Spec type_spec_NotesWindowManagerPreview =
822
- {
813
+ static PyType_Spec type_spec_NotesWindowManagerPreview = {
823
814
  "winrt._winrt_windows_applicationmodel_preview_notes.NotesWindowManagerPreview",
824
815
  sizeof(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview),
825
816
  0,
826
817
  Py_TPFLAGS_DEFAULT,
827
- _type_slots_NotesWindowManagerPreview
828
- };
818
+ _type_slots_NotesWindowManagerPreview};
829
819
 
830
820
  static PyGetSetDef getset_NotesWindowManagerPreview_Static[] = {
831
821
  { }
@@ -894,14 +884,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
894
884
 
895
885
  static PyObject* NotesWindowManagerPreviewShowNoteOptions_get_ShowWithFocus(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreviewShowNoteOptions* self, void* /*unused*/) noexcept
896
886
  {
897
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreviewShowNoteOptions", L"ShowWithFocus"))
898
- {
899
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
900
- return nullptr;
901
- }
902
-
903
887
  try
904
888
  {
889
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreviewShowNoteOptions", L"ShowWithFocus"))
890
+ {
891
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
892
+ return nullptr;
893
+ }
894
+
905
895
  return py::convert(self->obj.ShowWithFocus());
906
896
  }
907
897
  catch (...)
@@ -913,12 +903,6 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
913
903
 
914
904
  static int NotesWindowManagerPreviewShowNoteOptions_put_ShowWithFocus(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreviewShowNoteOptions* self, PyObject* arg, void* /*unused*/) noexcept
915
905
  {
916
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreviewShowNoteOptions", L"ShowWithFocus"))
917
- {
918
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
919
- return -1;
920
- }
921
-
922
906
  if (arg == nullptr)
923
907
  {
924
908
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -927,6 +911,12 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
927
911
 
928
912
  try
929
913
  {
914
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreviewShowNoteOptions", L"ShowWithFocus"))
915
+ {
916
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
917
+ return -1;
918
+ }
919
+
930
920
  auto param0 = py::convert_to<bool>(arg);
931
921
 
932
922
  self->obj.ShowWithFocus(param0);
@@ -974,39 +964,35 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
974
964
  { }
975
965
  };
976
966
 
977
- static PyType_Slot _type_slots_NotesWindowManagerPreviewShowNoteOptions[] =
978
- {
967
+ static PyType_Slot _type_slots_NotesWindowManagerPreviewShowNoteOptions[] = {
979
968
  { Py_tp_new, reinterpret_cast<void*>(_new_NotesWindowManagerPreviewShowNoteOptions) },
980
969
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_NotesWindowManagerPreviewShowNoteOptions) },
981
970
  { Py_tp_methods, reinterpret_cast<void*>(_methods_NotesWindowManagerPreviewShowNoteOptions) },
982
971
  { Py_tp_getset, reinterpret_cast<void*>(_getset_NotesWindowManagerPreviewShowNoteOptions) },
983
- { },
972
+ { }
984
973
  };
985
974
 
986
- static PyType_Spec type_spec_NotesWindowManagerPreviewShowNoteOptions =
987
- {
975
+ static PyType_Spec type_spec_NotesWindowManagerPreviewShowNoteOptions = {
988
976
  "winrt._winrt_windows_applicationmodel_preview_notes.NotesWindowManagerPreviewShowNoteOptions",
989
977
  sizeof(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreviewShowNoteOptions),
990
978
  0,
991
979
  Py_TPFLAGS_DEFAULT,
992
- _type_slots_NotesWindowManagerPreviewShowNoteOptions
993
- };
980
+ _type_slots_NotesWindowManagerPreviewShowNoteOptions};
994
981
 
995
982
  // ----- Windows.ApplicationModel.Preview.Notes Initialization --------------------
996
- PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::Preview::Notes");
997
983
 
984
+ PyDoc_STRVAR(module_doc, "Windows.ApplicationModel.Preview.Notes");
998
985
 
999
- static PyModuleDef module_def
1000
- = {PyModuleDef_HEAD_INIT,
1001
- "_winrt_windows_applicationmodel_preview_notes",
1002
- module_doc,
1003
- 0,
1004
- nullptr,
1005
- nullptr,
1006
- nullptr,
1007
- nullptr,
1008
- nullptr};
1009
-
986
+ static PyModuleDef module_def = {
987
+ PyModuleDef_HEAD_INIT,
988
+ "_winrt_windows_applicationmodel_preview_notes",
989
+ module_doc,
990
+ 0,
991
+ nullptr,
992
+ nullptr,
993
+ nullptr,
994
+ nullptr,
995
+ nullptr};
1010
996
  } // py::cpp::Windows::ApplicationModel::Preview::Notes
1011
997
 
1012
998
  PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_preview_notes(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,9 +9,9 @@ from builtins import property as _property
9
9
 
10
10
  import winrt._winrt
11
11
  import winrt.system
12
- import winrt.windows.foundation
13
- import winrt.windows.graphics.imaging
14
- import winrt.windows.storage.streams
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
15
 
16
16
  Self = typing.TypeVar('Self')
17
17
 
@@ -39,28 +39,28 @@ class NotesWindowManagerPreview_Static(type):
39
39
  class NotesWindowManagerPreview(winrt.system.Object, metaclass=NotesWindowManagerPreview_Static):
40
40
  @staticmethod
41
41
  def _from(obj: winrt.system.Object, /) -> NotesWindowManagerPreview: ...
42
- def get_note_placement(self, note_view_id: winrt.system.Int32, /) -> typing.Optional[winrt.windows.storage.streams.IBuffer]: ...
42
+ def get_note_placement(self, note_view_id: winrt.system.Int32, /) -> typing.Optional[windows_storage_streams.IBuffer]: ...
43
43
  def hide_note(self, note_view_id: winrt.system.Int32, /) -> None: ...
44
44
  def set_focus_to_next_view(self) -> None: ...
45
45
  def set_focus_to_previous_view(self) -> None: ...
46
- def set_notes_thumbnail_async(self, thumbnail: typing.Optional[winrt.windows.storage.streams.IBuffer], /) -> winrt.windows.foundation.IAsyncAction: ...
47
- def set_thumbnail_image_for_task_switcher_async(self, bitmap: typing.Optional[winrt.windows.graphics.imaging.SoftwareBitmap], /) -> winrt.windows.foundation.IAsyncAction: ...
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
48
  def show_note(self, note_view_id: winrt.system.Int32, /) -> None: ...
49
49
  @typing.overload
50
50
  def show_note_relative_to(self, note_view_id: winrt.system.Int32, anchor_note_view_id: winrt.system.Int32, /) -> None: ...
51
51
  @typing.overload
52
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
53
  @typing.overload
54
- def show_note_with_placement(self, note_view_id: winrt.system.Int32, data: typing.Optional[winrt.windows.storage.streams.IBuffer], /) -> None: ...
54
+ def show_note_with_placement(self, note_view_id: winrt.system.Int32, data: typing.Optional[windows_storage_streams.IBuffer], /) -> None: ...
55
55
  @typing.overload
56
- def show_note_with_placement(self, note_view_id: winrt.system.Int32, data: typing.Optional[winrt.windows.storage.streams.IBuffer], options: typing.Optional[NotesWindowManagerPreviewShowNoteOptions], /) -> None: ...
57
- def try_set_note_size(self, note_view_id: winrt.system.Int32, size: winrt.windows.foundation.Size, /) -> bool: ...
58
- def add_note_placement_changed(self, handler: winrt.windows.foundation.TypedEventHandler[NotesWindowManagerPreview, NotePlacementChangedPreviewEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
59
- def remove_note_placement_changed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
60
- def add_note_visibility_changed(self, handler: winrt.windows.foundation.TypedEventHandler[NotesWindowManagerPreview, NoteVisibilityChangedPreviewEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
61
- def remove_note_visibility_changed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
62
- def add_system_lock_state_changed(self, handler: winrt.windows.foundation.TypedEventHandler[NotesWindowManagerPreview, winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
63
- def remove_system_lock_state_changed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
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
64
  @_property
65
65
  def is_screen_locked(self) -> bool: ...
66
66
 
@@ -68,7 +68,7 @@ class NotesWindowManagerPreview(winrt.system.Object, metaclass=NotesWindowManage
68
68
  class NotesWindowManagerPreviewShowNoteOptions(winrt.system.Object):
69
69
  @staticmethod
70
70
  def _from(obj: winrt.system.Object, /) -> NotesWindowManagerPreviewShowNoteOptions: ...
71
- def __new__(cls: typing.Type[NotesWindowManagerPreviewShowNoteOptions]) -> NotesWindowManagerPreviewShowNoteOptions:...
71
+ def __new__(cls: typing.Type[NotesWindowManagerPreviewShowNoteOptions]) -> NotesWindowManagerPreviewShowNoteOptions: ...
72
72
  @_property
73
73
  def show_with_focus(self) -> bool: ...
74
74
  @show_with_focus.setter
@@ -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 winrt.system
4
4
  from winrt import _winrt_windows_applicationmodel_preview_notes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.ApplicationModel.Preview.Notes
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,11 +12,11 @@ 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.Foundation[all]==2.0.1; extra == "all"
18
- Requires-Dist: winrt-Windows.Graphics.Imaging[all]==2.0.1; extra == "all"
19
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Graphics.Imaging[all]==2.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.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==2.1.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.1.0
5
+ winrt-Windows.Graphics.Imaging[all]==2.1.0
6
+ winrt-Windows.Storage.Streams[all]==2.1.0
@@ -1,5 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
2
-
3
- winrt-Windows.Foundation[all]==2.0.1
4
- winrt-Windows.Graphics.Imaging[all]==2.0.1
5
- winrt-Windows.Storage.Streams[all]==2.0.1
@@ -1,6 +0,0 @@
1
- winrt-runtime==2.0.1
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.0.1
5
- winrt-Windows.Graphics.Imaging[all]==2.0.1
6
- winrt-Windows.Storage.Streams[all]==2.0.1