winrt-Windows.ApplicationModel.Preview.Notes 2.0.0b1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- winrt-Windows.ApplicationModel.Preview.Notes-2.0.0b1/PKG-INFO +22 -0
- winrt-Windows.ApplicationModel.Preview.Notes-2.0.0b1/README.md +7 -0
- winrt-Windows.ApplicationModel.Preview.Notes-2.0.0b1/all-requirements.txt +5 -0
- winrt-Windows.ApplicationModel.Preview.Notes-2.0.0b1/py.Windows.ApplicationModel.Preview.Notes.cpp +1069 -0
- winrt-Windows.ApplicationModel.Preview.Notes-2.0.0b1/pyproject.toml +43 -0
- winrt-Windows.ApplicationModel.Preview.Notes-2.0.0b1/pywinrt-version.txt +1 -0
- winrt-Windows.ApplicationModel.Preview.Notes-2.0.0b1/requirements.txt +3 -0
- winrt-Windows.ApplicationModel.Preview.Notes-2.0.0b1/setup.cfg +4 -0
- winrt-Windows.ApplicationModel.Preview.Notes-2.0.0b1/setup.py +17 -0
- winrt-Windows.ApplicationModel.Preview.Notes-2.0.0b1/winrt/_winrt_windows_applicationmodel_preview_notes.pyi +71 -0
- winrt-Windows.ApplicationModel.Preview.Notes-2.0.0b1/winrt/windows/applicationmodel/preview/notes/__init__.py +16 -0
- winrt-Windows.ApplicationModel.Preview.Notes-2.0.0b1/winrt_Windows.ApplicationModel.Preview.Notes.egg-info/PKG-INFO +22 -0
- winrt-Windows.ApplicationModel.Preview.Notes-2.0.0b1/winrt_Windows.ApplicationModel.Preview.Notes.egg-info/SOURCES.txt +14 -0
- winrt-Windows.ApplicationModel.Preview.Notes-2.0.0b1/winrt_Windows.ApplicationModel.Preview.Notes.egg-info/dependency_links.txt +1 -0
- winrt-Windows.ApplicationModel.Preview.Notes-2.0.0b1/winrt_Windows.ApplicationModel.Preview.Notes.egg-info/requires.txt +6 -0
- winrt-Windows.ApplicationModel.Preview.Notes-2.0.0b1/winrt_Windows.ApplicationModel.Preview.Notes.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.ApplicationModel.Preview.Notes
|
|
3
|
+
Version: 2.0.0b1
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License: MIT
|
|
6
|
+
Project-URL: Repository, https://github.com/pywrint/pywrinrt
|
|
7
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
8
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Requires-Python: <3.13,>=3.9
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
Provides-Extra: all
|
|
15
|
+
|
|
16
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
17
|
+
|
|
18
|
+
# winrt-Windows.ApplicationModel.Preview.Notes
|
|
19
|
+
|
|
20
|
+
Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.Preview.Notes` namespace.
|
|
21
|
+
|
|
22
|
+
This package provides the `winrt.windows.applicationmodel.preview.notes` module.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
2
|
+
|
|
3
|
+
# winrt-Windows.ApplicationModel.Preview.Notes
|
|
4
|
+
|
|
5
|
+
Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.Preview.Notes` namespace.
|
|
6
|
+
|
|
7
|
+
This package provides the `winrt.windows.applicationmodel.preview.notes` module.
|
winrt-Windows.ApplicationModel.Preview.Notes-2.0.0b1/py.Windows.ApplicationModel.Preview.Notes.cpp
ADDED
|
@@ -0,0 +1,1069 @@
|
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
|
|
2
|
+
|
|
3
|
+
#include "py.Windows.ApplicationModel.Preview.Notes.h"
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
namespace py::cpp::Windows::ApplicationModel::Preview::Notes
|
|
7
|
+
{
|
|
8
|
+
// ----- NotePlacementChangedPreviewEventArgs class --------------------
|
|
9
|
+
|
|
10
|
+
static PyObject* _new_NotePlacementChangedPreviewEventArgs(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
11
|
+
{
|
|
12
|
+
static_assert(py::py_type<winrt::Windows::ApplicationModel::Preview::Notes::NotePlacementChangedPreviewEventArgs>::type_name);
|
|
13
|
+
py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::Preview::Notes::NotePlacementChangedPreviewEventArgs>::type_name);
|
|
14
|
+
return nullptr;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static void _dealloc_NotePlacementChangedPreviewEventArgs(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotePlacementChangedPreviewEventArgs* self) noexcept
|
|
18
|
+
{
|
|
19
|
+
auto tp = Py_TYPE(self);
|
|
20
|
+
std::destroy_at(&self->obj);
|
|
21
|
+
tp->tp_free(self);
|
|
22
|
+
Py_DECREF(tp);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
static PyObject* NotePlacementChangedPreviewEventArgs_get_ViewId(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotePlacementChangedPreviewEventArgs* self, void* /*unused*/) noexcept
|
|
26
|
+
{
|
|
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
|
+
try
|
|
34
|
+
{
|
|
35
|
+
return py::convert(self->obj.ViewId());
|
|
36
|
+
}
|
|
37
|
+
catch (...)
|
|
38
|
+
{
|
|
39
|
+
py::to_PyErr();
|
|
40
|
+
return nullptr;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
static PyObject* _assign_array_NotePlacementChangedPreviewEventArgs(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
45
|
+
{
|
|
46
|
+
auto array = std::make_unique<py::ComArray<winrt::Windows::ApplicationModel::Preview::Notes::NotePlacementChangedPreviewEventArgs>>();
|
|
47
|
+
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
48
|
+
{
|
|
49
|
+
return nullptr;
|
|
50
|
+
}
|
|
51
|
+
Py_RETURN_NONE;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
static PyObject* _from_NotePlacementChangedPreviewEventArgs(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
55
|
+
{
|
|
56
|
+
try
|
|
57
|
+
{
|
|
58
|
+
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
59
|
+
return py::convert(return_value.as<winrt::Windows::ApplicationModel::Preview::Notes::NotePlacementChangedPreviewEventArgs>());
|
|
60
|
+
}
|
|
61
|
+
catch (...)
|
|
62
|
+
{
|
|
63
|
+
py::to_PyErr();
|
|
64
|
+
return nullptr;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
static PyMethodDef _methods_NotePlacementChangedPreviewEventArgs[] = {
|
|
69
|
+
{ "_assign_array_", _assign_array_NotePlacementChangedPreviewEventArgs, METH_O | METH_STATIC, nullptr },
|
|
70
|
+
{ "_from", reinterpret_cast<PyCFunction>(_from_NotePlacementChangedPreviewEventArgs), METH_O | METH_STATIC, nullptr },
|
|
71
|
+
{ }
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
static PyGetSetDef _getset_NotePlacementChangedPreviewEventArgs[] = {
|
|
75
|
+
{ "view_id", reinterpret_cast<getter>(NotePlacementChangedPreviewEventArgs_get_ViewId), nullptr, nullptr, nullptr },
|
|
76
|
+
{ }
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
static PyType_Slot _type_slots_NotePlacementChangedPreviewEventArgs[] =
|
|
80
|
+
{
|
|
81
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_NotePlacementChangedPreviewEventArgs) },
|
|
82
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_NotePlacementChangedPreviewEventArgs) },
|
|
83
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_NotePlacementChangedPreviewEventArgs) },
|
|
84
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_NotePlacementChangedPreviewEventArgs) },
|
|
85
|
+
{ },
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
static PyType_Spec type_spec_NotePlacementChangedPreviewEventArgs =
|
|
89
|
+
{
|
|
90
|
+
"winrt._winrt_windows_applicationmodel_preview_notes.NotePlacementChangedPreviewEventArgs",
|
|
91
|
+
sizeof(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotePlacementChangedPreviewEventArgs),
|
|
92
|
+
0,
|
|
93
|
+
Py_TPFLAGS_DEFAULT,
|
|
94
|
+
_type_slots_NotePlacementChangedPreviewEventArgs
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
// ----- NoteVisibilityChangedPreviewEventArgs class --------------------
|
|
98
|
+
|
|
99
|
+
static PyObject* _new_NoteVisibilityChangedPreviewEventArgs(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
100
|
+
{
|
|
101
|
+
static_assert(py::py_type<winrt::Windows::ApplicationModel::Preview::Notes::NoteVisibilityChangedPreviewEventArgs>::type_name);
|
|
102
|
+
py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::Preview::Notes::NoteVisibilityChangedPreviewEventArgs>::type_name);
|
|
103
|
+
return nullptr;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
static void _dealloc_NoteVisibilityChangedPreviewEventArgs(py::wrapper::Windows::ApplicationModel::Preview::Notes::NoteVisibilityChangedPreviewEventArgs* self) noexcept
|
|
107
|
+
{
|
|
108
|
+
auto tp = Py_TYPE(self);
|
|
109
|
+
std::destroy_at(&self->obj);
|
|
110
|
+
tp->tp_free(self);
|
|
111
|
+
Py_DECREF(tp);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
static PyObject* NoteVisibilityChangedPreviewEventArgs_get_IsVisible(py::wrapper::Windows::ApplicationModel::Preview::Notes::NoteVisibilityChangedPreviewEventArgs* self, void* /*unused*/) noexcept
|
|
115
|
+
{
|
|
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
|
+
try
|
|
123
|
+
{
|
|
124
|
+
return py::convert(self->obj.IsVisible());
|
|
125
|
+
}
|
|
126
|
+
catch (...)
|
|
127
|
+
{
|
|
128
|
+
py::to_PyErr();
|
|
129
|
+
return nullptr;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
static PyObject* NoteVisibilityChangedPreviewEventArgs_get_ViewId(py::wrapper::Windows::ApplicationModel::Preview::Notes::NoteVisibilityChangedPreviewEventArgs* self, void* /*unused*/) noexcept
|
|
134
|
+
{
|
|
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
|
+
try
|
|
142
|
+
{
|
|
143
|
+
return py::convert(self->obj.ViewId());
|
|
144
|
+
}
|
|
145
|
+
catch (...)
|
|
146
|
+
{
|
|
147
|
+
py::to_PyErr();
|
|
148
|
+
return nullptr;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
static PyObject* _assign_array_NoteVisibilityChangedPreviewEventArgs(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
153
|
+
{
|
|
154
|
+
auto array = std::make_unique<py::ComArray<winrt::Windows::ApplicationModel::Preview::Notes::NoteVisibilityChangedPreviewEventArgs>>();
|
|
155
|
+
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
156
|
+
{
|
|
157
|
+
return nullptr;
|
|
158
|
+
}
|
|
159
|
+
Py_RETURN_NONE;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
static PyObject* _from_NoteVisibilityChangedPreviewEventArgs(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
163
|
+
{
|
|
164
|
+
try
|
|
165
|
+
{
|
|
166
|
+
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
167
|
+
return py::convert(return_value.as<winrt::Windows::ApplicationModel::Preview::Notes::NoteVisibilityChangedPreviewEventArgs>());
|
|
168
|
+
}
|
|
169
|
+
catch (...)
|
|
170
|
+
{
|
|
171
|
+
py::to_PyErr();
|
|
172
|
+
return nullptr;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
static PyMethodDef _methods_NoteVisibilityChangedPreviewEventArgs[] = {
|
|
177
|
+
{ "_assign_array_", _assign_array_NoteVisibilityChangedPreviewEventArgs, METH_O | METH_STATIC, nullptr },
|
|
178
|
+
{ "_from", reinterpret_cast<PyCFunction>(_from_NoteVisibilityChangedPreviewEventArgs), METH_O | METH_STATIC, nullptr },
|
|
179
|
+
{ }
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
static PyGetSetDef _getset_NoteVisibilityChangedPreviewEventArgs[] = {
|
|
183
|
+
{ "is_visible", reinterpret_cast<getter>(NoteVisibilityChangedPreviewEventArgs_get_IsVisible), nullptr, nullptr, nullptr },
|
|
184
|
+
{ "view_id", reinterpret_cast<getter>(NoteVisibilityChangedPreviewEventArgs_get_ViewId), nullptr, nullptr, nullptr },
|
|
185
|
+
{ }
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
static PyType_Slot _type_slots_NoteVisibilityChangedPreviewEventArgs[] =
|
|
189
|
+
{
|
|
190
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_NoteVisibilityChangedPreviewEventArgs) },
|
|
191
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_NoteVisibilityChangedPreviewEventArgs) },
|
|
192
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_NoteVisibilityChangedPreviewEventArgs) },
|
|
193
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_NoteVisibilityChangedPreviewEventArgs) },
|
|
194
|
+
{ },
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
static PyType_Spec type_spec_NoteVisibilityChangedPreviewEventArgs =
|
|
198
|
+
{
|
|
199
|
+
"winrt._winrt_windows_applicationmodel_preview_notes.NoteVisibilityChangedPreviewEventArgs",
|
|
200
|
+
sizeof(py::wrapper::Windows::ApplicationModel::Preview::Notes::NoteVisibilityChangedPreviewEventArgs),
|
|
201
|
+
0,
|
|
202
|
+
Py_TPFLAGS_DEFAULT,
|
|
203
|
+
_type_slots_NoteVisibilityChangedPreviewEventArgs
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
// ----- NotesWindowManagerPreview class --------------------
|
|
207
|
+
|
|
208
|
+
static PyObject* _new_NotesWindowManagerPreview(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
209
|
+
{
|
|
210
|
+
static_assert(py::py_type<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview>::type_name);
|
|
211
|
+
py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview>::type_name);
|
|
212
|
+
return nullptr;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
static void _dealloc_NotesWindowManagerPreview(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self) noexcept
|
|
216
|
+
{
|
|
217
|
+
auto tp = Py_TYPE(self);
|
|
218
|
+
std::destroy_at(&self->obj);
|
|
219
|
+
tp->tp_free(self);
|
|
220
|
+
Py_DECREF(tp);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
static PyObject* NotesWindowManagerPreview_GetForCurrentApp(PyObject* /*unused*/, PyObject* args) noexcept
|
|
224
|
+
{
|
|
225
|
+
auto arg_count = PyTuple_Size(args);
|
|
226
|
+
|
|
227
|
+
if (arg_count == 0)
|
|
228
|
+
{
|
|
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
|
+
try
|
|
236
|
+
{
|
|
237
|
+
return py::convert(winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview::GetForCurrentApp());
|
|
238
|
+
}
|
|
239
|
+
catch (...)
|
|
240
|
+
{
|
|
241
|
+
py::to_PyErr();
|
|
242
|
+
return nullptr;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
else
|
|
246
|
+
{
|
|
247
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
248
|
+
return nullptr;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
static PyObject* NotesWindowManagerPreview_GetNotePlacement(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* args) noexcept
|
|
253
|
+
{
|
|
254
|
+
auto arg_count = PyTuple_Size(args);
|
|
255
|
+
|
|
256
|
+
if (arg_count == 1)
|
|
257
|
+
{
|
|
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
|
+
try
|
|
265
|
+
{
|
|
266
|
+
auto param0 = py::convert_to<int32_t>(args, 0);
|
|
267
|
+
|
|
268
|
+
return py::convert(self->obj.GetNotePlacement(param0));
|
|
269
|
+
}
|
|
270
|
+
catch (...)
|
|
271
|
+
{
|
|
272
|
+
py::to_PyErr();
|
|
273
|
+
return nullptr;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
else
|
|
277
|
+
{
|
|
278
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
279
|
+
return nullptr;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
static PyObject* NotesWindowManagerPreview_HideNote(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* args) noexcept
|
|
284
|
+
{
|
|
285
|
+
auto arg_count = PyTuple_Size(args);
|
|
286
|
+
|
|
287
|
+
if (arg_count == 1)
|
|
288
|
+
{
|
|
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
|
+
try
|
|
296
|
+
{
|
|
297
|
+
auto param0 = py::convert_to<int32_t>(args, 0);
|
|
298
|
+
|
|
299
|
+
self->obj.HideNote(param0);
|
|
300
|
+
Py_RETURN_NONE;
|
|
301
|
+
}
|
|
302
|
+
catch (...)
|
|
303
|
+
{
|
|
304
|
+
py::to_PyErr();
|
|
305
|
+
return nullptr;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
else
|
|
309
|
+
{
|
|
310
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
311
|
+
return nullptr;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
static PyObject* NotesWindowManagerPreview_SetFocusToNextView(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* args) noexcept
|
|
316
|
+
{
|
|
317
|
+
auto arg_count = PyTuple_Size(args);
|
|
318
|
+
|
|
319
|
+
if (arg_count == 0)
|
|
320
|
+
{
|
|
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
|
+
try
|
|
328
|
+
{
|
|
329
|
+
self->obj.SetFocusToNextView();
|
|
330
|
+
Py_RETURN_NONE;
|
|
331
|
+
}
|
|
332
|
+
catch (...)
|
|
333
|
+
{
|
|
334
|
+
py::to_PyErr();
|
|
335
|
+
return nullptr;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
else
|
|
339
|
+
{
|
|
340
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
341
|
+
return nullptr;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
static PyObject* NotesWindowManagerPreview_SetFocusToPreviousView(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* args) noexcept
|
|
346
|
+
{
|
|
347
|
+
auto arg_count = PyTuple_Size(args);
|
|
348
|
+
|
|
349
|
+
if (arg_count == 0)
|
|
350
|
+
{
|
|
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
|
+
try
|
|
358
|
+
{
|
|
359
|
+
self->obj.SetFocusToPreviousView();
|
|
360
|
+
Py_RETURN_NONE;
|
|
361
|
+
}
|
|
362
|
+
catch (...)
|
|
363
|
+
{
|
|
364
|
+
py::to_PyErr();
|
|
365
|
+
return nullptr;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
else
|
|
369
|
+
{
|
|
370
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
371
|
+
return nullptr;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
static PyObject* NotesWindowManagerPreview_SetNotesThumbnailAsync(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* args) noexcept
|
|
376
|
+
{
|
|
377
|
+
auto arg_count = PyTuple_Size(args);
|
|
378
|
+
|
|
379
|
+
if (arg_count == 1)
|
|
380
|
+
{
|
|
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
|
+
try
|
|
388
|
+
{
|
|
389
|
+
auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
|
|
390
|
+
|
|
391
|
+
return py::convert(self->obj.SetNotesThumbnailAsync(param0));
|
|
392
|
+
}
|
|
393
|
+
catch (...)
|
|
394
|
+
{
|
|
395
|
+
py::to_PyErr();
|
|
396
|
+
return nullptr;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
else
|
|
400
|
+
{
|
|
401
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
402
|
+
return nullptr;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
static PyObject* NotesWindowManagerPreview_SetThumbnailImageForTaskSwitcherAsync(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* args) noexcept
|
|
407
|
+
{
|
|
408
|
+
auto arg_count = PyTuple_Size(args);
|
|
409
|
+
|
|
410
|
+
if (arg_count == 1)
|
|
411
|
+
{
|
|
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
|
+
try
|
|
419
|
+
{
|
|
420
|
+
auto param0 = py::convert_to<winrt::Windows::Graphics::Imaging::SoftwareBitmap>(args, 0);
|
|
421
|
+
|
|
422
|
+
return py::convert(self->obj.SetThumbnailImageForTaskSwitcherAsync(param0));
|
|
423
|
+
}
|
|
424
|
+
catch (...)
|
|
425
|
+
{
|
|
426
|
+
py::to_PyErr();
|
|
427
|
+
return nullptr;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
else
|
|
431
|
+
{
|
|
432
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
433
|
+
return nullptr;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
static PyObject* NotesWindowManagerPreview_ShowNote(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* args) noexcept
|
|
438
|
+
{
|
|
439
|
+
auto arg_count = PyTuple_Size(args);
|
|
440
|
+
|
|
441
|
+
if (arg_count == 1)
|
|
442
|
+
{
|
|
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
|
+
try
|
|
450
|
+
{
|
|
451
|
+
auto param0 = py::convert_to<int32_t>(args, 0);
|
|
452
|
+
|
|
453
|
+
self->obj.ShowNote(param0);
|
|
454
|
+
Py_RETURN_NONE;
|
|
455
|
+
}
|
|
456
|
+
catch (...)
|
|
457
|
+
{
|
|
458
|
+
py::to_PyErr();
|
|
459
|
+
return nullptr;
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
else
|
|
463
|
+
{
|
|
464
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
465
|
+
return nullptr;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
static PyObject* NotesWindowManagerPreview_ShowNoteRelativeTo(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* args) noexcept
|
|
470
|
+
{
|
|
471
|
+
auto arg_count = PyTuple_Size(args);
|
|
472
|
+
|
|
473
|
+
if (arg_count == 2)
|
|
474
|
+
{
|
|
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
|
+
try
|
|
482
|
+
{
|
|
483
|
+
auto param0 = py::convert_to<int32_t>(args, 0);
|
|
484
|
+
auto param1 = py::convert_to<int32_t>(args, 1);
|
|
485
|
+
|
|
486
|
+
self->obj.ShowNoteRelativeTo(param0, param1);
|
|
487
|
+
Py_RETURN_NONE;
|
|
488
|
+
}
|
|
489
|
+
catch (...)
|
|
490
|
+
{
|
|
491
|
+
py::to_PyErr();
|
|
492
|
+
return nullptr;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
else if (arg_count == 3)
|
|
496
|
+
{
|
|
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
|
+
try
|
|
504
|
+
{
|
|
505
|
+
auto param0 = py::convert_to<int32_t>(args, 0);
|
|
506
|
+
auto param1 = py::convert_to<int32_t>(args, 1);
|
|
507
|
+
auto param2 = py::convert_to<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreviewShowNoteOptions>(args, 2);
|
|
508
|
+
|
|
509
|
+
self->obj.ShowNoteRelativeTo(param0, param1, param2);
|
|
510
|
+
Py_RETURN_NONE;
|
|
511
|
+
}
|
|
512
|
+
catch (...)
|
|
513
|
+
{
|
|
514
|
+
py::to_PyErr();
|
|
515
|
+
return nullptr;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
else
|
|
519
|
+
{
|
|
520
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
521
|
+
return nullptr;
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
static PyObject* NotesWindowManagerPreview_ShowNoteWithPlacement(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* args) noexcept
|
|
526
|
+
{
|
|
527
|
+
auto arg_count = PyTuple_Size(args);
|
|
528
|
+
|
|
529
|
+
if (arg_count == 2)
|
|
530
|
+
{
|
|
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
|
+
try
|
|
538
|
+
{
|
|
539
|
+
auto param0 = py::convert_to<int32_t>(args, 0);
|
|
540
|
+
auto param1 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 1);
|
|
541
|
+
|
|
542
|
+
self->obj.ShowNoteWithPlacement(param0, param1);
|
|
543
|
+
Py_RETURN_NONE;
|
|
544
|
+
}
|
|
545
|
+
catch (...)
|
|
546
|
+
{
|
|
547
|
+
py::to_PyErr();
|
|
548
|
+
return nullptr;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
else if (arg_count == 3)
|
|
552
|
+
{
|
|
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
|
+
try
|
|
560
|
+
{
|
|
561
|
+
auto param0 = py::convert_to<int32_t>(args, 0);
|
|
562
|
+
auto param1 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 1);
|
|
563
|
+
auto param2 = py::convert_to<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreviewShowNoteOptions>(args, 2);
|
|
564
|
+
|
|
565
|
+
self->obj.ShowNoteWithPlacement(param0, param1, param2);
|
|
566
|
+
Py_RETURN_NONE;
|
|
567
|
+
}
|
|
568
|
+
catch (...)
|
|
569
|
+
{
|
|
570
|
+
py::to_PyErr();
|
|
571
|
+
return nullptr;
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
else
|
|
575
|
+
{
|
|
576
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
577
|
+
return nullptr;
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
static PyObject* NotesWindowManagerPreview_TrySetNoteSize(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* args) noexcept
|
|
582
|
+
{
|
|
583
|
+
auto arg_count = PyTuple_Size(args);
|
|
584
|
+
|
|
585
|
+
if (arg_count == 2)
|
|
586
|
+
{
|
|
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
|
+
try
|
|
594
|
+
{
|
|
595
|
+
auto param0 = py::convert_to<int32_t>(args, 0);
|
|
596
|
+
auto param1 = py::convert_to<winrt::Windows::Foundation::Size>(args, 1);
|
|
597
|
+
|
|
598
|
+
return py::convert(self->obj.TrySetNoteSize(param0, param1));
|
|
599
|
+
}
|
|
600
|
+
catch (...)
|
|
601
|
+
{
|
|
602
|
+
py::to_PyErr();
|
|
603
|
+
return nullptr;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
else
|
|
607
|
+
{
|
|
608
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
609
|
+
return nullptr;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
static PyObject* NotesWindowManagerPreview_get_IsScreenLocked(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, void* /*unused*/) noexcept
|
|
614
|
+
{
|
|
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
|
+
try
|
|
622
|
+
{
|
|
623
|
+
return py::convert(self->obj.IsScreenLocked());
|
|
624
|
+
}
|
|
625
|
+
catch (...)
|
|
626
|
+
{
|
|
627
|
+
py::to_PyErr();
|
|
628
|
+
return nullptr;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
static PyObject* NotesWindowManagerPreview_add_NotePlacementChanged(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* arg) noexcept
|
|
633
|
+
{
|
|
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
|
+
try
|
|
641
|
+
{
|
|
642
|
+
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview, winrt::Windows::ApplicationModel::Preview::Notes::NotePlacementChangedPreviewEventArgs>>(arg);
|
|
643
|
+
|
|
644
|
+
return py::convert(self->obj.NotePlacementChanged(param0));
|
|
645
|
+
}
|
|
646
|
+
catch (...)
|
|
647
|
+
{
|
|
648
|
+
py::to_PyErr();
|
|
649
|
+
return nullptr;
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
static PyObject* NotesWindowManagerPreview_remove_NotePlacementChanged(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* arg) noexcept
|
|
654
|
+
{
|
|
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
|
+
try
|
|
662
|
+
{
|
|
663
|
+
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
664
|
+
|
|
665
|
+
self->obj.NotePlacementChanged(param0);
|
|
666
|
+
Py_RETURN_NONE;
|
|
667
|
+
}
|
|
668
|
+
catch (...)
|
|
669
|
+
{
|
|
670
|
+
py::to_PyErr();
|
|
671
|
+
return nullptr;
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
static PyObject* NotesWindowManagerPreview_add_NoteVisibilityChanged(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* arg) noexcept
|
|
676
|
+
{
|
|
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
|
+
try
|
|
684
|
+
{
|
|
685
|
+
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview, winrt::Windows::ApplicationModel::Preview::Notes::NoteVisibilityChangedPreviewEventArgs>>(arg);
|
|
686
|
+
|
|
687
|
+
return py::convert(self->obj.NoteVisibilityChanged(param0));
|
|
688
|
+
}
|
|
689
|
+
catch (...)
|
|
690
|
+
{
|
|
691
|
+
py::to_PyErr();
|
|
692
|
+
return nullptr;
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
static PyObject* NotesWindowManagerPreview_remove_NoteVisibilityChanged(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* arg) noexcept
|
|
697
|
+
{
|
|
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
|
+
try
|
|
705
|
+
{
|
|
706
|
+
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
707
|
+
|
|
708
|
+
self->obj.NoteVisibilityChanged(param0);
|
|
709
|
+
Py_RETURN_NONE;
|
|
710
|
+
}
|
|
711
|
+
catch (...)
|
|
712
|
+
{
|
|
713
|
+
py::to_PyErr();
|
|
714
|
+
return nullptr;
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
static PyObject* NotesWindowManagerPreview_add_SystemLockStateChanged(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* arg) noexcept
|
|
719
|
+
{
|
|
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
|
+
try
|
|
727
|
+
{
|
|
728
|
+
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
729
|
+
|
|
730
|
+
return py::convert(self->obj.SystemLockStateChanged(param0));
|
|
731
|
+
}
|
|
732
|
+
catch (...)
|
|
733
|
+
{
|
|
734
|
+
py::to_PyErr();
|
|
735
|
+
return nullptr;
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
static PyObject* NotesWindowManagerPreview_remove_SystemLockStateChanged(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview* self, PyObject* arg) noexcept
|
|
740
|
+
{
|
|
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
|
+
try
|
|
748
|
+
{
|
|
749
|
+
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
750
|
+
|
|
751
|
+
self->obj.SystemLockStateChanged(param0);
|
|
752
|
+
Py_RETURN_NONE;
|
|
753
|
+
}
|
|
754
|
+
catch (...)
|
|
755
|
+
{
|
|
756
|
+
py::to_PyErr();
|
|
757
|
+
return nullptr;
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
static PyObject* _assign_array_NotesWindowManagerPreview(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
762
|
+
{
|
|
763
|
+
auto array = std::make_unique<py::ComArray<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview>>();
|
|
764
|
+
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
765
|
+
{
|
|
766
|
+
return nullptr;
|
|
767
|
+
}
|
|
768
|
+
Py_RETURN_NONE;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
static PyObject* _from_NotesWindowManagerPreview(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
772
|
+
{
|
|
773
|
+
try
|
|
774
|
+
{
|
|
775
|
+
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
776
|
+
return py::convert(return_value.as<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview>());
|
|
777
|
+
}
|
|
778
|
+
catch (...)
|
|
779
|
+
{
|
|
780
|
+
py::to_PyErr();
|
|
781
|
+
return nullptr;
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
static PyMethodDef _methods_NotesWindowManagerPreview[] = {
|
|
786
|
+
{ "get_note_placement", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_GetNotePlacement), METH_VARARGS, nullptr },
|
|
787
|
+
{ "hide_note", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_HideNote), METH_VARARGS, nullptr },
|
|
788
|
+
{ "set_focus_to_next_view", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_SetFocusToNextView), METH_VARARGS, nullptr },
|
|
789
|
+
{ "set_focus_to_previous_view", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_SetFocusToPreviousView), METH_VARARGS, nullptr },
|
|
790
|
+
{ "set_notes_thumbnail_async", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_SetNotesThumbnailAsync), METH_VARARGS, nullptr },
|
|
791
|
+
{ "set_thumbnail_image_for_task_switcher_async", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_SetThumbnailImageForTaskSwitcherAsync), METH_VARARGS, nullptr },
|
|
792
|
+
{ "show_note", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_ShowNote), METH_VARARGS, nullptr },
|
|
793
|
+
{ "show_note_relative_to", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_ShowNoteRelativeTo), METH_VARARGS, nullptr },
|
|
794
|
+
{ "show_note_with_placement", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_ShowNoteWithPlacement), METH_VARARGS, nullptr },
|
|
795
|
+
{ "try_set_note_size", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_TrySetNoteSize), METH_VARARGS, nullptr },
|
|
796
|
+
{ "add_note_placement_changed", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_add_NotePlacementChanged), METH_O, nullptr },
|
|
797
|
+
{ "remove_note_placement_changed", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_remove_NotePlacementChanged), METH_O, nullptr },
|
|
798
|
+
{ "add_note_visibility_changed", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_add_NoteVisibilityChanged), METH_O, nullptr },
|
|
799
|
+
{ "remove_note_visibility_changed", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_remove_NoteVisibilityChanged), METH_O, nullptr },
|
|
800
|
+
{ "add_system_lock_state_changed", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_add_SystemLockStateChanged), METH_O, nullptr },
|
|
801
|
+
{ "remove_system_lock_state_changed", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_remove_SystemLockStateChanged), METH_O, nullptr },
|
|
802
|
+
{ "_assign_array_", _assign_array_NotesWindowManagerPreview, METH_O | METH_STATIC, nullptr },
|
|
803
|
+
{ "_from", reinterpret_cast<PyCFunction>(_from_NotesWindowManagerPreview), METH_O | METH_STATIC, nullptr },
|
|
804
|
+
{ }
|
|
805
|
+
};
|
|
806
|
+
|
|
807
|
+
static PyGetSetDef _getset_NotesWindowManagerPreview[] = {
|
|
808
|
+
{ "is_screen_locked", reinterpret_cast<getter>(NotesWindowManagerPreview_get_IsScreenLocked), nullptr, nullptr, nullptr },
|
|
809
|
+
{ }
|
|
810
|
+
};
|
|
811
|
+
|
|
812
|
+
static PyType_Slot _type_slots_NotesWindowManagerPreview[] =
|
|
813
|
+
{
|
|
814
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_NotesWindowManagerPreview) },
|
|
815
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_NotesWindowManagerPreview) },
|
|
816
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_NotesWindowManagerPreview) },
|
|
817
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_NotesWindowManagerPreview) },
|
|
818
|
+
{ },
|
|
819
|
+
};
|
|
820
|
+
|
|
821
|
+
static PyType_Spec type_spec_NotesWindowManagerPreview =
|
|
822
|
+
{
|
|
823
|
+
"winrt._winrt_windows_applicationmodel_preview_notes.NotesWindowManagerPreview",
|
|
824
|
+
sizeof(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview),
|
|
825
|
+
0,
|
|
826
|
+
Py_TPFLAGS_DEFAULT,
|
|
827
|
+
_type_slots_NotesWindowManagerPreview
|
|
828
|
+
};
|
|
829
|
+
|
|
830
|
+
static PyGetSetDef getset_NotesWindowManagerPreview_Static[] = {
|
|
831
|
+
{ }
|
|
832
|
+
};
|
|
833
|
+
|
|
834
|
+
static PyMethodDef methods_NotesWindowManagerPreview_Static[] = {
|
|
835
|
+
{ "get_for_current_app", reinterpret_cast<PyCFunction>(NotesWindowManagerPreview_GetForCurrentApp), METH_VARARGS, nullptr },
|
|
836
|
+
{ }
|
|
837
|
+
};
|
|
838
|
+
|
|
839
|
+
static PyType_Slot type_slots_NotesWindowManagerPreview_Static[] =
|
|
840
|
+
{
|
|
841
|
+
{ Py_tp_base, reinterpret_cast<void*>(&PyType_Type) },
|
|
842
|
+
{ Py_tp_getset, reinterpret_cast<void*>(getset_NotesWindowManagerPreview_Static) },
|
|
843
|
+
{ Py_tp_methods, reinterpret_cast<void*>(methods_NotesWindowManagerPreview_Static) },
|
|
844
|
+
{ }
|
|
845
|
+
};
|
|
846
|
+
|
|
847
|
+
static PyType_Spec type_spec_NotesWindowManagerPreview_Static =
|
|
848
|
+
{
|
|
849
|
+
"winrt._winrt_windows_applicationmodel_preview_notes.NotesWindowManagerPreview_Static",
|
|
850
|
+
static_cast<int>(PyType_Type.tp_basicsize),
|
|
851
|
+
static_cast<int>(PyType_Type.tp_itemsize),
|
|
852
|
+
Py_TPFLAGS_DEFAULT,
|
|
853
|
+
type_slots_NotesWindowManagerPreview_Static
|
|
854
|
+
};
|
|
855
|
+
|
|
856
|
+
// ----- NotesWindowManagerPreviewShowNoteOptions class --------------------
|
|
857
|
+
|
|
858
|
+
static PyObject* _new_NotesWindowManagerPreviewShowNoteOptions(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
|
|
859
|
+
{
|
|
860
|
+
if (kwds != nullptr)
|
|
861
|
+
{
|
|
862
|
+
py::set_invalid_kwd_args_error();
|
|
863
|
+
return nullptr;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
auto arg_count = PyTuple_Size(args);
|
|
867
|
+
if (arg_count == 0)
|
|
868
|
+
{
|
|
869
|
+
try
|
|
870
|
+
{
|
|
871
|
+
winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreviewShowNoteOptions instance{ };
|
|
872
|
+
return py::wrap(instance, type);
|
|
873
|
+
}
|
|
874
|
+
catch (...)
|
|
875
|
+
{
|
|
876
|
+
py::to_PyErr();
|
|
877
|
+
return nullptr;
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
else
|
|
881
|
+
{
|
|
882
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
883
|
+
return nullptr;
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
static void _dealloc_NotesWindowManagerPreviewShowNoteOptions(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreviewShowNoteOptions* self) noexcept
|
|
888
|
+
{
|
|
889
|
+
auto tp = Py_TYPE(self);
|
|
890
|
+
std::destroy_at(&self->obj);
|
|
891
|
+
tp->tp_free(self);
|
|
892
|
+
Py_DECREF(tp);
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
static PyObject* NotesWindowManagerPreviewShowNoteOptions_get_ShowWithFocus(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreviewShowNoteOptions* self, void* /*unused*/) noexcept
|
|
896
|
+
{
|
|
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
|
+
try
|
|
904
|
+
{
|
|
905
|
+
return py::convert(self->obj.ShowWithFocus());
|
|
906
|
+
}
|
|
907
|
+
catch (...)
|
|
908
|
+
{
|
|
909
|
+
py::to_PyErr();
|
|
910
|
+
return nullptr;
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
static int NotesWindowManagerPreviewShowNoteOptions_put_ShowWithFocus(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreviewShowNoteOptions* self, PyObject* arg, void* /*unused*/) noexcept
|
|
915
|
+
{
|
|
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
|
+
if (arg == nullptr)
|
|
923
|
+
{
|
|
924
|
+
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
925
|
+
return -1;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
try
|
|
929
|
+
{
|
|
930
|
+
auto param0 = py::convert_to<bool>(arg);
|
|
931
|
+
|
|
932
|
+
self->obj.ShowWithFocus(param0);
|
|
933
|
+
return 0;
|
|
934
|
+
}
|
|
935
|
+
catch (...)
|
|
936
|
+
{
|
|
937
|
+
py::to_PyErr();
|
|
938
|
+
return -1;
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
static PyObject* _assign_array_NotesWindowManagerPreviewShowNoteOptions(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
943
|
+
{
|
|
944
|
+
auto array = std::make_unique<py::ComArray<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreviewShowNoteOptions>>();
|
|
945
|
+
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
946
|
+
{
|
|
947
|
+
return nullptr;
|
|
948
|
+
}
|
|
949
|
+
Py_RETURN_NONE;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
static PyObject* _from_NotesWindowManagerPreviewShowNoteOptions(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
953
|
+
{
|
|
954
|
+
try
|
|
955
|
+
{
|
|
956
|
+
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
957
|
+
return py::convert(return_value.as<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreviewShowNoteOptions>());
|
|
958
|
+
}
|
|
959
|
+
catch (...)
|
|
960
|
+
{
|
|
961
|
+
py::to_PyErr();
|
|
962
|
+
return nullptr;
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
static PyMethodDef _methods_NotesWindowManagerPreviewShowNoteOptions[] = {
|
|
967
|
+
{ "_assign_array_", _assign_array_NotesWindowManagerPreviewShowNoteOptions, METH_O | METH_STATIC, nullptr },
|
|
968
|
+
{ "_from", reinterpret_cast<PyCFunction>(_from_NotesWindowManagerPreviewShowNoteOptions), METH_O | METH_STATIC, nullptr },
|
|
969
|
+
{ }
|
|
970
|
+
};
|
|
971
|
+
|
|
972
|
+
static PyGetSetDef _getset_NotesWindowManagerPreviewShowNoteOptions[] = {
|
|
973
|
+
{ "show_with_focus", reinterpret_cast<getter>(NotesWindowManagerPreviewShowNoteOptions_get_ShowWithFocus), reinterpret_cast<setter>(NotesWindowManagerPreviewShowNoteOptions_put_ShowWithFocus), nullptr, nullptr },
|
|
974
|
+
{ }
|
|
975
|
+
};
|
|
976
|
+
|
|
977
|
+
static PyType_Slot _type_slots_NotesWindowManagerPreviewShowNoteOptions[] =
|
|
978
|
+
{
|
|
979
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_NotesWindowManagerPreviewShowNoteOptions) },
|
|
980
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_NotesWindowManagerPreviewShowNoteOptions) },
|
|
981
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_NotesWindowManagerPreviewShowNoteOptions) },
|
|
982
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_NotesWindowManagerPreviewShowNoteOptions) },
|
|
983
|
+
{ },
|
|
984
|
+
};
|
|
985
|
+
|
|
986
|
+
static PyType_Spec type_spec_NotesWindowManagerPreviewShowNoteOptions =
|
|
987
|
+
{
|
|
988
|
+
"winrt._winrt_windows_applicationmodel_preview_notes.NotesWindowManagerPreviewShowNoteOptions",
|
|
989
|
+
sizeof(py::wrapper::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreviewShowNoteOptions),
|
|
990
|
+
0,
|
|
991
|
+
Py_TPFLAGS_DEFAULT,
|
|
992
|
+
_type_slots_NotesWindowManagerPreviewShowNoteOptions
|
|
993
|
+
};
|
|
994
|
+
|
|
995
|
+
// ----- Windows.ApplicationModel.Preview.Notes Initialization --------------------
|
|
996
|
+
PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::Preview::Notes");
|
|
997
|
+
|
|
998
|
+
|
|
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
|
+
|
|
1010
|
+
} // py::cpp::Windows::ApplicationModel::Preview::Notes
|
|
1011
|
+
|
|
1012
|
+
PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_preview_notes(void) noexcept
|
|
1013
|
+
{
|
|
1014
|
+
using namespace py::cpp::Windows::ApplicationModel::Preview::Notes;
|
|
1015
|
+
|
|
1016
|
+
if (py::import_winrt_runtime() == -1)
|
|
1017
|
+
{
|
|
1018
|
+
return nullptr;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
py::pyobj_handle module{PyModule_Create(&module_def)};
|
|
1022
|
+
|
|
1023
|
+
if (!module)
|
|
1024
|
+
{
|
|
1025
|
+
return nullptr;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
auto object_type = py::get_object_type();
|
|
1029
|
+
if (!object_type)
|
|
1030
|
+
{
|
|
1031
|
+
return nullptr;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
|
|
1035
|
+
|
|
1036
|
+
if (!object_bases)
|
|
1037
|
+
{
|
|
1038
|
+
return nullptr;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
if (py::register_python_type(module.get(), &type_spec_NotePlacementChangedPreviewEventArgs, object_bases.get(), nullptr) == -1)
|
|
1042
|
+
{
|
|
1043
|
+
return nullptr;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
if (py::register_python_type(module.get(), &type_spec_NoteVisibilityChangedPreviewEventArgs, object_bases.get(), nullptr) == -1)
|
|
1047
|
+
{
|
|
1048
|
+
return nullptr;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
py::pyobj_handle type_NotesWindowManagerPreview_Static{PyType_FromSpec(&type_spec_NotesWindowManagerPreview_Static)};
|
|
1052
|
+
if (!type_NotesWindowManagerPreview_Static)
|
|
1053
|
+
{
|
|
1054
|
+
return nullptr;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
if (py::register_python_type(module.get(), &type_spec_NotesWindowManagerPreview, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_NotesWindowManagerPreview_Static.get())) == -1)
|
|
1058
|
+
{
|
|
1059
|
+
return nullptr;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
if (py::register_python_type(module.get(), &type_spec_NotesWindowManagerPreviewShowNoteOptions, object_bases.get(), nullptr) == -1)
|
|
1063
|
+
{
|
|
1064
|
+
return nullptr;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
return module.detach();
|
|
1069
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
[build-system]
|
|
4
|
+
requires = ["setuptools", "setuptools-scm", "winrt-sdk"]
|
|
5
|
+
build-backend = "setuptools.build_meta"
|
|
6
|
+
|
|
7
|
+
[project]
|
|
8
|
+
name = "winrt-Windows.ApplicationModel.Preview.Notes"
|
|
9
|
+
description = "Python projection of Windows Runtime (WinRT) APIs"
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
license = { text = "MIT" }
|
|
12
|
+
classifiers = [
|
|
13
|
+
"Operating System :: Microsoft :: Windows",
|
|
14
|
+
"Programming Language :: Python :: 3",
|
|
15
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
]
|
|
18
|
+
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
+
requires-python = ">=3.9,<3.13"
|
|
20
|
+
|
|
21
|
+
[project.urls]
|
|
22
|
+
# Homepage = "https://github.com/pywrint/pywrinrt"
|
|
23
|
+
# Documentation = "https://readthedocs.org"
|
|
24
|
+
Repository = "https://github.com/pywrint/pywrinrt"
|
|
25
|
+
Changelog = "https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md"
|
|
26
|
+
|
|
27
|
+
[tool.setuptools.dynamic]
|
|
28
|
+
version = { file = "pywinrt-version.txt" }
|
|
29
|
+
dependencies = { file = "requirements.txt" }
|
|
30
|
+
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
|
+
|
|
32
|
+
[tool.cibuildwheel]
|
|
33
|
+
# use local winrt-sdk build dependency
|
|
34
|
+
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
35
|
+
# don't install winrt-sdk from PyPI
|
|
36
|
+
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
37
|
+
# don't build for PyPy
|
|
38
|
+
skip = "pp*"
|
|
39
|
+
# suppress warnings about ARM64 testing
|
|
40
|
+
test-skip = "*-win_arm64"
|
|
41
|
+
|
|
42
|
+
[tool.cibuildwheel.windows]
|
|
43
|
+
archs = ["x86", "AMD64", "ARM64"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.0.0-beta.1
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
from setuptools import Extension, setup
|
|
4
|
+
from winrt_sdk import get_include_dirs
|
|
5
|
+
|
|
6
|
+
setup(
|
|
7
|
+
ext_modules=[
|
|
8
|
+
Extension(
|
|
9
|
+
"winrt._winrt_windows_applicationmodel_preview_notes",
|
|
10
|
+
sources=["py.Windows.ApplicationModel.Preview.Notes.cpp"],
|
|
11
|
+
include_dirs=get_include_dirs(),
|
|
12
|
+
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
+
libraries=["windowsapp"],
|
|
14
|
+
)
|
|
15
|
+
],
|
|
16
|
+
package_data={"winrt": ["*.pyi"]},
|
|
17
|
+
)
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.foundation
|
|
13
|
+
import winrt.windows.graphics.imaging
|
|
14
|
+
import winrt.windows.storage.streams
|
|
15
|
+
|
|
16
|
+
Self = typing.TypeVar('Self')
|
|
17
|
+
|
|
18
|
+
class NotePlacementChangedPreviewEventArgs(winrt.system.Object):
|
|
19
|
+
@staticmethod
|
|
20
|
+
def _from(obj: winrt.system.Object, /) -> NotePlacementChangedPreviewEventArgs: ...
|
|
21
|
+
@_property
|
|
22
|
+
def view_id(self) -> winrt.system.Int32: ...
|
|
23
|
+
|
|
24
|
+
class NoteVisibilityChangedPreviewEventArgs(winrt.system.Object):
|
|
25
|
+
@staticmethod
|
|
26
|
+
def _from(obj: winrt.system.Object, /) -> NoteVisibilityChangedPreviewEventArgs: ...
|
|
27
|
+
@_property
|
|
28
|
+
def is_visible(self) -> bool: ...
|
|
29
|
+
@_property
|
|
30
|
+
def view_id(self) -> winrt.system.Int32: ...
|
|
31
|
+
|
|
32
|
+
class NotesWindowManagerPreview_Static(type):
|
|
33
|
+
def get_for_current_app(cls) -> typing.Optional[NotesWindowManagerPreview]: ...
|
|
34
|
+
|
|
35
|
+
class NotesWindowManagerPreview(winrt.system.Object, metaclass=NotesWindowManagerPreview_Static):
|
|
36
|
+
@staticmethod
|
|
37
|
+
def _from(obj: winrt.system.Object, /) -> NotesWindowManagerPreview: ...
|
|
38
|
+
def get_note_placement(self, note_view_id: winrt.system.Int32, /) -> typing.Optional[winrt.windows.storage.streams.IBuffer]: ...
|
|
39
|
+
def hide_note(self, note_view_id: winrt.system.Int32, /) -> None: ...
|
|
40
|
+
def set_focus_to_next_view(self) -> None: ...
|
|
41
|
+
def set_focus_to_previous_view(self) -> None: ...
|
|
42
|
+
def set_notes_thumbnail_async(self, thumbnail: typing.Optional[winrt.windows.storage.streams.IBuffer], /) -> winrt.windows.foundation.IAsyncAction: ...
|
|
43
|
+
def set_thumbnail_image_for_task_switcher_async(self, bitmap: typing.Optional[winrt.windows.graphics.imaging.SoftwareBitmap], /) -> winrt.windows.foundation.IAsyncAction: ...
|
|
44
|
+
def show_note(self, note_view_id: winrt.system.Int32, /) -> None: ...
|
|
45
|
+
@typing.overload
|
|
46
|
+
def show_note_relative_to(self, note_view_id: winrt.system.Int32, anchor_note_view_id: winrt.system.Int32, /) -> None: ...
|
|
47
|
+
@typing.overload
|
|
48
|
+
def show_note_relative_to(self, note_view_id: winrt.system.Int32, anchor_note_view_id: winrt.system.Int32, options: typing.Optional[NotesWindowManagerPreviewShowNoteOptions], /) -> None: ...
|
|
49
|
+
@typing.overload
|
|
50
|
+
def show_note_with_placement(self, note_view_id: winrt.system.Int32, data: typing.Optional[winrt.windows.storage.streams.IBuffer], /) -> None: ...
|
|
51
|
+
@typing.overload
|
|
52
|
+
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: ...
|
|
53
|
+
def try_set_note_size(self, note_view_id: winrt.system.Int32, size: winrt.windows.foundation.Size, /) -> bool: ...
|
|
54
|
+
def add_note_placement_changed(self, handler: winrt.windows.foundation.TypedEventHandler[NotesWindowManagerPreview, NotePlacementChangedPreviewEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
55
|
+
def remove_note_placement_changed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
56
|
+
def add_note_visibility_changed(self, handler: winrt.windows.foundation.TypedEventHandler[NotesWindowManagerPreview, NoteVisibilityChangedPreviewEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
57
|
+
def remove_note_visibility_changed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
58
|
+
def add_system_lock_state_changed(self, handler: winrt.windows.foundation.TypedEventHandler[NotesWindowManagerPreview, winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
59
|
+
def remove_system_lock_state_changed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
60
|
+
@_property
|
|
61
|
+
def is_screen_locked(self) -> bool: ...
|
|
62
|
+
|
|
63
|
+
class NotesWindowManagerPreviewShowNoteOptions(winrt.system.Object):
|
|
64
|
+
@staticmethod
|
|
65
|
+
def _from(obj: winrt.system.Object, /) -> NotesWindowManagerPreviewShowNoteOptions: ...
|
|
66
|
+
def __new__(cls: typing.Type[NotesWindowManagerPreviewShowNoteOptions]) -> NotesWindowManagerPreviewShowNoteOptions:...
|
|
67
|
+
@_property
|
|
68
|
+
def show_with_focus(self) -> bool: ...
|
|
69
|
+
@show_with_focus.setter
|
|
70
|
+
def show_with_focus(self, value: bool) -> None: ...
|
|
71
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
|
|
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
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.ApplicationModel.Preview.Notes
|
|
3
|
+
Version: 2.0.0b1
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License: MIT
|
|
6
|
+
Project-URL: Repository, https://github.com/pywrint/pywrinrt
|
|
7
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
8
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Requires-Python: <3.13,>=3.9
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
Provides-Extra: all
|
|
15
|
+
|
|
16
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
17
|
+
|
|
18
|
+
# winrt-Windows.ApplicationModel.Preview.Notes
|
|
19
|
+
|
|
20
|
+
Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.Preview.Notes` namespace.
|
|
21
|
+
|
|
22
|
+
This package provides the `winrt.windows.applicationmodel.preview.notes` module.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
all-requirements.txt
|
|
3
|
+
py.Windows.ApplicationModel.Preview.Notes.cpp
|
|
4
|
+
pyproject.toml
|
|
5
|
+
pywinrt-version.txt
|
|
6
|
+
requirements.txt
|
|
7
|
+
setup.py
|
|
8
|
+
winrt/_winrt_windows_applicationmodel_preview_notes.pyi
|
|
9
|
+
winrt/windows/applicationmodel/preview/notes/__init__.py
|
|
10
|
+
winrt_Windows.ApplicationModel.Preview.Notes.egg-info/PKG-INFO
|
|
11
|
+
winrt_Windows.ApplicationModel.Preview.Notes.egg-info/SOURCES.txt
|
|
12
|
+
winrt_Windows.ApplicationModel.Preview.Notes.egg-info/dependency_links.txt
|
|
13
|
+
winrt_Windows.ApplicationModel.Preview.Notes.egg-info/requires.txt
|
|
14
|
+
winrt_Windows.ApplicationModel.Preview.Notes.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|