winrt-Windows.UI.Composition.Effects 2.0.1__tar.gz → 2.1.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.1.0}/PKG-INFO +3 -3
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.1.0}/all-requirements.txt +2 -2
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.1.0}/py.Windows.UI.Composition.Effects.cpp +100 -105
- winrt_windows_ui_composition_effects-2.1.0/pywinrt-version.txt +1 -0
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.1.0}/requirements.txt +2 -2
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.1.0}/winrt/_winrt_windows_ui_composition_effects.pyi +5 -5
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.1.0}/winrt/windows/ui/composition/effects/__init__.py +1 -1
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.1.0}/winrt_Windows.UI.Composition.Effects.egg-info/PKG-INFO +3 -3
- winrt_windows_ui_composition_effects-2.1.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.1.0}/README.md +0 -0
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.1.0}/pyproject.toml +0 -0
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.1.0}/setup.cfg +0 -0
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.1.0}/setup.py +0 -0
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.1.0}/winrt/windows/ui/composition/effects/py.typed +0 -0
- {winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.1.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.1.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.1.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.1.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.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,9 +12,9 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.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.1.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.1.0
|
|
2
2
|
|
|
3
|
-
winrt-Windows.Graphics.Effects[all]==2.0
|
|
3
|
+
winrt-Windows.Graphics.Effects[all]==2.1.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.1.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 --------------------
|
|
@@ -46,14 +45,14 @@ 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
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"Name"))
|
|
51
|
+
{
|
|
52
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
53
|
+
return nullptr;
|
|
54
|
+
}
|
|
55
|
+
|
|
57
56
|
return py::convert(self->obj.Name());
|
|
58
57
|
}
|
|
59
58
|
catch (...)
|
|
@@ -65,12 +64,6 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
65
64
|
|
|
66
65
|
static int SceneLightingEffect_put_Name(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, PyObject* arg, void* /*unused*/) noexcept
|
|
67
66
|
{
|
|
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
67
|
if (arg == nullptr)
|
|
75
68
|
{
|
|
76
69
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -79,6 +72,12 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
79
72
|
|
|
80
73
|
try
|
|
81
74
|
{
|
|
75
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"Name"))
|
|
76
|
+
{
|
|
77
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
78
|
+
return -1;
|
|
79
|
+
}
|
|
80
|
+
|
|
82
81
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
83
82
|
|
|
84
83
|
self->obj.Name(param0);
|
|
@@ -93,14 +92,14 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
93
92
|
|
|
94
93
|
static PyObject* SceneLightingEffect_get_SpecularShine(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, void* /*unused*/) noexcept
|
|
95
94
|
{
|
|
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
95
|
try
|
|
103
96
|
{
|
|
97
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"SpecularShine"))
|
|
98
|
+
{
|
|
99
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
100
|
+
return nullptr;
|
|
101
|
+
}
|
|
102
|
+
|
|
104
103
|
return py::convert(self->obj.SpecularShine());
|
|
105
104
|
}
|
|
106
105
|
catch (...)
|
|
@@ -112,12 +111,6 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
112
111
|
|
|
113
112
|
static int SceneLightingEffect_put_SpecularShine(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, PyObject* arg, void* /*unused*/) noexcept
|
|
114
113
|
{
|
|
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
114
|
if (arg == nullptr)
|
|
122
115
|
{
|
|
123
116
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -126,6 +119,12 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
126
119
|
|
|
127
120
|
try
|
|
128
121
|
{
|
|
122
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"SpecularShine"))
|
|
123
|
+
{
|
|
124
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
125
|
+
return -1;
|
|
126
|
+
}
|
|
127
|
+
|
|
129
128
|
auto param0 = py::convert_to<float>(arg);
|
|
130
129
|
|
|
131
130
|
self->obj.SpecularShine(param0);
|
|
@@ -140,14 +139,14 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
140
139
|
|
|
141
140
|
static PyObject* SceneLightingEffect_get_SpecularAmount(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, void* /*unused*/) noexcept
|
|
142
141
|
{
|
|
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
142
|
try
|
|
150
143
|
{
|
|
144
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"SpecularAmount"))
|
|
145
|
+
{
|
|
146
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
147
|
+
return nullptr;
|
|
148
|
+
}
|
|
149
|
+
|
|
151
150
|
return py::convert(self->obj.SpecularAmount());
|
|
152
151
|
}
|
|
153
152
|
catch (...)
|
|
@@ -159,12 +158,6 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
159
158
|
|
|
160
159
|
static int SceneLightingEffect_put_SpecularAmount(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, PyObject* arg, void* /*unused*/) noexcept
|
|
161
160
|
{
|
|
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
161
|
if (arg == nullptr)
|
|
169
162
|
{
|
|
170
163
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -173,6 +166,12 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
173
166
|
|
|
174
167
|
try
|
|
175
168
|
{
|
|
169
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"SpecularAmount"))
|
|
170
|
+
{
|
|
171
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
172
|
+
return -1;
|
|
173
|
+
}
|
|
174
|
+
|
|
176
175
|
auto param0 = py::convert_to<float>(arg);
|
|
177
176
|
|
|
178
177
|
self->obj.SpecularAmount(param0);
|
|
@@ -187,14 +186,14 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
187
186
|
|
|
188
187
|
static PyObject* SceneLightingEffect_get_NormalMapSource(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, void* /*unused*/) noexcept
|
|
189
188
|
{
|
|
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
189
|
try
|
|
197
190
|
{
|
|
191
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"NormalMapSource"))
|
|
192
|
+
{
|
|
193
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
194
|
+
return nullptr;
|
|
195
|
+
}
|
|
196
|
+
|
|
198
197
|
return py::convert(self->obj.NormalMapSource());
|
|
199
198
|
}
|
|
200
199
|
catch (...)
|
|
@@ -206,12 +205,6 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
206
205
|
|
|
207
206
|
static int SceneLightingEffect_put_NormalMapSource(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, PyObject* arg, void* /*unused*/) noexcept
|
|
208
207
|
{
|
|
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
208
|
if (arg == nullptr)
|
|
216
209
|
{
|
|
217
210
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -220,6 +213,12 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
220
213
|
|
|
221
214
|
try
|
|
222
215
|
{
|
|
216
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"NormalMapSource"))
|
|
217
|
+
{
|
|
218
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
219
|
+
return -1;
|
|
220
|
+
}
|
|
221
|
+
|
|
223
222
|
auto param0 = py::convert_to<winrt::Windows::Graphics::Effects::IGraphicsEffectSource>(arg);
|
|
224
223
|
|
|
225
224
|
self->obj.NormalMapSource(param0);
|
|
@@ -234,14 +233,14 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
234
233
|
|
|
235
234
|
static PyObject* SceneLightingEffect_get_DiffuseAmount(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, void* /*unused*/) noexcept
|
|
236
235
|
{
|
|
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
236
|
try
|
|
244
237
|
{
|
|
238
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"DiffuseAmount"))
|
|
239
|
+
{
|
|
240
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
241
|
+
return nullptr;
|
|
242
|
+
}
|
|
243
|
+
|
|
245
244
|
return py::convert(self->obj.DiffuseAmount());
|
|
246
245
|
}
|
|
247
246
|
catch (...)
|
|
@@ -253,12 +252,6 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
253
252
|
|
|
254
253
|
static int SceneLightingEffect_put_DiffuseAmount(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, PyObject* arg, void* /*unused*/) noexcept
|
|
255
254
|
{
|
|
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
255
|
if (arg == nullptr)
|
|
263
256
|
{
|
|
264
257
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -267,6 +260,12 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
267
260
|
|
|
268
261
|
try
|
|
269
262
|
{
|
|
263
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"DiffuseAmount"))
|
|
264
|
+
{
|
|
265
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
266
|
+
return -1;
|
|
267
|
+
}
|
|
268
|
+
|
|
270
269
|
auto param0 = py::convert_to<float>(arg);
|
|
271
270
|
|
|
272
271
|
self->obj.DiffuseAmount(param0);
|
|
@@ -281,14 +280,14 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
281
280
|
|
|
282
281
|
static PyObject* SceneLightingEffect_get_AmbientAmount(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, void* /*unused*/) noexcept
|
|
283
282
|
{
|
|
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
283
|
try
|
|
291
284
|
{
|
|
285
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"AmbientAmount"))
|
|
286
|
+
{
|
|
287
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
288
|
+
return nullptr;
|
|
289
|
+
}
|
|
290
|
+
|
|
292
291
|
return py::convert(self->obj.AmbientAmount());
|
|
293
292
|
}
|
|
294
293
|
catch (...)
|
|
@@ -300,12 +299,6 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
300
299
|
|
|
301
300
|
static int SceneLightingEffect_put_AmbientAmount(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, PyObject* arg, void* /*unused*/) noexcept
|
|
302
301
|
{
|
|
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
302
|
if (arg == nullptr)
|
|
310
303
|
{
|
|
311
304
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -314,6 +307,12 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
314
307
|
|
|
315
308
|
try
|
|
316
309
|
{
|
|
310
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"AmbientAmount"))
|
|
311
|
+
{
|
|
312
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
313
|
+
return -1;
|
|
314
|
+
}
|
|
315
|
+
|
|
317
316
|
auto param0 = py::convert_to<float>(arg);
|
|
318
317
|
|
|
319
318
|
self->obj.AmbientAmount(param0);
|
|
@@ -328,14 +327,14 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
328
327
|
|
|
329
328
|
static PyObject* SceneLightingEffect_get_ReflectanceModel(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, void* /*unused*/) noexcept
|
|
330
329
|
{
|
|
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
330
|
try
|
|
338
331
|
{
|
|
332
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"ReflectanceModel"))
|
|
333
|
+
{
|
|
334
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
335
|
+
return nullptr;
|
|
336
|
+
}
|
|
337
|
+
|
|
339
338
|
return py::convert(self->obj.ReflectanceModel());
|
|
340
339
|
}
|
|
341
340
|
catch (...)
|
|
@@ -347,12 +346,6 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
347
346
|
|
|
348
347
|
static int SceneLightingEffect_put_ReflectanceModel(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect* self, PyObject* arg, void* /*unused*/) noexcept
|
|
349
348
|
{
|
|
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
349
|
if (arg == nullptr)
|
|
357
350
|
{
|
|
358
351
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -361,6 +354,12 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
361
354
|
|
|
362
355
|
try
|
|
363
356
|
{
|
|
357
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.Effects.SceneLightingEffect", L"ReflectanceModel"))
|
|
358
|
+
{
|
|
359
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
360
|
+
return -1;
|
|
361
|
+
}
|
|
362
|
+
|
|
364
363
|
auto param0 = py::convert_to<winrt::Windows::UI::Composition::Effects::SceneLightingEffectReflectanceModel>(arg);
|
|
365
364
|
|
|
366
365
|
self->obj.ReflectanceModel(param0);
|
|
@@ -414,39 +413,35 @@ namespace py::cpp::Windows::UI::Composition::Effects
|
|
|
414
413
|
{ }
|
|
415
414
|
};
|
|
416
415
|
|
|
417
|
-
static PyType_Slot _type_slots_SceneLightingEffect[] =
|
|
418
|
-
{
|
|
416
|
+
static PyType_Slot _type_slots_SceneLightingEffect[] = {
|
|
419
417
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SceneLightingEffect) },
|
|
420
418
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SceneLightingEffect) },
|
|
421
419
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SceneLightingEffect) },
|
|
422
420
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SceneLightingEffect) },
|
|
423
|
-
{ }
|
|
421
|
+
{ }
|
|
424
422
|
};
|
|
425
423
|
|
|
426
|
-
static PyType_Spec type_spec_SceneLightingEffect =
|
|
427
|
-
{
|
|
424
|
+
static PyType_Spec type_spec_SceneLightingEffect = {
|
|
428
425
|
"winrt._winrt_windows_ui_composition_effects.SceneLightingEffect",
|
|
429
426
|
sizeof(py::wrapper::Windows::UI::Composition::Effects::SceneLightingEffect),
|
|
430
427
|
0,
|
|
431
428
|
Py_TPFLAGS_DEFAULT,
|
|
432
|
-
_type_slots_SceneLightingEffect
|
|
433
|
-
};
|
|
429
|
+
_type_slots_SceneLightingEffect};
|
|
434
430
|
|
|
435
431
|
// ----- Windows.UI.Composition.Effects Initialization --------------------
|
|
436
|
-
PyDoc_STRVAR(module_doc, "Windows::UI::Composition::Effects");
|
|
437
|
-
|
|
438
432
|
|
|
439
|
-
|
|
440
|
-
= {PyModuleDef_HEAD_INIT,
|
|
441
|
-
"_winrt_windows_ui_composition_effects",
|
|
442
|
-
module_doc,
|
|
443
|
-
0,
|
|
444
|
-
nullptr,
|
|
445
|
-
nullptr,
|
|
446
|
-
nullptr,
|
|
447
|
-
nullptr,
|
|
448
|
-
nullptr};
|
|
433
|
+
PyDoc_STRVAR(module_doc, "Windows.UI.Composition.Effects");
|
|
449
434
|
|
|
435
|
+
static PyModuleDef module_def = {
|
|
436
|
+
PyModuleDef_HEAD_INIT,
|
|
437
|
+
"_winrt_windows_ui_composition_effects",
|
|
438
|
+
module_doc,
|
|
439
|
+
0,
|
|
440
|
+
nullptr,
|
|
441
|
+
nullptr,
|
|
442
|
+
nullptr,
|
|
443
|
+
nullptr,
|
|
444
|
+
nullptr};
|
|
450
445
|
} // py::cpp::Windows::UI::Composition::Effects
|
|
451
446
|
|
|
452
447
|
PyMODINIT_FUNC PyInit__winrt_windows_ui_composition_effects(void) noexcept
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.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.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0
|
|
3
|
+
winrt-runtime==2.1.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.1.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.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,9 +12,9 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.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.1.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.1.0}/README.md
RENAMED
|
File without changes
|
|
File without changes
|
{winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.1.0}/setup.cfg
RENAMED
|
File without changes
|
{winrt_windows_ui_composition_effects-2.0.1 → winrt_windows_ui_composition_effects-2.1.0}/setup.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|