winrt-Windows.UI.Notifications.Preview 2.0.0b2__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.
@@ -0,0 +1,23 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.UI.Notifications.Preview
3
+ Version: 2.0.0b2
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License: MIT
6
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
7
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
9
+ Classifier: Operating System :: Microsoft :: Windows
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: Implementation :: CPython
12
+ Classifier: Intended Audience :: Developers
13
+ Requires-Python: <3.13,>=3.9
14
+ Description-Content-Type: text/markdown
15
+ Provides-Extra: all
16
+
17
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
18
+
19
+ # winrt-Windows.UI.Notifications.Preview
20
+
21
+ Windows Runtime (WinRT) APIs for for the `Windows.UI.Notifications.Preview` namespace.
22
+
23
+ This package provides the `winrt.windows.ui.notifications.preview` module.
@@ -0,0 +1,7 @@
1
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
2
+
3
+ # winrt-Windows.UI.Notifications.Preview
4
+
5
+ Windows Runtime (WinRT) APIs for for the `Windows.UI.Notifications.Preview` namespace.
6
+
7
+ This package provides the `winrt.windows.ui.notifications.preview` module.
@@ -0,0 +1,3 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
2
+
3
+ winrt-Windows.UI[all]==2.0.0-beta.2
@@ -0,0 +1,160 @@
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
2
+
3
+ #include "py.Windows.UI.Notifications.Preview.h"
4
+
5
+
6
+ namespace py::cpp::Windows::UI::Notifications::Preview
7
+ {
8
+ // ----- ToastOcclusionManagerPreview class --------------------
9
+
10
+ static PyObject* _new_ToastOcclusionManagerPreview(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
11
+ {
12
+ static_assert(py::py_type<winrt::Windows::UI::Notifications::Preview::ToastOcclusionManagerPreview>::type_name);
13
+ py::set_invalid_activation_error(py::py_type<winrt::Windows::UI::Notifications::Preview::ToastOcclusionManagerPreview>::type_name);
14
+ return nullptr;
15
+ }
16
+
17
+ static PyObject* ToastOcclusionManagerPreview_SetToastWindowMargin(PyObject* /*unused*/, PyObject* args) noexcept
18
+ {
19
+ auto arg_count = PyTuple_Size(args);
20
+
21
+ if (arg_count == 2)
22
+ {
23
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Notifications.Preview.ToastOcclusionManagerPreview", L"SetToastWindowMargin", 2))
24
+ {
25
+ py::set_arg_count_version_error(2);
26
+ return nullptr;
27
+ }
28
+
29
+ try
30
+ {
31
+ auto param0 = py::convert_to<winrt::Windows::UI::WindowId>(args, 0);
32
+ auto param1 = py::convert_to<double>(args, 1);
33
+
34
+ winrt::Windows::UI::Notifications::Preview::ToastOcclusionManagerPreview::SetToastWindowMargin(param0, param1);
35
+ Py_RETURN_NONE;
36
+ }
37
+ catch (...)
38
+ {
39
+ py::to_PyErr();
40
+ return nullptr;
41
+ }
42
+ }
43
+ else
44
+ {
45
+ py::set_invalid_arg_count_error(arg_count);
46
+ return nullptr;
47
+ }
48
+ }
49
+
50
+ static PyMethodDef _methods_ToastOcclusionManagerPreview[] = {
51
+ { }
52
+ };
53
+
54
+ static PyGetSetDef _getset_ToastOcclusionManagerPreview[] = {
55
+ { }
56
+ };
57
+
58
+ static PyType_Slot _type_slots_ToastOcclusionManagerPreview[] =
59
+ {
60
+ { Py_tp_new, reinterpret_cast<void*>(_new_ToastOcclusionManagerPreview) },
61
+ { Py_tp_methods, reinterpret_cast<void*>(_methods_ToastOcclusionManagerPreview) },
62
+ { Py_tp_getset, reinterpret_cast<void*>(_getset_ToastOcclusionManagerPreview) },
63
+ { },
64
+ };
65
+
66
+ static PyType_Spec type_spec_ToastOcclusionManagerPreview =
67
+ {
68
+ "winrt._winrt_windows_ui_notifications_preview.ToastOcclusionManagerPreview",
69
+ 0,
70
+ 0,
71
+ Py_TPFLAGS_DEFAULT,
72
+ _type_slots_ToastOcclusionManagerPreview
73
+ };
74
+
75
+ static PyGetSetDef getset_ToastOcclusionManagerPreview_Static[] = {
76
+ { }
77
+ };
78
+
79
+ static PyMethodDef methods_ToastOcclusionManagerPreview_Static[] = {
80
+ { "set_toast_window_margin", reinterpret_cast<PyCFunction>(ToastOcclusionManagerPreview_SetToastWindowMargin), METH_VARARGS, nullptr },
81
+ { }
82
+ };
83
+
84
+ static PyType_Slot type_slots_ToastOcclusionManagerPreview_Static[] =
85
+ {
86
+ { Py_tp_base, reinterpret_cast<void*>(&PyType_Type) },
87
+ { Py_tp_getset, reinterpret_cast<void*>(getset_ToastOcclusionManagerPreview_Static) },
88
+ { Py_tp_methods, reinterpret_cast<void*>(methods_ToastOcclusionManagerPreview_Static) },
89
+ { }
90
+ };
91
+
92
+ static PyType_Spec type_spec_ToastOcclusionManagerPreview_Static =
93
+ {
94
+ "winrt._winrt_windows_ui_notifications_preview.ToastOcclusionManagerPreview_Static",
95
+ static_cast<int>(PyType_Type.tp_basicsize),
96
+ static_cast<int>(PyType_Type.tp_itemsize),
97
+ Py_TPFLAGS_DEFAULT,
98
+ type_slots_ToastOcclusionManagerPreview_Static
99
+ };
100
+
101
+ // ----- Windows.UI.Notifications.Preview Initialization --------------------
102
+ PyDoc_STRVAR(module_doc, "Windows::UI::Notifications::Preview");
103
+
104
+
105
+ static PyModuleDef module_def
106
+ = {PyModuleDef_HEAD_INIT,
107
+ "_winrt_windows_ui_notifications_preview",
108
+ module_doc,
109
+ 0,
110
+ nullptr,
111
+ nullptr,
112
+ nullptr,
113
+ nullptr,
114
+ nullptr};
115
+
116
+ } // py::cpp::Windows::UI::Notifications::Preview
117
+
118
+ PyMODINIT_FUNC PyInit__winrt_windows_ui_notifications_preview(void) noexcept
119
+ {
120
+ using namespace py::cpp::Windows::UI::Notifications::Preview;
121
+
122
+ if (py::import_winrt_runtime() == -1)
123
+ {
124
+ return nullptr;
125
+ }
126
+
127
+ py::pyobj_handle module{PyModule_Create(&module_def)};
128
+
129
+ if (!module)
130
+ {
131
+ return nullptr;
132
+ }
133
+
134
+ auto object_type = py::get_object_type();
135
+ if (!object_type)
136
+ {
137
+ return nullptr;
138
+ }
139
+
140
+ py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
141
+
142
+ if (!object_bases)
143
+ {
144
+ return nullptr;
145
+ }
146
+
147
+ py::pyobj_handle type_ToastOcclusionManagerPreview_Static{PyType_FromSpec(&type_spec_ToastOcclusionManagerPreview_Static)};
148
+ if (!type_ToastOcclusionManagerPreview_Static)
149
+ {
150
+ return nullptr;
151
+ }
152
+
153
+ if (py::register_python_type(module.get(), &type_spec_ToastOcclusionManagerPreview, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_ToastOcclusionManagerPreview_Static.get())) == -1)
154
+ {
155
+ return nullptr;
156
+ }
157
+
158
+
159
+ return module.detach();
160
+ }
@@ -0,0 +1,46 @@
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.Notifications.Preview"
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/pywinrt/pywinrt"
23
+ Documentation = "https://pywinrt.readthedocs.io"
24
+ Repository = "https://github.com/pywinrt/pywinrt"
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.setuptools.package-data]
33
+ winrt = ["*.pyi"]
34
+
35
+ [tool.cibuildwheel]
36
+ # use local winrt-sdk build dependency
37
+ environment = { PYTHONPATH="../winrt-sdk/src" }
38
+ # don't install winrt-sdk from PyPI
39
+ build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
40
+ # don't build for PyPy
41
+ skip = "pp*"
42
+ # suppress warnings about ARM64 testing
43
+ test-skip = "*-win_arm64"
44
+
45
+ [tool.cibuildwheel.windows]
46
+ 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.2
2
+
3
+ winrt-runtime==2.0.0-beta.2
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,16 @@
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_notifications_preview",
10
+ sources=["py.Windows.UI.Notifications.Preview.cpp"],
11
+ include_dirs=get_include_dirs(),
12
+ extra_compile_args=["/std:c++20", "/permissive-"],
13
+ libraries=["windowsapp"],
14
+ )
15
+ ],
16
+ )
@@ -0,0 +1,24 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
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.ui
13
+
14
+ Self = typing.TypeVar('Self')
15
+
16
+ @typing.final
17
+ class ToastOcclusionManagerPreview_Static(type):
18
+ def set_toast_window_margin(cls, app_window_id: winrt.windows.ui.WindowId, margin: winrt.system.Double, /) -> None: ...
19
+
20
+ @typing.final
21
+ class ToastOcclusionManagerPreview(winrt.system.Object, metaclass=ToastOcclusionManagerPreview_Static):
22
+ @staticmethod
23
+ def _from(obj: winrt.system.Object, /) -> ToastOcclusionManagerPreview: ...
24
+
@@ -0,0 +1,10 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
2
+
3
+ import winrt.system
4
+ from winrt import _winrt_windows_ui_notifications_preview
5
+
6
+ __all__ = [
7
+ "ToastOcclusionManagerPreview",
8
+ ]
9
+
10
+ ToastOcclusionManagerPreview = _winrt_windows_ui_notifications_preview.ToastOcclusionManagerPreview
@@ -0,0 +1,23 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.UI.Notifications.Preview
3
+ Version: 2.0.0b2
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License: MIT
6
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
7
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
9
+ Classifier: Operating System :: Microsoft :: Windows
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: Implementation :: CPython
12
+ Classifier: Intended Audience :: Developers
13
+ Requires-Python: <3.13,>=3.9
14
+ Description-Content-Type: text/markdown
15
+ Provides-Extra: all
16
+
17
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
18
+
19
+ # winrt-Windows.UI.Notifications.Preview
20
+
21
+ Windows Runtime (WinRT) APIs for for the `Windows.UI.Notifications.Preview` namespace.
22
+
23
+ This package provides the `winrt.windows.ui.notifications.preview` module.
@@ -0,0 +1,14 @@
1
+ README.md
2
+ all-requirements.txt
3
+ py.Windows.UI.Notifications.Preview.cpp
4
+ pyproject.toml
5
+ pywinrt-version.txt
6
+ requirements.txt
7
+ setup.py
8
+ winrt/_winrt_windows_ui_notifications_preview.pyi
9
+ winrt/windows/ui/notifications/preview/__init__.py
10
+ winrt_Windows.UI.Notifications.Preview.egg-info/PKG-INFO
11
+ winrt_Windows.UI.Notifications.Preview.egg-info/SOURCES.txt
12
+ winrt_Windows.UI.Notifications.Preview.egg-info/dependency_links.txt
13
+ winrt_Windows.UI.Notifications.Preview.egg-info/requires.txt
14
+ winrt_Windows.UI.Notifications.Preview.egg-info/top_level.txt
@@ -0,0 +1,4 @@
1
+ winrt-runtime==2.0.0-beta.2
2
+
3
+ [all]
4
+ winrt-Windows.UI[all]==2.0.0-beta.2