winrt-Windows.UI.Composition.Desktop 2.0.1__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_ui_composition_desktop-2.0.1 → winrt_windows_ui_composition_desktop-2.2.0}/PKG-INFO +7 -3
- winrt_windows_ui_composition_desktop-2.2.0/all-requirements.txt +5 -0
- winrt_windows_ui_composition_desktop-2.2.0/py.Windows.UI.Composition.Desktop.cpp +756 -0
- {winrt_windows_ui_composition_desktop-2.0.1 → winrt_windows_ui_composition_desktop-2.2.0}/pyproject.toml +5 -3
- winrt_windows_ui_composition_desktop-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_ui_composition_desktop-2.0.1 → winrt_windows_ui_composition_desktop-2.2.0}/requirements.txt +2 -2
- winrt_windows_ui_composition_desktop-2.2.0/winrt/_winrt_windows_ui_composition_desktop.pyi +54 -0
- {winrt_windows_ui_composition_desktop-2.0.1 → winrt_windows_ui_composition_desktop-2.2.0}/winrt/windows/ui/composition/desktop/__init__.py +1 -1
- {winrt_windows_ui_composition_desktop-2.0.1 → winrt_windows_ui_composition_desktop-2.2.0}/winrt_Windows.UI.Composition.Desktop.egg-info/PKG-INFO +7 -3
- {winrt_windows_ui_composition_desktop-2.0.1 → winrt_windows_ui_composition_desktop-2.2.0}/winrt_Windows.UI.Composition.Desktop.egg-info/SOURCES.txt +1 -0
- winrt_windows_ui_composition_desktop-2.2.0/winrt_Windows.UI.Composition.Desktop.egg-info/requires.txt +6 -0
- winrt_windows_ui_composition_desktop-2.0.1/py.Windows.UI.Composition.Desktop.cpp +0 -150
- winrt_windows_ui_composition_desktop-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_ui_composition_desktop-2.0.1/winrt/_winrt_windows_ui_composition_desktop.pyi +0 -21
- winrt_windows_ui_composition_desktop-2.0.1/winrt_Windows.UI.Composition.Desktop.egg-info/requires.txt +0 -1
- {winrt_windows_ui_composition_desktop-2.0.1 → winrt_windows_ui_composition_desktop-2.2.0}/README.md +0 -0
- {winrt_windows_ui_composition_desktop-2.0.1 → winrt_windows_ui_composition_desktop-2.2.0}/setup.cfg +0 -0
- {winrt_windows_ui_composition_desktop-2.0.1 → winrt_windows_ui_composition_desktop-2.2.0}/setup.py +0 -0
- {winrt_windows_ui_composition_desktop-2.0.1 → winrt_windows_ui_composition_desktop-2.2.0}/winrt/windows/ui/composition/desktop/py.typed +0 -0
- {winrt_windows_ui_composition_desktop-2.0.1 → winrt_windows_ui_composition_desktop-2.2.0}/winrt_Windows.UI.Composition.Desktop.egg-info/dependency_links.txt +0 -0
- {winrt_windows_ui_composition_desktop-2.0.1 → winrt_windows_ui_composition_desktop-2.2.0}/winrt_Windows.UI.Composition.Desktop.egg-info/top_level.txt +0 -0
{winrt_windows_ui_composition_desktop-2.0.1 → winrt_windows_ui_composition_desktop-2.2.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.UI.Composition.Desktop
|
|
3
|
-
Version: 2.0
|
|
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,9 +10,13 @@ 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.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
|
+
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.System[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.UI.Composition[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.UI.Core[all]==2.2.0; extra == "all"
|
|
16
20
|
|
|
17
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
22
|
|
|
@@ -0,0 +1,756 @@
|
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
|
+
|
|
3
|
+
#include "py.Windows.UI.Composition.Desktop.h"
|
|
4
|
+
|
|
5
|
+
namespace py::cpp::Windows::UI::Composition::Desktop
|
|
6
|
+
{
|
|
7
|
+
// ----- DesktopWindowTarget class --------------------
|
|
8
|
+
|
|
9
|
+
static PyObject* _new_DesktopWindowTarget(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
10
|
+
{
|
|
11
|
+
static_assert(py::py_type<winrt::Windows::UI::Composition::Desktop::DesktopWindowTarget>::type_name);
|
|
12
|
+
py::set_invalid_activation_error(py::py_type<winrt::Windows::UI::Composition::Desktop::DesktopWindowTarget>::type_name);
|
|
13
|
+
return nullptr;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
static void _dealloc_DesktopWindowTarget(py::wrapper::Windows::UI::Composition::Desktop::DesktopWindowTarget* self) noexcept
|
|
17
|
+
{
|
|
18
|
+
auto tp = Py_TYPE(self);
|
|
19
|
+
std::destroy_at(&self->obj);
|
|
20
|
+
tp->tp_free(self);
|
|
21
|
+
Py_DECREF(tp);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
static PyObject* DesktopWindowTarget_Close(py::wrapper::Windows::UI::Composition::Desktop::DesktopWindowTarget* self, PyObject* args) noexcept
|
|
25
|
+
{
|
|
26
|
+
auto arg_count = PyTuple_Size(args);
|
|
27
|
+
|
|
28
|
+
if (arg_count == 0)
|
|
29
|
+
{
|
|
30
|
+
try
|
|
31
|
+
{
|
|
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.UI.Composition.CompositionObject", L"Close", 0);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (!is_overload_present.value())
|
|
40
|
+
{
|
|
41
|
+
py::set_arg_count_version_error(0);
|
|
42
|
+
return nullptr;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
self->obj.Close();
|
|
46
|
+
Py_RETURN_NONE;
|
|
47
|
+
}
|
|
48
|
+
catch (...)
|
|
49
|
+
{
|
|
50
|
+
py::to_PyErr();
|
|
51
|
+
return nullptr;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
else
|
|
55
|
+
{
|
|
56
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
57
|
+
return nullptr;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
static PyObject* DesktopWindowTarget_PopulatePropertyInfo(py::wrapper::Windows::UI::Composition::Desktop::DesktopWindowTarget* self, PyObject* args) noexcept
|
|
62
|
+
{
|
|
63
|
+
auto arg_count = PyTuple_Size(args);
|
|
64
|
+
|
|
65
|
+
if (arg_count == 2)
|
|
66
|
+
{
|
|
67
|
+
try
|
|
68
|
+
{
|
|
69
|
+
static std::optional<bool> is_overload_present{};
|
|
70
|
+
|
|
71
|
+
if (!is_overload_present.has_value())
|
|
72
|
+
{
|
|
73
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Composition.CompositionObject", L"PopulatePropertyInfo", 2);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (!is_overload_present.value())
|
|
77
|
+
{
|
|
78
|
+
py::set_arg_count_version_error(2);
|
|
79
|
+
return nullptr;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
83
|
+
auto param1 = py::convert_to<winrt::Windows::UI::Composition::AnimationPropertyInfo>(args, 1);
|
|
84
|
+
|
|
85
|
+
self->obj.PopulatePropertyInfo(param0, param1);
|
|
86
|
+
Py_RETURN_NONE;
|
|
87
|
+
}
|
|
88
|
+
catch (...)
|
|
89
|
+
{
|
|
90
|
+
py::to_PyErr();
|
|
91
|
+
return nullptr;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
else
|
|
95
|
+
{
|
|
96
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
97
|
+
return nullptr;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
static PyObject* DesktopWindowTarget_StartAnimation(py::wrapper::Windows::UI::Composition::Desktop::DesktopWindowTarget* self, PyObject* args) noexcept
|
|
102
|
+
{
|
|
103
|
+
auto arg_count = PyTuple_Size(args);
|
|
104
|
+
|
|
105
|
+
if (arg_count == 2)
|
|
106
|
+
{
|
|
107
|
+
try
|
|
108
|
+
{
|
|
109
|
+
static std::optional<bool> is_overload_present{};
|
|
110
|
+
|
|
111
|
+
if (!is_overload_present.has_value())
|
|
112
|
+
{
|
|
113
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Composition.CompositionObject", L"StartAnimation", 2);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
if (!is_overload_present.value())
|
|
117
|
+
{
|
|
118
|
+
py::set_arg_count_version_error(2);
|
|
119
|
+
return nullptr;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
123
|
+
auto param1 = py::convert_to<winrt::Windows::UI::Composition::CompositionAnimation>(args, 1);
|
|
124
|
+
|
|
125
|
+
self->obj.StartAnimation(param0, param1);
|
|
126
|
+
Py_RETURN_NONE;
|
|
127
|
+
}
|
|
128
|
+
catch (...)
|
|
129
|
+
{
|
|
130
|
+
py::to_PyErr();
|
|
131
|
+
return nullptr;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
else if (arg_count == 3)
|
|
135
|
+
{
|
|
136
|
+
try
|
|
137
|
+
{
|
|
138
|
+
static std::optional<bool> is_overload_present{};
|
|
139
|
+
|
|
140
|
+
if (!is_overload_present.has_value())
|
|
141
|
+
{
|
|
142
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Composition.CompositionObject", L"StartAnimation", 3);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
if (!is_overload_present.value())
|
|
146
|
+
{
|
|
147
|
+
py::set_arg_count_version_error(3);
|
|
148
|
+
return nullptr;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
152
|
+
auto param1 = py::convert_to<winrt::Windows::UI::Composition::CompositionAnimation>(args, 1);
|
|
153
|
+
auto param2 = py::convert_to<winrt::Windows::UI::Composition::AnimationController>(args, 2);
|
|
154
|
+
|
|
155
|
+
self->obj.StartAnimation(param0, param1, param2);
|
|
156
|
+
Py_RETURN_NONE;
|
|
157
|
+
}
|
|
158
|
+
catch (...)
|
|
159
|
+
{
|
|
160
|
+
py::to_PyErr();
|
|
161
|
+
return nullptr;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
else
|
|
165
|
+
{
|
|
166
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
167
|
+
return nullptr;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
static PyObject* DesktopWindowTarget_StartAnimationGroup(py::wrapper::Windows::UI::Composition::Desktop::DesktopWindowTarget* self, PyObject* args) noexcept
|
|
172
|
+
{
|
|
173
|
+
auto arg_count = PyTuple_Size(args);
|
|
174
|
+
|
|
175
|
+
if (arg_count == 1)
|
|
176
|
+
{
|
|
177
|
+
try
|
|
178
|
+
{
|
|
179
|
+
static std::optional<bool> is_overload_present{};
|
|
180
|
+
|
|
181
|
+
if (!is_overload_present.has_value())
|
|
182
|
+
{
|
|
183
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Composition.CompositionObject", L"StartAnimationGroup", 1);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
if (!is_overload_present.value())
|
|
187
|
+
{
|
|
188
|
+
py::set_arg_count_version_error(1);
|
|
189
|
+
return nullptr;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
auto param0 = py::convert_to<winrt::Windows::UI::Composition::ICompositionAnimationBase>(args, 0);
|
|
193
|
+
|
|
194
|
+
self->obj.StartAnimationGroup(param0);
|
|
195
|
+
Py_RETURN_NONE;
|
|
196
|
+
}
|
|
197
|
+
catch (...)
|
|
198
|
+
{
|
|
199
|
+
py::to_PyErr();
|
|
200
|
+
return nullptr;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
else
|
|
204
|
+
{
|
|
205
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
206
|
+
return nullptr;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
static PyObject* DesktopWindowTarget_StopAnimation(py::wrapper::Windows::UI::Composition::Desktop::DesktopWindowTarget* self, PyObject* args) noexcept
|
|
211
|
+
{
|
|
212
|
+
auto arg_count = PyTuple_Size(args);
|
|
213
|
+
|
|
214
|
+
if (arg_count == 1)
|
|
215
|
+
{
|
|
216
|
+
try
|
|
217
|
+
{
|
|
218
|
+
static std::optional<bool> is_overload_present{};
|
|
219
|
+
|
|
220
|
+
if (!is_overload_present.has_value())
|
|
221
|
+
{
|
|
222
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Composition.CompositionObject", L"StopAnimation", 1);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
if (!is_overload_present.value())
|
|
226
|
+
{
|
|
227
|
+
py::set_arg_count_version_error(1);
|
|
228
|
+
return nullptr;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
232
|
+
|
|
233
|
+
self->obj.StopAnimation(param0);
|
|
234
|
+
Py_RETURN_NONE;
|
|
235
|
+
}
|
|
236
|
+
catch (...)
|
|
237
|
+
{
|
|
238
|
+
py::to_PyErr();
|
|
239
|
+
return nullptr;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
else
|
|
243
|
+
{
|
|
244
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
245
|
+
return nullptr;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
static PyObject* DesktopWindowTarget_StopAnimationGroup(py::wrapper::Windows::UI::Composition::Desktop::DesktopWindowTarget* self, PyObject* args) noexcept
|
|
250
|
+
{
|
|
251
|
+
auto arg_count = PyTuple_Size(args);
|
|
252
|
+
|
|
253
|
+
if (arg_count == 1)
|
|
254
|
+
{
|
|
255
|
+
try
|
|
256
|
+
{
|
|
257
|
+
static std::optional<bool> is_overload_present{};
|
|
258
|
+
|
|
259
|
+
if (!is_overload_present.has_value())
|
|
260
|
+
{
|
|
261
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Composition.CompositionObject", L"StopAnimationGroup", 1);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
if (!is_overload_present.value())
|
|
265
|
+
{
|
|
266
|
+
py::set_arg_count_version_error(1);
|
|
267
|
+
return nullptr;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
auto param0 = py::convert_to<winrt::Windows::UI::Composition::ICompositionAnimationBase>(args, 0);
|
|
271
|
+
|
|
272
|
+
self->obj.StopAnimationGroup(param0);
|
|
273
|
+
Py_RETURN_NONE;
|
|
274
|
+
}
|
|
275
|
+
catch (...)
|
|
276
|
+
{
|
|
277
|
+
py::to_PyErr();
|
|
278
|
+
return nullptr;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
else
|
|
282
|
+
{
|
|
283
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
284
|
+
return nullptr;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
static PyObject* DesktopWindowTarget_TryGetAnimationController(py::wrapper::Windows::UI::Composition::Desktop::DesktopWindowTarget* self, PyObject* args) noexcept
|
|
289
|
+
{
|
|
290
|
+
auto arg_count = PyTuple_Size(args);
|
|
291
|
+
|
|
292
|
+
if (arg_count == 1)
|
|
293
|
+
{
|
|
294
|
+
try
|
|
295
|
+
{
|
|
296
|
+
static std::optional<bool> is_overload_present{};
|
|
297
|
+
|
|
298
|
+
if (!is_overload_present.has_value())
|
|
299
|
+
{
|
|
300
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Composition.CompositionObject", L"TryGetAnimationController", 1);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
if (!is_overload_present.value())
|
|
304
|
+
{
|
|
305
|
+
py::set_arg_count_version_error(1);
|
|
306
|
+
return nullptr;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
310
|
+
|
|
311
|
+
return py::convert(self->obj.TryGetAnimationController(param0));
|
|
312
|
+
}
|
|
313
|
+
catch (...)
|
|
314
|
+
{
|
|
315
|
+
py::to_PyErr();
|
|
316
|
+
return nullptr;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
else
|
|
320
|
+
{
|
|
321
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
322
|
+
return nullptr;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
static PyObject* DesktopWindowTarget_get_IsTopmost(py::wrapper::Windows::UI::Composition::Desktop::DesktopWindowTarget* self, void* /*unused*/) noexcept
|
|
327
|
+
{
|
|
328
|
+
try
|
|
329
|
+
{
|
|
330
|
+
static std::optional<bool> is_property_present{};
|
|
331
|
+
|
|
332
|
+
if (!is_property_present.has_value())
|
|
333
|
+
{
|
|
334
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Desktop.DesktopWindowTarget", L"IsTopmost");
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
if (!is_property_present.value())
|
|
338
|
+
{
|
|
339
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
340
|
+
return nullptr;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
return py::convert(self->obj.IsTopmost());
|
|
344
|
+
}
|
|
345
|
+
catch (...)
|
|
346
|
+
{
|
|
347
|
+
py::to_PyErr();
|
|
348
|
+
return nullptr;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
static PyObject* DesktopWindowTarget_get_Root(py::wrapper::Windows::UI::Composition::Desktop::DesktopWindowTarget* self, void* /*unused*/) noexcept
|
|
353
|
+
{
|
|
354
|
+
try
|
|
355
|
+
{
|
|
356
|
+
static std::optional<bool> is_property_present{};
|
|
357
|
+
|
|
358
|
+
if (!is_property_present.has_value())
|
|
359
|
+
{
|
|
360
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.CompositionTarget", L"Root");
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
if (!is_property_present.value())
|
|
364
|
+
{
|
|
365
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
366
|
+
return nullptr;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
return py::convert(self->obj.Root());
|
|
370
|
+
}
|
|
371
|
+
catch (...)
|
|
372
|
+
{
|
|
373
|
+
py::to_PyErr();
|
|
374
|
+
return nullptr;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
static int DesktopWindowTarget_put_Root(py::wrapper::Windows::UI::Composition::Desktop::DesktopWindowTarget* self, PyObject* arg, void* /*unused*/) noexcept
|
|
379
|
+
{
|
|
380
|
+
if (arg == nullptr)
|
|
381
|
+
{
|
|
382
|
+
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
383
|
+
return -1;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
try
|
|
387
|
+
{
|
|
388
|
+
static std::optional<bool> is_property_present{};
|
|
389
|
+
|
|
390
|
+
if (!is_property_present.has_value())
|
|
391
|
+
{
|
|
392
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.CompositionTarget", L"Root");
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
if (!is_property_present.value())
|
|
396
|
+
{
|
|
397
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
398
|
+
return -1;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
auto param0 = py::convert_to<winrt::Windows::UI::Composition::Visual>(arg);
|
|
402
|
+
|
|
403
|
+
self->obj.Root(param0);
|
|
404
|
+
return 0;
|
|
405
|
+
}
|
|
406
|
+
catch (...)
|
|
407
|
+
{
|
|
408
|
+
py::to_PyErr();
|
|
409
|
+
return -1;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
static PyObject* DesktopWindowTarget_get_Compositor(py::wrapper::Windows::UI::Composition::Desktop::DesktopWindowTarget* self, void* /*unused*/) noexcept
|
|
414
|
+
{
|
|
415
|
+
try
|
|
416
|
+
{
|
|
417
|
+
static std::optional<bool> is_property_present{};
|
|
418
|
+
|
|
419
|
+
if (!is_property_present.has_value())
|
|
420
|
+
{
|
|
421
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.CompositionObject", L"Compositor");
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
if (!is_property_present.value())
|
|
425
|
+
{
|
|
426
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
427
|
+
return nullptr;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
return py::convert(self->obj.Compositor());
|
|
431
|
+
}
|
|
432
|
+
catch (...)
|
|
433
|
+
{
|
|
434
|
+
py::to_PyErr();
|
|
435
|
+
return nullptr;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
static PyObject* DesktopWindowTarget_get_Dispatcher(py::wrapper::Windows::UI::Composition::Desktop::DesktopWindowTarget* self, void* /*unused*/) noexcept
|
|
440
|
+
{
|
|
441
|
+
try
|
|
442
|
+
{
|
|
443
|
+
static std::optional<bool> is_property_present{};
|
|
444
|
+
|
|
445
|
+
if (!is_property_present.has_value())
|
|
446
|
+
{
|
|
447
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.CompositionObject", L"Dispatcher");
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
if (!is_property_present.value())
|
|
451
|
+
{
|
|
452
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
453
|
+
return nullptr;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
return py::convert(self->obj.Dispatcher());
|
|
457
|
+
}
|
|
458
|
+
catch (...)
|
|
459
|
+
{
|
|
460
|
+
py::to_PyErr();
|
|
461
|
+
return nullptr;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
static PyObject* DesktopWindowTarget_get_Properties(py::wrapper::Windows::UI::Composition::Desktop::DesktopWindowTarget* self, void* /*unused*/) noexcept
|
|
466
|
+
{
|
|
467
|
+
try
|
|
468
|
+
{
|
|
469
|
+
static std::optional<bool> is_property_present{};
|
|
470
|
+
|
|
471
|
+
if (!is_property_present.has_value())
|
|
472
|
+
{
|
|
473
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.CompositionObject", L"Properties");
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
if (!is_property_present.value())
|
|
477
|
+
{
|
|
478
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
479
|
+
return nullptr;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
return py::convert(self->obj.Properties());
|
|
483
|
+
}
|
|
484
|
+
catch (...)
|
|
485
|
+
{
|
|
486
|
+
py::to_PyErr();
|
|
487
|
+
return nullptr;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
static PyObject* DesktopWindowTarget_get_ImplicitAnimations(py::wrapper::Windows::UI::Composition::Desktop::DesktopWindowTarget* self, void* /*unused*/) noexcept
|
|
492
|
+
{
|
|
493
|
+
try
|
|
494
|
+
{
|
|
495
|
+
static std::optional<bool> is_property_present{};
|
|
496
|
+
|
|
497
|
+
if (!is_property_present.has_value())
|
|
498
|
+
{
|
|
499
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.CompositionObject", L"ImplicitAnimations");
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
if (!is_property_present.value())
|
|
503
|
+
{
|
|
504
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
505
|
+
return nullptr;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
return py::convert(self->obj.ImplicitAnimations());
|
|
509
|
+
}
|
|
510
|
+
catch (...)
|
|
511
|
+
{
|
|
512
|
+
py::to_PyErr();
|
|
513
|
+
return nullptr;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
static int DesktopWindowTarget_put_ImplicitAnimations(py::wrapper::Windows::UI::Composition::Desktop::DesktopWindowTarget* self, PyObject* arg, void* /*unused*/) noexcept
|
|
518
|
+
{
|
|
519
|
+
if (arg == nullptr)
|
|
520
|
+
{
|
|
521
|
+
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
522
|
+
return -1;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
try
|
|
526
|
+
{
|
|
527
|
+
static std::optional<bool> is_property_present{};
|
|
528
|
+
|
|
529
|
+
if (!is_property_present.has_value())
|
|
530
|
+
{
|
|
531
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.CompositionObject", L"ImplicitAnimations");
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
if (!is_property_present.value())
|
|
535
|
+
{
|
|
536
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
537
|
+
return -1;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
auto param0 = py::convert_to<winrt::Windows::UI::Composition::ImplicitAnimationCollection>(arg);
|
|
541
|
+
|
|
542
|
+
self->obj.ImplicitAnimations(param0);
|
|
543
|
+
return 0;
|
|
544
|
+
}
|
|
545
|
+
catch (...)
|
|
546
|
+
{
|
|
547
|
+
py::to_PyErr();
|
|
548
|
+
return -1;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
static PyObject* DesktopWindowTarget_get_Comment(py::wrapper::Windows::UI::Composition::Desktop::DesktopWindowTarget* self, void* /*unused*/) noexcept
|
|
553
|
+
{
|
|
554
|
+
try
|
|
555
|
+
{
|
|
556
|
+
static std::optional<bool> is_property_present{};
|
|
557
|
+
|
|
558
|
+
if (!is_property_present.has_value())
|
|
559
|
+
{
|
|
560
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.CompositionObject", L"Comment");
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
if (!is_property_present.value())
|
|
564
|
+
{
|
|
565
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
566
|
+
return nullptr;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
return py::convert(self->obj.Comment());
|
|
570
|
+
}
|
|
571
|
+
catch (...)
|
|
572
|
+
{
|
|
573
|
+
py::to_PyErr();
|
|
574
|
+
return nullptr;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
static int DesktopWindowTarget_put_Comment(py::wrapper::Windows::UI::Composition::Desktop::DesktopWindowTarget* self, PyObject* arg, void* /*unused*/) noexcept
|
|
579
|
+
{
|
|
580
|
+
if (arg == nullptr)
|
|
581
|
+
{
|
|
582
|
+
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
583
|
+
return -1;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
try
|
|
587
|
+
{
|
|
588
|
+
static std::optional<bool> is_property_present{};
|
|
589
|
+
|
|
590
|
+
if (!is_property_present.has_value())
|
|
591
|
+
{
|
|
592
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.CompositionObject", L"Comment");
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
if (!is_property_present.value())
|
|
596
|
+
{
|
|
597
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
598
|
+
return -1;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
602
|
+
|
|
603
|
+
self->obj.Comment(param0);
|
|
604
|
+
return 0;
|
|
605
|
+
}
|
|
606
|
+
catch (...)
|
|
607
|
+
{
|
|
608
|
+
py::to_PyErr();
|
|
609
|
+
return -1;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
static PyObject* DesktopWindowTarget_get_DispatcherQueue(py::wrapper::Windows::UI::Composition::Desktop::DesktopWindowTarget* self, void* /*unused*/) noexcept
|
|
614
|
+
{
|
|
615
|
+
try
|
|
616
|
+
{
|
|
617
|
+
static std::optional<bool> is_property_present{};
|
|
618
|
+
|
|
619
|
+
if (!is_property_present.has_value())
|
|
620
|
+
{
|
|
621
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.CompositionObject", L"DispatcherQueue");
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
if (!is_property_present.value())
|
|
625
|
+
{
|
|
626
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
627
|
+
return nullptr;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
return py::convert(self->obj.DispatcherQueue());
|
|
631
|
+
}
|
|
632
|
+
catch (...)
|
|
633
|
+
{
|
|
634
|
+
py::to_PyErr();
|
|
635
|
+
return nullptr;
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
static PyObject* _assign_array_DesktopWindowTarget(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
640
|
+
{
|
|
641
|
+
auto array = std::make_unique<py::ComArray<winrt::Windows::UI::Composition::Desktop::DesktopWindowTarget>>();
|
|
642
|
+
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
643
|
+
{
|
|
644
|
+
return nullptr;
|
|
645
|
+
}
|
|
646
|
+
Py_RETURN_NONE;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
static PyObject* _from_DesktopWindowTarget(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
650
|
+
{
|
|
651
|
+
try
|
|
652
|
+
{
|
|
653
|
+
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
654
|
+
return py::convert(return_value.as<winrt::Windows::UI::Composition::Desktop::DesktopWindowTarget>());
|
|
655
|
+
}
|
|
656
|
+
catch (...)
|
|
657
|
+
{
|
|
658
|
+
py::to_PyErr();
|
|
659
|
+
return nullptr;
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
static PyMethodDef _methods_DesktopWindowTarget[] = {
|
|
664
|
+
{ "close", reinterpret_cast<PyCFunction>(DesktopWindowTarget_Close), METH_VARARGS, nullptr },
|
|
665
|
+
{ "populate_property_info", reinterpret_cast<PyCFunction>(DesktopWindowTarget_PopulatePropertyInfo), METH_VARARGS, nullptr },
|
|
666
|
+
{ "start_animation", reinterpret_cast<PyCFunction>(DesktopWindowTarget_StartAnimation), METH_VARARGS, nullptr },
|
|
667
|
+
{ "start_animation_group", reinterpret_cast<PyCFunction>(DesktopWindowTarget_StartAnimationGroup), METH_VARARGS, nullptr },
|
|
668
|
+
{ "stop_animation", reinterpret_cast<PyCFunction>(DesktopWindowTarget_StopAnimation), METH_VARARGS, nullptr },
|
|
669
|
+
{ "stop_animation_group", reinterpret_cast<PyCFunction>(DesktopWindowTarget_StopAnimationGroup), METH_VARARGS, nullptr },
|
|
670
|
+
{ "try_get_animation_controller", reinterpret_cast<PyCFunction>(DesktopWindowTarget_TryGetAnimationController), METH_VARARGS, nullptr },
|
|
671
|
+
{ "_assign_array_", _assign_array_DesktopWindowTarget, METH_O | METH_STATIC, nullptr },
|
|
672
|
+
{ "_from", reinterpret_cast<PyCFunction>(_from_DesktopWindowTarget), METH_O | METH_STATIC, nullptr },
|
|
673
|
+
{ }
|
|
674
|
+
};
|
|
675
|
+
|
|
676
|
+
static PyGetSetDef _getset_DesktopWindowTarget[] = {
|
|
677
|
+
{ "is_topmost", reinterpret_cast<getter>(DesktopWindowTarget_get_IsTopmost), nullptr, nullptr, nullptr },
|
|
678
|
+
{ "root", reinterpret_cast<getter>(DesktopWindowTarget_get_Root), reinterpret_cast<setter>(DesktopWindowTarget_put_Root), nullptr, nullptr },
|
|
679
|
+
{ "compositor", reinterpret_cast<getter>(DesktopWindowTarget_get_Compositor), nullptr, nullptr, nullptr },
|
|
680
|
+
{ "dispatcher", reinterpret_cast<getter>(DesktopWindowTarget_get_Dispatcher), nullptr, nullptr, nullptr },
|
|
681
|
+
{ "properties", reinterpret_cast<getter>(DesktopWindowTarget_get_Properties), nullptr, nullptr, nullptr },
|
|
682
|
+
{ "implicit_animations", reinterpret_cast<getter>(DesktopWindowTarget_get_ImplicitAnimations), reinterpret_cast<setter>(DesktopWindowTarget_put_ImplicitAnimations), nullptr, nullptr },
|
|
683
|
+
{ "comment", reinterpret_cast<getter>(DesktopWindowTarget_get_Comment), reinterpret_cast<setter>(DesktopWindowTarget_put_Comment), nullptr, nullptr },
|
|
684
|
+
{ "dispatcher_queue", reinterpret_cast<getter>(DesktopWindowTarget_get_DispatcherQueue), nullptr, nullptr, nullptr },
|
|
685
|
+
{ }
|
|
686
|
+
};
|
|
687
|
+
|
|
688
|
+
static PyType_Slot _type_slots_DesktopWindowTarget[] = {
|
|
689
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_DesktopWindowTarget) },
|
|
690
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DesktopWindowTarget) },
|
|
691
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_DesktopWindowTarget) },
|
|
692
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_DesktopWindowTarget) },
|
|
693
|
+
{ }
|
|
694
|
+
};
|
|
695
|
+
|
|
696
|
+
static PyType_Spec type_spec_DesktopWindowTarget = {
|
|
697
|
+
"winrt._winrt_windows_ui_composition_desktop.DesktopWindowTarget",
|
|
698
|
+
sizeof(py::wrapper::Windows::UI::Composition::Desktop::DesktopWindowTarget),
|
|
699
|
+
0,
|
|
700
|
+
Py_TPFLAGS_DEFAULT,
|
|
701
|
+
_type_slots_DesktopWindowTarget};
|
|
702
|
+
|
|
703
|
+
// ----- Windows.UI.Composition.Desktop Initialization --------------------
|
|
704
|
+
|
|
705
|
+
PyDoc_STRVAR(module_doc, "Windows.UI.Composition.Desktop");
|
|
706
|
+
|
|
707
|
+
static PyModuleDef module_def = {
|
|
708
|
+
PyModuleDef_HEAD_INIT,
|
|
709
|
+
"_winrt_windows_ui_composition_desktop",
|
|
710
|
+
module_doc,
|
|
711
|
+
0,
|
|
712
|
+
nullptr,
|
|
713
|
+
nullptr,
|
|
714
|
+
nullptr,
|
|
715
|
+
nullptr,
|
|
716
|
+
nullptr};
|
|
717
|
+
} // py::cpp::Windows::UI::Composition::Desktop
|
|
718
|
+
|
|
719
|
+
PyMODINIT_FUNC PyInit__winrt_windows_ui_composition_desktop(void) noexcept
|
|
720
|
+
{
|
|
721
|
+
using namespace py::cpp::Windows::UI::Composition::Desktop;
|
|
722
|
+
|
|
723
|
+
if (py::import_winrt_runtime() == -1)
|
|
724
|
+
{
|
|
725
|
+
return nullptr;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
py::pyobj_handle module{PyModule_Create(&module_def)};
|
|
729
|
+
|
|
730
|
+
if (!module)
|
|
731
|
+
{
|
|
732
|
+
return nullptr;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
auto object_type = py::get_object_type();
|
|
736
|
+
if (!object_type)
|
|
737
|
+
{
|
|
738
|
+
return nullptr;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
|
|
742
|
+
|
|
743
|
+
if (!object_bases)
|
|
744
|
+
{
|
|
745
|
+
return nullptr;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
py::pytype_handle DesktopWindowTarget_type{py::register_python_type(module.get(), &type_spec_DesktopWindowTarget, object_bases.get(), nullptr)};
|
|
749
|
+
if (!DesktopWindowTarget_type)
|
|
750
|
+
{
|
|
751
|
+
return nullptr;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
return module.detach();
|
|
756
|
+
}
|
|
@@ -15,8 +15,8 @@ classifiers = [
|
|
|
15
15
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
|
-
dynamic = ["version", "dependencies"]
|
|
19
|
-
requires-python = ">=3.9,<3.
|
|
18
|
+
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
+
requires-python = ">=3.9,<3.14"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -27,6 +27,7 @@ Changelog = "https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md"
|
|
|
27
27
|
[tool.setuptools.dynamic]
|
|
28
28
|
version = { file = "pywinrt-version.txt" }
|
|
29
29
|
dependencies = { file = "requirements.txt" }
|
|
30
|
+
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
30
31
|
|
|
31
32
|
[tool.setuptools.package-data]
|
|
32
33
|
"*" = ["*.pyi", "py.typed"]
|
|
@@ -35,7 +36,8 @@ dependencies = { file = "requirements.txt" }
|
|
|
35
36
|
# use local winrt-sdk build dependency
|
|
36
37
|
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
37
38
|
# don't install winrt-sdk from PyPI
|
|
38
|
-
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"
|
|
39
41
|
# don't build for PyPy
|
|
40
42
|
skip = "pp*"
|
|
41
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.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0
|
|
3
|
+
winrt-runtime==2.2.0
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.system as windows_system
|
|
13
|
+
import winrt.windows.ui.composition as windows_ui_composition
|
|
14
|
+
import winrt.windows.ui.core as windows_ui_core
|
|
15
|
+
|
|
16
|
+
Self = typing.TypeVar('Self')
|
|
17
|
+
|
|
18
|
+
@typing.final
|
|
19
|
+
class DesktopWindowTarget(winrt.system.Object):
|
|
20
|
+
@staticmethod
|
|
21
|
+
def _from(obj: winrt.system.Object, /) -> DesktopWindowTarget: ...
|
|
22
|
+
def close(self) -> None: ...
|
|
23
|
+
def populate_property_info(self, property_name: str, property_info: typing.Optional[windows_ui_composition.AnimationPropertyInfo], /) -> None: ...
|
|
24
|
+
@typing.overload
|
|
25
|
+
def start_animation(self, property_name: str, animation: typing.Optional[windows_ui_composition.CompositionAnimation], /) -> None: ...
|
|
26
|
+
@typing.overload
|
|
27
|
+
def start_animation(self, property_name: str, animation: typing.Optional[windows_ui_composition.CompositionAnimation], animation_controller: typing.Optional[windows_ui_composition.AnimationController], /) -> None: ...
|
|
28
|
+
def start_animation_group(self, value: typing.Optional[windows_ui_composition.ICompositionAnimationBase], /) -> None: ...
|
|
29
|
+
def stop_animation(self, property_name: str, /) -> None: ...
|
|
30
|
+
def stop_animation_group(self, value: typing.Optional[windows_ui_composition.ICompositionAnimationBase], /) -> None: ...
|
|
31
|
+
def try_get_animation_controller(self, property_name: str, /) -> typing.Optional[windows_ui_composition.AnimationController]: ...
|
|
32
|
+
@_property
|
|
33
|
+
def is_topmost(self) -> bool: ...
|
|
34
|
+
@_property
|
|
35
|
+
def root(self) -> typing.Optional[windows_ui_composition.Visual]: ...
|
|
36
|
+
@root.setter
|
|
37
|
+
def root(self, value: typing.Optional[windows_ui_composition.Visual]) -> None: ...
|
|
38
|
+
@_property
|
|
39
|
+
def compositor(self) -> typing.Optional[windows_ui_composition.Compositor]: ...
|
|
40
|
+
@_property
|
|
41
|
+
def dispatcher(self) -> typing.Optional[windows_ui_core.CoreDispatcher]: ...
|
|
42
|
+
@_property
|
|
43
|
+
def properties(self) -> typing.Optional[windows_ui_composition.CompositionPropertySet]: ...
|
|
44
|
+
@_property
|
|
45
|
+
def implicit_animations(self) -> typing.Optional[windows_ui_composition.ImplicitAnimationCollection]: ...
|
|
46
|
+
@implicit_animations.setter
|
|
47
|
+
def implicit_animations(self, value: typing.Optional[windows_ui_composition.ImplicitAnimationCollection]) -> None: ...
|
|
48
|
+
@_property
|
|
49
|
+
def comment(self) -> str: ...
|
|
50
|
+
@comment.setter
|
|
51
|
+
def comment(self, value: str) -> None: ...
|
|
52
|
+
@_property
|
|
53
|
+
def dispatcher_queue(self) -> typing.Optional[windows_system.DispatcherQueue]: ...
|
|
54
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.UI.Composition.Desktop
|
|
3
|
-
Version: 2.0
|
|
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,9 +10,13 @@ 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.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
|
+
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.System[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.UI.Composition[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.UI.Core[all]==2.2.0; extra == "all"
|
|
16
20
|
|
|
17
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
22
|
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
|
|
2
|
-
|
|
3
|
-
#include "py.Windows.UI.Composition.Desktop.h"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
namespace py::cpp::Windows::UI::Composition::Desktop
|
|
7
|
-
{
|
|
8
|
-
// ----- DesktopWindowTarget class --------------------
|
|
9
|
-
|
|
10
|
-
static PyObject* _new_DesktopWindowTarget(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
11
|
-
{
|
|
12
|
-
static_assert(py::py_type<winrt::Windows::UI::Composition::Desktop::DesktopWindowTarget>::type_name);
|
|
13
|
-
py::set_invalid_activation_error(py::py_type<winrt::Windows::UI::Composition::Desktop::DesktopWindowTarget>::type_name);
|
|
14
|
-
return nullptr;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
static void _dealloc_DesktopWindowTarget(py::wrapper::Windows::UI::Composition::Desktop::DesktopWindowTarget* self) noexcept
|
|
18
|
-
{
|
|
19
|
-
auto tp = Py_TYPE(self);
|
|
20
|
-
std::destroy_at(&self->obj);
|
|
21
|
-
tp->tp_free(self);
|
|
22
|
-
Py_DECREF(tp);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
static PyObject* DesktopWindowTarget_get_IsTopmost(py::wrapper::Windows::UI::Composition::Desktop::DesktopWindowTarget* self, void* /*unused*/) noexcept
|
|
26
|
-
{
|
|
27
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Desktop.DesktopWindowTarget", L"IsTopmost"))
|
|
28
|
-
{
|
|
29
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
30
|
-
return nullptr;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
try
|
|
34
|
-
{
|
|
35
|
-
return py::convert(self->obj.IsTopmost());
|
|
36
|
-
}
|
|
37
|
-
catch (...)
|
|
38
|
-
{
|
|
39
|
-
py::to_PyErr();
|
|
40
|
-
return nullptr;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
static PyObject* _assign_array_DesktopWindowTarget(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
45
|
-
{
|
|
46
|
-
auto array = std::make_unique<py::ComArray<winrt::Windows::UI::Composition::Desktop::DesktopWindowTarget>>();
|
|
47
|
-
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
48
|
-
{
|
|
49
|
-
return nullptr;
|
|
50
|
-
}
|
|
51
|
-
Py_RETURN_NONE;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
static PyObject* _from_DesktopWindowTarget(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
55
|
-
{
|
|
56
|
-
try
|
|
57
|
-
{
|
|
58
|
-
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
59
|
-
return py::convert(return_value.as<winrt::Windows::UI::Composition::Desktop::DesktopWindowTarget>());
|
|
60
|
-
}
|
|
61
|
-
catch (...)
|
|
62
|
-
{
|
|
63
|
-
py::to_PyErr();
|
|
64
|
-
return nullptr;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
static PyMethodDef _methods_DesktopWindowTarget[] = {
|
|
69
|
-
{ "_assign_array_", _assign_array_DesktopWindowTarget, METH_O | METH_STATIC, nullptr },
|
|
70
|
-
{ "_from", reinterpret_cast<PyCFunction>(_from_DesktopWindowTarget), METH_O | METH_STATIC, nullptr },
|
|
71
|
-
{ }
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
static PyGetSetDef _getset_DesktopWindowTarget[] = {
|
|
75
|
-
{ "is_topmost", reinterpret_cast<getter>(DesktopWindowTarget_get_IsTopmost), nullptr, nullptr, nullptr },
|
|
76
|
-
{ }
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
static PyType_Slot _type_slots_DesktopWindowTarget[] =
|
|
80
|
-
{
|
|
81
|
-
{ Py_tp_new, reinterpret_cast<void*>(_new_DesktopWindowTarget) },
|
|
82
|
-
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DesktopWindowTarget) },
|
|
83
|
-
{ Py_tp_methods, reinterpret_cast<void*>(_methods_DesktopWindowTarget) },
|
|
84
|
-
{ Py_tp_getset, reinterpret_cast<void*>(_getset_DesktopWindowTarget) },
|
|
85
|
-
{ },
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
static PyType_Spec type_spec_DesktopWindowTarget =
|
|
89
|
-
{
|
|
90
|
-
"winrt._winrt_windows_ui_composition_desktop.DesktopWindowTarget",
|
|
91
|
-
sizeof(py::wrapper::Windows::UI::Composition::Desktop::DesktopWindowTarget),
|
|
92
|
-
0,
|
|
93
|
-
Py_TPFLAGS_DEFAULT,
|
|
94
|
-
_type_slots_DesktopWindowTarget
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
// ----- Windows.UI.Composition.Desktop Initialization --------------------
|
|
98
|
-
PyDoc_STRVAR(module_doc, "Windows::UI::Composition::Desktop");
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
static PyModuleDef module_def
|
|
102
|
-
= {PyModuleDef_HEAD_INIT,
|
|
103
|
-
"_winrt_windows_ui_composition_desktop",
|
|
104
|
-
module_doc,
|
|
105
|
-
0,
|
|
106
|
-
nullptr,
|
|
107
|
-
nullptr,
|
|
108
|
-
nullptr,
|
|
109
|
-
nullptr,
|
|
110
|
-
nullptr};
|
|
111
|
-
|
|
112
|
-
} // py::cpp::Windows::UI::Composition::Desktop
|
|
113
|
-
|
|
114
|
-
PyMODINIT_FUNC PyInit__winrt_windows_ui_composition_desktop(void) noexcept
|
|
115
|
-
{
|
|
116
|
-
using namespace py::cpp::Windows::UI::Composition::Desktop;
|
|
117
|
-
|
|
118
|
-
if (py::import_winrt_runtime() == -1)
|
|
119
|
-
{
|
|
120
|
-
return nullptr;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
py::pyobj_handle module{PyModule_Create(&module_def)};
|
|
124
|
-
|
|
125
|
-
if (!module)
|
|
126
|
-
{
|
|
127
|
-
return nullptr;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
auto object_type = py::get_object_type();
|
|
131
|
-
if (!object_type)
|
|
132
|
-
{
|
|
133
|
-
return nullptr;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
|
|
137
|
-
|
|
138
|
-
if (!object_bases)
|
|
139
|
-
{
|
|
140
|
-
return nullptr;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
if (py::register_python_type(module.get(), &type_spec_DesktopWindowTarget, object_bases.get(), nullptr) == -1)
|
|
144
|
-
{
|
|
145
|
-
return nullptr;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
return module.detach();
|
|
150
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.1
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
|
|
2
|
-
|
|
3
|
-
import datetime
|
|
4
|
-
import sys
|
|
5
|
-
import types
|
|
6
|
-
import typing
|
|
7
|
-
import uuid as _uuid
|
|
8
|
-
from builtins import property as _property
|
|
9
|
-
|
|
10
|
-
import winrt._winrt
|
|
11
|
-
import winrt.system
|
|
12
|
-
|
|
13
|
-
Self = typing.TypeVar('Self')
|
|
14
|
-
|
|
15
|
-
@typing.final
|
|
16
|
-
class DesktopWindowTarget(winrt.system.Object):
|
|
17
|
-
@staticmethod
|
|
18
|
-
def _from(obj: winrt.system.Object, /) -> DesktopWindowTarget: ...
|
|
19
|
-
@_property
|
|
20
|
-
def is_topmost(self) -> bool: ...
|
|
21
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
winrt-runtime==2.0.1
|
{winrt_windows_ui_composition_desktop-2.0.1 → winrt_windows_ui_composition_desktop-2.2.0}/README.md
RENAMED
|
File without changes
|
{winrt_windows_ui_composition_desktop-2.0.1 → winrt_windows_ui_composition_desktop-2.2.0}/setup.cfg
RENAMED
|
File without changes
|
{winrt_windows_ui_composition_desktop-2.0.1 → winrt_windows_ui_composition_desktop-2.2.0}/setup.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|