winrt-Windows.ApplicationModel.DataTransfer.DragDrop.Core 2.0.0b2__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.ApplicationModel.DataTransfer.DragDrop.Core-2.0.0b2 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0}/PKG-INFO +6 -1
- winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0/all-requirements.txt +6 -0
- {winrt-Windows.ApplicationModel.DataTransfer.DragDrop.Core-2.0.0b2 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0}/py.Windows.ApplicationModel.DataTransfer.DragDrop.Core.cpp +240 -260
- {winrt-Windows.ApplicationModel.DataTransfer.DragDrop.Core-2.0.0b2 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0}/pyproject.toml +2 -2
- winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0/pywinrt-version.txt +1 -0
- {winrt-Windows.ApplicationModel.DataTransfer.DragDrop.Core-2.0.0b2 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0}/requirements.txt +2 -2
- winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0/setup.py +31 -0
- {winrt-Windows.ApplicationModel.DataTransfer.DragDrop.Core-2.0.0b2 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0}/winrt/_winrt_windows_applicationmodel_datatransfer_dragdrop_core.pyi +24 -24
- {winrt-Windows.ApplicationModel.DataTransfer.DragDrop.Core-2.0.0b2 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0}/winrt/windows/applicationmodel/datatransfer/dragdrop/core/__init__.py +2 -2
- winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0/winrt/windows/applicationmodel/datatransfer/dragdrop/core/py.typed +0 -0
- {winrt-Windows.ApplicationModel.DataTransfer.DragDrop.Core-2.0.0b2 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0}/winrt_Windows.ApplicationModel.DataTransfer.DragDrop.Core.egg-info/PKG-INFO +6 -1
- {winrt-Windows.ApplicationModel.DataTransfer.DragDrop.Core-2.0.0b2 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0}/winrt_Windows.ApplicationModel.DataTransfer.DragDrop.Core.egg-info/SOURCES.txt +1 -0
- winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0/winrt_Windows.ApplicationModel.DataTransfer.DragDrop.Core.egg-info/requires.txt +7 -0
- winrt-Windows.ApplicationModel.DataTransfer.DragDrop.Core-2.0.0b2/all-requirements.txt +0 -6
- winrt-Windows.ApplicationModel.DataTransfer.DragDrop.Core-2.0.0b2/pywinrt-version.txt +0 -1
- winrt-Windows.ApplicationModel.DataTransfer.DragDrop.Core-2.0.0b2/setup.py +0 -16
- winrt-Windows.ApplicationModel.DataTransfer.DragDrop.Core-2.0.0b2/winrt_Windows.ApplicationModel.DataTransfer.DragDrop.Core.egg-info/requires.txt +0 -7
- {winrt-Windows.ApplicationModel.DataTransfer.DragDrop.Core-2.0.0b2 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0}/README.md +0 -0
- {winrt-Windows.ApplicationModel.DataTransfer.DragDrop.Core-2.0.0b2 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0}/setup.cfg +0 -0
- {winrt-Windows.ApplicationModel.DataTransfer.DragDrop.Core-2.0.0b2 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0}/winrt_Windows.ApplicationModel.DataTransfer.DragDrop.Core.egg-info/dependency_links.txt +0 -0
- {winrt-Windows.ApplicationModel.DataTransfer.DragDrop.Core-2.0.0b2 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0}/winrt_Windows.ApplicationModel.DataTransfer.DragDrop.Core.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.DataTransfer.DragDrop.Core
|
|
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,7 +12,12 @@ 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.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.ApplicationModel.DataTransfer[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.ApplicationModel.DataTransfer.DragDrop[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Graphics.Imaging[all]==2.1.0; extra == "all"
|
|
16
21
|
|
|
17
22
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
23
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
|
+
|
|
3
|
+
winrt-Windows.ApplicationModel.DataTransfer[all]==2.1.0
|
|
4
|
+
winrt-Windows.ApplicationModel.DataTransfer.DragDrop[all]==2.1.0
|
|
5
|
+
winrt-Windows.Foundation[all]==2.1.0
|
|
6
|
+
winrt-Windows.Graphics.Imaging[all]==2.1.0
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.ApplicationModel.DataTransfer.DragDrop.Core.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
7
6
|
{
|
|
8
7
|
// ----- CoreDragDropManager class --------------------
|
|
@@ -28,14 +27,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
28
27
|
|
|
29
28
|
if (arg_count == 0)
|
|
30
29
|
{
|
|
31
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager", L"GetForCurrentView", 0))
|
|
32
|
-
{
|
|
33
|
-
py::set_arg_count_version_error(0);
|
|
34
|
-
return nullptr;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
30
|
try
|
|
38
31
|
{
|
|
32
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager", L"GetForCurrentView", 0))
|
|
33
|
+
{
|
|
34
|
+
py::set_arg_count_version_error(0);
|
|
35
|
+
return nullptr;
|
|
36
|
+
}
|
|
37
|
+
|
|
39
38
|
return py::convert(winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragDropManager::GetForCurrentView());
|
|
40
39
|
}
|
|
41
40
|
catch (...)
|
|
@@ -53,14 +52,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
53
52
|
|
|
54
53
|
static PyObject* CoreDragDropManager_get_AreConcurrentOperationsEnabled(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragDropManager* self, void* /*unused*/) noexcept
|
|
55
54
|
{
|
|
56
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager", L"AreConcurrentOperationsEnabled"))
|
|
57
|
-
{
|
|
58
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
59
|
-
return nullptr;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
55
|
try
|
|
63
56
|
{
|
|
57
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager", L"AreConcurrentOperationsEnabled"))
|
|
58
|
+
{
|
|
59
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
60
|
+
return nullptr;
|
|
61
|
+
}
|
|
62
|
+
|
|
64
63
|
return py::convert(self->obj.AreConcurrentOperationsEnabled());
|
|
65
64
|
}
|
|
66
65
|
catch (...)
|
|
@@ -72,12 +71,6 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
72
71
|
|
|
73
72
|
static int CoreDragDropManager_put_AreConcurrentOperationsEnabled(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragDropManager* self, PyObject* arg, void* /*unused*/) noexcept
|
|
74
73
|
{
|
|
75
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager", L"AreConcurrentOperationsEnabled"))
|
|
76
|
-
{
|
|
77
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
78
|
-
return -1;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
74
|
if (arg == nullptr)
|
|
82
75
|
{
|
|
83
76
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -86,6 +79,12 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
86
79
|
|
|
87
80
|
try
|
|
88
81
|
{
|
|
82
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager", L"AreConcurrentOperationsEnabled"))
|
|
83
|
+
{
|
|
84
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
85
|
+
return -1;
|
|
86
|
+
}
|
|
87
|
+
|
|
89
88
|
auto param0 = py::convert_to<bool>(arg);
|
|
90
89
|
|
|
91
90
|
self->obj.AreConcurrentOperationsEnabled(param0);
|
|
@@ -100,14 +99,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
100
99
|
|
|
101
100
|
static PyObject* CoreDragDropManager_add_TargetRequested(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragDropManager* self, PyObject* arg) noexcept
|
|
102
101
|
{
|
|
103
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager", L"TargetRequested"))
|
|
104
|
-
{
|
|
105
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
106
|
-
return nullptr;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
102
|
try
|
|
110
103
|
{
|
|
104
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager", L"TargetRequested"))
|
|
105
|
+
{
|
|
106
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
107
|
+
return nullptr;
|
|
108
|
+
}
|
|
109
|
+
|
|
111
110
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragDropManager, winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDropOperationTargetRequestedEventArgs>>(arg);
|
|
112
111
|
|
|
113
112
|
return py::convert(self->obj.TargetRequested(param0));
|
|
@@ -121,14 +120,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
121
120
|
|
|
122
121
|
static PyObject* CoreDragDropManager_remove_TargetRequested(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragDropManager* self, PyObject* arg) noexcept
|
|
123
122
|
{
|
|
124
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager", L"TargetRequested"))
|
|
125
|
-
{
|
|
126
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
127
|
-
return nullptr;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
123
|
try
|
|
131
124
|
{
|
|
125
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager", L"TargetRequested"))
|
|
126
|
+
{
|
|
127
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
128
|
+
return nullptr;
|
|
129
|
+
}
|
|
130
|
+
|
|
132
131
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
133
132
|
|
|
134
133
|
self->obj.TargetRequested(param0);
|
|
@@ -178,23 +177,20 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
178
177
|
{ }
|
|
179
178
|
};
|
|
180
179
|
|
|
181
|
-
static PyType_Slot _type_slots_CoreDragDropManager[] =
|
|
182
|
-
{
|
|
180
|
+
static PyType_Slot _type_slots_CoreDragDropManager[] = {
|
|
183
181
|
{ Py_tp_new, reinterpret_cast<void*>(_new_CoreDragDropManager) },
|
|
184
182
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_CoreDragDropManager) },
|
|
185
183
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_CoreDragDropManager) },
|
|
186
184
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_CoreDragDropManager) },
|
|
187
|
-
{ }
|
|
185
|
+
{ }
|
|
188
186
|
};
|
|
189
187
|
|
|
190
|
-
static PyType_Spec type_spec_CoreDragDropManager =
|
|
191
|
-
{
|
|
188
|
+
static PyType_Spec type_spec_CoreDragDropManager = {
|
|
192
189
|
"winrt._winrt_windows_applicationmodel_datatransfer_dragdrop_core.CoreDragDropManager",
|
|
193
190
|
sizeof(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragDropManager),
|
|
194
191
|
0,
|
|
195
192
|
Py_TPFLAGS_DEFAULT,
|
|
196
|
-
_type_slots_CoreDragDropManager
|
|
197
|
-
};
|
|
193
|
+
_type_slots_CoreDragDropManager};
|
|
198
194
|
|
|
199
195
|
static PyGetSetDef getset_CoreDragDropManager_Static[] = {
|
|
200
196
|
{ }
|
|
@@ -241,14 +237,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
241
237
|
|
|
242
238
|
static PyObject* CoreDragInfo_get_Data(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragInfo* self, void* /*unused*/) noexcept
|
|
243
239
|
{
|
|
244
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragInfo", L"Data"))
|
|
245
|
-
{
|
|
246
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
247
|
-
return nullptr;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
240
|
try
|
|
251
241
|
{
|
|
242
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragInfo", L"Data"))
|
|
243
|
+
{
|
|
244
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
245
|
+
return nullptr;
|
|
246
|
+
}
|
|
247
|
+
|
|
252
248
|
return py::convert(self->obj.Data());
|
|
253
249
|
}
|
|
254
250
|
catch (...)
|
|
@@ -260,14 +256,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
260
256
|
|
|
261
257
|
static PyObject* CoreDragInfo_get_Modifiers(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragInfo* self, void* /*unused*/) noexcept
|
|
262
258
|
{
|
|
263
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragInfo", L"Modifiers"))
|
|
264
|
-
{
|
|
265
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
266
|
-
return nullptr;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
259
|
try
|
|
270
260
|
{
|
|
261
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragInfo", L"Modifiers"))
|
|
262
|
+
{
|
|
263
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
264
|
+
return nullptr;
|
|
265
|
+
}
|
|
266
|
+
|
|
271
267
|
return py::convert(self->obj.Modifiers());
|
|
272
268
|
}
|
|
273
269
|
catch (...)
|
|
@@ -279,14 +275,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
279
275
|
|
|
280
276
|
static PyObject* CoreDragInfo_get_Position(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragInfo* self, void* /*unused*/) noexcept
|
|
281
277
|
{
|
|
282
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragInfo", L"Position"))
|
|
283
|
-
{
|
|
284
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
285
|
-
return nullptr;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
278
|
try
|
|
289
279
|
{
|
|
280
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragInfo", L"Position"))
|
|
281
|
+
{
|
|
282
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
283
|
+
return nullptr;
|
|
284
|
+
}
|
|
285
|
+
|
|
290
286
|
return py::convert(self->obj.Position());
|
|
291
287
|
}
|
|
292
288
|
catch (...)
|
|
@@ -298,14 +294,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
298
294
|
|
|
299
295
|
static PyObject* CoreDragInfo_get_AllowedOperations(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragInfo* self, void* /*unused*/) noexcept
|
|
300
296
|
{
|
|
301
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragInfo", L"AllowedOperations"))
|
|
302
|
-
{
|
|
303
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
304
|
-
return nullptr;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
297
|
try
|
|
308
298
|
{
|
|
299
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragInfo", L"AllowedOperations"))
|
|
300
|
+
{
|
|
301
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
302
|
+
return nullptr;
|
|
303
|
+
}
|
|
304
|
+
|
|
309
305
|
return py::convert(self->obj.AllowedOperations());
|
|
310
306
|
}
|
|
311
307
|
catch (...)
|
|
@@ -353,23 +349,20 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
353
349
|
{ }
|
|
354
350
|
};
|
|
355
351
|
|
|
356
|
-
static PyType_Slot _type_slots_CoreDragInfo[] =
|
|
357
|
-
{
|
|
352
|
+
static PyType_Slot _type_slots_CoreDragInfo[] = {
|
|
358
353
|
{ Py_tp_new, reinterpret_cast<void*>(_new_CoreDragInfo) },
|
|
359
354
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_CoreDragInfo) },
|
|
360
355
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_CoreDragInfo) },
|
|
361
356
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_CoreDragInfo) },
|
|
362
|
-
{ }
|
|
357
|
+
{ }
|
|
363
358
|
};
|
|
364
359
|
|
|
365
|
-
static PyType_Spec type_spec_CoreDragInfo =
|
|
366
|
-
{
|
|
360
|
+
static PyType_Spec type_spec_CoreDragInfo = {
|
|
367
361
|
"winrt._winrt_windows_applicationmodel_datatransfer_dragdrop_core.CoreDragInfo",
|
|
368
362
|
sizeof(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragInfo),
|
|
369
363
|
0,
|
|
370
364
|
Py_TPFLAGS_DEFAULT,
|
|
371
|
-
_type_slots_CoreDragInfo
|
|
372
|
-
};
|
|
365
|
+
_type_slots_CoreDragInfo};
|
|
373
366
|
|
|
374
367
|
// ----- CoreDragOperation class --------------------
|
|
375
368
|
|
|
@@ -416,14 +409,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
416
409
|
|
|
417
410
|
if (arg_count == 1)
|
|
418
411
|
{
|
|
419
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"SetDragUIContentFromSoftwareBitmap", 1))
|
|
420
|
-
{
|
|
421
|
-
py::set_arg_count_version_error(1);
|
|
422
|
-
return nullptr;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
412
|
try
|
|
426
413
|
{
|
|
414
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"SetDragUIContentFromSoftwareBitmap", 1))
|
|
415
|
+
{
|
|
416
|
+
py::set_arg_count_version_error(1);
|
|
417
|
+
return nullptr;
|
|
418
|
+
}
|
|
419
|
+
|
|
427
420
|
auto param0 = py::convert_to<winrt::Windows::Graphics::Imaging::SoftwareBitmap>(args, 0);
|
|
428
421
|
|
|
429
422
|
self->obj.SetDragUIContentFromSoftwareBitmap(param0);
|
|
@@ -437,14 +430,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
437
430
|
}
|
|
438
431
|
else if (arg_count == 2)
|
|
439
432
|
{
|
|
440
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"SetDragUIContentFromSoftwareBitmap", 2))
|
|
441
|
-
{
|
|
442
|
-
py::set_arg_count_version_error(2);
|
|
443
|
-
return nullptr;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
433
|
try
|
|
447
434
|
{
|
|
435
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"SetDragUIContentFromSoftwareBitmap", 2))
|
|
436
|
+
{
|
|
437
|
+
py::set_arg_count_version_error(2);
|
|
438
|
+
return nullptr;
|
|
439
|
+
}
|
|
440
|
+
|
|
448
441
|
auto param0 = py::convert_to<winrt::Windows::Graphics::Imaging::SoftwareBitmap>(args, 0);
|
|
449
442
|
auto param1 = py::convert_to<winrt::Windows::Foundation::Point>(args, 1);
|
|
450
443
|
|
|
@@ -470,14 +463,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
470
463
|
|
|
471
464
|
if (arg_count == 1)
|
|
472
465
|
{
|
|
473
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"SetPointerId", 1))
|
|
474
|
-
{
|
|
475
|
-
py::set_arg_count_version_error(1);
|
|
476
|
-
return nullptr;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
466
|
try
|
|
480
467
|
{
|
|
468
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"SetPointerId", 1))
|
|
469
|
+
{
|
|
470
|
+
py::set_arg_count_version_error(1);
|
|
471
|
+
return nullptr;
|
|
472
|
+
}
|
|
473
|
+
|
|
481
474
|
auto param0 = py::convert_to<uint32_t>(args, 0);
|
|
482
475
|
|
|
483
476
|
self->obj.SetPointerId(param0);
|
|
@@ -502,14 +495,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
502
495
|
|
|
503
496
|
if (arg_count == 0)
|
|
504
497
|
{
|
|
505
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"StartAsync", 0))
|
|
506
|
-
{
|
|
507
|
-
py::set_arg_count_version_error(0);
|
|
508
|
-
return nullptr;
|
|
509
|
-
}
|
|
510
|
-
|
|
511
498
|
try
|
|
512
499
|
{
|
|
500
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"StartAsync", 0))
|
|
501
|
+
{
|
|
502
|
+
py::set_arg_count_version_error(0);
|
|
503
|
+
return nullptr;
|
|
504
|
+
}
|
|
505
|
+
|
|
513
506
|
return py::convert(self->obj.StartAsync());
|
|
514
507
|
}
|
|
515
508
|
catch (...)
|
|
@@ -527,14 +520,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
527
520
|
|
|
528
521
|
static PyObject* CoreDragOperation_get_DragUIContentMode(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragOperation* self, void* /*unused*/) noexcept
|
|
529
522
|
{
|
|
530
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"DragUIContentMode"))
|
|
531
|
-
{
|
|
532
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
533
|
-
return nullptr;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
523
|
try
|
|
537
524
|
{
|
|
525
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"DragUIContentMode"))
|
|
526
|
+
{
|
|
527
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
528
|
+
return nullptr;
|
|
529
|
+
}
|
|
530
|
+
|
|
538
531
|
return py::convert(self->obj.DragUIContentMode());
|
|
539
532
|
}
|
|
540
533
|
catch (...)
|
|
@@ -546,12 +539,6 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
546
539
|
|
|
547
540
|
static int CoreDragOperation_put_DragUIContentMode(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragOperation* self, PyObject* arg, void* /*unused*/) noexcept
|
|
548
541
|
{
|
|
549
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"DragUIContentMode"))
|
|
550
|
-
{
|
|
551
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
552
|
-
return -1;
|
|
553
|
-
}
|
|
554
|
-
|
|
555
542
|
if (arg == nullptr)
|
|
556
543
|
{
|
|
557
544
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -560,6 +547,12 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
560
547
|
|
|
561
548
|
try
|
|
562
549
|
{
|
|
550
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"DragUIContentMode"))
|
|
551
|
+
{
|
|
552
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
553
|
+
return -1;
|
|
554
|
+
}
|
|
555
|
+
|
|
563
556
|
auto param0 = py::convert_to<winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragUIContentMode>(arg);
|
|
564
557
|
|
|
565
558
|
self->obj.DragUIContentMode(param0);
|
|
@@ -574,14 +567,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
574
567
|
|
|
575
568
|
static PyObject* CoreDragOperation_get_Data(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragOperation* self, void* /*unused*/) noexcept
|
|
576
569
|
{
|
|
577
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"Data"))
|
|
578
|
-
{
|
|
579
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
580
|
-
return nullptr;
|
|
581
|
-
}
|
|
582
|
-
|
|
583
570
|
try
|
|
584
571
|
{
|
|
572
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"Data"))
|
|
573
|
+
{
|
|
574
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
575
|
+
return nullptr;
|
|
576
|
+
}
|
|
577
|
+
|
|
585
578
|
return py::convert(self->obj.Data());
|
|
586
579
|
}
|
|
587
580
|
catch (...)
|
|
@@ -593,14 +586,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
593
586
|
|
|
594
587
|
static PyObject* CoreDragOperation_get_AllowedOperations(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragOperation* self, void* /*unused*/) noexcept
|
|
595
588
|
{
|
|
596
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"AllowedOperations"))
|
|
597
|
-
{
|
|
598
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
599
|
-
return nullptr;
|
|
600
|
-
}
|
|
601
|
-
|
|
602
589
|
try
|
|
603
590
|
{
|
|
591
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"AllowedOperations"))
|
|
592
|
+
{
|
|
593
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
594
|
+
return nullptr;
|
|
595
|
+
}
|
|
596
|
+
|
|
604
597
|
return py::convert(self->obj.AllowedOperations());
|
|
605
598
|
}
|
|
606
599
|
catch (...)
|
|
@@ -612,12 +605,6 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
612
605
|
|
|
613
606
|
static int CoreDragOperation_put_AllowedOperations(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragOperation* self, PyObject* arg, void* /*unused*/) noexcept
|
|
614
607
|
{
|
|
615
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"AllowedOperations"))
|
|
616
|
-
{
|
|
617
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
618
|
-
return -1;
|
|
619
|
-
}
|
|
620
|
-
|
|
621
608
|
if (arg == nullptr)
|
|
622
609
|
{
|
|
623
610
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -626,6 +613,12 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
626
613
|
|
|
627
614
|
try
|
|
628
615
|
{
|
|
616
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"AllowedOperations"))
|
|
617
|
+
{
|
|
618
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
619
|
+
return -1;
|
|
620
|
+
}
|
|
621
|
+
|
|
629
622
|
auto param0 = py::convert_to<winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation>(arg);
|
|
630
623
|
|
|
631
624
|
self->obj.AllowedOperations(param0);
|
|
@@ -678,23 +671,20 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
678
671
|
{ }
|
|
679
672
|
};
|
|
680
673
|
|
|
681
|
-
static PyType_Slot _type_slots_CoreDragOperation[] =
|
|
682
|
-
{
|
|
674
|
+
static PyType_Slot _type_slots_CoreDragOperation[] = {
|
|
683
675
|
{ Py_tp_new, reinterpret_cast<void*>(_new_CoreDragOperation) },
|
|
684
676
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_CoreDragOperation) },
|
|
685
677
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_CoreDragOperation) },
|
|
686
678
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_CoreDragOperation) },
|
|
687
|
-
{ }
|
|
679
|
+
{ }
|
|
688
680
|
};
|
|
689
681
|
|
|
690
|
-
static PyType_Spec type_spec_CoreDragOperation =
|
|
691
|
-
{
|
|
682
|
+
static PyType_Spec type_spec_CoreDragOperation = {
|
|
692
683
|
"winrt._winrt_windows_applicationmodel_datatransfer_dragdrop_core.CoreDragOperation",
|
|
693
684
|
sizeof(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragOperation),
|
|
694
685
|
0,
|
|
695
686
|
Py_TPFLAGS_DEFAULT,
|
|
696
|
-
_type_slots_CoreDragOperation
|
|
697
|
-
};
|
|
687
|
+
_type_slots_CoreDragOperation};
|
|
698
688
|
|
|
699
689
|
// ----- CoreDragUIOverride class --------------------
|
|
700
690
|
|
|
@@ -719,14 +709,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
719
709
|
|
|
720
710
|
if (arg_count == 0)
|
|
721
711
|
{
|
|
722
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"Clear", 0))
|
|
723
|
-
{
|
|
724
|
-
py::set_arg_count_version_error(0);
|
|
725
|
-
return nullptr;
|
|
726
|
-
}
|
|
727
|
-
|
|
728
712
|
try
|
|
729
713
|
{
|
|
714
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"Clear", 0))
|
|
715
|
+
{
|
|
716
|
+
py::set_arg_count_version_error(0);
|
|
717
|
+
return nullptr;
|
|
718
|
+
}
|
|
719
|
+
|
|
730
720
|
self->obj.Clear();
|
|
731
721
|
Py_RETURN_NONE;
|
|
732
722
|
}
|
|
@@ -749,14 +739,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
749
739
|
|
|
750
740
|
if (arg_count == 1)
|
|
751
741
|
{
|
|
752
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"SetContentFromSoftwareBitmap", 1))
|
|
753
|
-
{
|
|
754
|
-
py::set_arg_count_version_error(1);
|
|
755
|
-
return nullptr;
|
|
756
|
-
}
|
|
757
|
-
|
|
758
742
|
try
|
|
759
743
|
{
|
|
744
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"SetContentFromSoftwareBitmap", 1))
|
|
745
|
+
{
|
|
746
|
+
py::set_arg_count_version_error(1);
|
|
747
|
+
return nullptr;
|
|
748
|
+
}
|
|
749
|
+
|
|
760
750
|
auto param0 = py::convert_to<winrt::Windows::Graphics::Imaging::SoftwareBitmap>(args, 0);
|
|
761
751
|
|
|
762
752
|
self->obj.SetContentFromSoftwareBitmap(param0);
|
|
@@ -770,14 +760,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
770
760
|
}
|
|
771
761
|
else if (arg_count == 2)
|
|
772
762
|
{
|
|
773
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"SetContentFromSoftwareBitmap", 2))
|
|
774
|
-
{
|
|
775
|
-
py::set_arg_count_version_error(2);
|
|
776
|
-
return nullptr;
|
|
777
|
-
}
|
|
778
|
-
|
|
779
763
|
try
|
|
780
764
|
{
|
|
765
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"SetContentFromSoftwareBitmap", 2))
|
|
766
|
+
{
|
|
767
|
+
py::set_arg_count_version_error(2);
|
|
768
|
+
return nullptr;
|
|
769
|
+
}
|
|
770
|
+
|
|
781
771
|
auto param0 = py::convert_to<winrt::Windows::Graphics::Imaging::SoftwareBitmap>(args, 0);
|
|
782
772
|
auto param1 = py::convert_to<winrt::Windows::Foundation::Point>(args, 1);
|
|
783
773
|
|
|
@@ -799,14 +789,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
799
789
|
|
|
800
790
|
static PyObject* CoreDragUIOverride_get_IsGlyphVisible(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragUIOverride* self, void* /*unused*/) noexcept
|
|
801
791
|
{
|
|
802
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"IsGlyphVisible"))
|
|
803
|
-
{
|
|
804
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
805
|
-
return nullptr;
|
|
806
|
-
}
|
|
807
|
-
|
|
808
792
|
try
|
|
809
793
|
{
|
|
794
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"IsGlyphVisible"))
|
|
795
|
+
{
|
|
796
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
797
|
+
return nullptr;
|
|
798
|
+
}
|
|
799
|
+
|
|
810
800
|
return py::convert(self->obj.IsGlyphVisible());
|
|
811
801
|
}
|
|
812
802
|
catch (...)
|
|
@@ -818,12 +808,6 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
818
808
|
|
|
819
809
|
static int CoreDragUIOverride_put_IsGlyphVisible(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragUIOverride* self, PyObject* arg, void* /*unused*/) noexcept
|
|
820
810
|
{
|
|
821
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"IsGlyphVisible"))
|
|
822
|
-
{
|
|
823
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
824
|
-
return -1;
|
|
825
|
-
}
|
|
826
|
-
|
|
827
811
|
if (arg == nullptr)
|
|
828
812
|
{
|
|
829
813
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -832,6 +816,12 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
832
816
|
|
|
833
817
|
try
|
|
834
818
|
{
|
|
819
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"IsGlyphVisible"))
|
|
820
|
+
{
|
|
821
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
822
|
+
return -1;
|
|
823
|
+
}
|
|
824
|
+
|
|
835
825
|
auto param0 = py::convert_to<bool>(arg);
|
|
836
826
|
|
|
837
827
|
self->obj.IsGlyphVisible(param0);
|
|
@@ -846,14 +836,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
846
836
|
|
|
847
837
|
static PyObject* CoreDragUIOverride_get_IsContentVisible(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragUIOverride* self, void* /*unused*/) noexcept
|
|
848
838
|
{
|
|
849
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"IsContentVisible"))
|
|
850
|
-
{
|
|
851
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
852
|
-
return nullptr;
|
|
853
|
-
}
|
|
854
|
-
|
|
855
839
|
try
|
|
856
840
|
{
|
|
841
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"IsContentVisible"))
|
|
842
|
+
{
|
|
843
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
844
|
+
return nullptr;
|
|
845
|
+
}
|
|
846
|
+
|
|
857
847
|
return py::convert(self->obj.IsContentVisible());
|
|
858
848
|
}
|
|
859
849
|
catch (...)
|
|
@@ -865,12 +855,6 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
865
855
|
|
|
866
856
|
static int CoreDragUIOverride_put_IsContentVisible(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragUIOverride* self, PyObject* arg, void* /*unused*/) noexcept
|
|
867
857
|
{
|
|
868
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"IsContentVisible"))
|
|
869
|
-
{
|
|
870
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
871
|
-
return -1;
|
|
872
|
-
}
|
|
873
|
-
|
|
874
858
|
if (arg == nullptr)
|
|
875
859
|
{
|
|
876
860
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -879,6 +863,12 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
879
863
|
|
|
880
864
|
try
|
|
881
865
|
{
|
|
866
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"IsContentVisible"))
|
|
867
|
+
{
|
|
868
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
869
|
+
return -1;
|
|
870
|
+
}
|
|
871
|
+
|
|
882
872
|
auto param0 = py::convert_to<bool>(arg);
|
|
883
873
|
|
|
884
874
|
self->obj.IsContentVisible(param0);
|
|
@@ -893,14 +883,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
893
883
|
|
|
894
884
|
static PyObject* CoreDragUIOverride_get_IsCaptionVisible(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragUIOverride* self, void* /*unused*/) noexcept
|
|
895
885
|
{
|
|
896
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"IsCaptionVisible"))
|
|
897
|
-
{
|
|
898
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
899
|
-
return nullptr;
|
|
900
|
-
}
|
|
901
|
-
|
|
902
886
|
try
|
|
903
887
|
{
|
|
888
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"IsCaptionVisible"))
|
|
889
|
+
{
|
|
890
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
891
|
+
return nullptr;
|
|
892
|
+
}
|
|
893
|
+
|
|
904
894
|
return py::convert(self->obj.IsCaptionVisible());
|
|
905
895
|
}
|
|
906
896
|
catch (...)
|
|
@@ -912,12 +902,6 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
912
902
|
|
|
913
903
|
static int CoreDragUIOverride_put_IsCaptionVisible(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragUIOverride* self, PyObject* arg, void* /*unused*/) noexcept
|
|
914
904
|
{
|
|
915
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"IsCaptionVisible"))
|
|
916
|
-
{
|
|
917
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
918
|
-
return -1;
|
|
919
|
-
}
|
|
920
|
-
|
|
921
905
|
if (arg == nullptr)
|
|
922
906
|
{
|
|
923
907
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -926,6 +910,12 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
926
910
|
|
|
927
911
|
try
|
|
928
912
|
{
|
|
913
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"IsCaptionVisible"))
|
|
914
|
+
{
|
|
915
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
916
|
+
return -1;
|
|
917
|
+
}
|
|
918
|
+
|
|
929
919
|
auto param0 = py::convert_to<bool>(arg);
|
|
930
920
|
|
|
931
921
|
self->obj.IsCaptionVisible(param0);
|
|
@@ -940,14 +930,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
940
930
|
|
|
941
931
|
static PyObject* CoreDragUIOverride_get_Caption(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragUIOverride* self, void* /*unused*/) noexcept
|
|
942
932
|
{
|
|
943
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"Caption"))
|
|
944
|
-
{
|
|
945
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
946
|
-
return nullptr;
|
|
947
|
-
}
|
|
948
|
-
|
|
949
933
|
try
|
|
950
934
|
{
|
|
935
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"Caption"))
|
|
936
|
+
{
|
|
937
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
938
|
+
return nullptr;
|
|
939
|
+
}
|
|
940
|
+
|
|
951
941
|
return py::convert(self->obj.Caption());
|
|
952
942
|
}
|
|
953
943
|
catch (...)
|
|
@@ -959,12 +949,6 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
959
949
|
|
|
960
950
|
static int CoreDragUIOverride_put_Caption(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragUIOverride* self, PyObject* arg, void* /*unused*/) noexcept
|
|
961
951
|
{
|
|
962
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"Caption"))
|
|
963
|
-
{
|
|
964
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
965
|
-
return -1;
|
|
966
|
-
}
|
|
967
|
-
|
|
968
952
|
if (arg == nullptr)
|
|
969
953
|
{
|
|
970
954
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -973,6 +957,12 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
973
957
|
|
|
974
958
|
try
|
|
975
959
|
{
|
|
960
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"Caption"))
|
|
961
|
+
{
|
|
962
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
963
|
+
return -1;
|
|
964
|
+
}
|
|
965
|
+
|
|
976
966
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
977
967
|
|
|
978
968
|
self->obj.Caption(param0);
|
|
@@ -1025,23 +1015,20 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
1025
1015
|
{ }
|
|
1026
1016
|
};
|
|
1027
1017
|
|
|
1028
|
-
static PyType_Slot _type_slots_CoreDragUIOverride[] =
|
|
1029
|
-
{
|
|
1018
|
+
static PyType_Slot _type_slots_CoreDragUIOverride[] = {
|
|
1030
1019
|
{ Py_tp_new, reinterpret_cast<void*>(_new_CoreDragUIOverride) },
|
|
1031
1020
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_CoreDragUIOverride) },
|
|
1032
1021
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_CoreDragUIOverride) },
|
|
1033
1022
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_CoreDragUIOverride) },
|
|
1034
|
-
{ }
|
|
1023
|
+
{ }
|
|
1035
1024
|
};
|
|
1036
1025
|
|
|
1037
|
-
static PyType_Spec type_spec_CoreDragUIOverride =
|
|
1038
|
-
{
|
|
1026
|
+
static PyType_Spec type_spec_CoreDragUIOverride = {
|
|
1039
1027
|
"winrt._winrt_windows_applicationmodel_datatransfer_dragdrop_core.CoreDragUIOverride",
|
|
1040
1028
|
sizeof(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragUIOverride),
|
|
1041
1029
|
0,
|
|
1042
1030
|
Py_TPFLAGS_DEFAULT,
|
|
1043
|
-
_type_slots_CoreDragUIOverride
|
|
1044
|
-
};
|
|
1031
|
+
_type_slots_CoreDragUIOverride};
|
|
1045
1032
|
|
|
1046
1033
|
// ----- CoreDropOperationTargetRequestedEventArgs class --------------------
|
|
1047
1034
|
|
|
@@ -1066,14 +1053,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
1066
1053
|
|
|
1067
1054
|
if (arg_count == 1)
|
|
1068
1055
|
{
|
|
1069
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDropOperationTargetRequestedEventArgs", L"SetTarget", 1))
|
|
1070
|
-
{
|
|
1071
|
-
py::set_arg_count_version_error(1);
|
|
1072
|
-
return nullptr;
|
|
1073
|
-
}
|
|
1074
|
-
|
|
1075
1056
|
try
|
|
1076
1057
|
{
|
|
1058
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDropOperationTargetRequestedEventArgs", L"SetTarget", 1))
|
|
1059
|
+
{
|
|
1060
|
+
py::set_arg_count_version_error(1);
|
|
1061
|
+
return nullptr;
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1077
1064
|
auto param0 = py::convert_to<winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDropOperationTarget>(args, 0);
|
|
1078
1065
|
|
|
1079
1066
|
self->obj.SetTarget(param0);
|
|
@@ -1127,23 +1114,20 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
1127
1114
|
{ }
|
|
1128
1115
|
};
|
|
1129
1116
|
|
|
1130
|
-
static PyType_Slot _type_slots_CoreDropOperationTargetRequestedEventArgs[] =
|
|
1131
|
-
{
|
|
1117
|
+
static PyType_Slot _type_slots_CoreDropOperationTargetRequestedEventArgs[] = {
|
|
1132
1118
|
{ Py_tp_new, reinterpret_cast<void*>(_new_CoreDropOperationTargetRequestedEventArgs) },
|
|
1133
1119
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_CoreDropOperationTargetRequestedEventArgs) },
|
|
1134
1120
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_CoreDropOperationTargetRequestedEventArgs) },
|
|
1135
1121
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_CoreDropOperationTargetRequestedEventArgs) },
|
|
1136
|
-
{ }
|
|
1122
|
+
{ }
|
|
1137
1123
|
};
|
|
1138
1124
|
|
|
1139
|
-
static PyType_Spec type_spec_CoreDropOperationTargetRequestedEventArgs =
|
|
1140
|
-
{
|
|
1125
|
+
static PyType_Spec type_spec_CoreDropOperationTargetRequestedEventArgs = {
|
|
1141
1126
|
"winrt._winrt_windows_applicationmodel_datatransfer_dragdrop_core.CoreDropOperationTargetRequestedEventArgs",
|
|
1142
1127
|
sizeof(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDropOperationTargetRequestedEventArgs),
|
|
1143
1128
|
0,
|
|
1144
1129
|
Py_TPFLAGS_DEFAULT,
|
|
1145
|
-
_type_slots_CoreDropOperationTargetRequestedEventArgs
|
|
1146
|
-
};
|
|
1130
|
+
_type_slots_CoreDropOperationTargetRequestedEventArgs};
|
|
1147
1131
|
|
|
1148
1132
|
// ----- ICoreDropOperationTarget interface --------------------
|
|
1149
1133
|
|
|
@@ -1168,14 +1152,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
1168
1152
|
|
|
1169
1153
|
if (arg_count == 1)
|
|
1170
1154
|
{
|
|
1171
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.ICoreDropOperationTarget", L"DropAsync", 1))
|
|
1172
|
-
{
|
|
1173
|
-
py::set_arg_count_version_error(1);
|
|
1174
|
-
return nullptr;
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
1155
|
try
|
|
1178
1156
|
{
|
|
1157
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.ICoreDropOperationTarget", L"DropAsync", 1))
|
|
1158
|
+
{
|
|
1159
|
+
py::set_arg_count_version_error(1);
|
|
1160
|
+
return nullptr;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1179
1163
|
auto param0 = py::convert_to<winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragInfo>(args, 0);
|
|
1180
1164
|
|
|
1181
1165
|
return py::convert(self->obj.DropAsync(param0));
|
|
@@ -1199,14 +1183,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
1199
1183
|
|
|
1200
1184
|
if (arg_count == 2)
|
|
1201
1185
|
{
|
|
1202
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.ICoreDropOperationTarget", L"EnterAsync", 2))
|
|
1203
|
-
{
|
|
1204
|
-
py::set_arg_count_version_error(2);
|
|
1205
|
-
return nullptr;
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
1186
|
try
|
|
1209
1187
|
{
|
|
1188
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.ICoreDropOperationTarget", L"EnterAsync", 2))
|
|
1189
|
+
{
|
|
1190
|
+
py::set_arg_count_version_error(2);
|
|
1191
|
+
return nullptr;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1210
1194
|
auto param0 = py::convert_to<winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragInfo>(args, 0);
|
|
1211
1195
|
auto param1 = py::convert_to<winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragUIOverride>(args, 1);
|
|
1212
1196
|
|
|
@@ -1231,14 +1215,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
1231
1215
|
|
|
1232
1216
|
if (arg_count == 1)
|
|
1233
1217
|
{
|
|
1234
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.ICoreDropOperationTarget", L"LeaveAsync", 1))
|
|
1235
|
-
{
|
|
1236
|
-
py::set_arg_count_version_error(1);
|
|
1237
|
-
return nullptr;
|
|
1238
|
-
}
|
|
1239
|
-
|
|
1240
1218
|
try
|
|
1241
1219
|
{
|
|
1220
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.ICoreDropOperationTarget", L"LeaveAsync", 1))
|
|
1221
|
+
{
|
|
1222
|
+
py::set_arg_count_version_error(1);
|
|
1223
|
+
return nullptr;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1242
1226
|
auto param0 = py::convert_to<winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragInfo>(args, 0);
|
|
1243
1227
|
|
|
1244
1228
|
return py::convert(self->obj.LeaveAsync(param0));
|
|
@@ -1262,14 +1246,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
1262
1246
|
|
|
1263
1247
|
if (arg_count == 2)
|
|
1264
1248
|
{
|
|
1265
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.ICoreDropOperationTarget", L"OverAsync", 2))
|
|
1266
|
-
{
|
|
1267
|
-
py::set_arg_count_version_error(2);
|
|
1268
|
-
return nullptr;
|
|
1269
|
-
}
|
|
1270
|
-
|
|
1271
1249
|
try
|
|
1272
1250
|
{
|
|
1251
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.ICoreDropOperationTarget", L"OverAsync", 2))
|
|
1252
|
+
{
|
|
1253
|
+
py::set_arg_count_version_error(2);
|
|
1254
|
+
return nullptr;
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1273
1257
|
auto param0 = py::convert_to<winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragInfo>(args, 0);
|
|
1274
1258
|
auto param1 = py::convert_to<winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragUIOverride>(args, 1);
|
|
1275
1259
|
|
|
@@ -1326,39 +1310,35 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
1326
1310
|
{ }
|
|
1327
1311
|
};
|
|
1328
1312
|
|
|
1329
|
-
static PyType_Slot _type_slots_ICoreDropOperationTarget[] =
|
|
1330
|
-
{
|
|
1313
|
+
static PyType_Slot _type_slots_ICoreDropOperationTarget[] = {
|
|
1331
1314
|
{ Py_tp_new, reinterpret_cast<void*>(_new_ICoreDropOperationTarget) },
|
|
1332
1315
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ICoreDropOperationTarget) },
|
|
1333
1316
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_ICoreDropOperationTarget) },
|
|
1334
1317
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_ICoreDropOperationTarget) },
|
|
1335
|
-
{ }
|
|
1318
|
+
{ }
|
|
1336
1319
|
};
|
|
1337
1320
|
|
|
1338
|
-
static PyType_Spec type_spec_ICoreDropOperationTarget =
|
|
1339
|
-
{
|
|
1321
|
+
static PyType_Spec type_spec_ICoreDropOperationTarget = {
|
|
1340
1322
|
"winrt._winrt_windows_applicationmodel_datatransfer_dragdrop_core.ICoreDropOperationTarget",
|
|
1341
1323
|
sizeof(py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDropOperationTarget),
|
|
1342
1324
|
0,
|
|
1343
1325
|
Py_TPFLAGS_DEFAULT,
|
|
1344
|
-
_type_slots_ICoreDropOperationTarget
|
|
1345
|
-
};
|
|
1326
|
+
_type_slots_ICoreDropOperationTarget};
|
|
1346
1327
|
|
|
1347
1328
|
// ----- Windows.ApplicationModel.DataTransfer.DragDrop.Core Initialization --------------------
|
|
1348
|
-
PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::DataTransfer::DragDrop::Core");
|
|
1349
|
-
|
|
1350
1329
|
|
|
1351
|
-
|
|
1352
|
-
= {PyModuleDef_HEAD_INIT,
|
|
1353
|
-
"_winrt_windows_applicationmodel_datatransfer_dragdrop_core",
|
|
1354
|
-
module_doc,
|
|
1355
|
-
0,
|
|
1356
|
-
nullptr,
|
|
1357
|
-
nullptr,
|
|
1358
|
-
nullptr,
|
|
1359
|
-
nullptr,
|
|
1360
|
-
nullptr};
|
|
1330
|
+
PyDoc_STRVAR(module_doc, "Windows.ApplicationModel.DataTransfer.DragDrop.Core");
|
|
1361
1331
|
|
|
1332
|
+
static PyModuleDef module_def = {
|
|
1333
|
+
PyModuleDef_HEAD_INIT,
|
|
1334
|
+
"_winrt_windows_applicationmodel_datatransfer_dragdrop_core",
|
|
1335
|
+
module_doc,
|
|
1336
|
+
0,
|
|
1337
|
+
nullptr,
|
|
1338
|
+
nullptr,
|
|
1339
|
+
nullptr,
|
|
1340
|
+
nullptr,
|
|
1341
|
+
nullptr};
|
|
1362
1342
|
} // py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
1363
1343
|
|
|
1364
1344
|
PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_datatransfer_dragdrop_core(void) noexcept
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "
|
|
4
|
+
requires = ["setuptools", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
@@ -30,7 +30,7 @@ dependencies = { file = "requirements.txt" }
|
|
|
30
30
|
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
31
|
|
|
32
32
|
[tool.setuptools.package-data]
|
|
33
|
-
|
|
33
|
+
"*" = ["*.pyi", "py.typed"]
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.1.0
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
from setuptools import Extension, setup
|
|
4
|
+
from setuptools.command.build_ext import build_ext
|
|
5
|
+
from winrt_sdk import get_include_dirs
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class build_ext_ex(build_ext):
|
|
9
|
+
def build_extension(self, ext):
|
|
10
|
+
if self.compiler.compiler_type == "msvc":
|
|
11
|
+
ext.extra_compile_args = ["/std:c++20", "/permissive-"]
|
|
12
|
+
elif self.compiler.compiler_type == "mingw32":
|
|
13
|
+
ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
|
|
14
|
+
ext.extra_link_args = ["-loleaut32"]
|
|
15
|
+
else:
|
|
16
|
+
raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
|
|
17
|
+
|
|
18
|
+
build_ext.build_extension(self, ext)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
setup(
|
|
22
|
+
cmdclass = {'build_ext': build_ext_ex},
|
|
23
|
+
ext_modules=[
|
|
24
|
+
Extension(
|
|
25
|
+
"winrt._winrt_windows_applicationmodel_datatransfer_dragdrop_core",
|
|
26
|
+
sources=["py.Windows.ApplicationModel.DataTransfer.DragDrop.Core.cpp"],
|
|
27
|
+
include_dirs=get_include_dirs(),
|
|
28
|
+
libraries=["windowsapp"],
|
|
29
|
+
)
|
|
30
|
+
],
|
|
31
|
+
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
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,10 +9,10 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.applicationmodel.datatransfer
|
|
13
|
-
import winrt.windows.applicationmodel.datatransfer.dragdrop
|
|
14
|
-
import winrt.windows.foundation
|
|
15
|
-
import winrt.windows.graphics.imaging
|
|
12
|
+
import winrt.windows.applicationmodel.datatransfer as windows_applicationmodel_datatransfer
|
|
13
|
+
import winrt.windows.applicationmodel.datatransfer.dragdrop as windows_applicationmodel_datatransfer_dragdrop
|
|
14
|
+
import winrt.windows.foundation as windows_foundation
|
|
15
|
+
import winrt.windows.graphics.imaging as windows_graphics_imaging
|
|
16
16
|
|
|
17
17
|
from winrt.windows.applicationmodel.datatransfer.dragdrop.core import CoreDragUIContentMode
|
|
18
18
|
|
|
@@ -26,8 +26,8 @@ class CoreDragDropManager_Static(type):
|
|
|
26
26
|
class CoreDragDropManager(winrt.system.Object, metaclass=CoreDragDropManager_Static):
|
|
27
27
|
@staticmethod
|
|
28
28
|
def _from(obj: winrt.system.Object, /) -> CoreDragDropManager: ...
|
|
29
|
-
def add_target_requested(self, value:
|
|
30
|
-
def remove_target_requested(self, value:
|
|
29
|
+
def add_target_requested(self, value: windows_foundation.TypedEventHandler[CoreDragDropManager, CoreDropOperationTargetRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
30
|
+
def remove_target_requested(self, value: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
31
31
|
@_property
|
|
32
32
|
def are_concurrent_operations_enabled(self) -> bool: ...
|
|
33
33
|
@are_concurrent_operations_enabled.setter
|
|
@@ -38,35 +38,35 @@ class CoreDragInfo(winrt.system.Object):
|
|
|
38
38
|
@staticmethod
|
|
39
39
|
def _from(obj: winrt.system.Object, /) -> CoreDragInfo: ...
|
|
40
40
|
@_property
|
|
41
|
-
def data(self) -> typing.Optional[
|
|
41
|
+
def data(self) -> typing.Optional[windows_applicationmodel_datatransfer.DataPackageView]: ...
|
|
42
42
|
@_property
|
|
43
|
-
def modifiers(self) ->
|
|
43
|
+
def modifiers(self) -> windows_applicationmodel_datatransfer_dragdrop.DragDropModifiers: ...
|
|
44
44
|
@_property
|
|
45
|
-
def position(self) ->
|
|
45
|
+
def position(self) -> windows_foundation.Point: ...
|
|
46
46
|
@_property
|
|
47
|
-
def allowed_operations(self) ->
|
|
47
|
+
def allowed_operations(self) -> windows_applicationmodel_datatransfer.DataPackageOperation: ...
|
|
48
48
|
|
|
49
49
|
@typing.final
|
|
50
50
|
class CoreDragOperation(winrt.system.Object):
|
|
51
51
|
@staticmethod
|
|
52
52
|
def _from(obj: winrt.system.Object, /) -> CoreDragOperation: ...
|
|
53
|
-
def __new__(cls: typing.Type[CoreDragOperation]) -> CoreDragOperation
|
|
53
|
+
def __new__(cls: typing.Type[CoreDragOperation]) -> CoreDragOperation: ...
|
|
54
54
|
@typing.overload
|
|
55
|
-
def set_drag_u_i_content_from_software_bitmap(self, software_bitmap: typing.Optional[
|
|
55
|
+
def set_drag_u_i_content_from_software_bitmap(self, software_bitmap: typing.Optional[windows_graphics_imaging.SoftwareBitmap], /) -> None: ...
|
|
56
56
|
@typing.overload
|
|
57
|
-
def set_drag_u_i_content_from_software_bitmap(self, software_bitmap: typing.Optional[
|
|
57
|
+
def set_drag_u_i_content_from_software_bitmap(self, software_bitmap: typing.Optional[windows_graphics_imaging.SoftwareBitmap], anchor_point: windows_foundation.Point, /) -> None: ...
|
|
58
58
|
def set_pointer_id(self, pointer_id: winrt.system.UInt32, /) -> None: ...
|
|
59
|
-
def start_async(self) ->
|
|
59
|
+
def start_async(self) -> windows_foundation.IAsyncOperation[windows_applicationmodel_datatransfer.DataPackageOperation]: ...
|
|
60
60
|
@_property
|
|
61
61
|
def drag_u_i_content_mode(self) -> CoreDragUIContentMode: ...
|
|
62
62
|
@drag_u_i_content_mode.setter
|
|
63
63
|
def drag_u_i_content_mode(self, value: CoreDragUIContentMode) -> None: ...
|
|
64
64
|
@_property
|
|
65
|
-
def data(self) -> typing.Optional[
|
|
65
|
+
def data(self) -> typing.Optional[windows_applicationmodel_datatransfer.DataPackage]: ...
|
|
66
66
|
@_property
|
|
67
|
-
def allowed_operations(self) ->
|
|
67
|
+
def allowed_operations(self) -> windows_applicationmodel_datatransfer.DataPackageOperation: ...
|
|
68
68
|
@allowed_operations.setter
|
|
69
|
-
def allowed_operations(self, value:
|
|
69
|
+
def allowed_operations(self, value: windows_applicationmodel_datatransfer.DataPackageOperation) -> None: ...
|
|
70
70
|
|
|
71
71
|
@typing.final
|
|
72
72
|
class CoreDragUIOverride(winrt.system.Object):
|
|
@@ -74,9 +74,9 @@ class CoreDragUIOverride(winrt.system.Object):
|
|
|
74
74
|
def _from(obj: winrt.system.Object, /) -> CoreDragUIOverride: ...
|
|
75
75
|
def clear(self) -> None: ...
|
|
76
76
|
@typing.overload
|
|
77
|
-
def set_content_from_software_bitmap(self, software_bitmap: typing.Optional[
|
|
77
|
+
def set_content_from_software_bitmap(self, software_bitmap: typing.Optional[windows_graphics_imaging.SoftwareBitmap], /) -> None: ...
|
|
78
78
|
@typing.overload
|
|
79
|
-
def set_content_from_software_bitmap(self, software_bitmap: typing.Optional[
|
|
79
|
+
def set_content_from_software_bitmap(self, software_bitmap: typing.Optional[windows_graphics_imaging.SoftwareBitmap], anchor_point: windows_foundation.Point, /) -> None: ...
|
|
80
80
|
@_property
|
|
81
81
|
def is_glyph_visible(self) -> bool: ...
|
|
82
82
|
@is_glyph_visible.setter
|
|
@@ -104,8 +104,8 @@ class CoreDropOperationTargetRequestedEventArgs(winrt.system.Object):
|
|
|
104
104
|
class ICoreDropOperationTarget(winrt.system.Object):
|
|
105
105
|
@staticmethod
|
|
106
106
|
def _from(obj: winrt.system.Object, /) -> ICoreDropOperationTarget: ...
|
|
107
|
-
def drop_async(self, drag_info: typing.Optional[CoreDragInfo], /) ->
|
|
108
|
-
def enter_async(self, drag_info: typing.Optional[CoreDragInfo], drag_u_i_override: typing.Optional[CoreDragUIOverride], /) ->
|
|
109
|
-
def leave_async(self, drag_info: typing.Optional[CoreDragInfo], /) ->
|
|
110
|
-
def over_async(self, drag_info: typing.Optional[CoreDragInfo], drag_u_i_override: typing.Optional[CoreDragUIOverride], /) ->
|
|
107
|
+
def drop_async(self, drag_info: typing.Optional[CoreDragInfo], /) -> windows_foundation.IAsyncOperation[windows_applicationmodel_datatransfer.DataPackageOperation]: ...
|
|
108
|
+
def enter_async(self, drag_info: typing.Optional[CoreDragInfo], drag_u_i_override: typing.Optional[CoreDragUIOverride], /) -> windows_foundation.IAsyncOperation[windows_applicationmodel_datatransfer.DataPackageOperation]: ...
|
|
109
|
+
def leave_async(self, drag_info: typing.Optional[CoreDragInfo], /) -> windows_foundation.IAsyncAction: ...
|
|
110
|
+
def over_async(self, drag_info: typing.Optional[CoreDragInfo], drag_u_i_override: typing.Optional[CoreDragUIOverride], /) -> windows_foundation.IAsyncOperation[windows_applicationmodel_datatransfer.DataPackageOperation]: ...
|
|
111
111
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
3
|
import enum
|
|
4
4
|
|
|
@@ -16,7 +16,7 @@ __all__ = [
|
|
|
16
16
|
]
|
|
17
17
|
|
|
18
18
|
class CoreDragUIContentMode(enum.IntFlag):
|
|
19
|
-
AUTO =
|
|
19
|
+
AUTO = 0x0
|
|
20
20
|
DEFERRED = 0x1
|
|
21
21
|
|
|
22
22
|
CoreDragDropManager = _winrt_windows_applicationmodel_datatransfer_dragdrop_core.CoreDragDropManager
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.DataTransfer.DragDrop.Core
|
|
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,7 +12,12 @@ 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.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.ApplicationModel.DataTransfer[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.ApplicationModel.DataTransfer.DragDrop[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Graphics.Imaging[all]==2.1.0; extra == "all"
|
|
16
21
|
|
|
17
22
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
23
|
|
|
@@ -7,6 +7,7 @@ requirements.txt
|
|
|
7
7
|
setup.py
|
|
8
8
|
winrt/_winrt_windows_applicationmodel_datatransfer_dragdrop_core.pyi
|
|
9
9
|
winrt/windows/applicationmodel/datatransfer/dragdrop/core/__init__.py
|
|
10
|
+
winrt/windows/applicationmodel/datatransfer/dragdrop/core/py.typed
|
|
10
11
|
winrt_Windows.ApplicationModel.DataTransfer.DragDrop.Core.egg-info/PKG-INFO
|
|
11
12
|
winrt_Windows.ApplicationModel.DataTransfer.DragDrop.Core.egg-info/SOURCES.txt
|
|
12
13
|
winrt_Windows.ApplicationModel.DataTransfer.DragDrop.Core.egg-info/dependency_links.txt
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
|
|
2
|
-
|
|
3
|
-
winrt-Windows.ApplicationModel.DataTransfer[all]==2.0.0-beta.2
|
|
4
|
-
winrt-Windows.ApplicationModel.DataTransfer.DragDrop[all]==2.0.0-beta.2
|
|
5
|
-
winrt-Windows.Foundation[all]==2.0.0-beta.2
|
|
6
|
-
winrt-Windows.Graphics.Imaging[all]==2.0.0-beta.2
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.0-beta.2
|
|
@@ -1,16 +0,0 @@
|
|
|
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_datatransfer_dragdrop_core",
|
|
10
|
-
sources=["py.Windows.ApplicationModel.DataTransfer.DragDrop.Core.cpp"],
|
|
11
|
-
include_dirs=get_include_dirs(),
|
|
12
|
-
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
-
libraries=["windowsapp"],
|
|
14
|
-
)
|
|
15
|
-
],
|
|
16
|
-
)
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
winrt-runtime==2.0.0-beta.2
|
|
2
|
-
|
|
3
|
-
[all]
|
|
4
|
-
winrt-Windows.ApplicationModel.DataTransfer[all]==2.0.0-beta.2
|
|
5
|
-
winrt-Windows.ApplicationModel.DataTransfer.DragDrop[all]==2.0.0-beta.2
|
|
6
|
-
winrt-Windows.Foundation[all]==2.0.0-beta.2
|
|
7
|
-
winrt-Windows.Graphics.Imaging[all]==2.0.0-beta.2
|
|
File without changes
|
|
File without changes
|
|
File without changes
|