winrt-Windows.UI.Composition.Core 2.0.0b1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- winrt-Windows.UI.Composition.Core-2.0.0b1/PKG-INFO +22 -0
- winrt-Windows.UI.Composition.Core-2.0.0b1/README.md +7 -0
- winrt-Windows.UI.Composition.Core-2.0.0b1/all-requirements.txt +4 -0
- winrt-Windows.UI.Composition.Core-2.0.0b1/py.Windows.UI.Composition.Core.cpp +330 -0
- winrt-Windows.UI.Composition.Core-2.0.0b1/pyproject.toml +43 -0
- winrt-Windows.UI.Composition.Core-2.0.0b1/pywinrt-version.txt +1 -0
- winrt-Windows.UI.Composition.Core-2.0.0b1/requirements.txt +3 -0
- winrt-Windows.UI.Composition.Core-2.0.0b1/setup.cfg +4 -0
- winrt-Windows.UI.Composition.Core-2.0.0b1/setup.py +17 -0
- winrt-Windows.UI.Composition.Core-2.0.0b1/winrt/_winrt_windows_ui_composition_core.pyi +30 -0
- winrt-Windows.UI.Composition.Core-2.0.0b1/winrt/windows/ui/composition/core/__init__.py +10 -0
- winrt-Windows.UI.Composition.Core-2.0.0b1/winrt_Windows.UI.Composition.Core.egg-info/PKG-INFO +22 -0
- winrt-Windows.UI.Composition.Core-2.0.0b1/winrt_Windows.UI.Composition.Core.egg-info/SOURCES.txt +14 -0
- winrt-Windows.UI.Composition.Core-2.0.0b1/winrt_Windows.UI.Composition.Core.egg-info/dependency_links.txt +1 -0
- winrt-Windows.UI.Composition.Core-2.0.0b1/winrt_Windows.UI.Composition.Core.egg-info/requires.txt +5 -0
- winrt-Windows.UI.Composition.Core-2.0.0b1/winrt_Windows.UI.Composition.Core.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.UI.Composition.Core
|
|
3
|
+
Version: 2.0.0b1
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License: MIT
|
|
6
|
+
Project-URL: Repository, https://github.com/pywrint/pywrinrt
|
|
7
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
8
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Requires-Python: <3.13,>=3.9
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
Provides-Extra: all
|
|
15
|
+
|
|
16
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
17
|
+
|
|
18
|
+
# winrt-Windows.UI.Composition.Core
|
|
19
|
+
|
|
20
|
+
Windows Runtime (WinRT) APIs for for the `Windows.UI.Composition.Core` namespace.
|
|
21
|
+
|
|
22
|
+
This package provides the `winrt.windows.ui.composition.core` module.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
2
|
+
|
|
3
|
+
# winrt-Windows.UI.Composition.Core
|
|
4
|
+
|
|
5
|
+
Windows Runtime (WinRT) APIs for for the `Windows.UI.Composition.Core` namespace.
|
|
6
|
+
|
|
7
|
+
This package provides the `winrt.windows.ui.composition.core` module.
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
|
|
2
|
+
|
|
3
|
+
#include "py.Windows.UI.Composition.Core.h"
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
namespace py::cpp::Windows::UI::Composition::Core
|
|
7
|
+
{
|
|
8
|
+
// ----- CompositorController class --------------------
|
|
9
|
+
|
|
10
|
+
static PyObject* _new_CompositorController(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
|
|
11
|
+
{
|
|
12
|
+
if (kwds != nullptr)
|
|
13
|
+
{
|
|
14
|
+
py::set_invalid_kwd_args_error();
|
|
15
|
+
return nullptr;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
auto arg_count = PyTuple_Size(args);
|
|
19
|
+
if (arg_count == 0)
|
|
20
|
+
{
|
|
21
|
+
try
|
|
22
|
+
{
|
|
23
|
+
winrt::Windows::UI::Composition::Core::CompositorController instance{ };
|
|
24
|
+
return py::wrap(instance, type);
|
|
25
|
+
}
|
|
26
|
+
catch (...)
|
|
27
|
+
{
|
|
28
|
+
py::to_PyErr();
|
|
29
|
+
return nullptr;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
else
|
|
33
|
+
{
|
|
34
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
35
|
+
return nullptr;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
static void _dealloc_CompositorController(py::wrapper::Windows::UI::Composition::Core::CompositorController* self) noexcept
|
|
40
|
+
{
|
|
41
|
+
auto tp = Py_TYPE(self);
|
|
42
|
+
std::destroy_at(&self->obj);
|
|
43
|
+
tp->tp_free(self);
|
|
44
|
+
Py_DECREF(tp);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
static PyObject* CompositorController_Close(py::wrapper::Windows::UI::Composition::Core::CompositorController* self, PyObject* args) noexcept
|
|
48
|
+
{
|
|
49
|
+
auto arg_count = PyTuple_Size(args);
|
|
50
|
+
|
|
51
|
+
if (arg_count == 0)
|
|
52
|
+
{
|
|
53
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Composition.Core.CompositorController", L"Close", 0))
|
|
54
|
+
{
|
|
55
|
+
py::set_arg_count_version_error(0);
|
|
56
|
+
return nullptr;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
try
|
|
60
|
+
{
|
|
61
|
+
self->obj.Close();
|
|
62
|
+
Py_RETURN_NONE;
|
|
63
|
+
}
|
|
64
|
+
catch (...)
|
|
65
|
+
{
|
|
66
|
+
py::to_PyErr();
|
|
67
|
+
return nullptr;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
else
|
|
71
|
+
{
|
|
72
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
73
|
+
return nullptr;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
static PyObject* CompositorController_Commit(py::wrapper::Windows::UI::Composition::Core::CompositorController* self, PyObject* args) noexcept
|
|
78
|
+
{
|
|
79
|
+
auto arg_count = PyTuple_Size(args);
|
|
80
|
+
|
|
81
|
+
if (arg_count == 0)
|
|
82
|
+
{
|
|
83
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Composition.Core.CompositorController", L"Commit", 0))
|
|
84
|
+
{
|
|
85
|
+
py::set_arg_count_version_error(0);
|
|
86
|
+
return nullptr;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
try
|
|
90
|
+
{
|
|
91
|
+
self->obj.Commit();
|
|
92
|
+
Py_RETURN_NONE;
|
|
93
|
+
}
|
|
94
|
+
catch (...)
|
|
95
|
+
{
|
|
96
|
+
py::to_PyErr();
|
|
97
|
+
return nullptr;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
else
|
|
101
|
+
{
|
|
102
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
103
|
+
return nullptr;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
static PyObject* CompositorController_EnsurePreviousCommitCompletedAsync(py::wrapper::Windows::UI::Composition::Core::CompositorController* self, PyObject* args) noexcept
|
|
108
|
+
{
|
|
109
|
+
auto arg_count = PyTuple_Size(args);
|
|
110
|
+
|
|
111
|
+
if (arg_count == 0)
|
|
112
|
+
{
|
|
113
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Composition.Core.CompositorController", L"EnsurePreviousCommitCompletedAsync", 0))
|
|
114
|
+
{
|
|
115
|
+
py::set_arg_count_version_error(0);
|
|
116
|
+
return nullptr;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
try
|
|
120
|
+
{
|
|
121
|
+
return py::convert(self->obj.EnsurePreviousCommitCompletedAsync());
|
|
122
|
+
}
|
|
123
|
+
catch (...)
|
|
124
|
+
{
|
|
125
|
+
py::to_PyErr();
|
|
126
|
+
return nullptr;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
else
|
|
130
|
+
{
|
|
131
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
132
|
+
return nullptr;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
static PyObject* CompositorController_get_Compositor(py::wrapper::Windows::UI::Composition::Core::CompositorController* self, void* /*unused*/) noexcept
|
|
137
|
+
{
|
|
138
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Core.CompositorController", L"Compositor"))
|
|
139
|
+
{
|
|
140
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
141
|
+
return nullptr;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
try
|
|
145
|
+
{
|
|
146
|
+
return py::convert(self->obj.Compositor());
|
|
147
|
+
}
|
|
148
|
+
catch (...)
|
|
149
|
+
{
|
|
150
|
+
py::to_PyErr();
|
|
151
|
+
return nullptr;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
static PyObject* CompositorController_add_CommitNeeded(py::wrapper::Windows::UI::Composition::Core::CompositorController* self, PyObject* arg) noexcept
|
|
156
|
+
{
|
|
157
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Composition.Core.CompositorController", L"CommitNeeded"))
|
|
158
|
+
{
|
|
159
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
160
|
+
return nullptr;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
try
|
|
164
|
+
{
|
|
165
|
+
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::UI::Composition::Core::CompositorController, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
166
|
+
|
|
167
|
+
return py::convert(self->obj.CommitNeeded(param0));
|
|
168
|
+
}
|
|
169
|
+
catch (...)
|
|
170
|
+
{
|
|
171
|
+
py::to_PyErr();
|
|
172
|
+
return nullptr;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
static PyObject* CompositorController_remove_CommitNeeded(py::wrapper::Windows::UI::Composition::Core::CompositorController* self, PyObject* arg) noexcept
|
|
177
|
+
{
|
|
178
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Composition.Core.CompositorController", L"CommitNeeded"))
|
|
179
|
+
{
|
|
180
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
181
|
+
return nullptr;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
try
|
|
185
|
+
{
|
|
186
|
+
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
187
|
+
|
|
188
|
+
self->obj.CommitNeeded(param0);
|
|
189
|
+
Py_RETURN_NONE;
|
|
190
|
+
}
|
|
191
|
+
catch (...)
|
|
192
|
+
{
|
|
193
|
+
py::to_PyErr();
|
|
194
|
+
return nullptr;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
static PyObject* _assign_array_CompositorController(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
199
|
+
{
|
|
200
|
+
auto array = std::make_unique<py::ComArray<winrt::Windows::UI::Composition::Core::CompositorController>>();
|
|
201
|
+
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
202
|
+
{
|
|
203
|
+
return nullptr;
|
|
204
|
+
}
|
|
205
|
+
Py_RETURN_NONE;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
static PyObject* _from_CompositorController(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
209
|
+
{
|
|
210
|
+
try
|
|
211
|
+
{
|
|
212
|
+
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
213
|
+
return py::convert(return_value.as<winrt::Windows::UI::Composition::Core::CompositorController>());
|
|
214
|
+
}
|
|
215
|
+
catch (...)
|
|
216
|
+
{
|
|
217
|
+
py::to_PyErr();
|
|
218
|
+
return nullptr;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
static PyObject* _enter_CompositorController(py::wrapper::Windows::UI::Composition::Core::CompositorController* self, PyObject* /*unused*/) noexcept
|
|
223
|
+
{
|
|
224
|
+
return Py_NewRef(self);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
static PyObject* _exit_CompositorController(py::wrapper::Windows::UI::Composition::Core::CompositorController* self, PyObject* /*unused*/) noexcept
|
|
228
|
+
{
|
|
229
|
+
try
|
|
230
|
+
{
|
|
231
|
+
self->obj.Close();
|
|
232
|
+
Py_RETURN_FALSE;
|
|
233
|
+
}
|
|
234
|
+
catch (...)
|
|
235
|
+
{
|
|
236
|
+
py::to_PyErr();
|
|
237
|
+
return nullptr;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
static PyMethodDef _methods_CompositorController[] = {
|
|
242
|
+
{ "close", reinterpret_cast<PyCFunction>(CompositorController_Close), METH_VARARGS, nullptr },
|
|
243
|
+
{ "commit", reinterpret_cast<PyCFunction>(CompositorController_Commit), METH_VARARGS, nullptr },
|
|
244
|
+
{ "ensure_previous_commit_completed_async", reinterpret_cast<PyCFunction>(CompositorController_EnsurePreviousCommitCompletedAsync), METH_VARARGS, nullptr },
|
|
245
|
+
{ "add_commit_needed", reinterpret_cast<PyCFunction>(CompositorController_add_CommitNeeded), METH_O, nullptr },
|
|
246
|
+
{ "remove_commit_needed", reinterpret_cast<PyCFunction>(CompositorController_remove_CommitNeeded), METH_O, nullptr },
|
|
247
|
+
{ "_assign_array_", _assign_array_CompositorController, METH_O | METH_STATIC, nullptr },
|
|
248
|
+
{ "_from", reinterpret_cast<PyCFunction>(_from_CompositorController), METH_O | METH_STATIC, nullptr },
|
|
249
|
+
{ "__enter__", reinterpret_cast<PyCFunction>(_enter_CompositorController), METH_NOARGS, nullptr },
|
|
250
|
+
{ "__exit__", reinterpret_cast<PyCFunction>(_exit_CompositorController), METH_VARARGS, nullptr },
|
|
251
|
+
{ }
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
static PyGetSetDef _getset_CompositorController[] = {
|
|
255
|
+
{ "compositor", reinterpret_cast<getter>(CompositorController_get_Compositor), nullptr, nullptr, nullptr },
|
|
256
|
+
{ }
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
static PyType_Slot _type_slots_CompositorController[] =
|
|
260
|
+
{
|
|
261
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_CompositorController) },
|
|
262
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_CompositorController) },
|
|
263
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_CompositorController) },
|
|
264
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_CompositorController) },
|
|
265
|
+
{ },
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
static PyType_Spec type_spec_CompositorController =
|
|
269
|
+
{
|
|
270
|
+
"winrt._winrt_windows_ui_composition_core.CompositorController",
|
|
271
|
+
sizeof(py::wrapper::Windows::UI::Composition::Core::CompositorController),
|
|
272
|
+
0,
|
|
273
|
+
Py_TPFLAGS_DEFAULT,
|
|
274
|
+
_type_slots_CompositorController
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
// ----- Windows.UI.Composition.Core Initialization --------------------
|
|
278
|
+
PyDoc_STRVAR(module_doc, "Windows::UI::Composition::Core");
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
static PyModuleDef module_def
|
|
282
|
+
= {PyModuleDef_HEAD_INIT,
|
|
283
|
+
"_winrt_windows_ui_composition_core",
|
|
284
|
+
module_doc,
|
|
285
|
+
0,
|
|
286
|
+
nullptr,
|
|
287
|
+
nullptr,
|
|
288
|
+
nullptr,
|
|
289
|
+
nullptr,
|
|
290
|
+
nullptr};
|
|
291
|
+
|
|
292
|
+
} // py::cpp::Windows::UI::Composition::Core
|
|
293
|
+
|
|
294
|
+
PyMODINIT_FUNC PyInit__winrt_windows_ui_composition_core(void) noexcept
|
|
295
|
+
{
|
|
296
|
+
using namespace py::cpp::Windows::UI::Composition::Core;
|
|
297
|
+
|
|
298
|
+
if (py::import_winrt_runtime() == -1)
|
|
299
|
+
{
|
|
300
|
+
return nullptr;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
py::pyobj_handle module{PyModule_Create(&module_def)};
|
|
304
|
+
|
|
305
|
+
if (!module)
|
|
306
|
+
{
|
|
307
|
+
return nullptr;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
auto object_type = py::get_object_type();
|
|
311
|
+
if (!object_type)
|
|
312
|
+
{
|
|
313
|
+
return nullptr;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
|
|
317
|
+
|
|
318
|
+
if (!object_bases)
|
|
319
|
+
{
|
|
320
|
+
return nullptr;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
if (py::register_python_type(module.get(), &type_spec_CompositorController, object_bases.get(), nullptr) == -1)
|
|
324
|
+
{
|
|
325
|
+
return nullptr;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
return module.detach();
|
|
330
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
[build-system]
|
|
4
|
+
requires = ["setuptools", "setuptools-scm", "winrt-sdk"]
|
|
5
|
+
build-backend = "setuptools.build_meta"
|
|
6
|
+
|
|
7
|
+
[project]
|
|
8
|
+
name = "winrt-Windows.UI.Composition.Core"
|
|
9
|
+
description = "Python projection of Windows Runtime (WinRT) APIs"
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
license = { text = "MIT" }
|
|
12
|
+
classifiers = [
|
|
13
|
+
"Operating System :: Microsoft :: Windows",
|
|
14
|
+
"Programming Language :: Python :: 3",
|
|
15
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
]
|
|
18
|
+
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
+
requires-python = ">=3.9,<3.13"
|
|
20
|
+
|
|
21
|
+
[project.urls]
|
|
22
|
+
# Homepage = "https://github.com/pywrint/pywrinrt"
|
|
23
|
+
# Documentation = "https://readthedocs.org"
|
|
24
|
+
Repository = "https://github.com/pywrint/pywrinrt"
|
|
25
|
+
Changelog = "https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md"
|
|
26
|
+
|
|
27
|
+
[tool.setuptools.dynamic]
|
|
28
|
+
version = { file = "pywinrt-version.txt" }
|
|
29
|
+
dependencies = { file = "requirements.txt" }
|
|
30
|
+
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
|
+
|
|
32
|
+
[tool.cibuildwheel]
|
|
33
|
+
# use local winrt-sdk build dependency
|
|
34
|
+
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
35
|
+
# don't install winrt-sdk from PyPI
|
|
36
|
+
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
37
|
+
# don't build for PyPy
|
|
38
|
+
skip = "pp*"
|
|
39
|
+
# suppress warnings about ARM64 testing
|
|
40
|
+
test-skip = "*-win_arm64"
|
|
41
|
+
|
|
42
|
+
[tool.cibuildwheel.windows]
|
|
43
|
+
archs = ["x86", "AMD64", "ARM64"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.0.0-beta.1
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
from setuptools import Extension, setup
|
|
4
|
+
from winrt_sdk import get_include_dirs
|
|
5
|
+
|
|
6
|
+
setup(
|
|
7
|
+
ext_modules=[
|
|
8
|
+
Extension(
|
|
9
|
+
"winrt._winrt_windows_ui_composition_core",
|
|
10
|
+
sources=["py.Windows.UI.Composition.Core.cpp"],
|
|
11
|
+
include_dirs=get_include_dirs(),
|
|
12
|
+
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
+
libraries=["windowsapp"],
|
|
14
|
+
)
|
|
15
|
+
],
|
|
16
|
+
package_data={"winrt": ["*.pyi"]},
|
|
17
|
+
)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.foundation
|
|
13
|
+
import winrt.windows.ui.composition
|
|
14
|
+
|
|
15
|
+
Self = typing.TypeVar('Self')
|
|
16
|
+
|
|
17
|
+
class CompositorController(winrt.system.Object):
|
|
18
|
+
def __enter__(self: Self) -> Self: ...
|
|
19
|
+
def __exit__(self, *args) -> None: ...
|
|
20
|
+
@staticmethod
|
|
21
|
+
def _from(obj: winrt.system.Object, /) -> CompositorController: ...
|
|
22
|
+
def __new__(cls: typing.Type[CompositorController]) -> CompositorController:...
|
|
23
|
+
def close(self) -> None: ...
|
|
24
|
+
def commit(self) -> None: ...
|
|
25
|
+
def ensure_previous_commit_completed_async(self) -> winrt.windows.foundation.IAsyncAction: ...
|
|
26
|
+
def add_commit_needed(self, handler: winrt.windows.foundation.TypedEventHandler[CompositorController, winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
27
|
+
def remove_commit_needed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
28
|
+
@_property
|
|
29
|
+
def compositor(self) -> typing.Optional[winrt.windows.ui.composition.Compositor]: ...
|
|
30
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
|
|
2
|
+
|
|
3
|
+
import winrt.system
|
|
4
|
+
from winrt import _winrt_windows_ui_composition_core
|
|
5
|
+
|
|
6
|
+
__all__ = [
|
|
7
|
+
"CompositorController",
|
|
8
|
+
]
|
|
9
|
+
|
|
10
|
+
CompositorController = _winrt_windows_ui_composition_core.CompositorController
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.UI.Composition.Core
|
|
3
|
+
Version: 2.0.0b1
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License: MIT
|
|
6
|
+
Project-URL: Repository, https://github.com/pywrint/pywrinrt
|
|
7
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
8
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Requires-Python: <3.13,>=3.9
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
Provides-Extra: all
|
|
15
|
+
|
|
16
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
17
|
+
|
|
18
|
+
# winrt-Windows.UI.Composition.Core
|
|
19
|
+
|
|
20
|
+
Windows Runtime (WinRT) APIs for for the `Windows.UI.Composition.Core` namespace.
|
|
21
|
+
|
|
22
|
+
This package provides the `winrt.windows.ui.composition.core` module.
|
winrt-Windows.UI.Composition.Core-2.0.0b1/winrt_Windows.UI.Composition.Core.egg-info/SOURCES.txt
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
all-requirements.txt
|
|
3
|
+
py.Windows.UI.Composition.Core.cpp
|
|
4
|
+
pyproject.toml
|
|
5
|
+
pywinrt-version.txt
|
|
6
|
+
requirements.txt
|
|
7
|
+
setup.py
|
|
8
|
+
winrt/_winrt_windows_ui_composition_core.pyi
|
|
9
|
+
winrt/windows/ui/composition/core/__init__.py
|
|
10
|
+
winrt_Windows.UI.Composition.Core.egg-info/PKG-INFO
|
|
11
|
+
winrt_Windows.UI.Composition.Core.egg-info/SOURCES.txt
|
|
12
|
+
winrt_Windows.UI.Composition.Core.egg-info/dependency_links.txt
|
|
13
|
+
winrt_Windows.UI.Composition.Core.egg-info/requires.txt
|
|
14
|
+
winrt_Windows.UI.Composition.Core.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
winrt-Windows.UI.Composition.Core-2.0.0b1/winrt_Windows.UI.Composition.Core.egg-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
winrt
|