winrt-Windows.UI.WindowManagement.Preview 2.3.0__tar.gz → 3.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_windowmanagement_preview-2.3.0 → winrt_windows_ui_windowmanagement_preview-3.1.0}/PKG-INFO +7 -7
- winrt_windows_ui_windowmanagement_preview-3.1.0/all-requirements.txt +4 -0
- {winrt_windows_ui_windowmanagement_preview-2.3.0 → winrt_windows_ui_windowmanagement_preview-3.1.0}/py.Windows.UI.WindowManagement.Preview.cpp +27 -18
- {winrt_windows_ui_windowmanagement_preview-2.3.0 → winrt_windows_ui_windowmanagement_preview-3.1.0}/pyproject.toml +4 -4
- winrt_windows_ui_windowmanagement_preview-3.1.0/pywinrt-version.txt +1 -0
- {winrt_windows_ui_windowmanagement_preview-2.3.0 → winrt_windows_ui_windowmanagement_preview-3.1.0}/requirements.txt +2 -2
- {winrt_windows_ui_windowmanagement_preview-2.3.0 → winrt_windows_ui_windowmanagement_preview-3.1.0}/setup.py +1 -1
- {winrt_windows_ui_windowmanagement_preview-2.3.0 → winrt_windows_ui_windowmanagement_preview-3.1.0}/winrt/_winrt_windows_ui_windowmanagement_preview.pyi +5 -5
- winrt_windows_ui_windowmanagement_preview-3.1.0/winrt/windows/ui/windowmanagement/preview/__init__.py +11 -0
- {winrt_windows_ui_windowmanagement_preview-2.3.0 → winrt_windows_ui_windowmanagement_preview-3.1.0}/winrt_Windows.UI.WindowManagement.Preview.egg-info/PKG-INFO +7 -7
- winrt_windows_ui_windowmanagement_preview-3.1.0/winrt_Windows.UI.WindowManagement.Preview.egg-info/requires.txt +5 -0
- winrt_windows_ui_windowmanagement_preview-2.3.0/all-requirements.txt +0 -4
- winrt_windows_ui_windowmanagement_preview-2.3.0/pywinrt-version.txt +0 -1
- winrt_windows_ui_windowmanagement_preview-2.3.0/winrt/windows/ui/windowmanagement/preview/__init__.py +0 -10
- winrt_windows_ui_windowmanagement_preview-2.3.0/winrt_Windows.UI.WindowManagement.Preview.egg-info/requires.txt +0 -5
- {winrt_windows_ui_windowmanagement_preview-2.3.0 → winrt_windows_ui_windowmanagement_preview-3.1.0}/README.md +0 -0
- {winrt_windows_ui_windowmanagement_preview-2.3.0 → winrt_windows_ui_windowmanagement_preview-3.1.0}/setup.cfg +0 -0
- {winrt_windows_ui_windowmanagement_preview-2.3.0 → winrt_windows_ui_windowmanagement_preview-3.1.0}/winrt/windows/ui/windowmanagement/preview/py.typed +0 -0
- {winrt_windows_ui_windowmanagement_preview-2.3.0 → winrt_windows_ui_windowmanagement_preview-3.1.0}/winrt_Windows.UI.WindowManagement.Preview.egg-info/SOURCES.txt +0 -0
- {winrt_windows_ui_windowmanagement_preview-2.3.0 → winrt_windows_ui_windowmanagement_preview-3.1.0}/winrt_Windows.UI.WindowManagement.Preview.egg-info/dependency_links.txt +0 -0
- {winrt_windows_ui_windowmanagement_preview-2.3.0 → winrt_windows_ui_windowmanagement_preview-3.1.0}/winrt_Windows.UI.WindowManagement.Preview.egg-info/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: winrt-Windows.UI.WindowManagement.Preview
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
-
License: MIT
|
|
5
|
+
License-Expression: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
7
|
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
8
|
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
@@ -10,12 +10,12 @@ 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:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.1.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.UI.WindowManagement[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.UI.WindowManagement[all]==3.1.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.UI.WindowManagement.Preview.h"
|
|
4
4
|
|
|
@@ -23,7 +23,7 @@ namespace py::cpp::Windows::UI::WindowManagement::Preview
|
|
|
23
23
|
|
|
24
24
|
static PyObject* WindowManagementPreview_SetPreferredMinSize(PyObject* /*unused*/, PyObject* args) noexcept
|
|
25
25
|
{
|
|
26
|
-
auto arg_count =
|
|
26
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
27
27
|
|
|
28
28
|
if (arg_count == 2)
|
|
29
29
|
{
|
|
@@ -45,7 +45,11 @@ namespace py::cpp::Windows::UI::WindowManagement::Preview
|
|
|
45
45
|
auto param0 = py::convert_to<winrt::Windows::UI::WindowManagement::AppWindow>(args, 0);
|
|
46
46
|
auto param1 = py::convert_to<winrt::Windows::Foundation::Size>(args, 1);
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
{
|
|
49
|
+
auto _gil = release_gil();
|
|
50
|
+
winrt::Windows::UI::WindowManagement::Preview::WindowManagementPreview::SetPreferredMinSize(param0, param1);
|
|
51
|
+
}
|
|
52
|
+
|
|
49
53
|
Py_RETURN_NONE;
|
|
50
54
|
}
|
|
51
55
|
catch (...)
|
|
@@ -88,20 +92,17 @@ namespace py::cpp::Windows::UI::WindowManagement::Preview
|
|
|
88
92
|
static PyMethodDef _methods_WindowManagementPreview[] = {
|
|
89
93
|
{ "_assign_array_", _assign_array_WindowManagementPreview, METH_O | METH_STATIC, nullptr },
|
|
90
94
|
{ "_from", reinterpret_cast<PyCFunction>(_from_WindowManagementPreview), METH_O | METH_STATIC, nullptr },
|
|
91
|
-
{ }
|
|
92
|
-
};
|
|
95
|
+
{ }};
|
|
93
96
|
|
|
94
97
|
static PyGetSetDef _getset_WindowManagementPreview[] = {
|
|
95
|
-
{ }
|
|
96
|
-
};
|
|
98
|
+
{ }};
|
|
97
99
|
|
|
98
100
|
static PyType_Slot _type_slots_WindowManagementPreview[] = {
|
|
99
101
|
{ Py_tp_new, reinterpret_cast<void*>(_new_WindowManagementPreview) },
|
|
100
102
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_WindowManagementPreview) },
|
|
101
103
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_WindowManagementPreview) },
|
|
102
104
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_WindowManagementPreview) },
|
|
103
|
-
{ }
|
|
104
|
-
};
|
|
105
|
+
{ }};
|
|
105
106
|
|
|
106
107
|
static PyType_Spec type_spec_WindowManagementPreview = {
|
|
107
108
|
"winrt._winrt_windows_ui_windowmanagement_preview.WindowManagementPreview",
|
|
@@ -111,13 +112,11 @@ namespace py::cpp::Windows::UI::WindowManagement::Preview
|
|
|
111
112
|
_type_slots_WindowManagementPreview};
|
|
112
113
|
|
|
113
114
|
static PyGetSetDef getset_WindowManagementPreview_Static[] = {
|
|
114
|
-
{ }
|
|
115
|
-
};
|
|
115
|
+
{ }};
|
|
116
116
|
|
|
117
117
|
static PyMethodDef methods_WindowManagementPreview_Static[] = {
|
|
118
118
|
{ "set_preferred_min_size", reinterpret_cast<PyCFunction>(WindowManagementPreview_SetPreferredMinSize), METH_VARARGS, nullptr },
|
|
119
|
-
{ }
|
|
120
|
-
};
|
|
119
|
+
{ }};
|
|
121
120
|
|
|
122
121
|
static PyType_Slot type_slots_WindowManagementPreview_Static[] =
|
|
123
122
|
{
|
|
@@ -127,14 +126,12 @@ namespace py::cpp::Windows::UI::WindowManagement::Preview
|
|
|
127
126
|
{ }
|
|
128
127
|
};
|
|
129
128
|
|
|
130
|
-
static PyType_Spec type_spec_WindowManagementPreview_Static =
|
|
131
|
-
{
|
|
129
|
+
static PyType_Spec type_spec_WindowManagementPreview_Static = {
|
|
132
130
|
"winrt._winrt_windows_ui_windowmanagement_preview.WindowManagementPreview_Static",
|
|
133
131
|
static_cast<int>(PyType_Type.tp_basicsize),
|
|
134
132
|
static_cast<int>(PyType_Type.tp_itemsize),
|
|
135
133
|
Py_TPFLAGS_DEFAULT,
|
|
136
|
-
type_slots_WindowManagementPreview_Static
|
|
137
|
-
};
|
|
134
|
+
type_slots_WindowManagementPreview_Static};
|
|
138
135
|
|
|
139
136
|
// ----- Windows.UI.WindowManagement.Preview Initialization --------------------
|
|
140
137
|
|
|
@@ -168,6 +165,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_windowmanagement_preview(void) noexcept
|
|
|
168
165
|
return nullptr;
|
|
169
166
|
}
|
|
170
167
|
|
|
168
|
+
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
169
|
+
if (!inspectable_meta_type)
|
|
170
|
+
{
|
|
171
|
+
return nullptr;
|
|
172
|
+
}
|
|
173
|
+
|
|
171
174
|
auto object_type = py::get_object_type();
|
|
172
175
|
if (!object_type)
|
|
173
176
|
{
|
|
@@ -181,7 +184,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_windowmanagement_preview(void) noexcept
|
|
|
181
184
|
return nullptr;
|
|
182
185
|
}
|
|
183
186
|
|
|
184
|
-
py::pyobj_handle
|
|
187
|
+
py::pyobj_handle WindowManagementPreview_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
188
|
+
if (!WindowManagementPreview_Static_bases)
|
|
189
|
+
{
|
|
190
|
+
return nullptr;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
py::pyobj_handle type_WindowManagementPreview_Static{PyType_FromSpecWithBases(&type_spec_WindowManagementPreview_Static, WindowManagementPreview_Static_bases.get())};
|
|
185
194
|
if (!type_WindowManagementPreview_Static)
|
|
186
195
|
{
|
|
187
196
|
return nullptr;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "winrt-sdk"]
|
|
4
|
+
requires = ["setuptools>=78", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "winrt-Windows.UI.WindowManagement.Preview"
|
|
9
9
|
description = "Python projection of Windows Runtime (WinRT) APIs"
|
|
10
10
|
readme = "README.md"
|
|
11
|
-
license =
|
|
11
|
+
license = "MIT"
|
|
12
12
|
classifiers = [
|
|
13
13
|
"Operating System :: Microsoft :: Windows",
|
|
14
14
|
"Programming Language :: Python :: 3",
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9
|
|
19
|
+
requires-python = ">=3.9"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
|
-
environment = { PYTHONPATH="
|
|
37
|
+
environment = { PYTHONPATH="../../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
39
|
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
40
|
before-build = "uv pip install setuptools"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.1.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==
|
|
3
|
+
winrt-runtime==3.1.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -15,11 +15,11 @@ import winrt.windows.ui.windowmanagement as windows_ui_windowmanagement
|
|
|
15
15
|
Self = typing.TypeVar('Self')
|
|
16
16
|
|
|
17
17
|
@typing.final
|
|
18
|
-
class WindowManagementPreview_Static(
|
|
19
|
-
|
|
18
|
+
class WindowManagementPreview_Static(winrt._winrt.IInspectable_Static):
|
|
19
|
+
# System.Void Windows.UI.WindowManagement.Preview.WindowManagementPreview::SetPreferredMinSize(Windows.UI.WindowManagement.AppWindow,Windows.Foundation.Size)
|
|
20
|
+
def set_preferred_min_size(cls, window: windows_ui_windowmanagement.AppWindow, preferred_frame_min_size: typing.Union[windows_foundation.Size, typing.Tuple[winrt.system.Single, winrt.system.Single]], /) -> None: ...
|
|
20
21
|
|
|
21
22
|
@typing.final
|
|
22
23
|
class WindowManagementPreview(winrt.system.Object, metaclass=WindowManagementPreview_Static):
|
|
23
|
-
|
|
24
|
-
def _from(obj: winrt.system.Object, /) -> WindowManagementPreview: ...
|
|
24
|
+
pass
|
|
25
25
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: winrt-Windows.UI.WindowManagement.Preview
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
-
License: MIT
|
|
5
|
+
License-Expression: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
7
|
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
8
|
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
@@ -10,12 +10,12 @@ 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:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.1.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.UI.WindowManagement[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.UI.WindowManagement[all]==3.1.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.3.0
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
2
|
-
|
|
3
|
-
import winrt.system
|
|
4
|
-
from winrt import _winrt_windows_ui_windowmanagement_preview
|
|
5
|
-
|
|
6
|
-
__all__ = [
|
|
7
|
-
"WindowManagementPreview",
|
|
8
|
-
]
|
|
9
|
-
|
|
10
|
-
WindowManagementPreview = _winrt_windows_ui_windowmanagement_preview.WindowManagementPreview
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|