winrt-Windows.ApplicationModel.DataTransfer.DragDrop.Core 2.1.0__tar.gz → 2.2.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.1.0 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.2.0}/PKG-INFO +7 -7
- winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.2.0/all-requirements.txt +6 -0
- {winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.2.0}/py.Windows.ApplicationModel.DataTransfer.DragDrop.Core.cpp +286 -42
- {winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.2.0}/pyproject.toml +3 -2
- winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.2.0}/requirements.txt +2 -2
- {winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.2.0}/winrt/_winrt_windows_applicationmodel_datatransfer_dragdrop_core.pyi +1 -1
- {winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.2.0}/winrt/windows/applicationmodel/datatransfer/dragdrop/core/__init__.py +1 -1
- {winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.2.0}/winrt_Windows.ApplicationModel.DataTransfer.DragDrop.Core.egg-info/PKG-INFO +7 -7
- winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.2.0/winrt_Windows.ApplicationModel.DataTransfer.DragDrop.Core.egg-info/requires.txt +7 -0
- winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0/all-requirements.txt +0 -6
- winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0/pywinrt-version.txt +0 -1
- winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0/winrt_Windows.ApplicationModel.DataTransfer.DragDrop.Core.egg-info/requires.txt +0 -7
- {winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.2.0}/README.md +0 -0
- {winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.2.0}/setup.cfg +0 -0
- {winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.2.0}/setup.py +0 -0
- {winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.2.0}/winrt/windows/applicationmodel/datatransfer/dragdrop/core/py.typed +0 -0
- {winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.2.0}/winrt_Windows.ApplicationModel.DataTransfer.DragDrop.Core.egg-info/SOURCES.txt +0 -0
- {winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.2.0}/winrt_Windows.ApplicationModel.DataTransfer.DragDrop.Core.egg-info/dependency_links.txt +0 -0
- {winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.1.0 → winrt_windows_applicationmodel_datatransfer_dragdrop_core-2.2.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.
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,14 +10,14 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.ApplicationModel.DataTransfer[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.ApplicationModel.DataTransfer.DragDrop[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
20
|
-
Requires-Dist: winrt-Windows.Graphics.Imaging[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.ApplicationModel.DataTransfer[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.ApplicationModel.DataTransfer.DragDrop[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Graphics.Imaging[all]==2.2.0; extra == "all"
|
|
21
21
|
|
|
22
22
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
23
23
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
|
+
|
|
3
|
+
winrt-Windows.ApplicationModel.DataTransfer[all]==2.2.0
|
|
4
|
+
winrt-Windows.ApplicationModel.DataTransfer.DragDrop[all]==2.2.0
|
|
5
|
+
winrt-Windows.Foundation[all]==2.2.0
|
|
6
|
+
winrt-Windows.Graphics.Imaging[all]==2.2.0
|
|
@@ -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.2.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.ApplicationModel.DataTransfer.DragDrop.Core.h"
|
|
4
4
|
|
|
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
29
29
|
{
|
|
30
30
|
try
|
|
31
31
|
{
|
|
32
|
-
|
|
32
|
+
static std::optional<bool> is_overload_present{};
|
|
33
|
+
|
|
34
|
+
if (!is_overload_present.has_value())
|
|
35
|
+
{
|
|
36
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager", L"GetForCurrentView", 0);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (!is_overload_present.value())
|
|
33
40
|
{
|
|
34
41
|
py::set_arg_count_version_error(0);
|
|
35
42
|
return nullptr;
|
|
@@ -54,7 +61,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
54
61
|
{
|
|
55
62
|
try
|
|
56
63
|
{
|
|
57
|
-
|
|
64
|
+
static std::optional<bool> is_property_present{};
|
|
65
|
+
|
|
66
|
+
if (!is_property_present.has_value())
|
|
67
|
+
{
|
|
68
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager", L"AreConcurrentOperationsEnabled");
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (!is_property_present.value())
|
|
58
72
|
{
|
|
59
73
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
60
74
|
return nullptr;
|
|
@@ -79,7 +93,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
79
93
|
|
|
80
94
|
try
|
|
81
95
|
{
|
|
82
|
-
|
|
96
|
+
static std::optional<bool> is_property_present{};
|
|
97
|
+
|
|
98
|
+
if (!is_property_present.has_value())
|
|
99
|
+
{
|
|
100
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager", L"AreConcurrentOperationsEnabled");
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (!is_property_present.value())
|
|
83
104
|
{
|
|
84
105
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
85
106
|
return -1;
|
|
@@ -101,7 +122,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
101
122
|
{
|
|
102
123
|
try
|
|
103
124
|
{
|
|
104
|
-
|
|
125
|
+
static std::optional<bool> is_event_present{};
|
|
126
|
+
|
|
127
|
+
if (!is_event_present.has_value())
|
|
128
|
+
{
|
|
129
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager", L"TargetRequested");
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
if (!is_event_present.value())
|
|
105
133
|
{
|
|
106
134
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
107
135
|
return nullptr;
|
|
@@ -122,7 +150,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
122
150
|
{
|
|
123
151
|
try
|
|
124
152
|
{
|
|
125
|
-
|
|
153
|
+
static std::optional<bool> is_event_present{};
|
|
154
|
+
|
|
155
|
+
if (!is_event_present.has_value())
|
|
156
|
+
{
|
|
157
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager", L"TargetRequested");
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
if (!is_event_present.value())
|
|
126
161
|
{
|
|
127
162
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
128
163
|
return nullptr;
|
|
@@ -239,7 +274,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
239
274
|
{
|
|
240
275
|
try
|
|
241
276
|
{
|
|
242
|
-
|
|
277
|
+
static std::optional<bool> is_property_present{};
|
|
278
|
+
|
|
279
|
+
if (!is_property_present.has_value())
|
|
280
|
+
{
|
|
281
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragInfo", L"Data");
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
if (!is_property_present.value())
|
|
243
285
|
{
|
|
244
286
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
245
287
|
return nullptr;
|
|
@@ -258,7 +300,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
258
300
|
{
|
|
259
301
|
try
|
|
260
302
|
{
|
|
261
|
-
|
|
303
|
+
static std::optional<bool> is_property_present{};
|
|
304
|
+
|
|
305
|
+
if (!is_property_present.has_value())
|
|
306
|
+
{
|
|
307
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragInfo", L"Modifiers");
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
if (!is_property_present.value())
|
|
262
311
|
{
|
|
263
312
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
264
313
|
return nullptr;
|
|
@@ -277,7 +326,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
277
326
|
{
|
|
278
327
|
try
|
|
279
328
|
{
|
|
280
|
-
|
|
329
|
+
static std::optional<bool> is_property_present{};
|
|
330
|
+
|
|
331
|
+
if (!is_property_present.has_value())
|
|
332
|
+
{
|
|
333
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragInfo", L"Position");
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
if (!is_property_present.value())
|
|
281
337
|
{
|
|
282
338
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
283
339
|
return nullptr;
|
|
@@ -296,7 +352,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
296
352
|
{
|
|
297
353
|
try
|
|
298
354
|
{
|
|
299
|
-
|
|
355
|
+
static std::optional<bool> is_property_present{};
|
|
356
|
+
|
|
357
|
+
if (!is_property_present.has_value())
|
|
358
|
+
{
|
|
359
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragInfo", L"AllowedOperations");
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
if (!is_property_present.value())
|
|
300
363
|
{
|
|
301
364
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
302
365
|
return nullptr;
|
|
@@ -379,7 +442,7 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
379
442
|
{
|
|
380
443
|
try
|
|
381
444
|
{
|
|
382
|
-
winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragOperation instance{
|
|
445
|
+
winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragOperation instance{};
|
|
383
446
|
return py::wrap(instance, type);
|
|
384
447
|
}
|
|
385
448
|
catch (...)
|
|
@@ -411,7 +474,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
411
474
|
{
|
|
412
475
|
try
|
|
413
476
|
{
|
|
414
|
-
|
|
477
|
+
static std::optional<bool> is_overload_present{};
|
|
478
|
+
|
|
479
|
+
if (!is_overload_present.has_value())
|
|
480
|
+
{
|
|
481
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"SetDragUIContentFromSoftwareBitmap", 1);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
if (!is_overload_present.value())
|
|
415
485
|
{
|
|
416
486
|
py::set_arg_count_version_error(1);
|
|
417
487
|
return nullptr;
|
|
@@ -432,7 +502,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
432
502
|
{
|
|
433
503
|
try
|
|
434
504
|
{
|
|
435
|
-
|
|
505
|
+
static std::optional<bool> is_overload_present{};
|
|
506
|
+
|
|
507
|
+
if (!is_overload_present.has_value())
|
|
508
|
+
{
|
|
509
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"SetDragUIContentFromSoftwareBitmap", 2);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
if (!is_overload_present.value())
|
|
436
513
|
{
|
|
437
514
|
py::set_arg_count_version_error(2);
|
|
438
515
|
return nullptr;
|
|
@@ -465,7 +542,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
465
542
|
{
|
|
466
543
|
try
|
|
467
544
|
{
|
|
468
|
-
|
|
545
|
+
static std::optional<bool> is_overload_present{};
|
|
546
|
+
|
|
547
|
+
if (!is_overload_present.has_value())
|
|
548
|
+
{
|
|
549
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"SetPointerId", 1);
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
if (!is_overload_present.value())
|
|
469
553
|
{
|
|
470
554
|
py::set_arg_count_version_error(1);
|
|
471
555
|
return nullptr;
|
|
@@ -497,7 +581,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
497
581
|
{
|
|
498
582
|
try
|
|
499
583
|
{
|
|
500
|
-
|
|
584
|
+
static std::optional<bool> is_overload_present{};
|
|
585
|
+
|
|
586
|
+
if (!is_overload_present.has_value())
|
|
587
|
+
{
|
|
588
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"StartAsync", 0);
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
if (!is_overload_present.value())
|
|
501
592
|
{
|
|
502
593
|
py::set_arg_count_version_error(0);
|
|
503
594
|
return nullptr;
|
|
@@ -522,7 +613,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
522
613
|
{
|
|
523
614
|
try
|
|
524
615
|
{
|
|
525
|
-
|
|
616
|
+
static std::optional<bool> is_property_present{};
|
|
617
|
+
|
|
618
|
+
if (!is_property_present.has_value())
|
|
619
|
+
{
|
|
620
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"DragUIContentMode");
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
if (!is_property_present.value())
|
|
526
624
|
{
|
|
527
625
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
528
626
|
return nullptr;
|
|
@@ -547,7 +645,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
547
645
|
|
|
548
646
|
try
|
|
549
647
|
{
|
|
550
|
-
|
|
648
|
+
static std::optional<bool> is_property_present{};
|
|
649
|
+
|
|
650
|
+
if (!is_property_present.has_value())
|
|
651
|
+
{
|
|
652
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"DragUIContentMode");
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
if (!is_property_present.value())
|
|
551
656
|
{
|
|
552
657
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
553
658
|
return -1;
|
|
@@ -569,7 +674,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
569
674
|
{
|
|
570
675
|
try
|
|
571
676
|
{
|
|
572
|
-
|
|
677
|
+
static std::optional<bool> is_property_present{};
|
|
678
|
+
|
|
679
|
+
if (!is_property_present.has_value())
|
|
680
|
+
{
|
|
681
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"Data");
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
if (!is_property_present.value())
|
|
573
685
|
{
|
|
574
686
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
575
687
|
return nullptr;
|
|
@@ -588,7 +700,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
588
700
|
{
|
|
589
701
|
try
|
|
590
702
|
{
|
|
591
|
-
|
|
703
|
+
static std::optional<bool> is_property_present{};
|
|
704
|
+
|
|
705
|
+
if (!is_property_present.has_value())
|
|
706
|
+
{
|
|
707
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"AllowedOperations");
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
if (!is_property_present.value())
|
|
592
711
|
{
|
|
593
712
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
594
713
|
return nullptr;
|
|
@@ -613,7 +732,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
613
732
|
|
|
614
733
|
try
|
|
615
734
|
{
|
|
616
|
-
|
|
735
|
+
static std::optional<bool> is_property_present{};
|
|
736
|
+
|
|
737
|
+
if (!is_property_present.has_value())
|
|
738
|
+
{
|
|
739
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation", L"AllowedOperations");
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
if (!is_property_present.value())
|
|
617
743
|
{
|
|
618
744
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
619
745
|
return -1;
|
|
@@ -711,7 +837,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
711
837
|
{
|
|
712
838
|
try
|
|
713
839
|
{
|
|
714
|
-
|
|
840
|
+
static std::optional<bool> is_overload_present{};
|
|
841
|
+
|
|
842
|
+
if (!is_overload_present.has_value())
|
|
843
|
+
{
|
|
844
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"Clear", 0);
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
if (!is_overload_present.value())
|
|
715
848
|
{
|
|
716
849
|
py::set_arg_count_version_error(0);
|
|
717
850
|
return nullptr;
|
|
@@ -741,7 +874,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
741
874
|
{
|
|
742
875
|
try
|
|
743
876
|
{
|
|
744
|
-
|
|
877
|
+
static std::optional<bool> is_overload_present{};
|
|
878
|
+
|
|
879
|
+
if (!is_overload_present.has_value())
|
|
880
|
+
{
|
|
881
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"SetContentFromSoftwareBitmap", 1);
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
if (!is_overload_present.value())
|
|
745
885
|
{
|
|
746
886
|
py::set_arg_count_version_error(1);
|
|
747
887
|
return nullptr;
|
|
@@ -762,7 +902,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
762
902
|
{
|
|
763
903
|
try
|
|
764
904
|
{
|
|
765
|
-
|
|
905
|
+
static std::optional<bool> is_overload_present{};
|
|
906
|
+
|
|
907
|
+
if (!is_overload_present.has_value())
|
|
908
|
+
{
|
|
909
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"SetContentFromSoftwareBitmap", 2);
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
if (!is_overload_present.value())
|
|
766
913
|
{
|
|
767
914
|
py::set_arg_count_version_error(2);
|
|
768
915
|
return nullptr;
|
|
@@ -791,7 +938,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
791
938
|
{
|
|
792
939
|
try
|
|
793
940
|
{
|
|
794
|
-
|
|
941
|
+
static std::optional<bool> is_property_present{};
|
|
942
|
+
|
|
943
|
+
if (!is_property_present.has_value())
|
|
944
|
+
{
|
|
945
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"IsGlyphVisible");
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
if (!is_property_present.value())
|
|
795
949
|
{
|
|
796
950
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
797
951
|
return nullptr;
|
|
@@ -816,7 +970,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
816
970
|
|
|
817
971
|
try
|
|
818
972
|
{
|
|
819
|
-
|
|
973
|
+
static std::optional<bool> is_property_present{};
|
|
974
|
+
|
|
975
|
+
if (!is_property_present.has_value())
|
|
976
|
+
{
|
|
977
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"IsGlyphVisible");
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
if (!is_property_present.value())
|
|
820
981
|
{
|
|
821
982
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
822
983
|
return -1;
|
|
@@ -838,7 +999,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
838
999
|
{
|
|
839
1000
|
try
|
|
840
1001
|
{
|
|
841
|
-
|
|
1002
|
+
static std::optional<bool> is_property_present{};
|
|
1003
|
+
|
|
1004
|
+
if (!is_property_present.has_value())
|
|
1005
|
+
{
|
|
1006
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"IsContentVisible");
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
if (!is_property_present.value())
|
|
842
1010
|
{
|
|
843
1011
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
844
1012
|
return nullptr;
|
|
@@ -863,7 +1031,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
863
1031
|
|
|
864
1032
|
try
|
|
865
1033
|
{
|
|
866
|
-
|
|
1034
|
+
static std::optional<bool> is_property_present{};
|
|
1035
|
+
|
|
1036
|
+
if (!is_property_present.has_value())
|
|
1037
|
+
{
|
|
1038
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"IsContentVisible");
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
if (!is_property_present.value())
|
|
867
1042
|
{
|
|
868
1043
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
869
1044
|
return -1;
|
|
@@ -885,7 +1060,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
885
1060
|
{
|
|
886
1061
|
try
|
|
887
1062
|
{
|
|
888
|
-
|
|
1063
|
+
static std::optional<bool> is_property_present{};
|
|
1064
|
+
|
|
1065
|
+
if (!is_property_present.has_value())
|
|
1066
|
+
{
|
|
1067
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"IsCaptionVisible");
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
if (!is_property_present.value())
|
|
889
1071
|
{
|
|
890
1072
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
891
1073
|
return nullptr;
|
|
@@ -910,7 +1092,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
910
1092
|
|
|
911
1093
|
try
|
|
912
1094
|
{
|
|
913
|
-
|
|
1095
|
+
static std::optional<bool> is_property_present{};
|
|
1096
|
+
|
|
1097
|
+
if (!is_property_present.has_value())
|
|
1098
|
+
{
|
|
1099
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"IsCaptionVisible");
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
if (!is_property_present.value())
|
|
914
1103
|
{
|
|
915
1104
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
916
1105
|
return -1;
|
|
@@ -932,7 +1121,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
932
1121
|
{
|
|
933
1122
|
try
|
|
934
1123
|
{
|
|
935
|
-
|
|
1124
|
+
static std::optional<bool> is_property_present{};
|
|
1125
|
+
|
|
1126
|
+
if (!is_property_present.has_value())
|
|
1127
|
+
{
|
|
1128
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"Caption");
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
if (!is_property_present.value())
|
|
936
1132
|
{
|
|
937
1133
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
938
1134
|
return nullptr;
|
|
@@ -957,7 +1153,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
957
1153
|
|
|
958
1154
|
try
|
|
959
1155
|
{
|
|
960
|
-
|
|
1156
|
+
static std::optional<bool> is_property_present{};
|
|
1157
|
+
|
|
1158
|
+
if (!is_property_present.has_value())
|
|
1159
|
+
{
|
|
1160
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride", L"Caption");
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
if (!is_property_present.value())
|
|
961
1164
|
{
|
|
962
1165
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
963
1166
|
return -1;
|
|
@@ -1055,7 +1258,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
1055
1258
|
{
|
|
1056
1259
|
try
|
|
1057
1260
|
{
|
|
1058
|
-
|
|
1261
|
+
static std::optional<bool> is_overload_present{};
|
|
1262
|
+
|
|
1263
|
+
if (!is_overload_present.has_value())
|
|
1264
|
+
{
|
|
1265
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDropOperationTargetRequestedEventArgs", L"SetTarget", 1);
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
if (!is_overload_present.value())
|
|
1059
1269
|
{
|
|
1060
1270
|
py::set_arg_count_version_error(1);
|
|
1061
1271
|
return nullptr;
|
|
@@ -1154,7 +1364,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
1154
1364
|
{
|
|
1155
1365
|
try
|
|
1156
1366
|
{
|
|
1157
|
-
|
|
1367
|
+
static std::optional<bool> is_overload_present{};
|
|
1368
|
+
|
|
1369
|
+
if (!is_overload_present.has_value())
|
|
1370
|
+
{
|
|
1371
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.ICoreDropOperationTarget", L"DropAsync", 1);
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
if (!is_overload_present.value())
|
|
1158
1375
|
{
|
|
1159
1376
|
py::set_arg_count_version_error(1);
|
|
1160
1377
|
return nullptr;
|
|
@@ -1185,7 +1402,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
1185
1402
|
{
|
|
1186
1403
|
try
|
|
1187
1404
|
{
|
|
1188
|
-
|
|
1405
|
+
static std::optional<bool> is_overload_present{};
|
|
1406
|
+
|
|
1407
|
+
if (!is_overload_present.has_value())
|
|
1408
|
+
{
|
|
1409
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.ICoreDropOperationTarget", L"EnterAsync", 2);
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
if (!is_overload_present.value())
|
|
1189
1413
|
{
|
|
1190
1414
|
py::set_arg_count_version_error(2);
|
|
1191
1415
|
return nullptr;
|
|
@@ -1217,7 +1441,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
1217
1441
|
{
|
|
1218
1442
|
try
|
|
1219
1443
|
{
|
|
1220
|
-
|
|
1444
|
+
static std::optional<bool> is_overload_present{};
|
|
1445
|
+
|
|
1446
|
+
if (!is_overload_present.has_value())
|
|
1447
|
+
{
|
|
1448
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.ICoreDropOperationTarget", L"LeaveAsync", 1);
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
if (!is_overload_present.value())
|
|
1221
1452
|
{
|
|
1222
1453
|
py::set_arg_count_version_error(1);
|
|
1223
1454
|
return nullptr;
|
|
@@ -1248,7 +1479,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::DragDrop::Core
|
|
|
1248
1479
|
{
|
|
1249
1480
|
try
|
|
1250
1481
|
{
|
|
1251
|
-
|
|
1482
|
+
static std::optional<bool> is_overload_present{};
|
|
1483
|
+
|
|
1484
|
+
if (!is_overload_present.has_value())
|
|
1485
|
+
{
|
|
1486
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.DragDrop.Core.ICoreDropOperationTarget", L"OverAsync", 2);
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
if (!is_overload_present.value())
|
|
1252
1490
|
{
|
|
1253
1491
|
py::set_arg_count_version_error(2);
|
|
1254
1492
|
return nullptr;
|
|
@@ -1376,32 +1614,38 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_datatransfer_dragdrop_core
|
|
|
1376
1614
|
return nullptr;
|
|
1377
1615
|
}
|
|
1378
1616
|
|
|
1379
|
-
|
|
1617
|
+
py::pytype_handle CoreDragDropManager_type{py::register_python_type(module.get(), &type_spec_CoreDragDropManager, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_CoreDragDropManager_Static.get()))};
|
|
1618
|
+
if (!CoreDragDropManager_type)
|
|
1380
1619
|
{
|
|
1381
1620
|
return nullptr;
|
|
1382
1621
|
}
|
|
1383
1622
|
|
|
1384
|
-
|
|
1623
|
+
py::pytype_handle CoreDragInfo_type{py::register_python_type(module.get(), &type_spec_CoreDragInfo, object_bases.get(), nullptr)};
|
|
1624
|
+
if (!CoreDragInfo_type)
|
|
1385
1625
|
{
|
|
1386
1626
|
return nullptr;
|
|
1387
1627
|
}
|
|
1388
1628
|
|
|
1389
|
-
|
|
1629
|
+
py::pytype_handle CoreDragOperation_type{py::register_python_type(module.get(), &type_spec_CoreDragOperation, object_bases.get(), nullptr)};
|
|
1630
|
+
if (!CoreDragOperation_type)
|
|
1390
1631
|
{
|
|
1391
1632
|
return nullptr;
|
|
1392
1633
|
}
|
|
1393
1634
|
|
|
1394
|
-
|
|
1635
|
+
py::pytype_handle CoreDragUIOverride_type{py::register_python_type(module.get(), &type_spec_CoreDragUIOverride, object_bases.get(), nullptr)};
|
|
1636
|
+
if (!CoreDragUIOverride_type)
|
|
1395
1637
|
{
|
|
1396
1638
|
return nullptr;
|
|
1397
1639
|
}
|
|
1398
1640
|
|
|
1399
|
-
|
|
1641
|
+
py::pytype_handle CoreDropOperationTargetRequestedEventArgs_type{py::register_python_type(module.get(), &type_spec_CoreDropOperationTargetRequestedEventArgs, object_bases.get(), nullptr)};
|
|
1642
|
+
if (!CoreDropOperationTargetRequestedEventArgs_type)
|
|
1400
1643
|
{
|
|
1401
1644
|
return nullptr;
|
|
1402
1645
|
}
|
|
1403
1646
|
|
|
1404
|
-
|
|
1647
|
+
py::pytype_handle ICoreDropOperationTarget_type{py::register_python_type(module.get(), &type_spec_ICoreDropOperationTarget, object_bases.get(), nullptr)};
|
|
1648
|
+
if (!ICoreDropOperationTarget_type)
|
|
1405
1649
|
{
|
|
1406
1650
|
return nullptr;
|
|
1407
1651
|
}
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9,<3.
|
|
19
|
+
requires-python = ">=3.9,<3.14"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
37
|
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
|
-
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
39
|
+
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
|
+
before-build = "uv pip install setuptools"
|
|
40
41
|
# don't build for PyPy
|
|
41
42
|
skip = "pp*"
|
|
42
43
|
# suppress warnings about ARM64 testing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.2.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.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.2.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.DataTransfer.DragDrop.Core
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,14 +10,14 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.ApplicationModel.DataTransfer[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.ApplicationModel.DataTransfer.DragDrop[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
20
|
-
Requires-Dist: winrt-Windows.Graphics.Imaging[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.ApplicationModel.DataTransfer[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.ApplicationModel.DataTransfer.DragDrop[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Graphics.Imaging[all]==2.2.0; extra == "all"
|
|
21
21
|
|
|
22
22
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
23
23
|
|
|
@@ -1,6 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
2.1.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|