winrt-Windows.UI.Xaml.Interop 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.
- {winrt_windows_ui_xaml_interop-2.0.1 → winrt_windows_ui_xaml_interop-2.1.0}/PKG-INFO +3 -3
- {winrt_windows_ui_xaml_interop-2.0.1 → winrt_windows_ui_xaml_interop-2.1.0}/all-requirements.txt +2 -2
- {winrt_windows_ui_xaml_interop-2.0.1 → winrt_windows_ui_xaml_interop-2.1.0}/py.Windows.UI.Xaml.Interop.cpp +321 -309
- winrt_windows_ui_xaml_interop-2.1.0/pywinrt-version.txt +1 -0
- {winrt_windows_ui_xaml_interop-2.0.1 → winrt_windows_ui_xaml_interop-2.1.0}/requirements.txt +2 -2
- {winrt_windows_ui_xaml_interop-2.0.1 → winrt_windows_ui_xaml_interop-2.1.0}/winrt/_winrt_windows_ui_xaml_interop.pyi +9 -7
- {winrt_windows_ui_xaml_interop-2.0.1 → winrt_windows_ui_xaml_interop-2.1.0}/winrt/windows/ui/xaml/interop/__init__.py +1 -1
- {winrt_windows_ui_xaml_interop-2.0.1 → winrt_windows_ui_xaml_interop-2.1.0}/winrt_Windows.UI.Xaml.Interop.egg-info/PKG-INFO +3 -3
- winrt_windows_ui_xaml_interop-2.1.0/winrt_Windows.UI.Xaml.Interop.egg-info/requires.txt +4 -0
- winrt_windows_ui_xaml_interop-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_ui_xaml_interop-2.0.1/winrt_Windows.UI.Xaml.Interop.egg-info/requires.txt +0 -4
- {winrt_windows_ui_xaml_interop-2.0.1 → winrt_windows_ui_xaml_interop-2.1.0}/README.md +0 -0
- {winrt_windows_ui_xaml_interop-2.0.1 → winrt_windows_ui_xaml_interop-2.1.0}/pyproject.toml +0 -0
- {winrt_windows_ui_xaml_interop-2.0.1 → winrt_windows_ui_xaml_interop-2.1.0}/setup.cfg +0 -0
- {winrt_windows_ui_xaml_interop-2.0.1 → winrt_windows_ui_xaml_interop-2.1.0}/setup.py +0 -0
- {winrt_windows_ui_xaml_interop-2.0.1 → winrt_windows_ui_xaml_interop-2.1.0}/winrt/windows/ui/xaml/interop/py.typed +0 -0
- {winrt_windows_ui_xaml_interop-2.0.1 → winrt_windows_ui_xaml_interop-2.1.0}/winrt_Windows.UI.Xaml.Interop.egg-info/SOURCES.txt +0 -0
- {winrt_windows_ui_xaml_interop-2.0.1 → winrt_windows_ui_xaml_interop-2.1.0}/winrt_Windows.UI.Xaml.Interop.egg-info/dependency_links.txt +0 -0
- {winrt_windows_ui_xaml_interop-2.0.1 → winrt_windows_ui_xaml_interop-2.1.0}/winrt_Windows.UI.Xaml.Interop.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.UI.Xaml.Interop
|
|
3
|
-
Version: 2.0
|
|
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,9 +12,9 @@ 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
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
18
|
|
|
19
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
20
|
|
{winrt_windows_ui_xaml_interop-2.0.1 → winrt_windows_ui_xaml_interop-2.1.0}/all-requirements.txt
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
|
-
winrt-Windows.Foundation[all]==2.0
|
|
3
|
+
winrt-Windows.Foundation[all]==2.1.0
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.UI.Xaml.Interop.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::UI::Xaml::Interop
|
|
7
6
|
{
|
|
8
7
|
// ----- NotifyCollectionChangedEventArgs class --------------------
|
|
@@ -52,14 +51,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
52
51
|
|
|
53
52
|
static PyObject* NotifyCollectionChangedEventArgs_get_Action(py::wrapper::Windows::UI::Xaml::Interop::NotifyCollectionChangedEventArgs* self, void* /*unused*/) noexcept
|
|
54
53
|
{
|
|
55
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Interop.NotifyCollectionChangedEventArgs", L"Action"))
|
|
56
|
-
{
|
|
57
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
58
|
-
return nullptr;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
54
|
try
|
|
62
55
|
{
|
|
56
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Interop.NotifyCollectionChangedEventArgs", L"Action"))
|
|
57
|
+
{
|
|
58
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
59
|
+
return nullptr;
|
|
60
|
+
}
|
|
61
|
+
|
|
63
62
|
return py::convert(self->obj.Action());
|
|
64
63
|
}
|
|
65
64
|
catch (...)
|
|
@@ -71,14 +70,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
71
70
|
|
|
72
71
|
static PyObject* NotifyCollectionChangedEventArgs_get_NewItems(py::wrapper::Windows::UI::Xaml::Interop::NotifyCollectionChangedEventArgs* self, void* /*unused*/) noexcept
|
|
73
72
|
{
|
|
74
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Interop.NotifyCollectionChangedEventArgs", L"NewItems"))
|
|
75
|
-
{
|
|
76
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
77
|
-
return nullptr;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
73
|
try
|
|
81
74
|
{
|
|
75
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Interop.NotifyCollectionChangedEventArgs", L"NewItems"))
|
|
76
|
+
{
|
|
77
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
78
|
+
return nullptr;
|
|
79
|
+
}
|
|
80
|
+
|
|
82
81
|
return py::convert(self->obj.NewItems());
|
|
83
82
|
}
|
|
84
83
|
catch (...)
|
|
@@ -90,14 +89,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
90
89
|
|
|
91
90
|
static PyObject* NotifyCollectionChangedEventArgs_get_NewStartingIndex(py::wrapper::Windows::UI::Xaml::Interop::NotifyCollectionChangedEventArgs* self, void* /*unused*/) noexcept
|
|
92
91
|
{
|
|
93
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Interop.NotifyCollectionChangedEventArgs", L"NewStartingIndex"))
|
|
94
|
-
{
|
|
95
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
96
|
-
return nullptr;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
92
|
try
|
|
100
93
|
{
|
|
94
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Interop.NotifyCollectionChangedEventArgs", L"NewStartingIndex"))
|
|
95
|
+
{
|
|
96
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
97
|
+
return nullptr;
|
|
98
|
+
}
|
|
99
|
+
|
|
101
100
|
return py::convert(self->obj.NewStartingIndex());
|
|
102
101
|
}
|
|
103
102
|
catch (...)
|
|
@@ -109,14 +108,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
109
108
|
|
|
110
109
|
static PyObject* NotifyCollectionChangedEventArgs_get_OldItems(py::wrapper::Windows::UI::Xaml::Interop::NotifyCollectionChangedEventArgs* self, void* /*unused*/) noexcept
|
|
111
110
|
{
|
|
112
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Interop.NotifyCollectionChangedEventArgs", L"OldItems"))
|
|
113
|
-
{
|
|
114
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
115
|
-
return nullptr;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
111
|
try
|
|
119
112
|
{
|
|
113
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Interop.NotifyCollectionChangedEventArgs", L"OldItems"))
|
|
114
|
+
{
|
|
115
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
116
|
+
return nullptr;
|
|
117
|
+
}
|
|
118
|
+
|
|
120
119
|
return py::convert(self->obj.OldItems());
|
|
121
120
|
}
|
|
122
121
|
catch (...)
|
|
@@ -128,14 +127,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
128
127
|
|
|
129
128
|
static PyObject* NotifyCollectionChangedEventArgs_get_OldStartingIndex(py::wrapper::Windows::UI::Xaml::Interop::NotifyCollectionChangedEventArgs* self, void* /*unused*/) noexcept
|
|
130
129
|
{
|
|
131
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Interop.NotifyCollectionChangedEventArgs", L"OldStartingIndex"))
|
|
132
|
-
{
|
|
133
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
134
|
-
return nullptr;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
130
|
try
|
|
138
131
|
{
|
|
132
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Interop.NotifyCollectionChangedEventArgs", L"OldStartingIndex"))
|
|
133
|
+
{
|
|
134
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
135
|
+
return nullptr;
|
|
136
|
+
}
|
|
137
|
+
|
|
139
138
|
return py::convert(self->obj.OldStartingIndex());
|
|
140
139
|
}
|
|
141
140
|
catch (...)
|
|
@@ -184,23 +183,20 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
184
183
|
{ }
|
|
185
184
|
};
|
|
186
185
|
|
|
187
|
-
static PyType_Slot _type_slots_NotifyCollectionChangedEventArgs[] =
|
|
188
|
-
{
|
|
186
|
+
static PyType_Slot _type_slots_NotifyCollectionChangedEventArgs[] = {
|
|
189
187
|
{ Py_tp_new, reinterpret_cast<void*>(_new_NotifyCollectionChangedEventArgs) },
|
|
190
188
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_NotifyCollectionChangedEventArgs) },
|
|
191
189
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_NotifyCollectionChangedEventArgs) },
|
|
192
190
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_NotifyCollectionChangedEventArgs) },
|
|
193
|
-
{ }
|
|
191
|
+
{ }
|
|
194
192
|
};
|
|
195
193
|
|
|
196
|
-
static PyType_Spec type_spec_NotifyCollectionChangedEventArgs =
|
|
197
|
-
{
|
|
194
|
+
static PyType_Spec type_spec_NotifyCollectionChangedEventArgs = {
|
|
198
195
|
"winrt._winrt_windows_ui_xaml_interop.NotifyCollectionChangedEventArgs",
|
|
199
196
|
sizeof(py::wrapper::Windows::UI::Xaml::Interop::NotifyCollectionChangedEventArgs),
|
|
200
197
|
0,
|
|
201
198
|
Py_TPFLAGS_DEFAULT,
|
|
202
|
-
_type_slots_NotifyCollectionChangedEventArgs
|
|
203
|
-
};
|
|
199
|
+
_type_slots_NotifyCollectionChangedEventArgs};
|
|
204
200
|
|
|
205
201
|
// ----- IBindableIterable interface --------------------
|
|
206
202
|
|
|
@@ -225,14 +221,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
225
221
|
|
|
226
222
|
if (arg_count == 0)
|
|
227
223
|
{
|
|
228
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableIterable", L"First", 0))
|
|
229
|
-
{
|
|
230
|
-
py::set_arg_count_version_error(0);
|
|
231
|
-
return nullptr;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
224
|
try
|
|
235
225
|
{
|
|
226
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableIterable", L"First", 0))
|
|
227
|
+
{
|
|
228
|
+
py::set_arg_count_version_error(0);
|
|
229
|
+
return nullptr;
|
|
230
|
+
}
|
|
231
|
+
|
|
236
232
|
return py::convert(self->obj.First());
|
|
237
233
|
}
|
|
238
234
|
catch (...)
|
|
@@ -283,23 +279,20 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
283
279
|
{ }
|
|
284
280
|
};
|
|
285
281
|
|
|
286
|
-
static PyType_Slot _type_slots_IBindableIterable[] =
|
|
287
|
-
{
|
|
282
|
+
static PyType_Slot _type_slots_IBindableIterable[] = {
|
|
288
283
|
{ Py_tp_new, reinterpret_cast<void*>(_new_IBindableIterable) },
|
|
289
284
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_IBindableIterable) },
|
|
290
285
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_IBindableIterable) },
|
|
291
286
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_IBindableIterable) },
|
|
292
|
-
{ }
|
|
287
|
+
{ }
|
|
293
288
|
};
|
|
294
289
|
|
|
295
|
-
static PyType_Spec type_spec_IBindableIterable =
|
|
296
|
-
{
|
|
290
|
+
static PyType_Spec type_spec_IBindableIterable = {
|
|
297
291
|
"winrt._winrt_windows_ui_xaml_interop.IBindableIterable",
|
|
298
292
|
sizeof(py::wrapper::Windows::UI::Xaml::Interop::IBindableIterable),
|
|
299
293
|
0,
|
|
300
294
|
Py_TPFLAGS_DEFAULT,
|
|
301
|
-
_type_slots_IBindableIterable
|
|
302
|
-
};
|
|
295
|
+
_type_slots_IBindableIterable};
|
|
303
296
|
|
|
304
297
|
// ----- IBindableIterator interface --------------------
|
|
305
298
|
|
|
@@ -324,14 +317,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
324
317
|
|
|
325
318
|
if (arg_count == 0)
|
|
326
319
|
{
|
|
327
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableIterator", L"MoveNext", 0))
|
|
328
|
-
{
|
|
329
|
-
py::set_arg_count_version_error(0);
|
|
330
|
-
return nullptr;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
320
|
try
|
|
334
321
|
{
|
|
322
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableIterator", L"MoveNext", 0))
|
|
323
|
+
{
|
|
324
|
+
py::set_arg_count_version_error(0);
|
|
325
|
+
return nullptr;
|
|
326
|
+
}
|
|
327
|
+
|
|
335
328
|
return py::convert(self->obj.MoveNext());
|
|
336
329
|
}
|
|
337
330
|
catch (...)
|
|
@@ -349,14 +342,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
349
342
|
|
|
350
343
|
static PyObject* IBindableIterator_get_Current(py::wrapper::Windows::UI::Xaml::Interop::IBindableIterator* self, void* /*unused*/) noexcept
|
|
351
344
|
{
|
|
352
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Interop.IBindableIterator", L"Current"))
|
|
353
|
-
{
|
|
354
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
355
|
-
return nullptr;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
345
|
try
|
|
359
346
|
{
|
|
347
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Interop.IBindableIterator", L"Current"))
|
|
348
|
+
{
|
|
349
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
350
|
+
return nullptr;
|
|
351
|
+
}
|
|
352
|
+
|
|
360
353
|
return py::convert(self->obj.Current());
|
|
361
354
|
}
|
|
362
355
|
catch (...)
|
|
@@ -368,14 +361,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
368
361
|
|
|
369
362
|
static PyObject* IBindableIterator_get_HasCurrent(py::wrapper::Windows::UI::Xaml::Interop::IBindableIterator* self, void* /*unused*/) noexcept
|
|
370
363
|
{
|
|
371
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Interop.IBindableIterator", L"HasCurrent"))
|
|
372
|
-
{
|
|
373
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
374
|
-
return nullptr;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
364
|
try
|
|
378
365
|
{
|
|
366
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Interop.IBindableIterator", L"HasCurrent"))
|
|
367
|
+
{
|
|
368
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
369
|
+
return nullptr;
|
|
370
|
+
}
|
|
371
|
+
|
|
379
372
|
return py::convert(self->obj.HasCurrent());
|
|
380
373
|
}
|
|
381
374
|
catch (...)
|
|
@@ -422,23 +415,20 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
422
415
|
{ }
|
|
423
416
|
};
|
|
424
417
|
|
|
425
|
-
static PyType_Slot _type_slots_IBindableIterator[] =
|
|
426
|
-
{
|
|
418
|
+
static PyType_Slot _type_slots_IBindableIterator[] = {
|
|
427
419
|
{ Py_tp_new, reinterpret_cast<void*>(_new_IBindableIterator) },
|
|
428
420
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_IBindableIterator) },
|
|
429
421
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_IBindableIterator) },
|
|
430
422
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_IBindableIterator) },
|
|
431
|
-
{ }
|
|
423
|
+
{ }
|
|
432
424
|
};
|
|
433
425
|
|
|
434
|
-
static PyType_Spec type_spec_IBindableIterator =
|
|
435
|
-
{
|
|
426
|
+
static PyType_Spec type_spec_IBindableIterator = {
|
|
436
427
|
"winrt._winrt_windows_ui_xaml_interop.IBindableIterator",
|
|
437
428
|
sizeof(py::wrapper::Windows::UI::Xaml::Interop::IBindableIterator),
|
|
438
429
|
0,
|
|
439
430
|
Py_TPFLAGS_DEFAULT,
|
|
440
|
-
_type_slots_IBindableIterator
|
|
441
|
-
};
|
|
431
|
+
_type_slots_IBindableIterator};
|
|
442
432
|
|
|
443
433
|
// ----- IBindableObservableVector interface --------------------
|
|
444
434
|
|
|
@@ -463,14 +453,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
463
453
|
|
|
464
454
|
if (arg_count == 1)
|
|
465
455
|
{
|
|
466
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"Append", 1))
|
|
467
|
-
{
|
|
468
|
-
py::set_arg_count_version_error(1);
|
|
469
|
-
return nullptr;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
456
|
try
|
|
473
457
|
{
|
|
458
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"Append", 1))
|
|
459
|
+
{
|
|
460
|
+
py::set_arg_count_version_error(1);
|
|
461
|
+
return nullptr;
|
|
462
|
+
}
|
|
463
|
+
|
|
474
464
|
auto param0 = py::convert_to<winrt::Windows::Foundation::IInspectable>(args, 0);
|
|
475
465
|
|
|
476
466
|
self->obj.Append(param0);
|
|
@@ -495,14 +485,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
495
485
|
|
|
496
486
|
if (arg_count == 0)
|
|
497
487
|
{
|
|
498
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"Clear", 0))
|
|
499
|
-
{
|
|
500
|
-
py::set_arg_count_version_error(0);
|
|
501
|
-
return nullptr;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
488
|
try
|
|
505
489
|
{
|
|
490
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"Clear", 0))
|
|
491
|
+
{
|
|
492
|
+
py::set_arg_count_version_error(0);
|
|
493
|
+
return nullptr;
|
|
494
|
+
}
|
|
495
|
+
|
|
506
496
|
self->obj.Clear();
|
|
507
497
|
Py_RETURN_NONE;
|
|
508
498
|
}
|
|
@@ -525,14 +515,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
525
515
|
|
|
526
516
|
if (arg_count == 0)
|
|
527
517
|
{
|
|
528
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableIterable", L"First", 0))
|
|
529
|
-
{
|
|
530
|
-
py::set_arg_count_version_error(0);
|
|
531
|
-
return nullptr;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
518
|
try
|
|
535
519
|
{
|
|
520
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableIterable", L"First", 0))
|
|
521
|
+
{
|
|
522
|
+
py::set_arg_count_version_error(0);
|
|
523
|
+
return nullptr;
|
|
524
|
+
}
|
|
525
|
+
|
|
536
526
|
return py::convert(self->obj.First());
|
|
537
527
|
}
|
|
538
528
|
catch (...)
|
|
@@ -554,14 +544,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
554
544
|
|
|
555
545
|
if (arg_count == 1)
|
|
556
546
|
{
|
|
557
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"GetAt", 1))
|
|
558
|
-
{
|
|
559
|
-
py::set_arg_count_version_error(1);
|
|
560
|
-
return nullptr;
|
|
561
|
-
}
|
|
562
|
-
|
|
563
547
|
try
|
|
564
548
|
{
|
|
549
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"GetAt", 1))
|
|
550
|
+
{
|
|
551
|
+
py::set_arg_count_version_error(1);
|
|
552
|
+
return nullptr;
|
|
553
|
+
}
|
|
554
|
+
|
|
565
555
|
auto param0 = py::convert_to<uint32_t>(args, 0);
|
|
566
556
|
|
|
567
557
|
return py::convert(self->obj.GetAt(param0));
|
|
@@ -585,14 +575,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
585
575
|
|
|
586
576
|
if (arg_count == 0)
|
|
587
577
|
{
|
|
588
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"GetView", 0))
|
|
589
|
-
{
|
|
590
|
-
py::set_arg_count_version_error(0);
|
|
591
|
-
return nullptr;
|
|
592
|
-
}
|
|
593
|
-
|
|
594
578
|
try
|
|
595
579
|
{
|
|
580
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"GetView", 0))
|
|
581
|
+
{
|
|
582
|
+
py::set_arg_count_version_error(0);
|
|
583
|
+
return nullptr;
|
|
584
|
+
}
|
|
585
|
+
|
|
596
586
|
return py::convert(self->obj.GetView());
|
|
597
587
|
}
|
|
598
588
|
catch (...)
|
|
@@ -614,16 +604,16 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
614
604
|
|
|
615
605
|
if (arg_count == 1)
|
|
616
606
|
{
|
|
617
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"IndexOf", 1))
|
|
618
|
-
{
|
|
619
|
-
py::set_arg_count_version_error(1);
|
|
620
|
-
return nullptr;
|
|
621
|
-
}
|
|
622
|
-
|
|
623
607
|
try
|
|
624
608
|
{
|
|
609
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"IndexOf", 1))
|
|
610
|
+
{
|
|
611
|
+
py::set_arg_count_version_error(1);
|
|
612
|
+
return nullptr;
|
|
613
|
+
}
|
|
614
|
+
|
|
625
615
|
auto param0 = py::convert_to<winrt::Windows::Foundation::IInspectable>(args, 0);
|
|
626
|
-
uint32_t param1
|
|
616
|
+
uint32_t param1{};
|
|
627
617
|
|
|
628
618
|
auto return_value = self->obj.IndexOf(param0, param1);
|
|
629
619
|
|
|
@@ -658,14 +648,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
658
648
|
|
|
659
649
|
if (arg_count == 2)
|
|
660
650
|
{
|
|
661
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"InsertAt", 2))
|
|
662
|
-
{
|
|
663
|
-
py::set_arg_count_version_error(2);
|
|
664
|
-
return nullptr;
|
|
665
|
-
}
|
|
666
|
-
|
|
667
651
|
try
|
|
668
652
|
{
|
|
653
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"InsertAt", 2))
|
|
654
|
+
{
|
|
655
|
+
py::set_arg_count_version_error(2);
|
|
656
|
+
return nullptr;
|
|
657
|
+
}
|
|
658
|
+
|
|
669
659
|
auto param0 = py::convert_to<uint32_t>(args, 0);
|
|
670
660
|
auto param1 = py::convert_to<winrt::Windows::Foundation::IInspectable>(args, 1);
|
|
671
661
|
|
|
@@ -691,14 +681,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
691
681
|
|
|
692
682
|
if (arg_count == 1)
|
|
693
683
|
{
|
|
694
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"RemoveAt", 1))
|
|
695
|
-
{
|
|
696
|
-
py::set_arg_count_version_error(1);
|
|
697
|
-
return nullptr;
|
|
698
|
-
}
|
|
699
|
-
|
|
700
684
|
try
|
|
701
685
|
{
|
|
686
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"RemoveAt", 1))
|
|
687
|
+
{
|
|
688
|
+
py::set_arg_count_version_error(1);
|
|
689
|
+
return nullptr;
|
|
690
|
+
}
|
|
691
|
+
|
|
702
692
|
auto param0 = py::convert_to<uint32_t>(args, 0);
|
|
703
693
|
|
|
704
694
|
self->obj.RemoveAt(param0);
|
|
@@ -723,14 +713,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
723
713
|
|
|
724
714
|
if (arg_count == 0)
|
|
725
715
|
{
|
|
726
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"RemoveAtEnd", 0))
|
|
727
|
-
{
|
|
728
|
-
py::set_arg_count_version_error(0);
|
|
729
|
-
return nullptr;
|
|
730
|
-
}
|
|
731
|
-
|
|
732
716
|
try
|
|
733
717
|
{
|
|
718
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"RemoveAtEnd", 0))
|
|
719
|
+
{
|
|
720
|
+
py::set_arg_count_version_error(0);
|
|
721
|
+
return nullptr;
|
|
722
|
+
}
|
|
723
|
+
|
|
734
724
|
self->obj.RemoveAtEnd();
|
|
735
725
|
Py_RETURN_NONE;
|
|
736
726
|
}
|
|
@@ -753,14 +743,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
753
743
|
|
|
754
744
|
if (arg_count == 2)
|
|
755
745
|
{
|
|
756
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"SetAt", 2))
|
|
757
|
-
{
|
|
758
|
-
py::set_arg_count_version_error(2);
|
|
759
|
-
return nullptr;
|
|
760
|
-
}
|
|
761
|
-
|
|
762
746
|
try
|
|
763
747
|
{
|
|
748
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"SetAt", 2))
|
|
749
|
+
{
|
|
750
|
+
py::set_arg_count_version_error(2);
|
|
751
|
+
return nullptr;
|
|
752
|
+
}
|
|
753
|
+
|
|
764
754
|
auto param0 = py::convert_to<uint32_t>(args, 0);
|
|
765
755
|
auto param1 = py::convert_to<winrt::Windows::Foundation::IInspectable>(args, 1);
|
|
766
756
|
|
|
@@ -782,14 +772,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
782
772
|
|
|
783
773
|
static PyObject* IBindableObservableVector_get_Size(py::wrapper::Windows::UI::Xaml::Interop::IBindableObservableVector* self, void* /*unused*/) noexcept
|
|
784
774
|
{
|
|
785
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"Size"))
|
|
786
|
-
{
|
|
787
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
788
|
-
return nullptr;
|
|
789
|
-
}
|
|
790
|
-
|
|
791
775
|
try
|
|
792
776
|
{
|
|
777
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"Size"))
|
|
778
|
+
{
|
|
779
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
780
|
+
return nullptr;
|
|
781
|
+
}
|
|
782
|
+
|
|
793
783
|
return py::convert(self->obj.Size());
|
|
794
784
|
}
|
|
795
785
|
catch (...)
|
|
@@ -801,14 +791,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
801
791
|
|
|
802
792
|
static PyObject* IBindableObservableVector_add_VectorChanged(py::wrapper::Windows::UI::Xaml::Interop::IBindableObservableVector* self, PyObject* arg) noexcept
|
|
803
793
|
{
|
|
804
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Interop.IBindableObservableVector", L"VectorChanged"))
|
|
805
|
-
{
|
|
806
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
807
|
-
return nullptr;
|
|
808
|
-
}
|
|
809
|
-
|
|
810
794
|
try
|
|
811
795
|
{
|
|
796
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Interop.IBindableObservableVector", L"VectorChanged"))
|
|
797
|
+
{
|
|
798
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
799
|
+
return nullptr;
|
|
800
|
+
}
|
|
801
|
+
|
|
812
802
|
auto param0 = py::convert_to<winrt::Windows::UI::Xaml::Interop::BindableVectorChangedEventHandler>(arg);
|
|
813
803
|
|
|
814
804
|
return py::convert(self->obj.VectorChanged(param0));
|
|
@@ -822,14 +812,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
822
812
|
|
|
823
813
|
static PyObject* IBindableObservableVector_remove_VectorChanged(py::wrapper::Windows::UI::Xaml::Interop::IBindableObservableVector* self, PyObject* arg) noexcept
|
|
824
814
|
{
|
|
825
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Interop.IBindableObservableVector", L"VectorChanged"))
|
|
826
|
-
{
|
|
827
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
828
|
-
return nullptr;
|
|
829
|
-
}
|
|
830
|
-
|
|
831
815
|
try
|
|
832
816
|
{
|
|
817
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Interop.IBindableObservableVector", L"VectorChanged"))
|
|
818
|
+
{
|
|
819
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
820
|
+
return nullptr;
|
|
821
|
+
}
|
|
822
|
+
|
|
833
823
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
834
824
|
|
|
835
825
|
self->obj.VectorChanged(param0);
|
|
@@ -889,23 +879,20 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
889
879
|
{ }
|
|
890
880
|
};
|
|
891
881
|
|
|
892
|
-
static PyType_Slot _type_slots_IBindableObservableVector[] =
|
|
893
|
-
{
|
|
882
|
+
static PyType_Slot _type_slots_IBindableObservableVector[] = {
|
|
894
883
|
{ Py_tp_new, reinterpret_cast<void*>(_new_IBindableObservableVector) },
|
|
895
884
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_IBindableObservableVector) },
|
|
896
885
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_IBindableObservableVector) },
|
|
897
886
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_IBindableObservableVector) },
|
|
898
|
-
{ }
|
|
887
|
+
{ }
|
|
899
888
|
};
|
|
900
889
|
|
|
901
|
-
static PyType_Spec type_spec_IBindableObservableVector =
|
|
902
|
-
{
|
|
890
|
+
static PyType_Spec type_spec_IBindableObservableVector = {
|
|
903
891
|
"winrt._winrt_windows_ui_xaml_interop.IBindableObservableVector",
|
|
904
892
|
sizeof(py::wrapper::Windows::UI::Xaml::Interop::IBindableObservableVector),
|
|
905
893
|
0,
|
|
906
894
|
Py_TPFLAGS_DEFAULT,
|
|
907
|
-
_type_slots_IBindableObservableVector
|
|
908
|
-
};
|
|
895
|
+
_type_slots_IBindableObservableVector};
|
|
909
896
|
|
|
910
897
|
// ----- IBindableVector interface --------------------
|
|
911
898
|
|
|
@@ -930,14 +917,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
930
917
|
|
|
931
918
|
if (arg_count == 1)
|
|
932
919
|
{
|
|
933
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"Append", 1))
|
|
934
|
-
{
|
|
935
|
-
py::set_arg_count_version_error(1);
|
|
936
|
-
return nullptr;
|
|
937
|
-
}
|
|
938
|
-
|
|
939
920
|
try
|
|
940
921
|
{
|
|
922
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"Append", 1))
|
|
923
|
+
{
|
|
924
|
+
py::set_arg_count_version_error(1);
|
|
925
|
+
return nullptr;
|
|
926
|
+
}
|
|
927
|
+
|
|
941
928
|
auto param0 = py::convert_to<winrt::Windows::Foundation::IInspectable>(args, 0);
|
|
942
929
|
|
|
943
930
|
self->obj.Append(param0);
|
|
@@ -962,14 +949,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
962
949
|
|
|
963
950
|
if (arg_count == 0)
|
|
964
951
|
{
|
|
965
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"Clear", 0))
|
|
966
|
-
{
|
|
967
|
-
py::set_arg_count_version_error(0);
|
|
968
|
-
return nullptr;
|
|
969
|
-
}
|
|
970
|
-
|
|
971
952
|
try
|
|
972
953
|
{
|
|
954
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"Clear", 0))
|
|
955
|
+
{
|
|
956
|
+
py::set_arg_count_version_error(0);
|
|
957
|
+
return nullptr;
|
|
958
|
+
}
|
|
959
|
+
|
|
973
960
|
self->obj.Clear();
|
|
974
961
|
Py_RETURN_NONE;
|
|
975
962
|
}
|
|
@@ -992,14 +979,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
992
979
|
|
|
993
980
|
if (arg_count == 0)
|
|
994
981
|
{
|
|
995
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableIterable", L"First", 0))
|
|
996
|
-
{
|
|
997
|
-
py::set_arg_count_version_error(0);
|
|
998
|
-
return nullptr;
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
982
|
try
|
|
1002
983
|
{
|
|
984
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableIterable", L"First", 0))
|
|
985
|
+
{
|
|
986
|
+
py::set_arg_count_version_error(0);
|
|
987
|
+
return nullptr;
|
|
988
|
+
}
|
|
989
|
+
|
|
1003
990
|
return py::convert(self->obj.First());
|
|
1004
991
|
}
|
|
1005
992
|
catch (...)
|
|
@@ -1021,14 +1008,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
1021
1008
|
|
|
1022
1009
|
if (arg_count == 1)
|
|
1023
1010
|
{
|
|
1024
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"GetAt", 1))
|
|
1025
|
-
{
|
|
1026
|
-
py::set_arg_count_version_error(1);
|
|
1027
|
-
return nullptr;
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
1011
|
try
|
|
1031
1012
|
{
|
|
1013
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"GetAt", 1))
|
|
1014
|
+
{
|
|
1015
|
+
py::set_arg_count_version_error(1);
|
|
1016
|
+
return nullptr;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1032
1019
|
auto param0 = py::convert_to<uint32_t>(args, 0);
|
|
1033
1020
|
|
|
1034
1021
|
return py::convert(self->obj.GetAt(param0));
|
|
@@ -1052,14 +1039,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
1052
1039
|
|
|
1053
1040
|
if (arg_count == 0)
|
|
1054
1041
|
{
|
|
1055
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"GetView", 0))
|
|
1056
|
-
{
|
|
1057
|
-
py::set_arg_count_version_error(0);
|
|
1058
|
-
return nullptr;
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
1042
|
try
|
|
1062
1043
|
{
|
|
1044
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"GetView", 0))
|
|
1045
|
+
{
|
|
1046
|
+
py::set_arg_count_version_error(0);
|
|
1047
|
+
return nullptr;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1063
1050
|
return py::convert(self->obj.GetView());
|
|
1064
1051
|
}
|
|
1065
1052
|
catch (...)
|
|
@@ -1081,16 +1068,16 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
1081
1068
|
|
|
1082
1069
|
if (arg_count == 1)
|
|
1083
1070
|
{
|
|
1084
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"IndexOf", 1))
|
|
1085
|
-
{
|
|
1086
|
-
py::set_arg_count_version_error(1);
|
|
1087
|
-
return nullptr;
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
1071
|
try
|
|
1091
1072
|
{
|
|
1073
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"IndexOf", 1))
|
|
1074
|
+
{
|
|
1075
|
+
py::set_arg_count_version_error(1);
|
|
1076
|
+
return nullptr;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1092
1079
|
auto param0 = py::convert_to<winrt::Windows::Foundation::IInspectable>(args, 0);
|
|
1093
|
-
uint32_t param1
|
|
1080
|
+
uint32_t param1{};
|
|
1094
1081
|
|
|
1095
1082
|
auto return_value = self->obj.IndexOf(param0, param1);
|
|
1096
1083
|
|
|
@@ -1125,14 +1112,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
1125
1112
|
|
|
1126
1113
|
if (arg_count == 2)
|
|
1127
1114
|
{
|
|
1128
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"InsertAt", 2))
|
|
1129
|
-
{
|
|
1130
|
-
py::set_arg_count_version_error(2);
|
|
1131
|
-
return nullptr;
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
1115
|
try
|
|
1135
1116
|
{
|
|
1117
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"InsertAt", 2))
|
|
1118
|
+
{
|
|
1119
|
+
py::set_arg_count_version_error(2);
|
|
1120
|
+
return nullptr;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1136
1123
|
auto param0 = py::convert_to<uint32_t>(args, 0);
|
|
1137
1124
|
auto param1 = py::convert_to<winrt::Windows::Foundation::IInspectable>(args, 1);
|
|
1138
1125
|
|
|
@@ -1158,14 +1145,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
1158
1145
|
|
|
1159
1146
|
if (arg_count == 1)
|
|
1160
1147
|
{
|
|
1161
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"RemoveAt", 1))
|
|
1162
|
-
{
|
|
1163
|
-
py::set_arg_count_version_error(1);
|
|
1164
|
-
return nullptr;
|
|
1165
|
-
}
|
|
1166
|
-
|
|
1167
1148
|
try
|
|
1168
1149
|
{
|
|
1150
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"RemoveAt", 1))
|
|
1151
|
+
{
|
|
1152
|
+
py::set_arg_count_version_error(1);
|
|
1153
|
+
return nullptr;
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1169
1156
|
auto param0 = py::convert_to<uint32_t>(args, 0);
|
|
1170
1157
|
|
|
1171
1158
|
self->obj.RemoveAt(param0);
|
|
@@ -1190,14 +1177,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
1190
1177
|
|
|
1191
1178
|
if (arg_count == 0)
|
|
1192
1179
|
{
|
|
1193
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"RemoveAtEnd", 0))
|
|
1194
|
-
{
|
|
1195
|
-
py::set_arg_count_version_error(0);
|
|
1196
|
-
return nullptr;
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
1180
|
try
|
|
1200
1181
|
{
|
|
1182
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"RemoveAtEnd", 0))
|
|
1183
|
+
{
|
|
1184
|
+
py::set_arg_count_version_error(0);
|
|
1185
|
+
return nullptr;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1201
1188
|
self->obj.RemoveAtEnd();
|
|
1202
1189
|
Py_RETURN_NONE;
|
|
1203
1190
|
}
|
|
@@ -1220,14 +1207,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
1220
1207
|
|
|
1221
1208
|
if (arg_count == 2)
|
|
1222
1209
|
{
|
|
1223
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"SetAt", 2))
|
|
1224
|
-
{
|
|
1225
|
-
py::set_arg_count_version_error(2);
|
|
1226
|
-
return nullptr;
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
1210
|
try
|
|
1230
1211
|
{
|
|
1212
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"SetAt", 2))
|
|
1213
|
+
{
|
|
1214
|
+
py::set_arg_count_version_error(2);
|
|
1215
|
+
return nullptr;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1231
1218
|
auto param0 = py::convert_to<uint32_t>(args, 0);
|
|
1232
1219
|
auto param1 = py::convert_to<winrt::Windows::Foundation::IInspectable>(args, 1);
|
|
1233
1220
|
|
|
@@ -1249,14 +1236,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
1249
1236
|
|
|
1250
1237
|
static PyObject* IBindableVector_get_Size(py::wrapper::Windows::UI::Xaml::Interop::IBindableVector* self, void* /*unused*/) noexcept
|
|
1251
1238
|
{
|
|
1252
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"Size"))
|
|
1253
|
-
{
|
|
1254
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1255
|
-
return nullptr;
|
|
1256
|
-
}
|
|
1257
|
-
|
|
1258
1239
|
try
|
|
1259
1240
|
{
|
|
1241
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Interop.IBindableVector", L"Size"))
|
|
1242
|
+
{
|
|
1243
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1244
|
+
return nullptr;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1260
1247
|
return py::convert(self->obj.Size());
|
|
1261
1248
|
}
|
|
1262
1249
|
catch (...)
|
|
@@ -1311,23 +1298,20 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
1311
1298
|
{ }
|
|
1312
1299
|
};
|
|
1313
1300
|
|
|
1314
|
-
static PyType_Slot _type_slots_IBindableVector[] =
|
|
1315
|
-
{
|
|
1301
|
+
static PyType_Slot _type_slots_IBindableVector[] = {
|
|
1316
1302
|
{ Py_tp_new, reinterpret_cast<void*>(_new_IBindableVector) },
|
|
1317
1303
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_IBindableVector) },
|
|
1318
1304
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_IBindableVector) },
|
|
1319
1305
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_IBindableVector) },
|
|
1320
|
-
{ }
|
|
1306
|
+
{ }
|
|
1321
1307
|
};
|
|
1322
1308
|
|
|
1323
|
-
static PyType_Spec type_spec_IBindableVector =
|
|
1324
|
-
{
|
|
1309
|
+
static PyType_Spec type_spec_IBindableVector = {
|
|
1325
1310
|
"winrt._winrt_windows_ui_xaml_interop.IBindableVector",
|
|
1326
1311
|
sizeof(py::wrapper::Windows::UI::Xaml::Interop::IBindableVector),
|
|
1327
1312
|
0,
|
|
1328
1313
|
Py_TPFLAGS_DEFAULT,
|
|
1329
|
-
_type_slots_IBindableVector
|
|
1330
|
-
};
|
|
1314
|
+
_type_slots_IBindableVector};
|
|
1331
1315
|
|
|
1332
1316
|
// ----- IBindableVectorView interface --------------------
|
|
1333
1317
|
|
|
@@ -1352,14 +1336,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
1352
1336
|
|
|
1353
1337
|
if (arg_count == 0)
|
|
1354
1338
|
{
|
|
1355
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableIterable", L"First", 0))
|
|
1356
|
-
{
|
|
1357
|
-
py::set_arg_count_version_error(0);
|
|
1358
|
-
return nullptr;
|
|
1359
|
-
}
|
|
1360
|
-
|
|
1361
1339
|
try
|
|
1362
1340
|
{
|
|
1341
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableIterable", L"First", 0))
|
|
1342
|
+
{
|
|
1343
|
+
py::set_arg_count_version_error(0);
|
|
1344
|
+
return nullptr;
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1363
1347
|
return py::convert(self->obj.First());
|
|
1364
1348
|
}
|
|
1365
1349
|
catch (...)
|
|
@@ -1381,14 +1365,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
1381
1365
|
|
|
1382
1366
|
if (arg_count == 1)
|
|
1383
1367
|
{
|
|
1384
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVectorView", L"GetAt", 1))
|
|
1385
|
-
{
|
|
1386
|
-
py::set_arg_count_version_error(1);
|
|
1387
|
-
return nullptr;
|
|
1388
|
-
}
|
|
1389
|
-
|
|
1390
1368
|
try
|
|
1391
1369
|
{
|
|
1370
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVectorView", L"GetAt", 1))
|
|
1371
|
+
{
|
|
1372
|
+
py::set_arg_count_version_error(1);
|
|
1373
|
+
return nullptr;
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1392
1376
|
auto param0 = py::convert_to<uint32_t>(args, 0);
|
|
1393
1377
|
|
|
1394
1378
|
return py::convert(self->obj.GetAt(param0));
|
|
@@ -1412,16 +1396,16 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
1412
1396
|
|
|
1413
1397
|
if (arg_count == 1)
|
|
1414
1398
|
{
|
|
1415
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVectorView", L"IndexOf", 1))
|
|
1416
|
-
{
|
|
1417
|
-
py::set_arg_count_version_error(1);
|
|
1418
|
-
return nullptr;
|
|
1419
|
-
}
|
|
1420
|
-
|
|
1421
1399
|
try
|
|
1422
1400
|
{
|
|
1401
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Interop.IBindableVectorView", L"IndexOf", 1))
|
|
1402
|
+
{
|
|
1403
|
+
py::set_arg_count_version_error(1);
|
|
1404
|
+
return nullptr;
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1423
1407
|
auto param0 = py::convert_to<winrt::Windows::Foundation::IInspectable>(args, 0);
|
|
1424
|
-
uint32_t param1
|
|
1408
|
+
uint32_t param1{};
|
|
1425
1409
|
|
|
1426
1410
|
auto return_value = self->obj.IndexOf(param0, param1);
|
|
1427
1411
|
|
|
@@ -1452,14 +1436,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
1452
1436
|
|
|
1453
1437
|
static PyObject* IBindableVectorView_get_Size(py::wrapper::Windows::UI::Xaml::Interop::IBindableVectorView* self, void* /*unused*/) noexcept
|
|
1454
1438
|
{
|
|
1455
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Interop.IBindableVectorView", L"Size"))
|
|
1456
|
-
{
|
|
1457
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1458
|
-
return nullptr;
|
|
1459
|
-
}
|
|
1460
|
-
|
|
1461
1439
|
try
|
|
1462
1440
|
{
|
|
1441
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Interop.IBindableVectorView", L"Size"))
|
|
1442
|
+
{
|
|
1443
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1444
|
+
return nullptr;
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1463
1447
|
return py::convert(self->obj.Size());
|
|
1464
1448
|
}
|
|
1465
1449
|
catch (...)
|
|
@@ -1507,23 +1491,20 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
1507
1491
|
{ }
|
|
1508
1492
|
};
|
|
1509
1493
|
|
|
1510
|
-
static PyType_Slot _type_slots_IBindableVectorView[] =
|
|
1511
|
-
{
|
|
1494
|
+
static PyType_Slot _type_slots_IBindableVectorView[] = {
|
|
1512
1495
|
{ Py_tp_new, reinterpret_cast<void*>(_new_IBindableVectorView) },
|
|
1513
1496
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_IBindableVectorView) },
|
|
1514
1497
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_IBindableVectorView) },
|
|
1515
1498
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_IBindableVectorView) },
|
|
1516
|
-
{ }
|
|
1499
|
+
{ }
|
|
1517
1500
|
};
|
|
1518
1501
|
|
|
1519
|
-
static PyType_Spec type_spec_IBindableVectorView =
|
|
1520
|
-
{
|
|
1502
|
+
static PyType_Spec type_spec_IBindableVectorView = {
|
|
1521
1503
|
"winrt._winrt_windows_ui_xaml_interop.IBindableVectorView",
|
|
1522
1504
|
sizeof(py::wrapper::Windows::UI::Xaml::Interop::IBindableVectorView),
|
|
1523
1505
|
0,
|
|
1524
1506
|
Py_TPFLAGS_DEFAULT,
|
|
1525
|
-
_type_slots_IBindableVectorView
|
|
1526
|
-
};
|
|
1507
|
+
_type_slots_IBindableVectorView};
|
|
1527
1508
|
|
|
1528
1509
|
// ----- INotifyCollectionChanged interface --------------------
|
|
1529
1510
|
|
|
@@ -1544,14 +1525,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
1544
1525
|
|
|
1545
1526
|
static PyObject* INotifyCollectionChanged_add_CollectionChanged(py::wrapper::Windows::UI::Xaml::Interop::INotifyCollectionChanged* self, PyObject* arg) noexcept
|
|
1546
1527
|
{
|
|
1547
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Interop.INotifyCollectionChanged", L"CollectionChanged"))
|
|
1548
|
-
{
|
|
1549
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1550
|
-
return nullptr;
|
|
1551
|
-
}
|
|
1552
|
-
|
|
1553
1528
|
try
|
|
1554
1529
|
{
|
|
1530
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Interop.INotifyCollectionChanged", L"CollectionChanged"))
|
|
1531
|
+
{
|
|
1532
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1533
|
+
return nullptr;
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1555
1536
|
auto param0 = py::convert_to<winrt::Windows::UI::Xaml::Interop::NotifyCollectionChangedEventHandler>(arg);
|
|
1556
1537
|
|
|
1557
1538
|
return py::convert(self->obj.CollectionChanged(param0));
|
|
@@ -1565,14 +1546,14 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
1565
1546
|
|
|
1566
1547
|
static PyObject* INotifyCollectionChanged_remove_CollectionChanged(py::wrapper::Windows::UI::Xaml::Interop::INotifyCollectionChanged* self, PyObject* arg) noexcept
|
|
1567
1548
|
{
|
|
1568
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Interop.INotifyCollectionChanged", L"CollectionChanged"))
|
|
1569
|
-
{
|
|
1570
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1571
|
-
return nullptr;
|
|
1572
|
-
}
|
|
1573
|
-
|
|
1574
1549
|
try
|
|
1575
1550
|
{
|
|
1551
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Interop.INotifyCollectionChanged", L"CollectionChanged"))
|
|
1552
|
+
{
|
|
1553
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1554
|
+
return nullptr;
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1576
1557
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
1577
1558
|
|
|
1578
1559
|
self->obj.CollectionChanged(param0);
|
|
@@ -1621,23 +1602,20 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
1621
1602
|
{ }
|
|
1622
1603
|
};
|
|
1623
1604
|
|
|
1624
|
-
static PyType_Slot _type_slots_INotifyCollectionChanged[] =
|
|
1625
|
-
{
|
|
1605
|
+
static PyType_Slot _type_slots_INotifyCollectionChanged[] = {
|
|
1626
1606
|
{ Py_tp_new, reinterpret_cast<void*>(_new_INotifyCollectionChanged) },
|
|
1627
1607
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_INotifyCollectionChanged) },
|
|
1628
1608
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_INotifyCollectionChanged) },
|
|
1629
1609
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_INotifyCollectionChanged) },
|
|
1630
|
-
{ }
|
|
1610
|
+
{ }
|
|
1631
1611
|
};
|
|
1632
1612
|
|
|
1633
|
-
static PyType_Spec type_spec_INotifyCollectionChanged =
|
|
1634
|
-
{
|
|
1613
|
+
static PyType_Spec type_spec_INotifyCollectionChanged = {
|
|
1635
1614
|
"winrt._winrt_windows_ui_xaml_interop.INotifyCollectionChanged",
|
|
1636
1615
|
sizeof(py::wrapper::Windows::UI::Xaml::Interop::INotifyCollectionChanged),
|
|
1637
1616
|
0,
|
|
1638
1617
|
Py_TPFLAGS_DEFAULT,
|
|
1639
|
-
_type_slots_INotifyCollectionChanged
|
|
1640
|
-
};
|
|
1618
|
+
_type_slots_INotifyCollectionChanged};
|
|
1641
1619
|
|
|
1642
1620
|
// ----- TypeName struct --------------------
|
|
1643
1621
|
|
|
@@ -1665,18 +1643,20 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
1665
1643
|
return 0;
|
|
1666
1644
|
}
|
|
1667
1645
|
|
|
1668
|
-
|
|
1646
|
+
PyObject* _Name{};
|
|
1669
1647
|
int32_t _Kind{};
|
|
1670
1648
|
|
|
1671
1649
|
static const char* kwlist[] = {"name", "kind", nullptr};
|
|
1672
|
-
if (!PyArg_ParseTupleAndKeywords(args, kwds, "
|
|
1650
|
+
if (!PyArg_ParseTupleAndKeywords(args, kwds, "Oi", const_cast<char**>(kwlist), &_Name, &_Kind))
|
|
1673
1651
|
{
|
|
1674
1652
|
return -1;
|
|
1675
1653
|
}
|
|
1676
1654
|
|
|
1677
1655
|
try
|
|
1678
1656
|
{
|
|
1679
|
-
self->obj =
|
|
1657
|
+
self->obj.Name = py::converter<winrt::hstring>::convert_to(_Name);
|
|
1658
|
+
self->obj.Kind = static_cast<winrt::Windows::UI::Xaml::Interop::TypeKind>(_Kind);
|
|
1659
|
+
|
|
1680
1660
|
return 0;
|
|
1681
1661
|
}
|
|
1682
1662
|
catch (...)
|
|
@@ -1781,40 +1761,72 @@ namespace py::cpp::Windows::UI::Xaml::Interop
|
|
|
1781
1761
|
{ }
|
|
1782
1762
|
};
|
|
1783
1763
|
|
|
1784
|
-
static
|
|
1764
|
+
static PyObject* _richcompare_TypeName(py::wrapper::Windows::UI::Xaml::Interop::TypeName* self, PyObject* other, int op) noexcept
|
|
1785
1765
|
{
|
|
1766
|
+
try
|
|
1767
|
+
{
|
|
1768
|
+
auto _other = py::converter<winrt::Windows::UI::Xaml::Interop::TypeName>::convert_to(other);
|
|
1769
|
+
|
|
1770
|
+
if (op == Py_EQ)
|
|
1771
|
+
{
|
|
1772
|
+
if (self->obj == _other)
|
|
1773
|
+
{
|
|
1774
|
+
Py_RETURN_TRUE;
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
Py_RETURN_FALSE;
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
if (op == Py_NE)
|
|
1781
|
+
{
|
|
1782
|
+
if (self->obj != _other)
|
|
1783
|
+
{
|
|
1784
|
+
Py_RETURN_TRUE;
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
Py_RETURN_FALSE;
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
Py_RETURN_NOTIMPLEMENTED;
|
|
1791
|
+
}
|
|
1792
|
+
catch (...)
|
|
1793
|
+
{
|
|
1794
|
+
py::to_PyErr();
|
|
1795
|
+
return nullptr;
|
|
1796
|
+
}
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
static PyType_Slot _type_slots_TypeName[] = {
|
|
1786
1800
|
{ Py_tp_new, reinterpret_cast<void*>(_new_TypeName) },
|
|
1787
1801
|
{ Py_tp_init, reinterpret_cast<void*>(_init_TypeName) },
|
|
1788
1802
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_TypeName) },
|
|
1789
1803
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_TypeName) },
|
|
1790
1804
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_TypeName) },
|
|
1791
|
-
{ },
|
|
1805
|
+
{ Py_tp_richcompare, reinterpret_cast<void*>(_richcompare_TypeName) },
|
|
1806
|
+
{ }
|
|
1792
1807
|
};
|
|
1793
1808
|
|
|
1794
|
-
static PyType_Spec type_spec_TypeName =
|
|
1795
|
-
{
|
|
1809
|
+
static PyType_Spec type_spec_TypeName = {
|
|
1796
1810
|
"winrt._winrt_windows_ui_xaml_interop.TypeName",
|
|
1797
1811
|
sizeof(py::wrapper::Windows::UI::Xaml::Interop::TypeName),
|
|
1798
1812
|
0,
|
|
1799
1813
|
Py_TPFLAGS_DEFAULT,
|
|
1800
|
-
_type_slots_TypeName
|
|
1801
|
-
};
|
|
1814
|
+
_type_slots_TypeName};
|
|
1802
1815
|
|
|
1803
1816
|
// ----- Windows.UI.Xaml.Interop Initialization --------------------
|
|
1804
|
-
PyDoc_STRVAR(module_doc, "Windows::UI::Xaml::Interop");
|
|
1805
1817
|
|
|
1818
|
+
PyDoc_STRVAR(module_doc, "Windows.UI.Xaml.Interop");
|
|
1806
1819
|
|
|
1807
|
-
static PyModuleDef module_def
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1820
|
+
static PyModuleDef module_def = {
|
|
1821
|
+
PyModuleDef_HEAD_INIT,
|
|
1822
|
+
"_winrt_windows_ui_xaml_interop",
|
|
1823
|
+
module_doc,
|
|
1824
|
+
0,
|
|
1825
|
+
nullptr,
|
|
1826
|
+
nullptr,
|
|
1827
|
+
nullptr,
|
|
1828
|
+
nullptr,
|
|
1829
|
+
nullptr};
|
|
1818
1830
|
} // py::cpp::Windows::UI::Xaml::Interop
|
|
1819
1831
|
|
|
1820
1832
|
PyMODINIT_FUNC PyInit__winrt_windows_ui_xaml_interop(void) noexcept
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.0
|
{winrt_windows_ui_xaml_interop-2.0.1 → winrt_windows_ui_xaml_interop-2.1.0}/requirements.txt
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0
|
|
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
|
+
# 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,7 +9,7 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.foundation
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
13
|
|
|
14
14
|
from winrt.windows.ui.xaml.interop import NotifyCollectionChangedAction, TypeKind
|
|
15
15
|
from winrt.windows.ui.xaml.interop import BindableVectorChangedEventHandler, NotifyCollectionChangedEventHandler
|
|
@@ -21,12 +21,14 @@ class TypeName:
|
|
|
21
21
|
name: str
|
|
22
22
|
kind: TypeKind
|
|
23
23
|
def __init__(self, name: str, kind: TypeKind) -> None: ...
|
|
24
|
+
def __eq__(self, other: object, /) -> bool: ...
|
|
25
|
+
def __ne__(self, other: object, /) -> bool: ...
|
|
24
26
|
|
|
25
27
|
@typing.final
|
|
26
28
|
class NotifyCollectionChangedEventArgs(winrt.system.Object):
|
|
27
29
|
@staticmethod
|
|
28
30
|
def _from(obj: winrt.system.Object, /) -> NotifyCollectionChangedEventArgs: ...
|
|
29
|
-
def __new__(cls: typing.Type[NotifyCollectionChangedEventArgs], action: NotifyCollectionChangedAction, new_items: typing.Optional[IBindableVector], old_items: typing.Optional[IBindableVector], new_index: winrt.system.Int32, old_index: winrt.system.Int32) -> NotifyCollectionChangedEventArgs
|
|
31
|
+
def __new__(cls: typing.Type[NotifyCollectionChangedEventArgs], action: NotifyCollectionChangedAction, new_items: typing.Optional[IBindableVector], old_items: typing.Optional[IBindableVector], new_index: winrt.system.Int32, old_index: winrt.system.Int32) -> NotifyCollectionChangedEventArgs: ...
|
|
30
32
|
@_property
|
|
31
33
|
def action(self) -> NotifyCollectionChangedAction: ...
|
|
32
34
|
@_property
|
|
@@ -68,8 +70,8 @@ class IBindableObservableVector(winrt.system.Object):
|
|
|
68
70
|
def remove_at(self, index: winrt.system.UInt32, /) -> None: ...
|
|
69
71
|
def remove_at_end(self) -> None: ...
|
|
70
72
|
def set_at(self, index: winrt.system.UInt32, value: typing.Optional[winrt.system.Object], /) -> None: ...
|
|
71
|
-
def add_vector_changed(self, handler: typing.Optional[BindableVectorChangedEventHandler], /) ->
|
|
72
|
-
def remove_vector_changed(self, token:
|
|
73
|
+
def add_vector_changed(self, handler: typing.Optional[BindableVectorChangedEventHandler], /) -> windows_foundation.EventRegistrationToken: ...
|
|
74
|
+
def remove_vector_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
73
75
|
@_property
|
|
74
76
|
def size(self) -> winrt.system.UInt32: ...
|
|
75
77
|
|
|
@@ -104,6 +106,6 @@ class IBindableVectorView(winrt.system.Object):
|
|
|
104
106
|
class INotifyCollectionChanged(winrt.system.Object):
|
|
105
107
|
@staticmethod
|
|
106
108
|
def _from(obj: winrt.system.Object, /) -> INotifyCollectionChanged: ...
|
|
107
|
-
def add_collection_changed(self, handler: typing.Optional[NotifyCollectionChangedEventHandler], /) ->
|
|
108
|
-
def remove_collection_changed(self, token:
|
|
109
|
+
def add_collection_changed(self, handler: typing.Optional[NotifyCollectionChangedEventHandler], /) -> windows_foundation.EventRegistrationToken: ...
|
|
110
|
+
def remove_collection_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
109
111
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.UI.Xaml.Interop
|
|
3
|
-
Version: 2.0
|
|
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,9 +12,9 @@ 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
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
18
|
|
|
19
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
20
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|