QtWinExtras.pyi
13.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
# The PEP 484 type hints stub file for the QtWinExtras module.
#
# Generated by SIP 6.0.3
#
# Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# This file may be used under the terms of the GNU General Public License
# version 3.0 as published by the Free Software Foundation and appearing in
# the file LICENSE included in the packaging of this file. Please review the
# following information to ensure the GNU General Public License version 3.0
# requirements will be met: http://www.gnu.org/copyleft/gpl.html.
#
# If you do not wish to use this file under the terms of the GPL version 3.0
# then you may purchase a commercial license. For more information contact
# info@riverbankcomputing.com.
#
# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
import typing
import PyQt5.sip
from PyQt5 import QtWidgets
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
# Convenient aliases for complicated OpenGL types.
PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float],
PyQt5.sip.Buffer, None]
PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int],
typing.Sequence[float], PyQt5.sip.Buffer, int, None]
class QtWin(PyQt5.sip.simplewrapper):
class WindowFlip3DPolicy(int):
FlipDefault = ... # type: QtWin.WindowFlip3DPolicy
FlipExcludeBelow = ... # type: QtWin.WindowFlip3DPolicy
FlipExcludeAbove = ... # type: QtWin.WindowFlip3DPolicy
class HBitmapFormat(int):
HBitmapNoAlpha = ... # type: QtWin.HBitmapFormat
HBitmapPremultipliedAlpha = ... # type: QtWin.HBitmapFormat
HBitmapAlpha = ... # type: QtWin.HBitmapFormat
@typing.overload
def taskbarDeleteTab(self, a0: QtGui.QWindow) -> None: ...
@typing.overload
def taskbarDeleteTab(self, window: QtWidgets.QWidget) -> None: ...
@typing.overload
def taskbarAddTab(self, a0: QtGui.QWindow) -> None: ...
@typing.overload
def taskbarAddTab(self, window: QtWidgets.QWidget) -> None: ...
@typing.overload
def taskbarActivateTabAlt(self, a0: QtGui.QWindow) -> None: ...
@typing.overload
def taskbarActivateTabAlt(self, window: QtWidgets.QWidget) -> None: ...
@typing.overload
def taskbarActivateTab(self, a0: QtGui.QWindow) -> None: ...
@typing.overload
def taskbarActivateTab(self, window: QtWidgets.QWidget) -> None: ...
@typing.overload
def markFullscreenWindow(self, a0: QtGui.QWindow, fullscreen: bool = ...) -> None: ...
@typing.overload
def markFullscreenWindow(self, window: QtWidgets.QWidget, fullscreen: bool = ...) -> None: ...
def setCurrentProcessExplicitAppUserModelID(self, id: str) -> None: ...
def isCompositionOpaque(self) -> bool: ...
def setCompositionEnabled(self, enabled: bool) -> None: ...
def isCompositionEnabled(self) -> bool: ...
@typing.overload
def disableBlurBehindWindow(self, window: QtGui.QWindow) -> None: ...
@typing.overload
def disableBlurBehindWindow(self, window: QtWidgets.QWidget) -> None: ...
@typing.overload
def enableBlurBehindWindow(self, window: QtGui.QWindow, region: QtGui.QRegion) -> None: ...
@typing.overload
def enableBlurBehindWindow(self, window: QtGui.QWindow) -> None: ...
@typing.overload
def enableBlurBehindWindow(self, window: QtWidgets.QWidget, region: QtGui.QRegion) -> None: ...
@typing.overload
def enableBlurBehindWindow(self, window: QtWidgets.QWidget) -> None: ...
@typing.overload
def resetExtendedFrame(self, window: QtGui.QWindow) -> None: ...
@typing.overload
def resetExtendedFrame(self, window: QtWidgets.QWidget) -> None: ...
@typing.overload
def extendFrameIntoClientArea(self, window: QtGui.QWindow, left: int, top: int, right: int, bottom: int) -> None: ...
@typing.overload
def extendFrameIntoClientArea(self, window: QtGui.QWindow, margins: QtCore.QMargins) -> None: ...
@typing.overload
def extendFrameIntoClientArea(self, window: QtWidgets.QWidget, margins: QtCore.QMargins) -> None: ...
@typing.overload
def extendFrameIntoClientArea(self, window: QtWidgets.QWidget, left: int, top: int, right: int, bottom: int) -> None: ...
@typing.overload
def windowFlip3DPolicy(self, a0: QtGui.QWindow) -> 'QtWin.WindowFlip3DPolicy': ...
@typing.overload
def windowFlip3DPolicy(self, window: QtWidgets.QWidget) -> 'QtWin.WindowFlip3DPolicy': ...
@typing.overload
def setWindowFlip3DPolicy(self, window: QtGui.QWindow, policy: 'QtWin.WindowFlip3DPolicy') -> None: ...
@typing.overload
def setWindowFlip3DPolicy(self, window: QtWidgets.QWidget, policy: 'QtWin.WindowFlip3DPolicy') -> None: ...
@typing.overload
def isWindowPeekDisallowed(self, window: QtGui.QWindow) -> bool: ...
@typing.overload
def isWindowPeekDisallowed(self, window: QtWidgets.QWidget) -> bool: ...
@typing.overload
def setWindowDisallowPeek(self, window: QtGui.QWindow, disallow: bool) -> None: ...
@typing.overload
def setWindowDisallowPeek(self, window: QtWidgets.QWidget, disallow: bool) -> None: ...
@typing.overload
def isWindowExcludedFromPeek(self, window: QtGui.QWindow) -> bool: ...
@typing.overload
def isWindowExcludedFromPeek(self, window: QtWidgets.QWidget) -> bool: ...
@typing.overload
def setWindowExcludedFromPeek(self, window: QtGui.QWindow, exclude: bool) -> None: ...
@typing.overload
def setWindowExcludedFromPeek(self, window: QtWidgets.QWidget, exclude: bool) -> None: ...
def realColorizationColor(self) -> QtGui.QColor: ...
def colorizationColor(self) -> typing.Tuple[QtGui.QColor, bool]: ...
def errorStringFromHresult(self, hresult: int) -> str: ...
def stringFromHresult(self, hresult: int) -> str: ...
def fromHRGN(self, hrgn: PyQt5.sip.voidptr) -> QtGui.QRegion: ...
def toHRGN(self, region: QtGui.QRegion) -> PyQt5.sip.voidptr: ...
def fromHICON(self, icon: PyQt5.sip.voidptr) -> QtGui.QPixmap: ...
def imageFromHBITMAP(self, hdc: PyQt5.sip.voidptr, bitmap: PyQt5.sip.voidptr, width: int, height: int) -> QtGui.QImage: ...
def toHICON(self, p: QtGui.QPixmap) -> PyQt5.sip.voidptr: ...
def fromHBITMAP(self, bitmap: PyQt5.sip.voidptr, format: 'QtWin.HBitmapFormat' = ...) -> QtGui.QPixmap: ...
def toHBITMAP(self, p: QtGui.QPixmap, format: 'QtWin.HBitmapFormat' = ...) -> PyQt5.sip.voidptr: ...
def createMask(self, bitmap: QtGui.QBitmap) -> PyQt5.sip.voidptr: ...
class QWinJumpList(QtCore.QObject):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def clear(self) -> None: ...
@typing.overload
def addCategory(self, category: 'QWinJumpListCategory') -> None: ...
@typing.overload
def addCategory(self, title: str, items: typing.Iterable['QWinJumpListItem'] = ...) -> 'QWinJumpListCategory': ...
def categories(self) -> typing.List['QWinJumpListCategory']: ...
def tasks(self) -> 'QWinJumpListCategory': ...
def frequent(self) -> 'QWinJumpListCategory': ...
def recent(self) -> 'QWinJumpListCategory': ...
def setIdentifier(self, identifier: str) -> None: ...
def identifier(self) -> str: ...
class QWinJumpListCategory(PyQt5.sip.wrapper):
class Type(int):
Custom = ... # type: QWinJumpListCategory.Type
Recent = ... # type: QWinJumpListCategory.Type
Frequent = ... # type: QWinJumpListCategory.Type
Tasks = ... # type: QWinJumpListCategory.Type
def __init__(self, title: str = ...) -> None: ...
def clear(self) -> None: ...
def addSeparator(self) -> 'QWinJumpListItem': ...
@typing.overload
def addLink(self, title: str, executablePath: str, arguments: typing.Iterable[str] = ...) -> 'QWinJumpListItem': ...
@typing.overload
def addLink(self, icon: QtGui.QIcon, title: str, executablePath: str, arguments: typing.Iterable[str] = ...) -> 'QWinJumpListItem': ...
def addDestination(self, filePath: str) -> 'QWinJumpListItem': ...
def addItem(self, item: 'QWinJumpListItem') -> None: ...
def items(self) -> typing.List['QWinJumpListItem']: ...
def isEmpty(self) -> bool: ...
def count(self) -> int: ...
def setTitle(self, title: str) -> None: ...
def title(self) -> str: ...
def setVisible(self, visible: bool) -> None: ...
def isVisible(self) -> bool: ...
def type(self) -> 'QWinJumpListCategory.Type': ...
class QWinJumpListItem(PyQt5.sip.wrapper):
class Type(int):
Destination = ... # type: QWinJumpListItem.Type
Link = ... # type: QWinJumpListItem.Type
Separator = ... # type: QWinJumpListItem.Type
def __init__(self, type: 'QWinJumpListItem.Type') -> None: ...
def arguments(self) -> typing.List[str]: ...
def setArguments(self, arguments: typing.Iterable[str]) -> None: ...
def description(self) -> str: ...
def setDescription(self, description: str) -> None: ...
def title(self) -> str: ...
def setTitle(self, title: str) -> None: ...
def icon(self) -> QtGui.QIcon: ...
def setIcon(self, icon: QtGui.QIcon) -> None: ...
def workingDirectory(self) -> str: ...
def setWorkingDirectory(self, workingDirectory: str) -> None: ...
def filePath(self) -> str: ...
def setFilePath(self, filePath: str) -> None: ...
def type(self) -> 'QWinJumpListItem.Type': ...
def setType(self, type: 'QWinJumpListItem.Type') -> None: ...
class QWinTaskbarButton(QtCore.QObject):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def clearOverlayIcon(self) -> None: ...
def setOverlayAccessibleDescription(self, description: str) -> None: ...
def setOverlayIcon(self, icon: QtGui.QIcon) -> None: ...
def eventFilter(self, a0: QtCore.QObject, a1: QtCore.QEvent) -> bool: ...
def progress(self) -> 'QWinTaskbarProgress': ...
def overlayAccessibleDescription(self) -> str: ...
def overlayIcon(self) -> QtGui.QIcon: ...
def window(self) -> QtGui.QWindow: ...
def setWindow(self, window: QtGui.QWindow) -> None: ...
class QWinTaskbarProgress(QtCore.QObject):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def visibilityChanged(self, visible: bool) -> None: ...
def maximumChanged(self, maximum: int) -> None: ...
def minimumChanged(self, minimum: int) -> None: ...
def valueChanged(self, value: int) -> None: ...
def stop(self) -> None: ...
def setPaused(self, paused: bool) -> None: ...
def resume(self) -> None: ...
def pause(self) -> None: ...
def setVisible(self, visible: bool) -> None: ...
def hide(self) -> None: ...
def show(self) -> None: ...
def reset(self) -> None: ...
def setRange(self, minimum: int, maximum: int) -> None: ...
def setMaximum(self, maximum: int) -> None: ...
def setMinimum(self, minimum: int) -> None: ...
def setValue(self, value: int) -> None: ...
def isStopped(self) -> bool: ...
def isPaused(self) -> bool: ...
def isVisible(self) -> bool: ...
def maximum(self) -> int: ...
def minimum(self) -> int: ...
def value(self) -> int: ...
class QWinThumbnailToolBar(QtCore.QObject):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def iconicLivePreviewPixmapRequested(self) -> None: ...
def iconicThumbnailPixmapRequested(self) -> None: ...
def setIconicLivePreviewPixmap(self, a0: QtGui.QPixmap) -> None: ...
def setIconicThumbnailPixmap(self, a0: QtGui.QPixmap) -> None: ...
def clear(self) -> None: ...
def iconicLivePreviewPixmap(self) -> QtGui.QPixmap: ...
def iconicThumbnailPixmap(self) -> QtGui.QPixmap: ...
def setIconicPixmapNotificationsEnabled(self, enabled: bool) -> None: ...
def iconicPixmapNotificationsEnabled(self) -> bool: ...
def count(self) -> int: ...
def buttons(self) -> typing.List['QWinThumbnailToolButton']: ...
def setButtons(self, buttons: typing.Iterable['QWinThumbnailToolButton']) -> None: ...
def removeButton(self, button: 'QWinThumbnailToolButton') -> None: ...
def addButton(self, button: 'QWinThumbnailToolButton') -> None: ...
def window(self) -> QtGui.QWindow: ...
def setWindow(self, window: QtGui.QWindow) -> None: ...
class QWinThumbnailToolButton(QtCore.QObject):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def clicked(self) -> None: ...
def click(self) -> None: ...
def isFlat(self) -> bool: ...
def setFlat(self, flat: bool) -> None: ...
def dismissOnClick(self) -> bool: ...
def setDismissOnClick(self, dismiss: bool) -> None: ...
def isVisible(self) -> bool: ...
def setVisible(self, visible: bool) -> None: ...
def isInteractive(self) -> bool: ...
def setInteractive(self, interactive: bool) -> None: ...
def isEnabled(self) -> bool: ...
def setEnabled(self, enabled: bool) -> None: ...
def icon(self) -> QtGui.QIcon: ...
def setIcon(self, icon: QtGui.QIcon) -> None: ...
def toolTip(self) -> str: ...
def setToolTip(self, toolTip: str) -> None: ...