winrt-Windows.ApplicationModel.Preview.InkWorkspace 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.
Files changed (16) hide show
  1. winrt-Windows.ApplicationModel.Preview.InkWorkspace-2.0.0b1/PKG-INFO +22 -0
  2. winrt-Windows.ApplicationModel.Preview.InkWorkspace-2.0.0b1/README.md +7 -0
  3. winrt-Windows.ApplicationModel.Preview.InkWorkspace-2.0.0b1/all-requirements.txt +4 -0
  4. winrt-Windows.ApplicationModel.Preview.InkWorkspace-2.0.0b1/py.Windows.ApplicationModel.Preview.InkWorkspace.cpp +223 -0
  5. winrt-Windows.ApplicationModel.Preview.InkWorkspace-2.0.0b1/pyproject.toml +43 -0
  6. winrt-Windows.ApplicationModel.Preview.InkWorkspace-2.0.0b1/pywinrt-version.txt +1 -0
  7. winrt-Windows.ApplicationModel.Preview.InkWorkspace-2.0.0b1/requirements.txt +3 -0
  8. winrt-Windows.ApplicationModel.Preview.InkWorkspace-2.0.0b1/setup.cfg +4 -0
  9. winrt-Windows.ApplicationModel.Preview.InkWorkspace-2.0.0b1/setup.py +17 -0
  10. winrt-Windows.ApplicationModel.Preview.InkWorkspace-2.0.0b1/winrt/_winrt_windows_applicationmodel_preview_inkworkspace.pyi +24 -0
  11. winrt-Windows.ApplicationModel.Preview.InkWorkspace-2.0.0b1/winrt/windows/applicationmodel/preview/inkworkspace/__init__.py +10 -0
  12. winrt-Windows.ApplicationModel.Preview.InkWorkspace-2.0.0b1/winrt_Windows.ApplicationModel.Preview.InkWorkspace.egg-info/PKG-INFO +22 -0
  13. winrt-Windows.ApplicationModel.Preview.InkWorkspace-2.0.0b1/winrt_Windows.ApplicationModel.Preview.InkWorkspace.egg-info/SOURCES.txt +14 -0
  14. winrt-Windows.ApplicationModel.Preview.InkWorkspace-2.0.0b1/winrt_Windows.ApplicationModel.Preview.InkWorkspace.egg-info/dependency_links.txt +1 -0
  15. winrt-Windows.ApplicationModel.Preview.InkWorkspace-2.0.0b1/winrt_Windows.ApplicationModel.Preview.InkWorkspace.egg-info/requires.txt +5 -0
  16. winrt-Windows.ApplicationModel.Preview.InkWorkspace-2.0.0b1/winrt_Windows.ApplicationModel.Preview.InkWorkspace.egg-info/top_level.txt +1 -0
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.ApplicationModel.Preview.InkWorkspace
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.ApplicationModel.Preview.InkWorkspace
19
+
20
+ Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.Preview.InkWorkspace` namespace.
21
+
22
+ This package provides the `winrt.windows.applicationmodel.preview.inkworkspace` module.
@@ -0,0 +1,7 @@
1
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
2
+
3
+ # winrt-Windows.ApplicationModel.Preview.InkWorkspace
4
+
5
+ Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.Preview.InkWorkspace` namespace.
6
+
7
+ This package provides the `winrt.windows.applicationmodel.preview.inkworkspace` module.
@@ -0,0 +1,4 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ winrt-Windows.Foundation[all]==2.0.0-beta.1
4
+ winrt-Windows.Graphics.Imaging[all]==2.0.0-beta.1
@@ -0,0 +1,223 @@
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ #include "py.Windows.ApplicationModel.Preview.InkWorkspace.h"
4
+
5
+
6
+ namespace py::cpp::Windows::ApplicationModel::Preview::InkWorkspace
7
+ {
8
+ // ----- InkWorkspaceHostedAppManager class --------------------
9
+
10
+ static PyObject* _new_InkWorkspaceHostedAppManager(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
11
+ {
12
+ static_assert(py::py_type<winrt::Windows::ApplicationModel::Preview::InkWorkspace::InkWorkspaceHostedAppManager>::type_name);
13
+ py::set_invalid_activation_error(py::py_type<winrt::Windows::ApplicationModel::Preview::InkWorkspace::InkWorkspaceHostedAppManager>::type_name);
14
+ return nullptr;
15
+ }
16
+
17
+ static void _dealloc_InkWorkspaceHostedAppManager(py::wrapper::Windows::ApplicationModel::Preview::InkWorkspace::InkWorkspaceHostedAppManager* 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* InkWorkspaceHostedAppManager_GetForCurrentApp(PyObject* /*unused*/, PyObject* args) noexcept
26
+ {
27
+ auto arg_count = PyTuple_Size(args);
28
+
29
+ if (arg_count == 0)
30
+ {
31
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.InkWorkspace.InkWorkspaceHostedAppManager", L"GetForCurrentApp", 0))
32
+ {
33
+ py::set_arg_count_version_error(0);
34
+ return nullptr;
35
+ }
36
+
37
+ try
38
+ {
39
+ return py::convert(winrt::Windows::ApplicationModel::Preview::InkWorkspace::InkWorkspaceHostedAppManager::GetForCurrentApp());
40
+ }
41
+ catch (...)
42
+ {
43
+ py::to_PyErr();
44
+ return nullptr;
45
+ }
46
+ }
47
+ else
48
+ {
49
+ py::set_invalid_arg_count_error(arg_count);
50
+ return nullptr;
51
+ }
52
+ }
53
+
54
+ static PyObject* InkWorkspaceHostedAppManager_SetThumbnailAsync(py::wrapper::Windows::ApplicationModel::Preview::InkWorkspace::InkWorkspaceHostedAppManager* self, PyObject* args) noexcept
55
+ {
56
+ auto arg_count = PyTuple_Size(args);
57
+
58
+ if (arg_count == 1)
59
+ {
60
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.InkWorkspace.InkWorkspaceHostedAppManager", L"SetThumbnailAsync", 1))
61
+ {
62
+ py::set_arg_count_version_error(1);
63
+ return nullptr;
64
+ }
65
+
66
+ try
67
+ {
68
+ auto param0 = py::convert_to<winrt::Windows::Graphics::Imaging::SoftwareBitmap>(args, 0);
69
+
70
+ return py::convert(self->obj.SetThumbnailAsync(param0));
71
+ }
72
+ catch (...)
73
+ {
74
+ py::to_PyErr();
75
+ return nullptr;
76
+ }
77
+ }
78
+ else
79
+ {
80
+ py::set_invalid_arg_count_error(arg_count);
81
+ return nullptr;
82
+ }
83
+ }
84
+
85
+ static PyObject* _assign_array_InkWorkspaceHostedAppManager(PyObject* /*unused*/, PyObject* arg) noexcept
86
+ {
87
+ auto array = std::make_unique<py::ComArray<winrt::Windows::ApplicationModel::Preview::InkWorkspace::InkWorkspaceHostedAppManager>>();
88
+ if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
89
+ {
90
+ return nullptr;
91
+ }
92
+ Py_RETURN_NONE;
93
+ }
94
+
95
+ static PyObject* _from_InkWorkspaceHostedAppManager(PyObject* /*unused*/, PyObject* arg) noexcept
96
+ {
97
+ try
98
+ {
99
+ auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
100
+ return py::convert(return_value.as<winrt::Windows::ApplicationModel::Preview::InkWorkspace::InkWorkspaceHostedAppManager>());
101
+ }
102
+ catch (...)
103
+ {
104
+ py::to_PyErr();
105
+ return nullptr;
106
+ }
107
+ }
108
+
109
+ static PyMethodDef _methods_InkWorkspaceHostedAppManager[] = {
110
+ { "set_thumbnail_async", reinterpret_cast<PyCFunction>(InkWorkspaceHostedAppManager_SetThumbnailAsync), METH_VARARGS, nullptr },
111
+ { "_assign_array_", _assign_array_InkWorkspaceHostedAppManager, METH_O | METH_STATIC, nullptr },
112
+ { "_from", reinterpret_cast<PyCFunction>(_from_InkWorkspaceHostedAppManager), METH_O | METH_STATIC, nullptr },
113
+ { }
114
+ };
115
+
116
+ static PyGetSetDef _getset_InkWorkspaceHostedAppManager[] = {
117
+ { }
118
+ };
119
+
120
+ static PyType_Slot _type_slots_InkWorkspaceHostedAppManager[] =
121
+ {
122
+ { Py_tp_new, reinterpret_cast<void*>(_new_InkWorkspaceHostedAppManager) },
123
+ { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_InkWorkspaceHostedAppManager) },
124
+ { Py_tp_methods, reinterpret_cast<void*>(_methods_InkWorkspaceHostedAppManager) },
125
+ { Py_tp_getset, reinterpret_cast<void*>(_getset_InkWorkspaceHostedAppManager) },
126
+ { },
127
+ };
128
+
129
+ static PyType_Spec type_spec_InkWorkspaceHostedAppManager =
130
+ {
131
+ "winrt._winrt_windows_applicationmodel_preview_inkworkspace.InkWorkspaceHostedAppManager",
132
+ sizeof(py::wrapper::Windows::ApplicationModel::Preview::InkWorkspace::InkWorkspaceHostedAppManager),
133
+ 0,
134
+ Py_TPFLAGS_DEFAULT,
135
+ _type_slots_InkWorkspaceHostedAppManager
136
+ };
137
+
138
+ static PyGetSetDef getset_InkWorkspaceHostedAppManager_Static[] = {
139
+ { }
140
+ };
141
+
142
+ static PyMethodDef methods_InkWorkspaceHostedAppManager_Static[] = {
143
+ { "get_for_current_app", reinterpret_cast<PyCFunction>(InkWorkspaceHostedAppManager_GetForCurrentApp), METH_VARARGS, nullptr },
144
+ { }
145
+ };
146
+
147
+ static PyType_Slot type_slots_InkWorkspaceHostedAppManager_Static[] =
148
+ {
149
+ { Py_tp_base, reinterpret_cast<void*>(&PyType_Type) },
150
+ { Py_tp_getset, reinterpret_cast<void*>(getset_InkWorkspaceHostedAppManager_Static) },
151
+ { Py_tp_methods, reinterpret_cast<void*>(methods_InkWorkspaceHostedAppManager_Static) },
152
+ { }
153
+ };
154
+
155
+ static PyType_Spec type_spec_InkWorkspaceHostedAppManager_Static =
156
+ {
157
+ "winrt._winrt_windows_applicationmodel_preview_inkworkspace.InkWorkspaceHostedAppManager_Static",
158
+ static_cast<int>(PyType_Type.tp_basicsize),
159
+ static_cast<int>(PyType_Type.tp_itemsize),
160
+ Py_TPFLAGS_DEFAULT,
161
+ type_slots_InkWorkspaceHostedAppManager_Static
162
+ };
163
+
164
+ // ----- Windows.ApplicationModel.Preview.InkWorkspace Initialization --------------------
165
+ PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::Preview::InkWorkspace");
166
+
167
+
168
+ static PyModuleDef module_def
169
+ = {PyModuleDef_HEAD_INIT,
170
+ "_winrt_windows_applicationmodel_preview_inkworkspace",
171
+ module_doc,
172
+ 0,
173
+ nullptr,
174
+ nullptr,
175
+ nullptr,
176
+ nullptr,
177
+ nullptr};
178
+
179
+ } // py::cpp::Windows::ApplicationModel::Preview::InkWorkspace
180
+
181
+ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_preview_inkworkspace(void) noexcept
182
+ {
183
+ using namespace py::cpp::Windows::ApplicationModel::Preview::InkWorkspace;
184
+
185
+ if (py::import_winrt_runtime() == -1)
186
+ {
187
+ return nullptr;
188
+ }
189
+
190
+ py::pyobj_handle module{PyModule_Create(&module_def)};
191
+
192
+ if (!module)
193
+ {
194
+ return nullptr;
195
+ }
196
+
197
+ auto object_type = py::get_object_type();
198
+ if (!object_type)
199
+ {
200
+ return nullptr;
201
+ }
202
+
203
+ py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
204
+
205
+ if (!object_bases)
206
+ {
207
+ return nullptr;
208
+ }
209
+
210
+ py::pyobj_handle type_InkWorkspaceHostedAppManager_Static{PyType_FromSpec(&type_spec_InkWorkspaceHostedAppManager_Static)};
211
+ if (!type_InkWorkspaceHostedAppManager_Static)
212
+ {
213
+ return nullptr;
214
+ }
215
+
216
+ if (py::register_python_type(module.get(), &type_spec_InkWorkspaceHostedAppManager, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_InkWorkspaceHostedAppManager_Static.get())) == -1)
217
+ {
218
+ return nullptr;
219
+ }
220
+
221
+
222
+ return module.detach();
223
+ }
@@ -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.ApplicationModel.Preview.InkWorkspace"
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,3 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ winrt-runtime==2.0.0-beta.1
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -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_applicationmodel_preview_inkworkspace",
10
+ sources=["py.Windows.ApplicationModel.Preview.InkWorkspace.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,24 @@
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.graphics.imaging
14
+
15
+ Self = typing.TypeVar('Self')
16
+
17
+ class InkWorkspaceHostedAppManager_Static(type):
18
+ def get_for_current_app(cls) -> typing.Optional[InkWorkspaceHostedAppManager]: ...
19
+
20
+ class InkWorkspaceHostedAppManager(winrt.system.Object, metaclass=InkWorkspaceHostedAppManager_Static):
21
+ @staticmethod
22
+ def _from(obj: winrt.system.Object, /) -> InkWorkspaceHostedAppManager: ...
23
+ def set_thumbnail_async(self, bitmap: typing.Optional[winrt.windows.graphics.imaging.SoftwareBitmap], /) -> winrt.windows.foundation.IAsyncAction: ...
24
+
@@ -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_applicationmodel_preview_inkworkspace
5
+
6
+ __all__ = [
7
+ "InkWorkspaceHostedAppManager",
8
+ ]
9
+
10
+ InkWorkspaceHostedAppManager = _winrt_windows_applicationmodel_preview_inkworkspace.InkWorkspaceHostedAppManager
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.ApplicationModel.Preview.InkWorkspace
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.ApplicationModel.Preview.InkWorkspace
19
+
20
+ Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.Preview.InkWorkspace` namespace.
21
+
22
+ This package provides the `winrt.windows.applicationmodel.preview.inkworkspace` module.
@@ -0,0 +1,14 @@
1
+ README.md
2
+ all-requirements.txt
3
+ py.Windows.ApplicationModel.Preview.InkWorkspace.cpp
4
+ pyproject.toml
5
+ pywinrt-version.txt
6
+ requirements.txt
7
+ setup.py
8
+ winrt/_winrt_windows_applicationmodel_preview_inkworkspace.pyi
9
+ winrt/windows/applicationmodel/preview/inkworkspace/__init__.py
10
+ winrt_Windows.ApplicationModel.Preview.InkWorkspace.egg-info/PKG-INFO
11
+ winrt_Windows.ApplicationModel.Preview.InkWorkspace.egg-info/SOURCES.txt
12
+ winrt_Windows.ApplicationModel.Preview.InkWorkspace.egg-info/dependency_links.txt
13
+ winrt_Windows.ApplicationModel.Preview.InkWorkspace.egg-info/requires.txt
14
+ winrt_Windows.ApplicationModel.Preview.InkWorkspace.egg-info/top_level.txt
@@ -0,0 +1,5 @@
1
+ winrt-runtime==2.0.0-beta.1
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.0.0-beta.1
5
+ winrt-Windows.Graphics.Imaging[all]==2.0.0-beta.1