winrt-Windows.System.Display 3.2.0__tar.gz → 4!10.0.28000.2705__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_system_display-4!10.0.28000.2705/.gitignore +5 -0
- winrt_windows_system_display-4!10.0.28000.2705/LICENSE +22 -0
- winrt_windows_system_display-4!10.0.28000.2705/PKG-INFO +41 -0
- winrt_windows_system_display-4!10.0.28000.2705/README.md +17 -0
- winrt_windows_system_display-4!10.0.28000.2705/pyproject.toml +50 -0
- {winrt_windows_system_display-3.2.0 → winrt_windows_system_display-4!10.0.28000.2705}/winrt/windows/system/display/__init__.py +4 -4
- winrt_windows_system_display-3.2.0/winrt/_winrt_windows_system_display.pyi → winrt_windows_system_display-4!10.0.28000.2705/winrt/windows/system/display/__init__.pyi +5 -9
- winrt_windows_system_display-4!10.0.28000.2705/winrt/windows/system/display/_table.pywinrt.txt +19 -0
- winrt_windows_system_display-3.2.0/PKG-INFO +0 -23
- winrt_windows_system_display-3.2.0/README.md +0 -7
- winrt_windows_system_display-3.2.0/py.Windows.System.Display.cpp +0 -235
- winrt_windows_system_display-3.2.0/pyproject.toml +0 -46
- winrt_windows_system_display-3.2.0/pywinrt-version.txt +0 -1
- winrt_windows_system_display-3.2.0/requirements.txt +0 -3
- winrt_windows_system_display-3.2.0/setup.cfg +0 -4
- winrt_windows_system_display-3.2.0/setup.py +0 -33
- winrt_windows_system_display-3.2.0/winrt_Windows.System.Display.egg-info/PKG-INFO +0 -23
- winrt_windows_system_display-3.2.0/winrt_Windows.System.Display.egg-info/SOURCES.txt +0 -14
- winrt_windows_system_display-3.2.0/winrt_Windows.System.Display.egg-info/dependency_links.txt +0 -1
- winrt_windows_system_display-3.2.0/winrt_Windows.System.Display.egg-info/requires.txt +0 -1
- winrt_windows_system_display-3.2.0/winrt_Windows.System.Display.egg-info/top_level.txt +0 -1
- {winrt_windows_system_display-3.2.0 → winrt_windows_system_display-4!10.0.28000.2705}/winrt/windows/system/display/py.typed +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
Copyright (c) 2021-2026 David Lechner <david@pybricks.com>
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: winrt-Windows.System.Display
|
|
3
|
+
Version: 4!10.0.28000.2705
|
|
4
|
+
Summary: PyWinRT projection of the Windows.System.Display namespace
|
|
5
|
+
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
6
|
+
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
7
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/projection/winrt/CHANGELOG.md
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
18
|
+
Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
|
|
19
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
20
|
+
Classifier: Typing :: Typed
|
|
21
|
+
Requires-Python: >=3.11
|
|
22
|
+
Requires-Dist: winrt-runtime<5,>=4.0.0
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
|
|
25
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
26
|
+
|
|
27
|
+
# winrt-Windows.System.Display
|
|
28
|
+
|
|
29
|
+
Windows Runtime (WinRT) APIs for the `Windows.System.Display` namespace.
|
|
30
|
+
|
|
31
|
+
This package provides the `winrt.windows.system.display` module.
|
|
32
|
+
|
|
33
|
+
The WinRT APIs in it are those of version 10.0.28000.2705 of the
|
|
34
|
+
`Microsoft.Windows.SDK.CPP` NuGet package.
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
pip install winrt-Windows.System.Display
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Other WinRT namespaces are packages of their own, so install the package of
|
|
41
|
+
each namespace your code imports from.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
2
|
+
|
|
3
|
+
# winrt-Windows.System.Display
|
|
4
|
+
|
|
5
|
+
Windows Runtime (WinRT) APIs for the `Windows.System.Display` namespace.
|
|
6
|
+
|
|
7
|
+
This package provides the `winrt.windows.system.display` module.
|
|
8
|
+
|
|
9
|
+
The WinRT APIs in it are those of version 10.0.28000.2705 of the
|
|
10
|
+
`Microsoft.Windows.SDK.CPP` NuGet package.
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
pip install winrt-Windows.System.Display
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Other WinRT namespaces are packages of their own, so install the package of
|
|
17
|
+
each namespace your code imports from.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
[build-system]
|
|
4
|
+
requires = ["hatchling", "winrt-table-compiler>=4.0.0,<5"]
|
|
5
|
+
build-backend = "hatchling.build"
|
|
6
|
+
|
|
7
|
+
[project]
|
|
8
|
+
name = "winrt-Windows.System.Display"
|
|
9
|
+
version = "4!10.0.28000.2705"
|
|
10
|
+
description = "PyWinRT projection of the Windows.System.Display namespace"
|
|
11
|
+
readme = "README.md"
|
|
12
|
+
license = "MIT"
|
|
13
|
+
license-files = ["LICENSE"]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Operating System :: Microsoft :: Windows",
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"Programming Language :: Python :: 3.11",
|
|
18
|
+
"Programming Language :: Python :: 3.12",
|
|
19
|
+
"Programming Language :: Python :: 3.13",
|
|
20
|
+
"Programming Language :: Python :: 3.14",
|
|
21
|
+
"Programming Language :: Python :: 3.15",
|
|
22
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
23
|
+
"Intended Audience :: Developers",
|
|
24
|
+
"Programming Language :: Python :: Free Threading :: 2 - Beta",
|
|
25
|
+
"Typing :: Typed",
|
|
26
|
+
]
|
|
27
|
+
requires-python = ">=3.11"
|
|
28
|
+
dependencies = [
|
|
29
|
+
"winrt-runtime>=4.0.0,<5",
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
[project.urls]
|
|
33
|
+
Documentation = "https://pywinrt.readthedocs.io"
|
|
34
|
+
Repository = "https://github.com/pywinrt/pywinrt"
|
|
35
|
+
Changelog = "https://github.com/pywinrt/pywinrt/blob/main/projection/winrt/CHANGELOG.md"
|
|
36
|
+
|
|
37
|
+
[tool.hatch.build.targets.sdist]
|
|
38
|
+
# The text form of the table is what the source distribution carries, and the
|
|
39
|
+
# compiled form is build output wherever it turns up. Hatchling reads no
|
|
40
|
+
# .gitignore above the package, so it has to be told about the latter.
|
|
41
|
+
only-include = ["winrt", "LICENSE", "README.md"]
|
|
42
|
+
exclude = ["**/_table.pywinrt"]
|
|
43
|
+
|
|
44
|
+
[tool.hatch.build.targets.wheel]
|
|
45
|
+
packages = ["winrt"]
|
|
46
|
+
exclude = ["**/_table.pywinrt.txt"]
|
|
47
|
+
|
|
48
|
+
# winrt.table.build_hooks in winrt-table-compiler, which compiles each table
|
|
49
|
+
# the package carries and puts the result beside the __init__.py that loads it.
|
|
50
|
+
[tool.hatch.build.targets.wheel.hooks.winrt-table-compiler]
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
|
2
2
|
|
|
3
|
+
import winrt.runtime._internals
|
|
3
4
|
import winrt.system
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
)
|
|
5
|
+
|
|
6
|
+
winrt.runtime._internals.load_projection(__spec__)
|
|
7
7
|
|
|
8
8
|
__all__ = [
|
|
9
9
|
"DisplayRequest",
|
|
@@ -1,20 +1,16 @@
|
|
|
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
|
|
2
2
|
|
|
3
|
-
import datetime
|
|
4
|
-
import sys
|
|
5
|
-
import types
|
|
6
3
|
import typing
|
|
7
|
-
import uuid as _uuid
|
|
8
|
-
from builtins import property as _property
|
|
9
4
|
|
|
10
|
-
import winrt._winrt
|
|
11
5
|
import winrt.system
|
|
12
6
|
|
|
13
|
-
|
|
7
|
+
__all__ = [
|
|
8
|
+
"DisplayRequest",
|
|
9
|
+
]
|
|
14
10
|
|
|
15
11
|
@typing.final
|
|
16
12
|
class DisplayRequest(winrt.system.Object):
|
|
17
|
-
def __new__(cls
|
|
13
|
+
def __new__(cls) -> typing.Self: ...
|
|
18
14
|
# System.Void Windows.System.Display.DisplayRequest::RequestActive()
|
|
19
15
|
def request_active(self) -> None: ...
|
|
20
16
|
# System.Void Windows.System.Display.DisplayRequest::RequestRelease()
|
winrt_windows_system_display-4!10.0.28000.2705/winrt/windows/system/display/_table.pywinrt.txt
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
format 4.0
|
|
2
|
+
census 2e30db26-66c8-4551-85b9-a537376d8f99 1
|
|
3
|
+
namespace Windows.System.Display
|
|
4
|
+
|
|
5
|
+
class Windows.System.Display.DisplayRequest activatable python_type
|
|
6
|
+
py DisplayRequest
|
|
7
|
+
signature rc(Windows.System.Display.DisplayRequest;{e5732044-f49f-4b60-8dd4-5e7e3a632ac0})
|
|
8
|
+
default Windows.System.Display.IDisplayRequest
|
|
9
|
+
requires Windows.System.Display.IDisplayRequest
|
|
10
|
+
constructor -
|
|
11
|
+
ctor .ctor slot=6 inputs=0 outputs=1 shape=4
|
|
12
|
+
out object return
|
|
13
|
+
method request_active
|
|
14
|
+
method RequestActive slot=6 inputs=0 outputs=0 declaring=Windows.System.Display.IDisplayRequest shape=0
|
|
15
|
+
method request_release
|
|
16
|
+
method RequestRelease slot=7 inputs=0 outputs=0 declaring=Windows.System.Display.IDisplayRequest shape=0
|
|
17
|
+
|
|
18
|
+
interface Windows.System.Display.IDisplayRequest
|
|
19
|
+
guid e5732044-f49f-4b60-8dd4-5e7e3a632ac0
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: winrt-Windows.System.Display
|
|
3
|
-
Version: 3.2.0
|
|
4
|
-
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
-
License-Expression: 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.9
|
|
14
|
-
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==3.2.0
|
|
16
|
-
|
|
17
|
-
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
|
-
|
|
19
|
-
# winrt-Windows.System.Display
|
|
20
|
-
|
|
21
|
-
Windows Runtime (WinRT) APIs for for the `Windows.System.Display` namespace.
|
|
22
|
-
|
|
23
|
-
This package provides the `winrt.windows.system.display` module.
|
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.0
|
|
2
|
-
|
|
3
|
-
#include "py.Windows.System.Display.h"
|
|
4
|
-
|
|
5
|
-
namespace py::cpp::Windows::System::Display
|
|
6
|
-
{
|
|
7
|
-
// ----- DisplayRequest class --------------------
|
|
8
|
-
|
|
9
|
-
static PyObject* _new_DisplayRequest(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
|
|
10
|
-
{
|
|
11
|
-
if (kwds)
|
|
12
|
-
{
|
|
13
|
-
py::set_invalid_kwd_args_error();
|
|
14
|
-
return nullptr;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
auto arg_count = PyTuple_GET_SIZE(args);
|
|
18
|
-
if (arg_count == 0)
|
|
19
|
-
{
|
|
20
|
-
try
|
|
21
|
-
{
|
|
22
|
-
winrt::Windows::System::Display::DisplayRequest instance{};
|
|
23
|
-
return py::wrap(instance, type);
|
|
24
|
-
}
|
|
25
|
-
catch (...)
|
|
26
|
-
{
|
|
27
|
-
py::to_PyErr();
|
|
28
|
-
return nullptr;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
else
|
|
32
|
-
{
|
|
33
|
-
py::set_invalid_arg_count_error(arg_count);
|
|
34
|
-
return nullptr;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
static void _dealloc_DisplayRequest(py::wrapper::Windows::System::Display::DisplayRequest* self) noexcept
|
|
39
|
-
{
|
|
40
|
-
auto tp = Py_TYPE(self);
|
|
41
|
-
std::destroy_at(&self->obj);
|
|
42
|
-
tp->tp_free(self);
|
|
43
|
-
Py_DECREF(tp);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
static PyObject* DisplayRequest_RequestActive(py::wrapper::Windows::System::Display::DisplayRequest* self, PyObject* args) noexcept
|
|
47
|
-
{
|
|
48
|
-
auto arg_count = PyTuple_GET_SIZE(args);
|
|
49
|
-
|
|
50
|
-
if (arg_count == 0)
|
|
51
|
-
{
|
|
52
|
-
try
|
|
53
|
-
{
|
|
54
|
-
static std::optional<bool> is_overload_present{};
|
|
55
|
-
|
|
56
|
-
if (!is_overload_present.has_value())
|
|
57
|
-
{
|
|
58
|
-
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Display.DisplayRequest", L"RequestActive", 0);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
if (!is_overload_present.value())
|
|
62
|
-
{
|
|
63
|
-
py::set_arg_count_version_error(0);
|
|
64
|
-
return nullptr;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
{
|
|
68
|
-
auto _gil = release_gil();
|
|
69
|
-
self->obj.RequestActive();
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
Py_RETURN_NONE;
|
|
73
|
-
}
|
|
74
|
-
catch (...)
|
|
75
|
-
{
|
|
76
|
-
py::to_PyErr();
|
|
77
|
-
return nullptr;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
else
|
|
81
|
-
{
|
|
82
|
-
py::set_invalid_arg_count_error(arg_count);
|
|
83
|
-
return nullptr;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
static PyObject* DisplayRequest_RequestRelease(py::wrapper::Windows::System::Display::DisplayRequest* self, PyObject* args) noexcept
|
|
88
|
-
{
|
|
89
|
-
auto arg_count = PyTuple_GET_SIZE(args);
|
|
90
|
-
|
|
91
|
-
if (arg_count == 0)
|
|
92
|
-
{
|
|
93
|
-
try
|
|
94
|
-
{
|
|
95
|
-
static std::optional<bool> is_overload_present{};
|
|
96
|
-
|
|
97
|
-
if (!is_overload_present.has_value())
|
|
98
|
-
{
|
|
99
|
-
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Display.DisplayRequest", L"RequestRelease", 0);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
if (!is_overload_present.value())
|
|
103
|
-
{
|
|
104
|
-
py::set_arg_count_version_error(0);
|
|
105
|
-
return nullptr;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
{
|
|
109
|
-
auto _gil = release_gil();
|
|
110
|
-
self->obj.RequestRelease();
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
Py_RETURN_NONE;
|
|
114
|
-
}
|
|
115
|
-
catch (...)
|
|
116
|
-
{
|
|
117
|
-
py::to_PyErr();
|
|
118
|
-
return nullptr;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
else
|
|
122
|
-
{
|
|
123
|
-
py::set_invalid_arg_count_error(arg_count);
|
|
124
|
-
return nullptr;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
static PyObject* _assign_array_DisplayRequest(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
129
|
-
{
|
|
130
|
-
auto array = std::make_unique<py::ComArray<winrt::Windows::System::Display::DisplayRequest>>();
|
|
131
|
-
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
132
|
-
{
|
|
133
|
-
return nullptr;
|
|
134
|
-
}
|
|
135
|
-
Py_RETURN_NONE;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
static PyObject* _from_DisplayRequest(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
139
|
-
{
|
|
140
|
-
try
|
|
141
|
-
{
|
|
142
|
-
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
143
|
-
return py::convert(return_value.as<winrt::Windows::System::Display::DisplayRequest>());
|
|
144
|
-
}
|
|
145
|
-
catch (...)
|
|
146
|
-
{
|
|
147
|
-
py::to_PyErr();
|
|
148
|
-
return nullptr;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
static PyMethodDef _methods_DisplayRequest[] = {
|
|
153
|
-
{ "request_active", reinterpret_cast<PyCFunction>(DisplayRequest_RequestActive), METH_VARARGS, nullptr },
|
|
154
|
-
{ "request_release", reinterpret_cast<PyCFunction>(DisplayRequest_RequestRelease), METH_VARARGS, nullptr },
|
|
155
|
-
{ "_assign_array_", _assign_array_DisplayRequest, METH_O | METH_STATIC, nullptr },
|
|
156
|
-
{ "_from", reinterpret_cast<PyCFunction>(_from_DisplayRequest), METH_O | METH_STATIC, nullptr },
|
|
157
|
-
{ }};
|
|
158
|
-
|
|
159
|
-
static PyGetSetDef _getset_DisplayRequest[] = {
|
|
160
|
-
{ }};
|
|
161
|
-
|
|
162
|
-
static PyType_Slot _type_slots_DisplayRequest[] = {
|
|
163
|
-
{ Py_tp_new, reinterpret_cast<void*>(_new_DisplayRequest) },
|
|
164
|
-
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DisplayRequest) },
|
|
165
|
-
{ Py_tp_methods, reinterpret_cast<void*>(_methods_DisplayRequest) },
|
|
166
|
-
{ Py_tp_getset, reinterpret_cast<void*>(_getset_DisplayRequest) },
|
|
167
|
-
{ }};
|
|
168
|
-
|
|
169
|
-
static PyType_Spec type_spec_DisplayRequest = {
|
|
170
|
-
"winrt._winrt_windows_system_display.DisplayRequest",
|
|
171
|
-
sizeof(py::wrapper::Windows::System::Display::DisplayRequest),
|
|
172
|
-
0,
|
|
173
|
-
Py_TPFLAGS_DEFAULT,
|
|
174
|
-
_type_slots_DisplayRequest};
|
|
175
|
-
|
|
176
|
-
// ----- Windows.System.Display Initialization --------------------
|
|
177
|
-
|
|
178
|
-
PyDoc_STRVAR(module_doc, "Windows.System.Display");
|
|
179
|
-
|
|
180
|
-
static PyModuleDef module_def = {
|
|
181
|
-
PyModuleDef_HEAD_INIT,
|
|
182
|
-
"_winrt_windows_system_display",
|
|
183
|
-
module_doc,
|
|
184
|
-
0,
|
|
185
|
-
nullptr,
|
|
186
|
-
nullptr,
|
|
187
|
-
nullptr,
|
|
188
|
-
nullptr,
|
|
189
|
-
nullptr};
|
|
190
|
-
} // py::cpp::Windows::System::Display
|
|
191
|
-
|
|
192
|
-
PyMODINIT_FUNC PyInit__winrt_windows_system_display(void) noexcept
|
|
193
|
-
{
|
|
194
|
-
using namespace py::cpp::Windows::System::Display;
|
|
195
|
-
|
|
196
|
-
if (py::import_winrt_runtime() == -1)
|
|
197
|
-
{
|
|
198
|
-
return nullptr;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
py::pyobj_handle module{PyModule_Create(&module_def)};
|
|
202
|
-
|
|
203
|
-
if (!module)
|
|
204
|
-
{
|
|
205
|
-
return nullptr;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
209
|
-
if (!inspectable_meta_type)
|
|
210
|
-
{
|
|
211
|
-
return nullptr;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
auto object_type = py::get_object_type();
|
|
215
|
-
if (!object_type)
|
|
216
|
-
{
|
|
217
|
-
return nullptr;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
|
|
221
|
-
|
|
222
|
-
if (!object_bases)
|
|
223
|
-
{
|
|
224
|
-
return nullptr;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
py::pytype_handle DisplayRequest_type{py::register_python_type(module.get(), &type_spec_DisplayRequest, object_bases.get(), inspectable_meta_type)};
|
|
228
|
-
if (!DisplayRequest_type)
|
|
229
|
-
{
|
|
230
|
-
return nullptr;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
return module.detach();
|
|
235
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
-
|
|
3
|
-
[build-system]
|
|
4
|
-
requires = ["setuptools>=78", "winrt-sdk"]
|
|
5
|
-
build-backend = "setuptools.build_meta"
|
|
6
|
-
|
|
7
|
-
[project]
|
|
8
|
-
name = "winrt-Windows.System.Display"
|
|
9
|
-
description = "Python projection of Windows Runtime (WinRT) APIs"
|
|
10
|
-
readme = "README.md"
|
|
11
|
-
license = "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"]
|
|
19
|
-
requires-python = ">=3.9"
|
|
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
|
-
|
|
31
|
-
[tool.setuptools.package-data]
|
|
32
|
-
"*" = ["*.pyi", "py.typed"]
|
|
33
|
-
|
|
34
|
-
[tool.cibuildwheel]
|
|
35
|
-
# use local winrt-sdk build dependency
|
|
36
|
-
environment = { PYTHONPATH="../../winrt-sdk/src" }
|
|
37
|
-
# don't install winrt-sdk from PyPI
|
|
38
|
-
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
39
|
-
before-build = "uv pip install setuptools"
|
|
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"]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3.2.0
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
-
|
|
3
|
-
from setuptools import Extension, setup
|
|
4
|
-
from setuptools.command.build_ext import build_ext
|
|
5
|
-
from winrt_sdk import get_include_dirs
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class build_ext_ex(build_ext):
|
|
9
|
-
def build_extension(self, ext):
|
|
10
|
-
if self.compiler.compiler_type == "msvc":
|
|
11
|
-
ext.extra_compile_args = ["/std:c++20", "/permissive-"]
|
|
12
|
-
elif self.compiler.compiler_type == "mingw32":
|
|
13
|
-
ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
|
|
14
|
-
# GCC 15 complains about some things that it didn't in the past
|
|
15
|
-
ext.extra_compile_args += ["-Wno-strict-aliasing", "-Wno-template-body"]
|
|
16
|
-
ext.extra_link_args = ["-loleaut32"]
|
|
17
|
-
else:
|
|
18
|
-
raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
|
|
19
|
-
|
|
20
|
-
build_ext.build_extension(self, ext)
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
setup(
|
|
24
|
-
cmdclass={"build_ext": build_ext_ex},
|
|
25
|
-
ext_modules=[
|
|
26
|
-
Extension(
|
|
27
|
-
"winrt._winrt_windows_system_display",
|
|
28
|
-
sources=["py.Windows.System.Display.cpp"],
|
|
29
|
-
include_dirs=get_include_dirs(),
|
|
30
|
-
libraries=["windowsapp"],
|
|
31
|
-
)
|
|
32
|
-
],
|
|
33
|
-
)
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: winrt-Windows.System.Display
|
|
3
|
-
Version: 3.2.0
|
|
4
|
-
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
-
License-Expression: 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.9
|
|
14
|
-
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==3.2.0
|
|
16
|
-
|
|
17
|
-
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
|
-
|
|
19
|
-
# winrt-Windows.System.Display
|
|
20
|
-
|
|
21
|
-
Windows Runtime (WinRT) APIs for for the `Windows.System.Display` namespace.
|
|
22
|
-
|
|
23
|
-
This package provides the `winrt.windows.system.display` module.
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
README.md
|
|
2
|
-
py.Windows.System.Display.cpp
|
|
3
|
-
pyproject.toml
|
|
4
|
-
pywinrt-version.txt
|
|
5
|
-
requirements.txt
|
|
6
|
-
setup.py
|
|
7
|
-
winrt/_winrt_windows_system_display.pyi
|
|
8
|
-
winrt/windows/system/display/__init__.py
|
|
9
|
-
winrt/windows/system/display/py.typed
|
|
10
|
-
winrt_Windows.System.Display.egg-info/PKG-INFO
|
|
11
|
-
winrt_Windows.System.Display.egg-info/SOURCES.txt
|
|
12
|
-
winrt_Windows.System.Display.egg-info/dependency_links.txt
|
|
13
|
-
winrt_Windows.System.Display.egg-info/requires.txt
|
|
14
|
-
winrt_Windows.System.Display.egg-info/top_level.txt
|
winrt_windows_system_display-3.2.0/winrt_Windows.System.Display.egg-info/dependency_links.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
winrt-runtime==3.2.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
winrt
|