winrt-Windows.UI.Composition.Effects 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_effects-2.0.1 → winrt_windows_ui_composition_effects-2.2.0}/PKG-INFO +4 -4
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.2.0}/all-requirements.txt +2 -2
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.2.0}/py.Windows.UI.Composition.Effects.cpp +201 -107
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.2.0}/pyproject.toml +3 -2
- winrt_windows_ui_composition_effects-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.2.0}/requirements.txt +2 -2
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.2.0}/winrt/_winrt_windows_ui_composition_effects.pyi +5 -5
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.2.0}/winrt/windows/ui/composition/effects/__init__.py +1 -1
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.2.0}/winrt_Windows.UI.Composition.Effects.egg-info/PKG-INFO +4 -4
- winrt_windows_ui_composition_effects-2.2.0/winrt_Windows.UI.Composition.Effects.egg-info/requires.txt +4 -0
- winrt_windows_ui_composition_effects-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_ui_composition_effects-2.0.1/winrt_Windows.UI.Composition.Effects.egg-info/requires.txt +0 -4
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.2.0}/README.md +0 -0
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.2.0}/setup.cfg +0 -0
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.2.0}/setup.py +0 -0
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.2.0}/winrt/windows/ui/composition/effects/py.typed +0 -0
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.2.0}/winrt_Windows.UI.Composition.Effects.egg-info/SOURCES.txt +0 -0
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.2.0}/winrt_Windows.UI.Composition.Effects.egg-info/dependency_links.txt +0 -0
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.2.0}/winrt_Windows.UI.Composition.Effects.egg-info/top_level.txt +0 -0
{winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.2.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.UI.Composition.Effects
|
|
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,11 +10,11 @@ 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
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Graphics.Effects[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Graphics.Effects[all]==2.2.0; extra == "all"
|
|
18
18
|
|
|
19
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
20
|
|
|
@@ -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-Windows.Graphics.Effects[all]==2.0
|
|
3
|
+
winrt-Windows.Graphics.Effects[all]==2.2.0
|
|
@@ -1,8 +1,7 @@
|
|
|
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
3
|
#include "py.Windows.UI.Composition.Effects.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::UI::Composition::Effects
|
|
7
6
|
{
|
|
8
7
|
// ----- SceneLightingEffect class --------------------
|
|
@@ -20,7 +19,7 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
20
19
|
{
|
|
21
20
|
try
|
|
22
21
|
{
|
|
23
|
-
winrt::Windows::UI::Composition::Effects::SceneLightingEffect instance{
|
|
22
|
+
winrt::Windows::UI::Composition::Effects::SceneLightingEffect instance{};
|
|
24
23
|
return py::wrap(instance, type);
|
|
25
24
|
}
|
|
26
25
|
catch (...)
|
|
@@ -46,14 +45,21 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
46
45
|
|
|
47
46
|
static PyObject* SceneLightingEffect_get_Name(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, void* /*unused*/) noexcept
|
|
48
47
|
{
|
|
49
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"Name"))
|
|
50
|
-
{
|
|
51
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
52
|
-
return nullptr;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
48
|
try
|
|
56
49
|
{
|
|
50
|
+
static std::optional<bool> is_property_present{};
|
|
51
|
+
|
|
52
|
+
if (!is_property_present.has_value())
|
|
53
|
+
{
|
|
54
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"Name");
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (!is_property_present.value())
|
|
58
|
+
{
|
|
59
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
60
|
+
return nullptr;
|
|
61
|
+
}
|
|
62
|
+
|
|
57
63
|
return py::convert(self->obj.Name());
|
|
58
64
|
}
|
|
59
65
|
catch (...)
|
|
@@ -65,12 +71,6 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
65
71
|
|
|
66
72
|
static int SceneLightingEffect_put_Name(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, PyObject* arg, void* /*unused*/) noexcept
|
|
67
73
|
{
|
|
68
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"Name"))
|
|
69
|
-
{
|
|
70
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
71
|
-
return -1;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
74
|
if (arg == nullptr)
|
|
75
75
|
{
|
|
76
76
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -79,6 +79,19 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
79
79
|
|
|
80
80
|
try
|
|
81
81
|
{
|
|
82
|
+
static std::optional<bool> is_property_present{};
|
|
83
|
+
|
|
84
|
+
if (!is_property_present.has_value())
|
|
85
|
+
{
|
|
86
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"Name");
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (!is_property_present.value())
|
|
90
|
+
{
|
|
91
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
92
|
+
return -1;
|
|
93
|
+
}
|
|
94
|
+
|
|
82
95
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
83
96
|
|
|
84
97
|
self->obj.Name(param0);
|
|
@@ -93,14 +106,21 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
93
106
|
|
|
94
107
|
static PyObject* SceneLightingEffect_get_SpecularShine(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, void* /*unused*/) noexcept
|
|
95
108
|
{
|
|
96
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"SpecularShine"))
|
|
97
|
-
{
|
|
98
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
99
|
-
return nullptr;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
109
|
try
|
|
103
110
|
{
|
|
111
|
+
static std::optional<bool> is_property_present{};
|
|
112
|
+
|
|
113
|
+
if (!is_property_present.has_value())
|
|
114
|
+
{
|
|
115
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"SpecularShine");
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (!is_property_present.value())
|
|
119
|
+
{
|
|
120
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
121
|
+
return nullptr;
|
|
122
|
+
}
|
|
123
|
+
|
|
104
124
|
return py::convert(self->obj.SpecularShine());
|
|
105
125
|
}
|
|
106
126
|
catch (...)
|
|
@@ -112,12 +132,6 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
112
132
|
|
|
113
133
|
static int SceneLightingEffect_put_SpecularShine(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, PyObject* arg, void* /*unused*/) noexcept
|
|
114
134
|
{
|
|
115
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"SpecularShine"))
|
|
116
|
-
{
|
|
117
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
118
|
-
return -1;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
135
|
if (arg == nullptr)
|
|
122
136
|
{
|
|
123
137
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -126,6 +140,19 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
126
140
|
|
|
127
141
|
try
|
|
128
142
|
{
|
|
143
|
+
static std::optional<bool> is_property_present{};
|
|
144
|
+
|
|
145
|
+
if (!is_property_present.has_value())
|
|
146
|
+
{
|
|
147
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"SpecularShine");
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if (!is_property_present.value())
|
|
151
|
+
{
|
|
152
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
153
|
+
return -1;
|
|
154
|
+
}
|
|
155
|
+
|
|
129
156
|
auto param0 = py::convert_to<float>(arg);
|
|
130
157
|
|
|
131
158
|
self->obj.SpecularShine(param0);
|
|
@@ -140,14 +167,21 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
140
167
|
|
|
141
168
|
static PyObject* SceneLightingEffect_get_SpecularAmount(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, void* /*unused*/) noexcept
|
|
142
169
|
{
|
|
143
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"SpecularAmount"))
|
|
144
|
-
{
|
|
145
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
146
|
-
return nullptr;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
170
|
try
|
|
150
171
|
{
|
|
172
|
+
static std::optional<bool> is_property_present{};
|
|
173
|
+
|
|
174
|
+
if (!is_property_present.has_value())
|
|
175
|
+
{
|
|
176
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"SpecularAmount");
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
if (!is_property_present.value())
|
|
180
|
+
{
|
|
181
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
182
|
+
return nullptr;
|
|
183
|
+
}
|
|
184
|
+
|
|
151
185
|
return py::convert(self->obj.SpecularAmount());
|
|
152
186
|
}
|
|
153
187
|
catch (...)
|
|
@@ -159,12 +193,6 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
159
193
|
|
|
160
194
|
static int SceneLightingEffect_put_SpecularAmount(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, PyObject* arg, void* /*unused*/) noexcept
|
|
161
195
|
{
|
|
162
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"SpecularAmount"))
|
|
163
|
-
{
|
|
164
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
165
|
-
return -1;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
196
|
if (arg == nullptr)
|
|
169
197
|
{
|
|
170
198
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -173,6 +201,19 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
173
201
|
|
|
174
202
|
try
|
|
175
203
|
{
|
|
204
|
+
static std::optional<bool> is_property_present{};
|
|
205
|
+
|
|
206
|
+
if (!is_property_present.has_value())
|
|
207
|
+
{
|
|
208
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"SpecularAmount");
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
if (!is_property_present.value())
|
|
212
|
+
{
|
|
213
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
214
|
+
return -1;
|
|
215
|
+
}
|
|
216
|
+
|
|
176
217
|
auto param0 = py::convert_to<float>(arg);
|
|
177
218
|
|
|
178
219
|
self->obj.SpecularAmount(param0);
|
|
@@ -187,14 +228,21 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
187
228
|
|
|
188
229
|
static PyObject* SceneLightingEffect_get_NormalMapSource(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, void* /*unused*/) noexcept
|
|
189
230
|
{
|
|
190
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"NormalMapSource"))
|
|
191
|
-
{
|
|
192
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
193
|
-
return nullptr;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
231
|
try
|
|
197
232
|
{
|
|
233
|
+
static std::optional<bool> is_property_present{};
|
|
234
|
+
|
|
235
|
+
if (!is_property_present.has_value())
|
|
236
|
+
{
|
|
237
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"NormalMapSource");
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
if (!is_property_present.value())
|
|
241
|
+
{
|
|
242
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
243
|
+
return nullptr;
|
|
244
|
+
}
|
|
245
|
+
|
|
198
246
|
return py::convert(self->obj.NormalMapSource());
|
|
199
247
|
}
|
|
200
248
|
catch (...)
|
|
@@ -206,12 +254,6 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
206
254
|
|
|
207
255
|
static int SceneLightingEffect_put_NormalMapSource(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, PyObject* arg, void* /*unused*/) noexcept
|
|
208
256
|
{
|
|
209
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"NormalMapSource"))
|
|
210
|
-
{
|
|
211
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
212
|
-
return -1;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
257
|
if (arg == nullptr)
|
|
216
258
|
{
|
|
217
259
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -220,6 +262,19 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
220
262
|
|
|
221
263
|
try
|
|
222
264
|
{
|
|
265
|
+
static std::optional<bool> is_property_present{};
|
|
266
|
+
|
|
267
|
+
if (!is_property_present.has_value())
|
|
268
|
+
{
|
|
269
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"NormalMapSource");
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
if (!is_property_present.value())
|
|
273
|
+
{
|
|
274
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
275
|
+
return -1;
|
|
276
|
+
}
|
|
277
|
+
|
|
223
278
|
auto param0 = py::convert_to<winrt::Windows::Graphics::Effects::IGraphicsEffectSource>(arg);
|
|
224
279
|
|
|
225
280
|
self->obj.NormalMapSource(param0);
|
|
@@ -234,14 +289,21 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
234
289
|
|
|
235
290
|
static PyObject* SceneLightingEffect_get_DiffuseAmount(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, void* /*unused*/) noexcept
|
|
236
291
|
{
|
|
237
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"DiffuseAmount"))
|
|
238
|
-
{
|
|
239
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
240
|
-
return nullptr;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
292
|
try
|
|
244
293
|
{
|
|
294
|
+
static std::optional<bool> is_property_present{};
|
|
295
|
+
|
|
296
|
+
if (!is_property_present.has_value())
|
|
297
|
+
{
|
|
298
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"DiffuseAmount");
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
if (!is_property_present.value())
|
|
302
|
+
{
|
|
303
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
304
|
+
return nullptr;
|
|
305
|
+
}
|
|
306
|
+
|
|
245
307
|
return py::convert(self->obj.DiffuseAmount());
|
|
246
308
|
}
|
|
247
309
|
catch (...)
|
|
@@ -253,12 +315,6 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
253
315
|
|
|
254
316
|
static int SceneLightingEffect_put_DiffuseAmount(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, PyObject* arg, void* /*unused*/) noexcept
|
|
255
317
|
{
|
|
256
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"DiffuseAmount"))
|
|
257
|
-
{
|
|
258
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
259
|
-
return -1;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
318
|
if (arg == nullptr)
|
|
263
319
|
{
|
|
264
320
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -267,6 +323,19 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
267
323
|
|
|
268
324
|
try
|
|
269
325
|
{
|
|
326
|
+
static std::optional<bool> is_property_present{};
|
|
327
|
+
|
|
328
|
+
if (!is_property_present.has_value())
|
|
329
|
+
{
|
|
330
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"DiffuseAmount");
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
if (!is_property_present.value())
|
|
334
|
+
{
|
|
335
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
336
|
+
return -1;
|
|
337
|
+
}
|
|
338
|
+
|
|
270
339
|
auto param0 = py::convert_to<float>(arg);
|
|
271
340
|
|
|
272
341
|
self->obj.DiffuseAmount(param0);
|
|
@@ -281,14 +350,21 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
281
350
|
|
|
282
351
|
static PyObject* SceneLightingEffect_get_AmbientAmount(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, void* /*unused*/) noexcept
|
|
283
352
|
{
|
|
284
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"AmbientAmount"))
|
|
285
|
-
{
|
|
286
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
287
|
-
return nullptr;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
353
|
try
|
|
291
354
|
{
|
|
355
|
+
static std::optional<bool> is_property_present{};
|
|
356
|
+
|
|
357
|
+
if (!is_property_present.has_value())
|
|
358
|
+
{
|
|
359
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"AmbientAmount");
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
if (!is_property_present.value())
|
|
363
|
+
{
|
|
364
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
365
|
+
return nullptr;
|
|
366
|
+
}
|
|
367
|
+
|
|
292
368
|
return py::convert(self->obj.AmbientAmount());
|
|
293
369
|
}
|
|
294
370
|
catch (...)
|
|
@@ -300,12 +376,6 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
300
376
|
|
|
301
377
|
static int SceneLightingEffect_put_AmbientAmount(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, PyObject* arg, void* /*unused*/) noexcept
|
|
302
378
|
{
|
|
303
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"AmbientAmount"))
|
|
304
|
-
{
|
|
305
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
306
|
-
return -1;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
379
|
if (arg == nullptr)
|
|
310
380
|
{
|
|
311
381
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -314,6 +384,19 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
314
384
|
|
|
315
385
|
try
|
|
316
386
|
{
|
|
387
|
+
static std::optional<bool> is_property_present{};
|
|
388
|
+
|
|
389
|
+
if (!is_property_present.has_value())
|
|
390
|
+
{
|
|
391
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"AmbientAmount");
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
if (!is_property_present.value())
|
|
395
|
+
{
|
|
396
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
397
|
+
return -1;
|
|
398
|
+
}
|
|
399
|
+
|
|
317
400
|
auto param0 = py::convert_to<float>(arg);
|
|
318
401
|
|
|
319
402
|
self->obj.AmbientAmount(param0);
|
|
@@ -328,14 +411,21 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
328
411
|
|
|
329
412
|
static PyObject* SceneLightingEffect_get_ReflectanceModel(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, void* /*unused*/) noexcept
|
|
330
413
|
{
|
|
331
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"ReflectanceModel"))
|
|
332
|
-
{
|
|
333
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
334
|
-
return nullptr;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
414
|
try
|
|
338
415
|
{
|
|
416
|
+
static std::optional<bool> is_property_present{};
|
|
417
|
+
|
|
418
|
+
if (!is_property_present.has_value())
|
|
419
|
+
{
|
|
420
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"ReflectanceModel");
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
if (!is_property_present.value())
|
|
424
|
+
{
|
|
425
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
426
|
+
return nullptr;
|
|
427
|
+
}
|
|
428
|
+
|
|
339
429
|
return py::convert(self->obj.ReflectanceModel());
|
|
340
430
|
}
|
|
341
431
|
catch (...)
|
|
@@ -347,12 +437,6 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
347
437
|
|
|
348
438
|
static int SceneLightingEffect_put_ReflectanceModel(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, PyObject* arg, void* /*unused*/) noexcept
|
|
349
439
|
{
|
|
350
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"ReflectanceModel"))
|
|
351
|
-
{
|
|
352
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
353
|
-
return -1;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
440
|
if (arg == nullptr)
|
|
357
441
|
{
|
|
358
442
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -361,6 +445,19 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
361
445
|
|
|
362
446
|
try
|
|
363
447
|
{
|
|
448
|
+
static std::optional<bool> is_property_present{};
|
|
449
|
+
|
|
450
|
+
if (!is_property_present.has_value())
|
|
451
|
+
{
|
|
452
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"ReflectanceModel");
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
if (!is_property_present.value())
|
|
456
|
+
{
|
|
457
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
458
|
+
return -1;
|
|
459
|
+
}
|
|
460
|
+
|
|
364
461
|
auto param0 = py::convert_to<winrt::Windows::UI::Composition::Effects::SceneLightingEffectReflectanceModel>(arg);
|
|
365
462
|
|
|
366
463
|
self->obj.ReflectanceModel(param0);
|
|
@@ -414,39 +511,35 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
414
511
|
{ }
|
|
415
512
|
};
|
|
416
513
|
|
|
417
|
-
static PyType_Slot _type_slots_SceneLightingEffect[] =
|
|
418
|
-
{
|
|
514
|
+
static PyType_Slot _type_slots_SceneLightingEffect[] = {
|
|
419
515
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SceneLightingEffect) },
|
|
420
516
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SceneLightingEffect) },
|
|
421
517
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SceneLightingEffect) },
|
|
422
518
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SceneLightingEffect) },
|
|
423
|
-
{ }
|
|
519
|
+
{ }
|
|
424
520
|
};
|
|
425
521
|
|
|
426
|
-
static PyType_Spec type_spec_SceneLightingEffect =
|
|
427
|
-
{
|
|
522
|
+
static PyType_Spec type_spec_SceneLightingEffect = {
|
|
428
523
|
"winrt._winrt_windows_ui_composition_effects.SceneLightingEffect",
|
|
429
524
|
sizeof(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect),
|
|
430
525
|
0,
|
|
431
526
|
Py_TPFLAGS_DEFAULT,
|
|
432
|
-
_type_slots_SceneLightingEffect
|
|
433
|
-
};
|
|
527
|
+
_type_slots_SceneLightingEffect};
|
|
434
528
|
|
|
435
529
|
// ----- Windows.UI.Composition.Effects Initialization --------------------
|
|
436
|
-
PyDoc_STRVAR(module_doc, "Windows::UI::Composition::Effects");
|
|
437
530
|
|
|
531
|
+
PyDoc_STRVAR(module_doc, "Windows.UI.Composition.Effects");
|
|
438
532
|
|
|
439
|
-
static PyModuleDef module_def
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
533
|
+
static PyModuleDef module_def = {
|
|
534
|
+
PyModuleDef_HEAD_INIT,
|
|
535
|
+
"_winrt_windows_ui_composition_effects",
|
|
536
|
+
module_doc,
|
|
537
|
+
0,
|
|
538
|
+
nullptr,
|
|
539
|
+
nullptr,
|
|
540
|
+
nullptr,
|
|
541
|
+
nullptr,
|
|
542
|
+
nullptr};
|
|
450
543
|
} // py::cpp::Windows::UI::Composition::Effects
|
|
451
544
|
|
|
452
545
|
PyMODINIT_FUNC PyInit__winrt_windows_ui_composition_effects(void) noexcept
|
|
@@ -478,7 +571,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_composition_effects(void) noexcept
|
|
|
478
571
|
return nullptr;
|
|
479
572
|
}
|
|
480
573
|
|
|
481
|
-
|
|
574
|
+
py::pytype_handle SceneLightingEffect_type{py::register_python_type(module.get(), &type_spec_SceneLightingEffect, object_bases.get(), nullptr)};
|
|
575
|
+
if (!SceneLightingEffect_type)
|
|
482
576
|
{
|
|
483
577
|
return nullptr;
|
|
484
578
|
}
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9,<3.
|
|
19
|
+
requires-python = ">=3.9,<3.14"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
37
|
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
|
-
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
39
|
+
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
|
+
before-build = "uv pip install setuptools"
|
|
40
41
|
# don't build for PyPy
|
|
41
42
|
skip = "pp*"
|
|
42
43
|
# suppress warnings about ARM64 testing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.2.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.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
|
|
@@ -1,4 +1,4 @@
|
|
|
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
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -9,7 +9,7 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.graphics.effects
|
|
12
|
+
import winrt.windows.graphics.effects as windows_graphics_effects
|
|
13
13
|
|
|
14
14
|
from winrt.windows.ui.composition.effects import SceneLightingEffectReflectanceModel
|
|
15
15
|
|
|
@@ -19,7 +19,7 @@ Self = typing.TypeVar('Self')
|
|
|
19
19
|
class SceneLightingEffect(winrt.system.Object):
|
|
20
20
|
@staticmethod
|
|
21
21
|
def _from(obj: winrt.system.Object, /) -> SceneLightingEffect: ...
|
|
22
|
-
def __new__(cls: typing.Type[SceneLightingEffect]) -> SceneLightingEffect
|
|
22
|
+
def __new__(cls: typing.Type[SceneLightingEffect]) -> SceneLightingEffect: ...
|
|
23
23
|
@_property
|
|
24
24
|
def name(self) -> str: ...
|
|
25
25
|
@name.setter
|
|
@@ -33,9 +33,9 @@ class SceneLightingEffect(winrt.system.Object):
|
|
|
33
33
|
@specular_amount.setter
|
|
34
34
|
def specular_amount(self, value: winrt.system.Single) -> None: ...
|
|
35
35
|
@_property
|
|
36
|
-
def normal_map_source(self) -> typing.Optional[
|
|
36
|
+
def normal_map_source(self) -> typing.Optional[windows_graphics_effects.IGraphicsEffectSource]: ...
|
|
37
37
|
@normal_map_source.setter
|
|
38
|
-
def normal_map_source(self, value: typing.Optional[
|
|
38
|
+
def normal_map_source(self, value: typing.Optional[windows_graphics_effects.IGraphicsEffectSource]) -> None: ...
|
|
39
39
|
@_property
|
|
40
40
|
def diffuse_amount(self) -> winrt.system.Single: ...
|
|
41
41
|
@diffuse_amount.setter
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.UI.Composition.Effects
|
|
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,11 +10,11 @@ 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
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Graphics.Effects[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Graphics.Effects[all]==2.2.0; extra == "all"
|
|
18
18
|
|
|
19
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
20
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.1
|
{winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.2.0}/README.md
RENAMED
|
File without changes
|
{winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.2.0}/setup.cfg
RENAMED
|
File without changes
|
{winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.2.0}/setup.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|