From 89f4725f14603593bda422067b775e808f8f2a16 Mon Sep 17 00:00:00 2001 From: Stefan Lehmann Date: Mon, 4 May 2020 17:08:19 +0200 Subject: [PATCH 1/3] Add Qt3D stubs --- PyQt5-stubs/Qt3DAnimation.pyi | 448 +++++++ PyQt5-stubs/Qt3DCore.pyi | 499 +++++++ PyQt5-stubs/Qt3DExtras.pyi | 782 +++++++++++ PyQt5-stubs/Qt3DInput.pyi | 400 ++++++ PyQt5-stubs/Qt3DLogic.pyi | 52 + PyQt5-stubs/Qt3DRender.pyi | 2304 +++++++++++++++++++++++++++++++++ 6 files changed, 4485 insertions(+) create mode 100644 PyQt5-stubs/Qt3DAnimation.pyi create mode 100644 PyQt5-stubs/Qt3DCore.pyi create mode 100644 PyQt5-stubs/Qt3DExtras.pyi create mode 100644 PyQt5-stubs/Qt3DInput.pyi create mode 100644 PyQt5-stubs/Qt3DLogic.pyi create mode 100644 PyQt5-stubs/Qt3DRender.pyi diff --git a/PyQt5-stubs/Qt3DAnimation.pyi b/PyQt5-stubs/Qt3DAnimation.pyi new file mode 100644 index 00000000..fb2197e4 --- /dev/null +++ b/PyQt5-stubs/Qt3DAnimation.pyi @@ -0,0 +1,448 @@ +# The PEP 484 type hints stub file for the Qt3DAnimation module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt3D. +# +# 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 sip + +from PyQt5 import QtCore +from PyQt5 import Qt3DRender +from PyQt5 import Qt3DCore + +# 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], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class Qt3DAnimation(sip.simplewrapper): + + class QAbstractAnimation(QtCore.QObject): + + class AnimationType(int): ... + KeyframeAnimation = ... # type: 'QAbstractAnimation.AnimationType' + MorphingAnimation = ... # type: 'QAbstractAnimation.AnimationType' + VertexBlendAnimation = ... # type: 'QAbstractAnimation.AnimationType' + + def durationChanged(self, duration: float) -> None: ... + def positionChanged(self, position: float) -> None: ... + def animationNameChanged(self, name: str) -> None: ... + def setDuration(self, duration: float) -> None: ... + def setPosition(self, position: float) -> None: ... + def setAnimationName(self, name: str) -> None: ... + def duration(self) -> float: ... + def position(self) -> float: ... + def animationType(self) -> 'QAbstractAnimation.AnimationType': ... + def animationName(self) -> str: ... + + class QAbstractAnimationClip(Qt3DCore.QNode): + + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + def durationChanged(self, duration: float) -> None: ... + def duration(self) -> float: ... + + class QAbstractChannelMapping(Qt3DCore.QNode): ... + + class QAbstractClipAnimator(Qt3DCore.QComponent): + + class Loops(int): ... + Infinite = ... # type: 'QAbstractClipAnimator.Loops' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + def normalizedTimeChanged(self, index: float) -> None: ... + def clockChanged(self, clock: 'QClock') -> None: ... + def loopCountChanged(self, loops: int) -> None: ... + def channelMapperChanged(self, channelMapper: 'QChannelMapper') -> None: ... + def runningChanged(self, running: bool) -> None: ... + def stop(self) -> None: ... + def start(self) -> None: ... + def setNormalizedTime(self, timeFraction: float) -> None: ... + def setClock(self, clock: 'QClock') -> None: ... + def setLoopCount(self, loops: int) -> None: ... + def setChannelMapper(self, channelMapper: 'QChannelMapper') -> None: ... + def setRunning(self, running: bool) -> None: ... + def normalizedTime(self) -> float: ... + def clock(self) -> 'QClock': ... + def loopCount(self) -> int: ... + def channelMapper(self) -> 'QChannelMapper': ... + def isRunning(self) -> bool: ... + + class QAbstractClipBlendNode(Qt3DCore.QNode): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + class QAdditiveClipBlend('QAbstractClipBlendNode'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def additiveClipChanged(self, additiveClip: 'QAbstractClipBlendNode') -> None: ... + def baseClipChanged(self, baseClip: 'QAbstractClipBlendNode') -> None: ... + def additiveFactorChanged(self, additiveFactor: float) -> None: ... + def setAdditiveClip(self, additiveClip: 'QAbstractClipBlendNode') -> None: ... + def setBaseClip(self, baseClip: 'QAbstractClipBlendNode') -> None: ... + def setAdditiveFactor(self, additiveFactor: float) -> None: ... + def additiveClip(self) -> 'QAbstractClipBlendNode': ... + def baseClip(self) -> 'QAbstractClipBlendNode': ... + def additiveFactor(self) -> float: ... + + class QAnimationAspect(Qt3DCore.QAbstractAspect): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + class QAnimationClip('QAbstractAnimationClip'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def clipDataChanged(self, clipData: 'QAnimationClipData') -> None: ... + def setClipData(self, clipData: 'QAnimationClipData') -> None: ... + def clipData(self) -> 'QAnimationClipData': ... + + class QAnimationClipData(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QAnimationClipData') -> None: ... + + def isValid(self) -> bool: ... + def clearChannels(self) -> None: ... + def removeChannel(self, index: int) -> None: ... + def insertChannel(self, index: int, c: 'QChannel') -> None: ... + def appendChannel(self, c: 'QChannel') -> None: ... + def channelCount(self) -> int: ... + def name(self) -> str: ... + def setName(self, name: str) -> None: ... + + class QAnimationClipLoader('QAbstractAnimationClip'): + + class Status(int): ... + NotReady = ... # type: 'QAnimationClipLoader.Status' + Ready = ... # type: 'QAnimationClipLoader.Status' + Error = ... # type: 'QAnimationClipLoader.Status' + + @typing.overload + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + @typing.overload + def __init__(self, source: QtCore.QUrl, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + def statusChanged(self, status: 'QAnimationClipLoader.Status') -> None: ... + def sourceChanged(self, source: QtCore.QUrl) -> None: ... + def setSource(self, source: QtCore.QUrl) -> None: ... + def status(self) -> 'QAnimationClipLoader.Status': ... + def source(self) -> QtCore.QUrl: ... + + class QAnimationController(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def recursiveChanged(self, recursive: bool) -> None: ... + def entityChanged(self, entity: Qt3DCore.QEntity) -> None: ... + def positionOffsetChanged(self, offset: float) -> None: ... + def positionScaleChanged(self, scale: float) -> None: ... + def positionChanged(self, position: float) -> None: ... + def activeAnimationGroupChanged(self, index: int) -> None: ... + def setRecursive(self, recursive: bool) -> None: ... + def setEntity(self, entity: Qt3DCore.QEntity) -> None: ... + def setPositionOffset(self, offset: float) -> None: ... + def setPositionScale(self, scale: float) -> None: ... + def setPosition(self, position: float) -> None: ... + def setActiveAnimationGroup(self, index: int) -> None: ... + def getGroup(self, index: int) -> 'QAnimationGroup': ... + def getAnimationIndex(self, name: str) -> int: ... + def removeAnimationGroup(self, animationGroups: 'QAnimationGroup') -> None: ... + def addAnimationGroup(self, animationGroups: 'QAnimationGroup') -> None: ... + def setAnimationGroups(self, animationGroups: typing.Iterable['QAnimationGroup']) -> None: ... + def recursive(self) -> bool: ... + def entity(self) -> Qt3DCore.QEntity: ... + def positionOffset(self) -> float: ... + def positionScale(self) -> float: ... + def position(self) -> float: ... + def activeAnimationGroup(self) -> int: ... + def animationGroupList(self) -> typing.List['QAnimationGroup']: ... + + class QAnimationGroup(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def durationChanged(self, duration: float) -> None: ... + def positionChanged(self, position: float) -> None: ... + def nameChanged(self, name: str) -> None: ... + def setPosition(self, position: float) -> None: ... + def setName(self, name: str) -> None: ... + def removeAnimation(self, animation: 'QAbstractAnimation') -> None: ... + def addAnimation(self, animation: 'QAbstractAnimation') -> None: ... + def setAnimations(self, animations: typing.Iterable['QAbstractAnimation']) -> None: ... + def duration(self) -> float: ... + def position(self) -> float: ... + def animationList(self) -> typing.List['QAbstractAnimation']: ... + def name(self) -> str: ... + + class QBlendedClipAnimator('QAbstractClipAnimator'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def blendTreeChanged(self, blendTree: 'QAbstractClipBlendNode') -> None: ... + def setBlendTree(self, blendTree: 'QAbstractClipBlendNode') -> None: ... + def blendTree(self) -> 'QAbstractClipBlendNode': ... + + class QChannel(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, name: str) -> None: ... + @typing.overload + def __init__(self, a0: 'QChannel') -> None: ... + + def clearChannelComponents(self) -> None: ... + def removeChannelComponent(self, index: int) -> None: ... + def insertChannelComponent(self, index: int, component: 'QChannelComponent') -> None: ... + def appendChannelComponent(self, component: 'QChannelComponent') -> None: ... + def channelComponentCount(self) -> int: ... + def jointIndex(self) -> int: ... + def setJointIndex(self, jointIndex: int) -> None: ... + def name(self) -> str: ... + def setName(self, name: str) -> None: ... + + class QChannelComponent(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, name: str) -> None: ... + @typing.overload + def __init__(self, a0: 'QChannelComponent') -> None: ... + + def clearKeyFrames(self) -> None: ... + def removeKeyFrame(self, index: int) -> None: ... + def insertKeyFrame(self, index: int, kf: 'QKeyFrame') -> None: ... + def appendKeyFrame(self, kf: 'QKeyFrame') -> None: ... + def keyFrameCount(self) -> int: ... + def name(self) -> str: ... + def setName(self, name: str) -> None: ... + + class QChannelMapper(Qt3DCore.QNode): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def mappings(self) -> typing.List['QAbstractChannelMapping']: ... + def removeMapping(self, mapping: 'QAbstractChannelMapping') -> None: ... + def addMapping(self, mapping: 'QAbstractChannelMapping') -> None: ... + + class QChannelMapping('QAbstractChannelMapping'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def propertyChanged(self, property: str) -> None: ... + def targetChanged(self, target: Qt3DCore.QNode) -> None: ... + def channelNameChanged(self, channelName: str) -> None: ... + def setProperty(self, property: str) -> None: ... + def setTarget(self, target: Qt3DCore.QNode) -> None: ... + def setChannelName(self, channelName: str) -> None: ... + def property(self) -> str: ... + def target(self) -> Qt3DCore.QNode: ... + def channelName(self) -> str: ... + + class QClipAnimator('QAbstractClipAnimator'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def clipChanged(self, clip: 'QAbstractAnimationClip') -> None: ... + def setClip(self, clip: 'QAbstractAnimationClip') -> None: ... + def clip(self) -> 'QAbstractAnimationClip': ... + + class QClipBlendNodeCreatedChangeBase(Qt3DCore.QNodeCreatedChangeBase): + + def __init__(self, node: 'QAbstractClipBlendNode') -> None: ... + + class QClipBlendValue('QAbstractClipBlendNode'): + + @typing.overload + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + @typing.overload + def __init__(self, clip: 'QAbstractAnimationClip', parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def clipChanged(self, clip: 'QAbstractAnimationClip') -> None: ... + def setClip(self, clip: 'QAbstractAnimationClip') -> None: ... + def clip(self) -> 'QAbstractAnimationClip': ... + + class QClock(Qt3DCore.QNode): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def playbackRateChanged(self, playbackRate: float) -> None: ... + def setPlaybackRate(self, playbackRate: float) -> None: ... + def playbackRate(self) -> float: ... + + class QKeyFrame(sip.simplewrapper): + + class InterpolationType(int): ... + ConstantInterpolation = ... # type: 'QKeyFrame.InterpolationType' + LinearInterpolation = ... # type: 'QKeyFrame.InterpolationType' + BezierInterpolation = ... # type: 'QKeyFrame.InterpolationType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, coords: QtGui.QVector2D) -> None: ... + @typing.overload + def __init__(self, coords: QtGui.QVector2D, lh: QtGui.QVector2D, rh: QtGui.QVector2D) -> None: ... + @typing.overload + def __init__(self, a0: 'QKeyFrame') -> None: ... + + def interpolationType(self) -> 'QKeyFrame.InterpolationType': ... + def setInterpolationType(self, interp: 'QKeyFrame.InterpolationType') -> None: ... + def rightControlPoint(self) -> QtGui.QVector2D: ... + def setRightControlPoint(self, rh: QtGui.QVector2D) -> None: ... + def leftControlPoint(self) -> QtGui.QVector2D: ... + def setLeftControlPoint(self, lh: QtGui.QVector2D) -> None: ... + def coordinates(self) -> QtGui.QVector2D: ... + def setCoordinates(self, coords: QtGui.QVector2D) -> None: ... + + class QKeyframeAnimation('QAbstractAnimation'): + + class RepeatMode(int): ... + None = ... # type: 'QKeyframeAnimation.RepeatMode' + Constant = ... # type: 'QKeyframeAnimation.RepeatMode' + Repeat = ... # type: 'QKeyframeAnimation.RepeatMode' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def endModeChanged(self, endMode: 'QKeyframeAnimation.RepeatMode') -> None: ... + def startModeChanged(self, startMode: 'QKeyframeAnimation.RepeatMode') -> None: ... + def targetNameChanged(self, name: str) -> None: ... + def easingChanged(self, easing: typing.Union[QtCore.QEasingCurve, QtCore.QEasingCurve.Type]) -> None: ... + def targetChanged(self, target: Qt3DCore.QTransform) -> None: ... + def framePositionsChanged(self, positions: typing.Iterable[float]) -> None: ... + def setEndMode(self, mode: 'QKeyframeAnimation.RepeatMode') -> None: ... + def setStartMode(self, mode: 'QKeyframeAnimation.RepeatMode') -> None: ... + def setTargetName(self, name: str) -> None: ... + def setEasing(self, easing: typing.Union[QtCore.QEasingCurve, QtCore.QEasingCurve.Type]) -> None: ... + def setTarget(self, target: Qt3DCore.QTransform) -> None: ... + def setFramePositions(self, positions: typing.Iterable[float]) -> None: ... + def removeKeyframe(self, keyframe: Qt3DCore.QTransform) -> None: ... + def addKeyframe(self, keyframe: Qt3DCore.QTransform) -> None: ... + def setKeyframes(self, keyframes: typing.Iterable[Qt3DCore.QTransform]) -> None: ... + def endMode(self) -> 'QKeyframeAnimation.RepeatMode': ... + def startMode(self) -> 'QKeyframeAnimation.RepeatMode': ... + def targetName(self) -> str: ... + def easing(self) -> QtCore.QEasingCurve: ... + def target(self) -> Qt3DCore.QTransform: ... + def keyframeList(self) -> typing.List[Qt3DCore.QTransform]: ... + def framePositions(self) -> typing.List[float]: ... + + class QLerpClipBlend('QAbstractClipBlendNode'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def endClipChanged(self, endClip: 'QAbstractClipBlendNode') -> None: ... + def startClipChanged(self, startClip: 'QAbstractClipBlendNode') -> None: ... + def blendFactorChanged(self, blendFactor: float) -> None: ... + def setEndClip(self, endClip: 'QAbstractClipBlendNode') -> None: ... + def setStartClip(self, startClip: 'QAbstractClipBlendNode') -> None: ... + def setBlendFactor(self, blendFactor: float) -> None: ... + def endClip(self) -> 'QAbstractClipBlendNode': ... + def startClip(self) -> 'QAbstractClipBlendNode': ... + def blendFactor(self) -> float: ... + + class QMorphingAnimation('QAbstractAnimation'): + + class Method(int): ... + Normalized = ... # type: 'QMorphingAnimation.Method' + Relative = ... # type: 'QMorphingAnimation.Method' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def easingChanged(self, easing: typing.Union[QtCore.QEasingCurve, QtCore.QEasingCurve.Type]) -> None: ... + def methodChanged(self, method: 'QMorphingAnimation.Method') -> None: ... + def targetNameChanged(self, name: str) -> None: ... + def targetChanged(self, target: Qt3DRender.QGeometryRenderer) -> None: ... + def interpolatorChanged(self, interpolator: float) -> None: ... + def targetPositionsChanged(self, targetPositions: typing.Iterable[float]) -> None: ... + def setEasing(self, easing: typing.Union[QtCore.QEasingCurve, QtCore.QEasingCurve.Type]) -> None: ... + def setMethod(self, method: 'QMorphingAnimation.Method') -> None: ... + def setTargetName(self, name: str) -> None: ... + def setTarget(self, target: Qt3DRender.QGeometryRenderer) -> None: ... + def setTargetPositions(self, targetPositions: typing.Iterable[float]) -> None: ... + def morphTargetList(self) -> typing.List['QMorphTarget']: ... + def getWeights(self, positionIndex: int) -> typing.List[float]: ... + def setWeights(self, positionIndex: int, weights: typing.Iterable[float]) -> None: ... + def removeMorphTarget(self, target: 'QMorphTarget') -> None: ... + def addMorphTarget(self, target: 'QMorphTarget') -> None: ... + def setMorphTargets(self, targets: typing.Iterable['QMorphTarget']) -> None: ... + def easing(self) -> QtCore.QEasingCurve: ... + def method(self) -> 'QMorphingAnimation.Method': ... + def targetName(self) -> str: ... + def target(self) -> Qt3DRender.QGeometryRenderer: ... + def interpolator(self) -> float: ... + def targetPositions(self) -> typing.List[float]: ... + + class QMorphTarget(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def attributeNamesChanged(self, attributeNames: typing.Iterable[str]) -> None: ... + @staticmethod + def fromGeometry(geometry: Qt3DRender.QGeometry, attributes: typing.Iterable[str]) -> 'QMorphTarget': ... + def removeAttribute(self, attribute: Qt3DRender.QAttribute) -> None: ... + def addAttribute(self, attribute: Qt3DRender.QAttribute) -> None: ... + def setAttributes(self, attributes: typing.Iterable[Qt3DRender.QAttribute]) -> None: ... + def attributeNames(self) -> typing.List[str]: ... + def attributeList(self) -> typing.List[Qt3DRender.QAttribute]: ... + + class QSkeletonMapping('QAbstractChannelMapping'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def skeletonChanged(self, skeleton: Qt3DCore.QAbstractSkeleton) -> None: ... + def setSkeleton(self, skeleton: Qt3DCore.QAbstractSkeleton) -> None: ... + def skeleton(self) -> Qt3DCore.QAbstractSkeleton: ... + + class QVertexBlendAnimation('QAbstractAnimation'): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def targetNameChanged(self, name: str) -> None: ... + def targetChanged(self, target: Qt3DRender.QGeometryRenderer) -> None: ... + def interpolatorChanged(self, interpolator: float) -> None: ... + def targetPositionsChanged(self, targetPositions: typing.Iterable[float]) -> None: ... + def setTargetName(self, name: str) -> None: ... + def setTarget(self, target: Qt3DRender.QGeometryRenderer) -> None: ... + def setTargetPositions(self, targetPositions: typing.Iterable[float]) -> None: ... + def morphTargetList(self) -> typing.List['QMorphTarget']: ... + def removeMorphTarget(self, target: 'QMorphTarget') -> None: ... + def addMorphTarget(self, target: 'QMorphTarget') -> None: ... + def setMorphTargets(self, targets: typing.Iterable['QMorphTarget']) -> None: ... + def targetName(self) -> str: ... + def target(self) -> Qt3DRender.QGeometryRenderer: ... + def interpolator(self) -> float: ... + def targetPositions(self) -> typing.List[float]: ... diff --git a/PyQt5-stubs/Qt3DCore.pyi b/PyQt5-stubs/Qt3DCore.pyi new file mode 100644 index 00000000..e5c01f5c --- /dev/null +++ b/PyQt5-stubs/Qt3DCore.pyi @@ -0,0 +1,499 @@ +# The PEP 484 type hints stub file for the Qt3DCore module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt3D. +# +# 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 sip + +from PyQt5 import QtGui +from PyQt5 import QtCore + +# 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], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class Qt3DCore(sip.simplewrapper): + + class ChangeFlag(int): ... + NodeCreated = ... # type: 'ChangeFlag' + NodeDeleted = ... # type: 'ChangeFlag' + PropertyUpdated = ... # type: 'ChangeFlag' + PropertyValueAdded = ... # type: 'ChangeFlag' + PropertyValueRemoved = ... # type: 'ChangeFlag' + ComponentAdded = ... # type: 'ChangeFlag' + ComponentRemoved = ... # type: 'ChangeFlag' + CommandRequested = ... # type: 'ChangeFlag' + CallbackTriggered = ... # type: 'ChangeFlag' + AllChanges = ... # type: 'ChangeFlag' + + class QAbstractAspect(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def unregisterBackendType(self, a0: QtCore.QMetaObject) -> None: ... + def registerBackendType(self, a0: QtCore.QMetaObject, functor: 'QBackendNodeMapper') -> None: ... + def rootEntityId(self) -> 'QNodeId': ... + + class QAspectEngine(QtCore.QObject): + + class RunMode(int): ... + Manual = ... # type: 'QAspectEngine.RunMode' + Automatic = ... # type: 'QAspectEngine.RunMode' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def processFrame(self) -> None: ... + def runMode(self) -> 'QAspectEngine.RunMode': ... + def setRunMode(self, mode: 'QAspectEngine.RunMode') -> None: ... + def executeCommand(self, command: str) -> typing.Any: ... + def aspects(self) -> typing.List['QAbstractAspect']: ... + @typing.overload + def unregisterAspect(self, aspect: 'QAbstractAspect') -> None: ... + @typing.overload + def unregisterAspect(self, name: str) -> None: ... + @typing.overload + def registerAspect(self, aspect: 'QAbstractAspect') -> None: ... + @typing.overload + def registerAspect(self, name: str) -> None: ... + def rootEntity(self) -> 'QEntity': ... + def setRootEntity(self, root: 'QEntity') -> None: ... + + class QNode(QtCore.QObject): + + class PropertyTrackingMode(int): ... + TrackFinalValues = ... # type: 'QNode.PropertyTrackingMode' + DontTrackValues = ... # type: 'QNode.PropertyTrackingMode' + TrackAllValues = ... # type: 'QNode.PropertyTrackingMode' + + def __init__(self, parent: typing.Optional['QNode'] = ...) -> None: ... + + def sendReply(self, command: 'QNodeCommand') -> None: ... + def sendCommand(self, name: str, data: typing.Any = ..., replyTo: int = ...) -> int: ... + def defaultPropertyTrackingModeChanged(self, mode: 'QNode.PropertyTrackingMode') -> None: ... + def setDefaultPropertyTrackingMode(self, mode: 'QNode.PropertyTrackingMode') -> None: ... + def clearPropertyTrackings(self) -> None: ... + def clearPropertyTracking(self, propertyName: str) -> None: ... + def propertyTracking(self, propertyName: str) -> 'QNode.PropertyTrackingMode': ... + def setPropertyTracking(self, propertyName: str, trackMode: 'QNode.PropertyTrackingMode') -> None: ... + def defaultPropertyTrackingMode(self) -> 'QNode.PropertyTrackingMode': ... + def sceneChangeEvent(self, change: 'QSceneChange') -> None: ... + def notifyObservers(self, change: 'QSceneChange') -> None: ... + def nodeDestroyed(self) -> None: ... + def enabledChanged(self, enabled: bool) -> None: ... + def parentChanged(self, parent: QtCore.QObject) -> None: ... + def setEnabled(self, isEnabled: bool) -> None: ... + def setParent(self, parent: 'QNode') -> None: ... + def isEnabled(self) -> bool: ... + def childNodes(self) -> typing.List['QNode']: ... + def blockNotifications(self, block: bool) -> bool: ... + def notificationsBlocked(self) -> bool: ... + def parentNode(self) -> 'QNode': ... + def id(self) -> 'QNodeId': ... + + class QAbstractSkeleton('QNode'): + + def sceneChangeEvent(self, change: 'QSceneChange') -> None: ... + def jointCountChanged(self, jointCount: int) -> None: ... + def jointCount(self) -> int: ... + + class QComponent('QNode'): + + def __init__(self, parent: typing.Optional['QNode'] = ...) -> None: ... + + def removedFromEntity(self, entity: 'QEntity') -> None: ... + def addedToEntity(self, entity: 'QEntity') -> None: ... + def shareableChanged(self, isShareable: bool) -> None: ... + def setShareable(self, isShareable: bool) -> None: ... + def entities(self) -> typing.List['QEntity']: ... + def isShareable(self) -> bool: ... + + class QArmature('QComponent'): + + def __init__(self, parent: typing.Optional['QNode'] = ...) -> None: ... + + def skeletonChanged(self, skeleton: 'QAbstractSkeleton') -> None: ... + def setSkeleton(self, skeleton: 'QAbstractSkeleton') -> None: ... + def skeleton(self) -> 'QAbstractSkeleton': ... + + class QBackendNodeMapper(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QBackendNodeMapper') -> None: ... + + def destroy(self, id: 'QNodeId') -> None: ... + def get(self, id: 'QNodeId') -> 'QBackendNode': ... + def create(self, change: 'QNodeCreatedChangeBase') -> 'QBackendNode': ... + + class QBackendNode(sip.simplewrapper): + + class Mode(int): ... + ReadOnly = ... # type: 'QBackendNode.Mode' + ReadWrite = ... # type: 'QBackendNode.Mode' + + def __init__(self, mode: 'QBackendNode.Mode' = ...) -> None: ... + + def sendReply(self, command: 'QNodeCommand') -> None: ... + def sendCommand(self, name: str, data: typing.Any, replyTo: int = ...) -> int: ... + def sceneChangeEvent(self, e: 'QSceneChange') -> None: ... + def notifyObservers(self, e: 'QSceneChange') -> None: ... + def mode(self) -> 'QBackendNode.Mode': ... + def isEnabled(self) -> bool: ... + def setEnabled(self, enabled: bool) -> None: ... + def peerId(self) -> 'QNodeId': ... + + class QSceneChange(sip.simplewrapper): + + class DeliveryFlag(int): ... + BackendNodes = ... # type: 'QSceneChange.DeliveryFlag' + Nodes = ... # type: 'QSceneChange.DeliveryFlag' + DeliverToAll = ... # type: 'QSceneChange.DeliveryFlag' + + class DeliveryFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSceneChange.DeliveryFlags', 'QSceneChange.DeliveryFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSceneChange.DeliveryFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSceneChange.DeliveryFlags': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + def __init__(self, type: 'ChangeFlag', subjectId: 'QNodeId') -> None: ... + + def subjectId(self) -> 'QNodeId': ... + def deliveryFlags(self) -> 'QSceneChange.DeliveryFlags': ... + def setDeliveryFlags(self, flags: typing.Union['QSceneChange.DeliveryFlags', 'QSceneChange.DeliveryFlag']) -> None: ... + def type(self) -> 'ChangeFlag': ... + + class QComponentAddedChange('QSceneChange'): + + @typing.overload + def __init__(self, entity: 'QEntity', component: 'QComponent') -> None: ... + @typing.overload + def __init__(self, component: 'QComponent', entity: 'QEntity') -> None: ... + + def componentMetaObject(self) -> QtCore.QMetaObject: ... + def componentId(self) -> 'QNodeId': ... + def entityId(self) -> 'QNodeId': ... + + class QComponentRemovedChange('QSceneChange'): + + @typing.overload + def __init__(self, entity: 'QEntity', component: 'QComponent') -> None: ... + @typing.overload + def __init__(self, component: 'QComponent', entity: 'QEntity') -> None: ... + + def componentMetaObject(self) -> QtCore.QMetaObject: ... + def componentId(self) -> 'QNodeId': ... + def entityId(self) -> 'QNodeId': ... + + class QPropertyUpdatedChangeBase('QSceneChange'): + + def __init__(self, subjectId: 'QNodeId') -> None: ... + + class QDynamicPropertyUpdatedChange('QPropertyUpdatedChangeBase'): + + def __init__(self, subjectId: 'QNodeId') -> None: ... + + def setValue(self, value: typing.Any) -> None: ... + def value(self) -> typing.Any: ... + def setPropertyName(self, name: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def propertyName(self) -> QtCore.QByteArray: ... + + class QEntity('QNode'): + + def __init__(self, parent: typing.Optional['QNode'] = ...) -> None: ... + + def parentEntity(self) -> 'QEntity': ... + def removeComponent(self, comp: 'QComponent') -> None: ... + def addComponent(self, comp: 'QComponent') -> None: ... + def components(self) -> typing.List['QComponent']: ... + + class QJoint('QNode'): + + def __init__(self, parent: typing.Optional['QNode'] = ...) -> None: ... + + def nameChanged(self, name: str) -> None: ... + def rotationZChanged(self, rotationZ: float) -> None: ... + def rotationYChanged(self, rotationY: float) -> None: ... + def rotationXChanged(self, rotationX: float) -> None: ... + def inverseBindMatrixChanged(self, inverseBindMatrix: QtGui.QMatrix4x4) -> None: ... + def translationChanged(self, translation: QtGui.QVector3D) -> None: ... + def rotationChanged(self, rotation: QtGui.QQuaternion) -> None: ... + def scaleChanged(self, scale: QtGui.QVector3D) -> None: ... + def setToIdentity(self) -> None: ... + def setName(self, name: str) -> None: ... + def setRotationZ(self, rotationZ: float) -> None: ... + def setRotationY(self, rotationY: float) -> None: ... + def setRotationX(self, rotationX: float) -> None: ... + def setInverseBindMatrix(self, inverseBindMatrix: QtGui.QMatrix4x4) -> None: ... + def setTranslation(self, translation: QtGui.QVector3D) -> None: ... + def setRotation(self, rotation: QtGui.QQuaternion) -> None: ... + def setScale(self, scale: QtGui.QVector3D) -> None: ... + def childJoints(self) -> typing.List['QJoint']: ... + def removeChildJoint(self, joint: 'QJoint') -> None: ... + def addChildJoint(self, joint: 'QJoint') -> None: ... + def name(self) -> str: ... + def rotationZ(self) -> float: ... + def rotationY(self) -> float: ... + def rotationX(self) -> float: ... + def inverseBindMatrix(self) -> QtGui.QMatrix4x4: ... + def translation(self) -> QtGui.QVector3D: ... + def rotation(self) -> QtGui.QQuaternion: ... + def scale(self) -> QtGui.QVector3D: ... + + class QNodeIdTypePair(sip.simplewrapper): + + id = ... # type: 'QNodeId' + type = ... # type: QtCore.QMetaObject + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, _id: 'QNodeId', _type: QtCore.QMetaObject) -> None: ... + @typing.overload + def __init__(self, a0: 'QNodeIdTypePair') -> None: ... + + class QNodeCommand('QSceneChange'): + + def __init__(self, id: 'QNodeId') -> None: ... + + def setReplyToCommandId(self, id: int) -> None: ... + def inReplyTo(self) -> int: ... + def setData(self, data: typing.Any) -> None: ... + def data(self) -> typing.Any: ... + def setName(self, name: str) -> None: ... + def name(self) -> str: ... + def commandId(self) -> int: ... + + class QNodeCreatedChangeBase('QSceneChange'): + + def __init__(self, node: 'QNode') -> None: ... + + def isNodeEnabled(self) -> bool: ... + def metaObject(self) -> QtCore.QMetaObject: ... + def parentId(self) -> 'QNodeId': ... + + class QNodeDestroyedChange('QSceneChange'): + + def __init__(self, node: 'QNode', subtreeIdsAndTypes: typing.Iterable['QNodeIdTypePair']) -> None: ... + + def subtreeIdsAndTypes(self) -> typing.List['QNodeIdTypePair']: ... + + class QNodeId(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QNodeId') -> None: ... + + def __hash__(self) -> int: ... + def __int__(self) -> bool: ... + def id(self) -> int: ... + def isNull(self) -> bool: ... + @staticmethod + def createId() -> 'QNodeId': ... + + class QPropertyValueAddedChangeBase('QSceneChange'): + + def __init__(self, subjectId: 'QNodeId') -> None: ... + + class QStaticPropertyValueAddedChangeBase('QPropertyValueAddedChangeBase'): + + def __init__(self, subjectId: 'QNodeId') -> None: ... + + def setPropertyName(self, name: str) -> None: ... + def propertyName(self) -> str: ... + + class QPropertyNodeAddedChange('QStaticPropertyValueAddedChangeBase'): + + def __init__(self, subjectId: 'QNodeId', node: 'QNode') -> None: ... + + def metaObject(self) -> QtCore.QMetaObject: ... + def addedNodeId(self) -> 'QNodeId': ... + + class QPropertyValueRemovedChangeBase('QSceneChange'): + + def __init__(self, subjectId: 'QNodeId') -> None: ... + + class QStaticPropertyValueRemovedChangeBase('QPropertyValueRemovedChangeBase'): + + def __init__(self, subjectId: 'QNodeId') -> None: ... + + def setPropertyName(self, name: str) -> None: ... + def propertyName(self) -> str: ... + + class QPropertyNodeRemovedChange('QStaticPropertyValueRemovedChangeBase'): + + def __init__(self, subjectId: 'QNodeId', node: 'QNode') -> None: ... + + def metaObject(self) -> QtCore.QMetaObject: ... + def removedNodeId(self) -> 'QNodeId': ... + + class QStaticPropertyUpdatedChangeBase('QPropertyUpdatedChangeBase'): + + def __init__(self, subjectId: 'QNodeId') -> None: ... + + def setPropertyName(self, name: str) -> None: ... + def propertyName(self) -> str: ... + + class QPropertyUpdatedChange('QStaticPropertyUpdatedChangeBase'): + + def __init__(self, subjectId: 'QNodeId') -> None: ... + + def setValue(self, value: typing.Any) -> None: ... + def value(self) -> typing.Any: ... + + class QPropertyValueAddedChange('QStaticPropertyValueAddedChangeBase'): + + def __init__(self, subjectId: 'QNodeId') -> None: ... + + def addedValue(self) -> typing.Any: ... + def setAddedValue(self, value: typing.Any) -> None: ... + + class QPropertyValueRemovedChange('QStaticPropertyValueRemovedChangeBase'): + + def __init__(self, subjectId: 'QNodeId') -> None: ... + + def removedValue(self) -> typing.Any: ... + def setRemovedValue(self, value: typing.Any) -> None: ... + + class ChangeFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['ChangeFlags', 'ChangeFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'ChangeFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'ChangeFlags': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + class QSkeleton('QAbstractSkeleton'): + + def __init__(self, parent: typing.Optional['QNode'] = ...) -> None: ... + + def rootJointChanged(self, rootJoint: 'QJoint') -> None: ... + def setRootJoint(self, rootJoint: 'QJoint') -> None: ... + def rootJoint(self) -> 'QJoint': ... + + class QSkeletonLoader('QAbstractSkeleton'): + + class Status(int): ... + NotReady = ... # type: 'QSkeletonLoader.Status' + Ready = ... # type: 'QSkeletonLoader.Status' + Error = ... # type: 'QSkeletonLoader.Status' + + @typing.overload + def __init__(self, parent: typing.Optional['QNode'] = ...) -> None: ... + @typing.overload + def __init__(self, source: QtCore.QUrl, parent: typing.Optional['QNode'] = ...) -> None: ... + + def sceneChangeEvent(self, change: 'QSceneChange') -> None: ... + def rootJointChanged(self, rootJoint: 'QJoint') -> None: ... + def createJointsEnabledChanged(self, createJointsEnabled: bool) -> None: ... + def statusChanged(self, status: 'QSkeletonLoader.Status') -> None: ... + def sourceChanged(self, source: QtCore.QUrl) -> None: ... + def setCreateJointsEnabled(self, enabled: bool) -> None: ... + def setSource(self, source: QtCore.QUrl) -> None: ... + def rootJoint(self) -> 'QJoint': ... + def isCreateJointsEnabled(self) -> bool: ... + def status(self) -> 'QSkeletonLoader.Status': ... + def source(self) -> QtCore.QUrl: ... + + class QTransform('QComponent'): + + def __init__(self, parent: typing.Optional['QNode'] = ...) -> None: ... + + def sceneChangeEvent(self, change: 'QSceneChange') -> None: ... + def worldMatrixChanged(self, worldMatrix: QtGui.QMatrix4x4) -> None: ... + def worldMatrix(self) -> QtGui.QMatrix4x4: ... + def rotationZChanged(self, rotationZ: float) -> None: ... + def rotationYChanged(self, rotationY: float) -> None: ... + def rotationXChanged(self, rotationX: float) -> None: ... + def matrixChanged(self) -> None: ... + def translationChanged(self, translation: QtGui.QVector3D) -> None: ... + def rotationChanged(self, rotation: QtGui.QQuaternion) -> None: ... + def scale3DChanged(self, scale: QtGui.QVector3D) -> None: ... + def scaleChanged(self, scale: float) -> None: ... + def setRotationZ(self, rotationZ: float) -> None: ... + def setRotationY(self, rotationY: float) -> None: ... + def setRotationX(self, rotationX: float) -> None: ... + def setMatrix(self, matrix: QtGui.QMatrix4x4) -> None: ... + def setTranslation(self, translation: QtGui.QVector3D) -> None: ... + def setRotation(self, rotation: QtGui.QQuaternion) -> None: ... + def setScale3D(self, scale: QtGui.QVector3D) -> None: ... + def setScale(self, scale: float) -> None: ... + def rotationZ(self) -> float: ... + def rotationY(self) -> float: ... + def rotationX(self) -> float: ... + def matrix(self) -> QtGui.QMatrix4x4: ... + @staticmethod + def rotateFromAxes(xAxis: QtGui.QVector3D, yAxis: QtGui.QVector3D, zAxis: QtGui.QVector3D) -> QtGui.QMatrix4x4: ... + @staticmethod + def rotateAround(point: QtGui.QVector3D, angle: float, axis: QtGui.QVector3D) -> QtGui.QMatrix4x4: ... + @typing.overload + @staticmethod + def fromEulerAngles(eulerAngles: QtGui.QVector3D) -> QtGui.QQuaternion: ... + @typing.overload + @staticmethod + def fromEulerAngles(pitch: float, yaw: float, roll: float) -> QtGui.QQuaternion: ... + @typing.overload + @staticmethod + def fromAxesAndAngles(axis1: QtGui.QVector3D, angle1: float, axis2: QtGui.QVector3D, angle2: float) -> QtGui.QQuaternion: ... + @typing.overload + @staticmethod + def fromAxesAndAngles(axis1: QtGui.QVector3D, angle1: float, axis2: QtGui.QVector3D, angle2: float, axis3: QtGui.QVector3D, angle3: float) -> QtGui.QQuaternion: ... + @typing.overload + @staticmethod + def fromAxisAndAngle(axis: QtGui.QVector3D, angle: float) -> QtGui.QQuaternion: ... + @typing.overload + @staticmethod + def fromAxisAndAngle(x: float, y: float, z: float, angle: float) -> QtGui.QQuaternion: ... + @staticmethod + def fromAxes(xAxis: QtGui.QVector3D, yAxis: QtGui.QVector3D, zAxis: QtGui.QVector3D) -> QtGui.QQuaternion: ... + def translation(self) -> QtGui.QVector3D: ... + def rotation(self) -> QtGui.QQuaternion: ... + def scale3D(self) -> QtGui.QVector3D: ... + def scale(self) -> float: ... + + def qIdForNode(self, node: 'QNode') -> 'QNodeId': ... diff --git a/PyQt5-stubs/Qt3DExtras.pyi b/PyQt5-stubs/Qt3DExtras.pyi new file mode 100644 index 00000000..f2c2d821 --- /dev/null +++ b/PyQt5-stubs/Qt3DExtras.pyi @@ -0,0 +1,782 @@ +# The PEP 484 type hints stub file for the Qt3DExtras module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt3D. +# +# 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 sip + +from PyQt5 import QtGui +from PyQt5 import QtCore +from PyQt5 import Qt3DRender +from PyQt5 import Qt3DInput +from PyQt5 import Qt3DCore + +# 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], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class Qt3DExtras(sip.simplewrapper): + + class QAbstractCameraController(Qt3DCore.QEntity): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def mouseDevice(self) -> Qt3DInput.QMouseDevice: ... + def keyboardDevice(self) -> Qt3DInput.QKeyboardDevice: ... + def decelerationChanged(self, deceleration: float) -> None: ... + def accelerationChanged(self, acceleration: float) -> None: ... + def lookSpeedChanged(self) -> None: ... + def linearSpeedChanged(self) -> None: ... + def cameraChanged(self) -> None: ... + def setDeceleration(self, deceleration: float) -> None: ... + def setAcceleration(self, acceleration: float) -> None: ... + def setLookSpeed(self, lookSpeed: float) -> None: ... + def setLinearSpeed(self, linearSpeed: float) -> None: ... + def setCamera(self, camera: Qt3DRender.QCamera) -> None: ... + def deceleration(self) -> float: ... + def acceleration(self) -> float: ... + def lookSpeed(self) -> float: ... + def linearSpeed(self) -> float: ... + def camera(self) -> Qt3DRender.QCamera: ... + + class QAbstractSpriteSheet(Qt3DCore.QNode): + + def currentIndexChanged(self, currentIndex: int) -> None: ... + def textureTransformChanged(self, textureTransform: QtGui.QMatrix3x3) -> None: ... + def textureChanged(self, texture: Qt3DRender.QAbstractTexture) -> None: ... + def setCurrentIndex(self, currentIndex: int) -> None: ... + def setTexture(self, texture: Qt3DRender.QAbstractTexture) -> None: ... + def currentIndex(self) -> int: ... + def textureTransform(self) -> QtGui.QMatrix3x3: ... + def texture(self) -> Qt3DRender.QAbstractTexture: ... + + class QConeGeometry(Qt3DRender.QGeometry): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def lengthChanged(self, length: float) -> None: ... + def slicesChanged(self, slices: int) -> None: ... + def ringsChanged(self, rings: int) -> None: ... + def bottomRadiusChanged(self, bottomRadius: float) -> None: ... + def topRadiusChanged(self, topRadius: float) -> None: ... + def hasBottomEndcapChanged(self, hasBottomEndcap: bool) -> None: ... + def hasTopEndcapChanged(self, hasTopEndcap: bool) -> None: ... + def setLength(self, length: float) -> None: ... + def setSlices(self, slices: int) -> None: ... + def setRings(self, rings: int) -> None: ... + def setBottomRadius(self, bottomRadius: float) -> None: ... + def setTopRadius(self, topRadius: float) -> None: ... + def setHasBottomEndcap(self, hasBottomEndcap: bool) -> None: ... + def setHasTopEndcap(self, hasTopEndcap: bool) -> None: ... + def indexAttribute(self) -> Qt3DRender.QAttribute: ... + def texCoordAttribute(self) -> Qt3DRender.QAttribute: ... + def normalAttribute(self) -> Qt3DRender.QAttribute: ... + def positionAttribute(self) -> Qt3DRender.QAttribute: ... + def length(self) -> float: ... + def slices(self) -> int: ... + def rings(self) -> int: ... + def bottomRadius(self) -> float: ... + def topRadius(self) -> float: ... + def hasBottomEndcap(self) -> bool: ... + def hasTopEndcap(self) -> bool: ... + def updateIndices(self) -> None: ... + def updateVertices(self) -> None: ... + + class QConeMesh(Qt3DRender.QGeometryRenderer): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def lengthChanged(self, length: float) -> None: ... + def slicesChanged(self, slices: int) -> None: ... + def ringsChanged(self, rings: int) -> None: ... + def bottomRadiusChanged(self, bottomRadius: float) -> None: ... + def topRadiusChanged(self, topRadius: float) -> None: ... + def hasBottomEndcapChanged(self, hasBottomEndcap: bool) -> None: ... + def hasTopEndcapChanged(self, hasTopEndcap: bool) -> None: ... + def setLength(self, length: float) -> None: ... + def setSlices(self, slices: int) -> None: ... + def setRings(self, rings: int) -> None: ... + def setBottomRadius(self, bottomRadius: float) -> None: ... + def setTopRadius(self, topRadius: float) -> None: ... + def setHasBottomEndcap(self, hasBottomEndcap: bool) -> None: ... + def setHasTopEndcap(self, hasTopEndcap: bool) -> None: ... + def length(self) -> float: ... + def bottomRadius(self) -> float: ... + def topRadius(self) -> float: ... + def hasBottomEndcap(self) -> bool: ... + def hasTopEndcap(self) -> bool: ... + def slices(self) -> int: ... + def rings(self) -> int: ... + + class QCuboidGeometry(Qt3DRender.QGeometry): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def xyMeshResolutionChanged(self, xyMeshResolution: QtCore.QSize) -> None: ... + def xzMeshResolutionChanged(self, xzMeshResolution: QtCore.QSize) -> None: ... + def yzMeshResolutionChanged(self, yzMeshResolution: QtCore.QSize) -> None: ... + def zExtentChanged(self, zExtent: float) -> None: ... + def yExtentChanged(self, yExtent: float) -> None: ... + def xExtentChanged(self, xExtent: float) -> None: ... + def setXYMeshResolution(self, resolution: QtCore.QSize) -> None: ... + def setXZMeshResolution(self, resolution: QtCore.QSize) -> None: ... + def setYZMeshResolution(self, resolution: QtCore.QSize) -> None: ... + def setZExtent(self, zExtent: float) -> None: ... + def setYExtent(self, yExtent: float) -> None: ... + def setXExtent(self, xExtent: float) -> None: ... + def indexAttribute(self) -> Qt3DRender.QAttribute: ... + def tangentAttribute(self) -> Qt3DRender.QAttribute: ... + def texCoordAttribute(self) -> Qt3DRender.QAttribute: ... + def normalAttribute(self) -> Qt3DRender.QAttribute: ... + def positionAttribute(self) -> Qt3DRender.QAttribute: ... + def xzMeshResolution(self) -> QtCore.QSize: ... + def xyMeshResolution(self) -> QtCore.QSize: ... + def yzMeshResolution(self) -> QtCore.QSize: ... + def zExtent(self) -> float: ... + def yExtent(self) -> float: ... + def xExtent(self) -> float: ... + def updateVertices(self) -> None: ... + def updateIndices(self) -> None: ... + + class QCuboidMesh(Qt3DRender.QGeometryRenderer): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def xyMeshResolutionChanged(self, xyMeshResolution: QtCore.QSize) -> None: ... + def xzMeshResolutionChanged(self, xzMeshResolution: QtCore.QSize) -> None: ... + def yzMeshResolutionChanged(self, yzMeshResolution: QtCore.QSize) -> None: ... + def zExtentChanged(self, zExtent: float) -> None: ... + def yExtentChanged(self, yExtent: float) -> None: ... + def xExtentChanged(self, xExtent: float) -> None: ... + def setXYMeshResolution(self, resolution: QtCore.QSize) -> None: ... + def setXZMeshResolution(self, resolution: QtCore.QSize) -> None: ... + def setYZMeshResolution(self, resolution: QtCore.QSize) -> None: ... + def setZExtent(self, zExtent: float) -> None: ... + def setYExtent(self, yExtent: float) -> None: ... + def setXExtent(self, xExtent: float) -> None: ... + def xyMeshResolution(self) -> QtCore.QSize: ... + def xzMeshResolution(self) -> QtCore.QSize: ... + def yzMeshResolution(self) -> QtCore.QSize: ... + def zExtent(self) -> float: ... + def yExtent(self) -> float: ... + def xExtent(self) -> float: ... + + class QCylinderGeometry(Qt3DRender.QGeometry): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def lengthChanged(self, length: float) -> None: ... + def slicesChanged(self, slices: int) -> None: ... + def ringsChanged(self, rings: int) -> None: ... + def radiusChanged(self, radius: float) -> None: ... + def setLength(self, length: float) -> None: ... + def setRadius(self, radius: float) -> None: ... + def setSlices(self, slices: int) -> None: ... + def setRings(self, rings: int) -> None: ... + def indexAttribute(self) -> Qt3DRender.QAttribute: ... + def texCoordAttribute(self) -> Qt3DRender.QAttribute: ... + def normalAttribute(self) -> Qt3DRender.QAttribute: ... + def positionAttribute(self) -> Qt3DRender.QAttribute: ... + def length(self) -> float: ... + def radius(self) -> float: ... + def slices(self) -> int: ... + def rings(self) -> int: ... + def updateIndices(self) -> None: ... + def updateVertices(self) -> None: ... + + class QCylinderMesh(Qt3DRender.QGeometryRenderer): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def lengthChanged(self, length: float) -> None: ... + def slicesChanged(self, slices: int) -> None: ... + def ringsChanged(self, rings: int) -> None: ... + def radiusChanged(self, radius: float) -> None: ... + def setLength(self, length: float) -> None: ... + def setRadius(self, radius: float) -> None: ... + def setSlices(self, slices: int) -> None: ... + def setRings(self, rings: int) -> None: ... + def length(self) -> float: ... + def radius(self) -> float: ... + def slices(self) -> int: ... + def rings(self) -> int: ... + + class QDiffuseMapMaterial(Qt3DRender.QMaterial): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def textureScaleChanged(self, textureScale: float) -> None: ... + def shininessChanged(self, shininess: float) -> None: ... + def specularChanged(self, specular: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def diffuseChanged(self, diffuse: Qt3DRender.QAbstractTexture) -> None: ... + def ambientChanged(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def setTextureScale(self, textureScale: float) -> None: ... + def setDiffuse(self, diffuse: Qt3DRender.QAbstractTexture) -> None: ... + def setShininess(self, shininess: float) -> None: ... + def setSpecular(self, specular: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def setAmbient(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def textureScale(self) -> float: ... + def diffuse(self) -> Qt3DRender.QAbstractTexture: ... + def shininess(self) -> float: ... + def specular(self) -> QtGui.QColor: ... + def ambient(self) -> QtGui.QColor: ... + + class QDiffuseSpecularMapMaterial(Qt3DRender.QMaterial): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def textureScaleChanged(self, textureScale: float) -> None: ... + def shininessChanged(self, shininess: float) -> None: ... + def specularChanged(self, specular: Qt3DRender.QAbstractTexture) -> None: ... + def diffuseChanged(self, diffuse: Qt3DRender.QAbstractTexture) -> None: ... + def ambientChanged(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def setTextureScale(self, textureScale: float) -> None: ... + def setShininess(self, shininess: float) -> None: ... + def setSpecular(self, specular: Qt3DRender.QAbstractTexture) -> None: ... + def setDiffuse(self, diffuse: Qt3DRender.QAbstractTexture) -> None: ... + def setAmbient(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def textureScale(self) -> float: ... + def shininess(self) -> float: ... + def specular(self) -> Qt3DRender.QAbstractTexture: ... + def diffuse(self) -> Qt3DRender.QAbstractTexture: ... + def ambient(self) -> QtGui.QColor: ... + + class QDiffuseSpecularMaterial(Qt3DRender.QMaterial): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def alphaBlendingEnabledChanged(self, enabled: bool) -> None: ... + def textureScaleChanged(self, textureScale: float) -> None: ... + def normalChanged(self, normal: typing.Any) -> None: ... + def shininessChanged(self, shininess: float) -> None: ... + def specularChanged(self, specular: typing.Any) -> None: ... + def diffuseChanged(self, diffuse: typing.Any) -> None: ... + def ambientChanged(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def setAlphaBlendingEnabled(self, enabled: bool) -> None: ... + def setTextureScale(self, textureScale: float) -> None: ... + def setNormal(self, normal: typing.Any) -> None: ... + def setShininess(self, shininess: float) -> None: ... + def setSpecular(self, specular: typing.Any) -> None: ... + def setDiffuse(self, diffuse: typing.Any) -> None: ... + def setAmbient(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def isAlphaBlendingEnabled(self) -> bool: ... + def textureScale(self) -> float: ... + def normal(self) -> typing.Any: ... + def shininess(self) -> float: ... + def specular(self) -> typing.Any: ... + def diffuse(self) -> typing.Any: ... + def ambient(self) -> QtGui.QColor: ... + + class QExtrudedTextGeometry(Qt3DRender.QGeometry): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def depthChanged(self, extrusionLength: float) -> None: ... + def fontChanged(self, font: QtGui.QFont) -> None: ... + def textChanged(self, text: str) -> None: ... + def setDepth(self, extrusionLength: float) -> None: ... + def setFont(self, font: QtGui.QFont) -> None: ... + def setText(self, text: str) -> None: ... + def extrusionLength(self) -> float: ... + def font(self) -> QtGui.QFont: ... + def text(self) -> str: ... + def indexAttribute(self) -> Qt3DRender.QAttribute: ... + def normalAttribute(self) -> Qt3DRender.QAttribute: ... + def positionAttribute(self) -> Qt3DRender.QAttribute: ... + + class QExtrudedTextMesh(Qt3DRender.QGeometryRenderer): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def depthChanged(self, depth: float) -> None: ... + def fontChanged(self, font: QtGui.QFont) -> None: ... + def textChanged(self, text: str) -> None: ... + def setDepth(self, depth: float) -> None: ... + def setFont(self, font: QtGui.QFont) -> None: ... + def setText(self, text: str) -> None: ... + def depth(self) -> float: ... + def font(self) -> QtGui.QFont: ... + def text(self) -> str: ... + + class QFirstPersonCameraController('QAbstractCameraController'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + class QForwardRenderer(Qt3DRender.QTechniqueFilter): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def buffersToClearChanged(self, a0: Qt3DRender.QClearBuffers.BufferType) -> None: ... + def setBuffersToClear(self, a0: Qt3DRender.QClearBuffers.BufferType) -> None: ... + def buffersToClear(self) -> Qt3DRender.QClearBuffers.BufferType: ... + def gammaChanged(self, gamma: float) -> None: ... + def frustumCullingEnabledChanged(self, enabled: bool) -> None: ... + def setGamma(self, gamma: float) -> None: ... + def setFrustumCullingEnabled(self, enabled: bool) -> None: ... + def gamma(self) -> float: ... + def isFrustumCullingEnabled(self) -> bool: ... + def externalRenderTargetSizeChanged(self, size: QtCore.QSize) -> None: ... + def surfaceChanged(self, surface: QtCore.QObject) -> None: ... + def cameraChanged(self, camera: Qt3DCore.QEntity) -> None: ... + def clearColorChanged(self, clearColor: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def viewportRectChanged(self, viewportRect: QtCore.QRectF) -> None: ... + def setExternalRenderTargetSize(self, size: QtCore.QSize) -> None: ... + def setSurface(self, surface: QtCore.QObject) -> None: ... + def setCamera(self, camera: Qt3DCore.QEntity) -> None: ... + def setClearColor(self, clearColor: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def setViewportRect(self, viewportRect: QtCore.QRectF) -> None: ... + def externalRenderTargetSize(self) -> QtCore.QSize: ... + def surface(self) -> QtCore.QObject: ... + def camera(self) -> Qt3DCore.QEntity: ... + def clearColor(self) -> QtGui.QColor: ... + def viewportRect(self) -> QtCore.QRectF: ... + + class QGoochMaterial(Qt3DRender.QMaterial): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def shininessChanged(self, shininess: float) -> None: ... + def betaChanged(self, beta: float) -> None: ... + def alphaChanged(self, alpha: float) -> None: ... + def warmChanged(self, warm: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def coolChanged(self, cool: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def specularChanged(self, specular: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def diffuseChanged(self, diffuse: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def setShininess(self, shininess: float) -> None: ... + def setBeta(self, beta: float) -> None: ... + def setAlpha(self, alpha: float) -> None: ... + def setWarm(self, warm: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def setCool(self, cool: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def setSpecular(self, specular: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def setDiffuse(self, diffuse: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def shininess(self) -> float: ... + def beta(self) -> float: ... + def alpha(self) -> float: ... + def warm(self) -> QtGui.QColor: ... + def cool(self) -> QtGui.QColor: ... + def specular(self) -> QtGui.QColor: ... + def diffuse(self) -> QtGui.QColor: ... + + class QMetalRoughMaterial(Qt3DRender.QMaterial): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def textureScaleChanged(self, textureScale: float) -> None: ... + def normalChanged(self, normal: typing.Any) -> None: ... + def ambientOcclusionChanged(self, ambientOcclusion: typing.Any) -> None: ... + def roughnessChanged(self, roughness: typing.Any) -> None: ... + def metalnessChanged(self, metalness: typing.Any) -> None: ... + def baseColorChanged(self, baseColor: typing.Any) -> None: ... + def setTextureScale(self, textureScale: float) -> None: ... + def setNormal(self, normal: typing.Any) -> None: ... + def setAmbientOcclusion(self, ambientOcclusion: typing.Any) -> None: ... + def setRoughness(self, roughness: typing.Any) -> None: ... + def setMetalness(self, metalness: typing.Any) -> None: ... + def setBaseColor(self, baseColor: typing.Any) -> None: ... + def textureScale(self) -> float: ... + def normal(self) -> typing.Any: ... + def ambientOcclusion(self) -> typing.Any: ... + def roughness(self) -> typing.Any: ... + def metalness(self) -> typing.Any: ... + def baseColor(self) -> typing.Any: ... + + class QMorphPhongMaterial(Qt3DRender.QMaterial): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def interpolatorChanged(self, interpolator: float) -> None: ... + def shininessChanged(self, shininess: float) -> None: ... + def specularChanged(self, specular: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def diffuseChanged(self, diffuse: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def ambientChanged(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def setInterpolator(self, interpolator: float) -> None: ... + def setShininess(self, shininess: float) -> None: ... + def setSpecular(self, specular: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def setDiffuse(self, diffuse: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def setAmbient(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def interpolator(self) -> float: ... + def shininess(self) -> float: ... + def specular(self) -> QtGui.QColor: ... + def diffuse(self) -> QtGui.QColor: ... + def ambient(self) -> QtGui.QColor: ... + + class QNormalDiffuseMapMaterial(Qt3DRender.QMaterial): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def textureScaleChanged(self, textureScale: float) -> None: ... + def shininessChanged(self, shininess: float) -> None: ... + def specularChanged(self, specular: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def normalChanged(self, normal: Qt3DRender.QAbstractTexture) -> None: ... + def diffuseChanged(self, diffuse: Qt3DRender.QAbstractTexture) -> None: ... + def ambientChanged(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def setTextureScale(self, textureScale: float) -> None: ... + def setShininess(self, shininess: float) -> None: ... + def setNormal(self, normal: Qt3DRender.QAbstractTexture) -> None: ... + def setDiffuse(self, diffuse: Qt3DRender.QAbstractTexture) -> None: ... + def setSpecular(self, specular: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def setAmbient(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def textureScale(self) -> float: ... + def shininess(self) -> float: ... + def normal(self) -> Qt3DRender.QAbstractTexture: ... + def diffuse(self) -> Qt3DRender.QAbstractTexture: ... + def specular(self) -> QtGui.QColor: ... + def ambient(self) -> QtGui.QColor: ... + + class QNormalDiffuseMapAlphaMaterial('QNormalDiffuseMapMaterial'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + class QNormalDiffuseSpecularMapMaterial(Qt3DRender.QMaterial): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def textureScaleChanged(self, textureScale: float) -> None: ... + def shininessChanged(self, shininess: float) -> None: ... + def specularChanged(self, specular: Qt3DRender.QAbstractTexture) -> None: ... + def normalChanged(self, normal: Qt3DRender.QAbstractTexture) -> None: ... + def diffuseChanged(self, diffuse: Qt3DRender.QAbstractTexture) -> None: ... + def ambientChanged(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def setTextureScale(self, textureScale: float) -> None: ... + def setShininess(self, shininess: float) -> None: ... + def setSpecular(self, specular: Qt3DRender.QAbstractTexture) -> None: ... + def setNormal(self, normal: Qt3DRender.QAbstractTexture) -> None: ... + def setDiffuse(self, diffuse: Qt3DRender.QAbstractTexture) -> None: ... + def setAmbient(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def textureScale(self) -> float: ... + def shininess(self) -> float: ... + def specular(self) -> Qt3DRender.QAbstractTexture: ... + def normal(self) -> Qt3DRender.QAbstractTexture: ... + def diffuse(self) -> Qt3DRender.QAbstractTexture: ... + def ambient(self) -> QtGui.QColor: ... + + class QOrbitCameraController('QAbstractCameraController'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def zoomInLimitChanged(self) -> None: ... + def setZoomInLimit(self, zoomInLimit: float) -> None: ... + def zoomInLimit(self) -> float: ... + + class QPerVertexColorMaterial(Qt3DRender.QMaterial): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + class QPhongAlphaMaterial(Qt3DRender.QMaterial): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def blendFunctionArgChanged(self, blendFunctionArg: Qt3DRender.QBlendEquation.BlendFunction) -> None: ... + def destinationAlphaArgChanged(self, destinationAlphaArg: Qt3DRender.QBlendEquationArguments.Blending) -> None: ... + def sourceAlphaArgChanged(self, sourceAlphaArg: Qt3DRender.QBlendEquationArguments.Blending) -> None: ... + def destinationRgbArgChanged(self, destinationRgbArg: Qt3DRender.QBlendEquationArguments.Blending) -> None: ... + def sourceRgbArgChanged(self, sourceRgbArg: Qt3DRender.QBlendEquationArguments.Blending) -> None: ... + def setBlendFunctionArg(self, blendFunctionArg: Qt3DRender.QBlendEquation.BlendFunction) -> None: ... + def setDestinationAlphaArg(self, destinationAlphaArg: Qt3DRender.QBlendEquationArguments.Blending) -> None: ... + def setSourceAlphaArg(self, sourceAlphaArg: Qt3DRender.QBlendEquationArguments.Blending) -> None: ... + def setDestinationRgbArg(self, destinationRgbArg: Qt3DRender.QBlendEquationArguments.Blending) -> None: ... + def setSourceRgbArg(self, sourceRgbArg: Qt3DRender.QBlendEquationArguments.Blending) -> None: ... + def blendFunctionArg(self) -> Qt3DRender.QBlendEquation.BlendFunction: ... + def destinationAlphaArg(self) -> Qt3DRender.QBlendEquationArguments.Blending: ... + def sourceAlphaArg(self) -> Qt3DRender.QBlendEquationArguments.Blending: ... + def destinationRgbArg(self) -> Qt3DRender.QBlendEquationArguments.Blending: ... + def sourceRgbArg(self) -> Qt3DRender.QBlendEquationArguments.Blending: ... + def alphaChanged(self, alpha: float) -> None: ... + def shininessChanged(self, shininess: float) -> None: ... + def specularChanged(self, specular: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def diffuseChanged(self, diffuse: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def ambientChanged(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def setAlpha(self, alpha: float) -> None: ... + def setShininess(self, shininess: float) -> None: ... + def setSpecular(self, specular: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def setDiffuse(self, diffuse: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def setAmbient(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def alpha(self) -> float: ... + def shininess(self) -> float: ... + def specular(self) -> QtGui.QColor: ... + def diffuse(self) -> QtGui.QColor: ... + def ambient(self) -> QtGui.QColor: ... + + class QPhongMaterial(Qt3DRender.QMaterial): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def shininessChanged(self, shininess: float) -> None: ... + def specularChanged(self, specular: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def diffuseChanged(self, diffuse: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def ambientChanged(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def setShininess(self, shininess: float) -> None: ... + def setSpecular(self, specular: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def setDiffuse(self, diffuse: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def setAmbient(self, ambient: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def shininess(self) -> float: ... + def specular(self) -> QtGui.QColor: ... + def diffuse(self) -> QtGui.QColor: ... + def ambient(self) -> QtGui.QColor: ... + + class QPlaneGeometry(Qt3DRender.QGeometry): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def mirroredChanged(self, mirrored: bool) -> None: ... + def setMirrored(self, mirrored: bool) -> None: ... + def mirrored(self) -> bool: ... + def heightChanged(self, height: float) -> None: ... + def widthChanged(self, width: float) -> None: ... + def resolutionChanged(self, resolution: QtCore.QSize) -> None: ... + def setHeight(self, height: float) -> None: ... + def setWidth(self, width: float) -> None: ... + def setResolution(self, resolution: QtCore.QSize) -> None: ... + def indexAttribute(self) -> Qt3DRender.QAttribute: ... + def tangentAttribute(self) -> Qt3DRender.QAttribute: ... + def texCoordAttribute(self) -> Qt3DRender.QAttribute: ... + def normalAttribute(self) -> Qt3DRender.QAttribute: ... + def positionAttribute(self) -> Qt3DRender.QAttribute: ... + def height(self) -> float: ... + def width(self) -> float: ... + def resolution(self) -> QtCore.QSize: ... + def updateIndices(self) -> None: ... + def updateVertices(self) -> None: ... + + class QPlaneMesh(Qt3DRender.QGeometryRenderer): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def mirroredChanged(self, mirrored: bool) -> None: ... + def setMirrored(self, mirrored: bool) -> None: ... + def mirrored(self) -> bool: ... + def heightChanged(self, height: float) -> None: ... + def widthChanged(self, width: float) -> None: ... + def meshResolutionChanged(self, meshResolution: QtCore.QSize) -> None: ... + def setMeshResolution(self, resolution: QtCore.QSize) -> None: ... + def setHeight(self, height: float) -> None: ... + def setWidth(self, width: float) -> None: ... + def meshResolution(self) -> QtCore.QSize: ... + def height(self) -> float: ... + def width(self) -> float: ... + + class QSkyboxEntity(Qt3DCore.QEntity): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def gammaCorrectEnabledChanged(self, enabled: bool) -> None: ... + def baseNameChanged(self, path: str) -> None: ... + def setGammaCorrectEnabled(self, enabled: bool) -> None: ... + def isGammaCorrectEnabled(self) -> bool: ... + def extensionChanged(self, extension: str) -> None: ... + def extension(self) -> str: ... + def setExtension(self, extension: str) -> None: ... + def baseName(self) -> str: ... + def setBaseName(self, path: str) -> None: ... + + class QSphereGeometry(Qt3DRender.QGeometry): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def generateTangentsChanged(self, generateTangents: bool) -> None: ... + def slicesChanged(self, slices: int) -> None: ... + def ringsChanged(self, rings: int) -> None: ... + def radiusChanged(self, radius: float) -> None: ... + def setGenerateTangents(self, gen: bool) -> None: ... + def setRadius(self, radius: float) -> None: ... + def setSlices(self, slices: int) -> None: ... + def setRings(self, rings: int) -> None: ... + def indexAttribute(self) -> Qt3DRender.QAttribute: ... + def tangentAttribute(self) -> Qt3DRender.QAttribute: ... + def texCoordAttribute(self) -> Qt3DRender.QAttribute: ... + def normalAttribute(self) -> Qt3DRender.QAttribute: ... + def positionAttribute(self) -> Qt3DRender.QAttribute: ... + def radius(self) -> float: ... + def slices(self) -> int: ... + def rings(self) -> int: ... + def generateTangents(self) -> bool: ... + def updateIndices(self) -> None: ... + def updateVertices(self) -> None: ... + + class QSphereMesh(Qt3DRender.QGeometryRenderer): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def generateTangentsChanged(self, generateTangents: bool) -> None: ... + def slicesChanged(self, slices: int) -> None: ... + def ringsChanged(self, rings: int) -> None: ... + def radiusChanged(self, radius: float) -> None: ... + def setGenerateTangents(self, gen: bool) -> None: ... + def setRadius(self, radius: float) -> None: ... + def setSlices(self, slices: int) -> None: ... + def setRings(self, rings: int) -> None: ... + def generateTangents(self) -> bool: ... + def radius(self) -> float: ... + def slices(self) -> int: ... + def rings(self) -> int: ... + + class QSpriteGrid('QAbstractSpriteSheet'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def columnsChanged(self, columns: int) -> None: ... + def rowsChanged(self, rows: int) -> None: ... + def setColumns(self, columns: int) -> None: ... + def setRows(self, rows: int) -> None: ... + def columns(self) -> int: ... + def rows(self) -> int: ... + + class QSpriteSheet('QAbstractSpriteSheet'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def spritesChanged(self, sprites: typing.Iterable['QSpriteSheetItem']) -> None: ... + def setSprites(self, sprites: typing.Iterable['QSpriteSheetItem']) -> None: ... + def removeSprite(self, sprite: 'QSpriteSheetItem') -> None: ... + @typing.overload + def addSprite(self, x: int, y: int, width: int, height: int) -> 'QSpriteSheetItem': ... + @typing.overload + def addSprite(self, sprite: 'QSpriteSheetItem') -> None: ... + def sprites(self) -> typing.List['QSpriteSheetItem']: ... + + class QSpriteSheetItem(Qt3DCore.QNode): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def heightChanged(self, height: int) -> None: ... + def widthChanged(self, width: int) -> None: ... + def yChanged(self, y: int) -> None: ... + def xChanged(self, x: int) -> None: ... + def setHeight(self, height: int) -> None: ... + def setWidth(self, width: int) -> None: ... + def setY(self, y: int) -> None: ... + def setX(self, x: int) -> None: ... + def height(self) -> int: ... + def width(self) -> int: ... + def y(self) -> int: ... + def x(self) -> int: ... + + class Qt3DWindow(QtGui.QWindow): + + def __init__(self, screen: typing.Optional[QtGui.QScreen] = ...) -> None: ... + + def event(self, e: QtCore.QEvent) -> bool: ... + def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... + def showEvent(self, e: QtGui.QShowEvent) -> None: ... + def renderSettings(self) -> Qt3DRender.QRenderSettings: ... + def camera(self) -> Qt3DRender.QCamera: ... + def defaultFrameGraph(self) -> 'QForwardRenderer': ... + def activeFrameGraph(self) -> Qt3DRender.QFrameGraphNode: ... + def setActiveFrameGraph(self, activeFrameGraph: Qt3DRender.QFrameGraphNode) -> None: ... + def setRootEntity(self, root: Qt3DCore.QEntity) -> None: ... + @typing.overload + def registerAspect(self, aspect: Qt3DCore.QAbstractAspect) -> None: ... + @typing.overload + def registerAspect(self, name: str) -> None: ... + + class QText2DEntity(Qt3DCore.QEntity): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def heightChanged(self, height: float) -> None: ... + def widthChanged(self, width: float) -> None: ... + def textChanged(self, text: str) -> None: ... + def colorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def fontChanged(self, font: QtGui.QFont) -> None: ... + def setHeight(self, height: float) -> None: ... + def setWidth(self, width: float) -> None: ... + def height(self) -> float: ... + def width(self) -> float: ... + def setText(self, text: str) -> None: ... + def text(self) -> str: ... + def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def color(self) -> QtGui.QColor: ... + def setFont(self, font: QtGui.QFont) -> None: ... + def font(self) -> QtGui.QFont: ... + + class QTexturedMetalRoughMaterial('QMetalRoughMaterial'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def normalChanged(self, normal: typing.Any) -> None: ... + def ambientOcclusionChanged(self, ambientOcclusion: typing.Any) -> None: ... + + class QTextureMaterial(Qt3DRender.QMaterial): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def alphaBlendingEnabledChanged(self, enabled: bool) -> None: ... + def textureTransformChanged(self, textureTransform: QtGui.QMatrix3x3) -> None: ... + def textureOffsetChanged(self, textureOffset: QtGui.QVector2D) -> None: ... + def textureChanged(self, texture: Qt3DRender.QAbstractTexture) -> None: ... + def setAlphaBlendingEnabled(self, enabled: bool) -> None: ... + def setTextureTransform(self, matrix: QtGui.QMatrix3x3) -> None: ... + def setTextureOffset(self, textureOffset: QtGui.QVector2D) -> None: ... + def setTexture(self, texture: Qt3DRender.QAbstractTexture) -> None: ... + def isAlphaBlendingEnabled(self) -> bool: ... + def textureTransform(self) -> QtGui.QMatrix3x3: ... + def textureOffset(self) -> QtGui.QVector2D: ... + def texture(self) -> Qt3DRender.QAbstractTexture: ... + + class QTorusGeometry(Qt3DRender.QGeometry): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def minorRadiusChanged(self, minorRadius: float) -> None: ... + def slicesChanged(self, slices: int) -> None: ... + def ringsChanged(self, rings: int) -> None: ... + def radiusChanged(self, radius: float) -> None: ... + def setMinorRadius(self, minorRadius: float) -> None: ... + def setRadius(self, radius: float) -> None: ... + def setSlices(self, slices: int) -> None: ... + def setRings(self, rings: int) -> None: ... + def indexAttribute(self) -> Qt3DRender.QAttribute: ... + def texCoordAttribute(self) -> Qt3DRender.QAttribute: ... + def normalAttribute(self) -> Qt3DRender.QAttribute: ... + def positionAttribute(self) -> Qt3DRender.QAttribute: ... + def minorRadius(self) -> float: ... + def radius(self) -> float: ... + def slices(self) -> int: ... + def rings(self) -> int: ... + def updateIndices(self) -> None: ... + def updateVertices(self) -> None: ... + + class QTorusMesh(Qt3DRender.QGeometryRenderer): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def minorRadiusChanged(self, minorRadius: float) -> None: ... + def slicesChanged(self, slices: int) -> None: ... + def ringsChanged(self, rings: int) -> None: ... + def radiusChanged(self, radius: float) -> None: ... + def setMinorRadius(self, minorRadius: float) -> None: ... + def setRadius(self, radius: float) -> None: ... + def setSlices(self, slices: int) -> None: ... + def setRings(self, rings: int) -> None: ... + def minorRadius(self) -> float: ... + def radius(self) -> float: ... + def slices(self) -> int: ... + def rings(self) -> int: ... diff --git a/PyQt5-stubs/Qt3DInput.pyi b/PyQt5-stubs/Qt3DInput.pyi new file mode 100644 index 00000000..e16d25c2 --- /dev/null +++ b/PyQt5-stubs/Qt3DInput.pyi @@ -0,0 +1,400 @@ +# The PEP 484 type hints stub file for the Qt3DInput module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt3D. +# +# 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 sip + +from PyQt5 import QtGui +from PyQt5 import QtCore +from PyQt5 import Qt3DCore + +# 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], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class Qt3DInput(sip.simplewrapper): + + class QAbstractActionInput(Qt3DCore.QNode): ... + + class QAbstractAxisInput(Qt3DCore.QNode): + + def sourceDeviceChanged(self, sourceDevice: 'QAbstractPhysicalDevice') -> None: ... + def setSourceDevice(self, sourceDevice: 'QAbstractPhysicalDevice') -> None: ... + def sourceDevice(self) -> 'QAbstractPhysicalDevice': ... + + class QAbstractPhysicalDevice(Qt3DCore.QNode): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def axisSettings(self) -> typing.List['QAxisSetting']: ... + def removeAxisSetting(self, axisSetting: 'QAxisSetting') -> None: ... + def addAxisSetting(self, axisSetting: 'QAxisSetting') -> None: ... + def buttonIdentifier(self, name: str) -> int: ... + def axisIdentifier(self, name: str) -> int: ... + def buttonNames(self) -> typing.List[str]: ... + def axisNames(self) -> typing.List[str]: ... + def buttonCount(self) -> int: ... + def axisCount(self) -> int: ... + + class QAction(Qt3DCore.QNode): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + def activeChanged(self, isActive: bool) -> None: ... + def inputs(self) -> typing.List['QAbstractActionInput']: ... + def removeInput(self, input: 'QAbstractActionInput') -> None: ... + def addInput(self, input: 'QAbstractActionInput') -> None: ... + def isActive(self) -> bool: ... + + class QActionInput('QAbstractActionInput'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def buttonsChanged(self, buttons: typing.Iterable[int]) -> None: ... + def sourceDeviceChanged(self, sourceDevice: 'QAbstractPhysicalDevice') -> None: ... + def setButtons(self, buttons: typing.Iterable[int]) -> None: ... + def setSourceDevice(self, sourceDevice: 'QAbstractPhysicalDevice') -> None: ... + def buttons(self) -> typing.List[int]: ... + def sourceDevice(self) -> 'QAbstractPhysicalDevice': ... + + class QAnalogAxisInput('QAbstractAxisInput'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def axisChanged(self, axis: int) -> None: ... + def setAxis(self, axis: int) -> None: ... + def axis(self) -> int: ... + + class QAxis(Qt3DCore.QNode): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + def valueChanged(self, value: float) -> None: ... + def value(self) -> float: ... + def inputs(self) -> typing.List['QAbstractAxisInput']: ... + def removeInput(self, input: 'QAbstractAxisInput') -> None: ... + def addInput(self, input: 'QAbstractAxisInput') -> None: ... + + class QAxisAccumulator(Qt3DCore.QComponent): + + class SourceAxisType(int): ... + Velocity = ... # type: 'QAxisAccumulator.SourceAxisType' + Acceleration = ... # type: 'QAxisAccumulator.SourceAxisType' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + def scaleChanged(self, scale: float) -> None: ... + def velocityChanged(self, value: float) -> None: ... + def valueChanged(self, value: float) -> None: ... + def sourceAxisTypeChanged(self, sourceAxisType: 'QAxisAccumulator.SourceAxisType') -> None: ... + def sourceAxisChanged(self, sourceAxis: 'QAxis') -> None: ... + def setScale(self, scale: float) -> None: ... + def setSourceAxisType(self, sourceAxisType: 'QAxisAccumulator.SourceAxisType') -> None: ... + def setSourceAxis(self, sourceAxis: 'QAxis') -> None: ... + def scale(self) -> float: ... + def velocity(self) -> float: ... + def value(self) -> float: ... + def sourceAxisType(self) -> 'QAxisAccumulator.SourceAxisType': ... + def sourceAxis(self) -> 'QAxis': ... + + class QAxisSetting(Qt3DCore.QNode): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def smoothChanged(self, smooth: bool) -> None: ... + def axesChanged(self, axes: typing.Iterable[int]) -> None: ... + def deadZoneRadiusChanged(self, deadZoneRadius: float) -> None: ... + def setSmoothEnabled(self, enabled: bool) -> None: ... + def setAxes(self, axes: typing.Iterable[int]) -> None: ... + def setDeadZoneRadius(self, deadZoneRadius: float) -> None: ... + def isSmoothEnabled(self) -> bool: ... + def axes(self) -> typing.List[int]: ... + def deadZoneRadius(self) -> float: ... + + class QButtonAxisInput('QAbstractAxisInput'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def decelerationChanged(self, deceleration: float) -> None: ... + def accelerationChanged(self, acceleration: float) -> None: ... + def buttonsChanged(self, buttons: typing.Iterable[int]) -> None: ... + def scaleChanged(self, scale: float) -> None: ... + def setDeceleration(self, deceleration: float) -> None: ... + def setAcceleration(self, acceleration: float) -> None: ... + def setButtons(self, buttons: typing.Iterable[int]) -> None: ... + def setScale(self, scale: float) -> None: ... + def deceleration(self) -> float: ... + def acceleration(self) -> float: ... + def buttons(self) -> typing.List[int]: ... + def scale(self) -> float: ... + + class QInputAspect(Qt3DCore.QAbstractAspect): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def availablePhysicalDevices(self) -> typing.List[str]: ... + def createPhysicalDevice(self, name: str) -> 'QAbstractPhysicalDevice': ... + + class QInputChord('QAbstractActionInput'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def timeoutChanged(self, timeout: int) -> None: ... + def setTimeout(self, timeout: int) -> None: ... + def chords(self) -> typing.List['QAbstractActionInput']: ... + def removeChord(self, input: 'QAbstractActionInput') -> None: ... + def addChord(self, input: 'QAbstractActionInput') -> None: ... + def timeout(self) -> int: ... + + class QInputSequence('QAbstractActionInput'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def buttonIntervalChanged(self, buttonInterval: int) -> None: ... + def timeoutChanged(self, timeout: int) -> None: ... + def setButtonInterval(self, buttonInterval: int) -> None: ... + def setTimeout(self, timeout: int) -> None: ... + def sequences(self) -> typing.List['QAbstractActionInput']: ... + def removeSequence(self, input: 'QAbstractActionInput') -> None: ... + def addSequence(self, input: 'QAbstractActionInput') -> None: ... + def buttonInterval(self) -> int: ... + def timeout(self) -> int: ... + + class QInputSettings(Qt3DCore.QComponent): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def eventSourceChanged(self, a0: QtCore.QObject) -> None: ... + def setEventSource(self, eventSource: QtCore.QObject) -> None: ... + def eventSource(self) -> QtCore.QObject: ... + + class QKeyboardDevice('QAbstractPhysicalDevice'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def activeInputChanged(self, activeInput: 'QKeyboardHandler') -> None: ... + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + def buttonIdentifier(self, name: str) -> int: ... + def axisIdentifier(self, name: str) -> int: ... + def buttonNames(self) -> typing.List[str]: ... + def axisNames(self) -> typing.List[str]: ... + def buttonCount(self) -> int: ... + def axisCount(self) -> int: ... + def activeInput(self) -> 'QKeyboardHandler': ... + + class QKeyboardHandler(Qt3DCore.QComponent): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + def released(self, event: 'QKeyEvent') -> None: ... + def pressed(self, event: 'QKeyEvent') -> None: ... + def volumeDownPressed(self, event: 'QKeyEvent') -> None: ... + def volumeUpPressed(self, event: 'QKeyEvent') -> None: ... + def menuPressed(self, event: 'QKeyEvent') -> None: ... + def flipPressed(self, event: 'QKeyEvent') -> None: ... + def hangupPressed(self, event: 'QKeyEvent') -> None: ... + def callPressed(self, event: 'QKeyEvent') -> None: ... + def context4Pressed(self, event: 'QKeyEvent') -> None: ... + def context3Pressed(self, event: 'QKeyEvent') -> None: ... + def context2Pressed(self, event: 'QKeyEvent') -> None: ... + def context1Pressed(self, event: 'QKeyEvent') -> None: ... + def noPressed(self, event: 'QKeyEvent') -> None: ... + def yesPressed(self, event: 'QKeyEvent') -> None: ... + def selectPressed(self, event: 'QKeyEvent') -> None: ... + def cancelPressed(self, event: 'QKeyEvent') -> None: ... + def backPressed(self, event: 'QKeyEvent') -> None: ... + def spacePressed(self, event: 'QKeyEvent') -> None: ... + def deletePressed(self, event: 'QKeyEvent') -> None: ... + def enterPressed(self, event: 'QKeyEvent') -> None: ... + def returnPressed(self, event: 'QKeyEvent') -> None: ... + def escapePressed(self, event: 'QKeyEvent') -> None: ... + def numberSignPressed(self, event: 'QKeyEvent') -> None: ... + def asteriskPressed(self, event: 'QKeyEvent') -> None: ... + def backtabPressed(self, event: 'QKeyEvent') -> None: ... + def tabPressed(self, event: 'QKeyEvent') -> None: ... + def downPressed(self, event: 'QKeyEvent') -> None: ... + def upPressed(self, event: 'QKeyEvent') -> None: ... + def rightPressed(self, event: 'QKeyEvent') -> None: ... + def leftPressed(self, event: 'QKeyEvent') -> None: ... + def digit9Pressed(self, event: 'QKeyEvent') -> None: ... + def digit8Pressed(self, event: 'QKeyEvent') -> None: ... + def digit7Pressed(self, event: 'QKeyEvent') -> None: ... + def digit6Pressed(self, event: 'QKeyEvent') -> None: ... + def digit5Pressed(self, event: 'QKeyEvent') -> None: ... + def digit4Pressed(self, event: 'QKeyEvent') -> None: ... + def digit3Pressed(self, event: 'QKeyEvent') -> None: ... + def digit2Pressed(self, event: 'QKeyEvent') -> None: ... + def digit1Pressed(self, event: 'QKeyEvent') -> None: ... + def digit0Pressed(self, event: 'QKeyEvent') -> None: ... + def focusChanged(self, focus: bool) -> None: ... + def sourceDeviceChanged(self, keyboardDevice: 'QKeyboardDevice') -> None: ... + def setFocus(self, focus: bool) -> None: ... + def setSourceDevice(self, keyboardDevice: 'QKeyboardDevice') -> None: ... + def focus(self) -> bool: ... + def sourceDevice(self) -> 'QKeyboardDevice': ... + + class QKeyEvent(QtCore.QObject): + + @typing.overload + def __init__(self, type: QtCore.QEvent.Type, key: int, modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier], text: str = ..., autorep: bool = ..., count: int = ...) -> None: ... + @typing.overload + def __init__(self, ke: QtGui.QKeyEvent) -> None: ... + + def matches(self, key_: QtGui.QKeySequence.StandardKey) -> bool: ... + def type(self) -> QtCore.QEvent.Type: ... + def setAccepted(self, accepted: bool) -> None: ... + def isAccepted(self) -> bool: ... + def nativeScanCode(self) -> int: ... + def count(self) -> int: ... + def isAutoRepeat(self) -> bool: ... + def modifiers(self) -> int: ... + def text(self) -> str: ... + def key(self) -> int: ... + + class QLogicalDevice(Qt3DCore.QComponent): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def axes(self) -> typing.List['QAxis']: ... + def removeAxis(self, axis: 'QAxis') -> None: ... + def addAxis(self, axis: 'QAxis') -> None: ... + def actions(self) -> typing.List['QAction']: ... + def removeAction(self, action: 'QAction') -> None: ... + def addAction(self, action: 'QAction') -> None: ... + + class QMouseDevice('QAbstractPhysicalDevice'): + + class Axis(int): ... + X = ... # type: 'QMouseDevice.Axis' + Y = ... # type: 'QMouseDevice.Axis' + WheelX = ... # type: 'QMouseDevice.Axis' + WheelY = ... # type: 'QMouseDevice.Axis' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + def sensitivityChanged(self, value: float) -> None: ... + def setSensitivity(self, value: float) -> None: ... + def sensitivity(self) -> float: ... + def buttonIdentifier(self, name: str) -> int: ... + def axisIdentifier(self, name: str) -> int: ... + def buttonNames(self) -> typing.List[str]: ... + def axisNames(self) -> typing.List[str]: ... + def buttonCount(self) -> int: ... + def axisCount(self) -> int: ... + + class QMouseEvent(QtCore.QObject): + + class Modifiers(int): ... + NoModifier = ... # type: 'QMouseEvent.Modifiers' + ShiftModifier = ... # type: 'QMouseEvent.Modifiers' + ControlModifier = ... # type: 'QMouseEvent.Modifiers' + AltModifier = ... # type: 'QMouseEvent.Modifiers' + MetaModifier = ... # type: 'QMouseEvent.Modifiers' + KeypadModifier = ... # type: 'QMouseEvent.Modifiers' + + class Buttons(int): ... + LeftButton = ... # type: 'QMouseEvent.Buttons' + RightButton = ... # type: 'QMouseEvent.Buttons' + MiddleButton = ... # type: 'QMouseEvent.Buttons' + BackButton = ... # type: 'QMouseEvent.Buttons' + NoButton = ... # type: 'QMouseEvent.Buttons' + + def __init__(self, e: QtGui.QMouseEvent) -> None: ... + + def type(self) -> QtCore.QEvent.Type: ... + def setAccepted(self, accepted: bool) -> None: ... + def isAccepted(self) -> bool: ... + def modifiers(self) -> 'QMouseEvent.Modifiers': ... + def buttons(self) -> int: ... + def button(self) -> 'QMouseEvent.Buttons': ... + def wasHeld(self) -> bool: ... + def y(self) -> int: ... + def x(self) -> int: ... + + class QWheelEvent(QtCore.QObject): + + class Modifiers(int): ... + NoModifier = ... # type: 'QWheelEvent.Modifiers' + ShiftModifier = ... # type: 'QWheelEvent.Modifiers' + ControlModifier = ... # type: 'QWheelEvent.Modifiers' + AltModifier = ... # type: 'QWheelEvent.Modifiers' + MetaModifier = ... # type: 'QWheelEvent.Modifiers' + KeypadModifier = ... # type: 'QWheelEvent.Modifiers' + + class Buttons(int): ... + LeftButton = ... # type: 'QWheelEvent.Buttons' + RightButton = ... # type: 'QWheelEvent.Buttons' + MiddleButton = ... # type: 'QWheelEvent.Buttons' + BackButton = ... # type: 'QWheelEvent.Buttons' + NoButton = ... # type: 'QWheelEvent.Buttons' + + def __init__(self, e: QtGui.QWheelEvent) -> None: ... + + def type(self) -> QtCore.QEvent.Type: ... + def setAccepted(self, accepted: bool) -> None: ... + def isAccepted(self) -> bool: ... + def modifiers(self) -> 'QWheelEvent.Modifiers': ... + def buttons(self) -> int: ... + def angleDelta(self) -> QtCore.QPoint: ... + def y(self) -> int: ... + def x(self) -> int: ... + + class QMouseHandler(Qt3DCore.QComponent): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + def wheel(self, wheel: 'QWheelEvent') -> None: ... + def positionChanged(self, mouse: 'QMouseEvent') -> None: ... + def pressAndHold(self, mouse: 'QMouseEvent') -> None: ... + def released(self, mouse: 'QMouseEvent') -> None: ... + def pressed(self, mouse: 'QMouseEvent') -> None: ... + def exited(self) -> None: ... + def entered(self) -> None: ... + def doubleClicked(self, mouse: 'QMouseEvent') -> None: ... + def clicked(self, mouse: 'QMouseEvent') -> None: ... + def containsMouseChanged(self, containsMouse: bool) -> None: ... + def sourceDeviceChanged(self, mouseDevice: 'QMouseDevice') -> None: ... + def setSourceDevice(self, mouseDevice: 'QMouseDevice') -> None: ... + def containsMouse(self) -> bool: ... + def sourceDevice(self) -> 'QMouseDevice': ... + + class QPhysicalDeviceCreatedChangeBase(Qt3DCore.QNodeCreatedChangeBase): + + def __init__(self, device: 'QAbstractPhysicalDevice') -> None: ... + + def axisSettingIds(self) -> typing.List[Qt3DCore.QNodeId]: ... diff --git a/PyQt5-stubs/Qt3DLogic.pyi b/PyQt5-stubs/Qt3DLogic.pyi new file mode 100644 index 00000000..6e322cb2 --- /dev/null +++ b/PyQt5-stubs/Qt3DLogic.pyi @@ -0,0 +1,52 @@ +# The PEP 484 type hints stub file for the Qt3DLogic module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt3D. +# +# 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 sip + +from PyQt5 import Qt3DCore + +# 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], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class Qt3DLogic(sip.simplewrapper): + + class QFrameAction(Qt3DCore.QComponent): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def triggered(self, dt: float) -> None: ... + + class QLogicAspect(Qt3DCore.QAbstractAspect): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... diff --git a/PyQt5-stubs/Qt3DRender.pyi b/PyQt5-stubs/Qt3DRender.pyi new file mode 100644 index 00000000..9985a51c --- /dev/null +++ b/PyQt5-stubs/Qt3DRender.pyi @@ -0,0 +1,2304 @@ +# The PEP 484 type hints stub file for the Qt3DRender module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt3D. +# +# 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 sip + +from PyQt5 import QtGui +from PyQt5 import QtCore +from PyQt5 import Qt3DCore + +# 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], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class Qt3DRender(sip.simplewrapper): + + class QAbstractFunctor(sip.simplewrapper): + + def __init__(self) -> None: ... + + def id(self) -> sip.voidptr: ... + + class QAbstractLight(Qt3DCore.QComponent): + + class Type(int): ... + PointLight = ... # type: 'QAbstractLight.Type' + DirectionalLight = ... # type: 'QAbstractLight.Type' + SpotLight = ... # type: 'QAbstractLight.Type' + + def intensityChanged(self, intensity: float) -> None: ... + def colorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def setIntensity(self, intensity: float) -> None: ... + def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def intensity(self) -> float: ... + def color(self) -> QtGui.QColor: ... + def type(self) -> 'QAbstractLight.Type': ... + + class QAbstractRayCaster(Qt3DCore.QComponent): + + class FilterMode(int): ... + AcceptAnyMatchingLayers = ... # type: 'QAbstractRayCaster.FilterMode' + AcceptAllMatchingLayers = ... # type: 'QAbstractRayCaster.FilterMode' + DiscardAnyMatchingLayers = ... # type: 'QAbstractRayCaster.FilterMode' + DiscardAllMatchingLayers = ... # type: 'QAbstractRayCaster.FilterMode' + + class RunMode(int): ... + Continuous = ... # type: 'QAbstractRayCaster.RunMode' + SingleShot = ... # type: 'QAbstractRayCaster.RunMode' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + def filterModeChanged(self, filterMode: 'QAbstractRayCaster.FilterMode') -> None: ... + def hitsChanged(self, hits: typing.Iterable['QRayCasterHit']) -> None: ... + def runModeChanged(self, runMode: 'QAbstractRayCaster.RunMode') -> None: ... + def setFilterMode(self, filterMode: 'QAbstractRayCaster.FilterMode') -> None: ... + def setRunMode(self, runMode: 'QAbstractRayCaster.RunMode') -> None: ... + def layers(self) -> typing.List['QLayer']: ... + def removeLayer(self, layer: 'QLayer') -> None: ... + def addLayer(self, layer: 'QLayer') -> None: ... + def hits(self) -> typing.List['QRayCasterHit']: ... + def filterMode(self) -> 'QAbstractRayCaster.FilterMode': ... + def runMode(self) -> 'QAbstractRayCaster.RunMode': ... + + class QAbstractTexture(Qt3DCore.QNode): + + class HandleType(int): ... + NoHandle = ... # type: 'QAbstractTexture.HandleType' + OpenGLTextureId = ... # type: 'QAbstractTexture.HandleType' + + class ComparisonMode(int): ... + CompareRefToTexture = ... # type: 'QAbstractTexture.ComparisonMode' + CompareNone = ... # type: 'QAbstractTexture.ComparisonMode' + + class ComparisonFunction(int): ... + CompareLessEqual = ... # type: 'QAbstractTexture.ComparisonFunction' + CompareGreaterEqual = ... # type: 'QAbstractTexture.ComparisonFunction' + CompareLess = ... # type: 'QAbstractTexture.ComparisonFunction' + CompareGreater = ... # type: 'QAbstractTexture.ComparisonFunction' + CompareEqual = ... # type: 'QAbstractTexture.ComparisonFunction' + CommpareNotEqual = ... # type: 'QAbstractTexture.ComparisonFunction' + CompareAlways = ... # type: 'QAbstractTexture.ComparisonFunction' + CompareNever = ... # type: 'QAbstractTexture.ComparisonFunction' + + class CubeMapFace(int): ... + CubeMapPositiveX = ... # type: 'QAbstractTexture.CubeMapFace' + CubeMapNegativeX = ... # type: 'QAbstractTexture.CubeMapFace' + CubeMapPositiveY = ... # type: 'QAbstractTexture.CubeMapFace' + CubeMapNegativeY = ... # type: 'QAbstractTexture.CubeMapFace' + CubeMapPositiveZ = ... # type: 'QAbstractTexture.CubeMapFace' + CubeMapNegativeZ = ... # type: 'QAbstractTexture.CubeMapFace' + AllFaces = ... # type: 'QAbstractTexture.CubeMapFace' + + class Filter(int): ... + Nearest = ... # type: 'QAbstractTexture.Filter' + Linear = ... # type: 'QAbstractTexture.Filter' + NearestMipMapNearest = ... # type: 'QAbstractTexture.Filter' + NearestMipMapLinear = ... # type: 'QAbstractTexture.Filter' + LinearMipMapNearest = ... # type: 'QAbstractTexture.Filter' + LinearMipMapLinear = ... # type: 'QAbstractTexture.Filter' + + class TextureFormat(int): ... + NoFormat = ... # type: 'QAbstractTexture.TextureFormat' + Automatic = ... # type: 'QAbstractTexture.TextureFormat' + R8_UNorm = ... # type: 'QAbstractTexture.TextureFormat' + RG8_UNorm = ... # type: 'QAbstractTexture.TextureFormat' + RGB8_UNorm = ... # type: 'QAbstractTexture.TextureFormat' + RGBA8_UNorm = ... # type: 'QAbstractTexture.TextureFormat' + R16_UNorm = ... # type: 'QAbstractTexture.TextureFormat' + RG16_UNorm = ... # type: 'QAbstractTexture.TextureFormat' + RGB16_UNorm = ... # type: 'QAbstractTexture.TextureFormat' + RGBA16_UNorm = ... # type: 'QAbstractTexture.TextureFormat' + R8_SNorm = ... # type: 'QAbstractTexture.TextureFormat' + RG8_SNorm = ... # type: 'QAbstractTexture.TextureFormat' + RGB8_SNorm = ... # type: 'QAbstractTexture.TextureFormat' + RGBA8_SNorm = ... # type: 'QAbstractTexture.TextureFormat' + R16_SNorm = ... # type: 'QAbstractTexture.TextureFormat' + RG16_SNorm = ... # type: 'QAbstractTexture.TextureFormat' + RGB16_SNorm = ... # type: 'QAbstractTexture.TextureFormat' + RGBA16_SNorm = ... # type: 'QAbstractTexture.TextureFormat' + R8U = ... # type: 'QAbstractTexture.TextureFormat' + RG8U = ... # type: 'QAbstractTexture.TextureFormat' + RGB8U = ... # type: 'QAbstractTexture.TextureFormat' + RGBA8U = ... # type: 'QAbstractTexture.TextureFormat' + R16U = ... # type: 'QAbstractTexture.TextureFormat' + RG16U = ... # type: 'QAbstractTexture.TextureFormat' + RGB16U = ... # type: 'QAbstractTexture.TextureFormat' + RGBA16U = ... # type: 'QAbstractTexture.TextureFormat' + R32U = ... # type: 'QAbstractTexture.TextureFormat' + RG32U = ... # type: 'QAbstractTexture.TextureFormat' + RGB32U = ... # type: 'QAbstractTexture.TextureFormat' + RGBA32U = ... # type: 'QAbstractTexture.TextureFormat' + R8I = ... # type: 'QAbstractTexture.TextureFormat' + RG8I = ... # type: 'QAbstractTexture.TextureFormat' + RGB8I = ... # type: 'QAbstractTexture.TextureFormat' + RGBA8I = ... # type: 'QAbstractTexture.TextureFormat' + R16I = ... # type: 'QAbstractTexture.TextureFormat' + RG16I = ... # type: 'QAbstractTexture.TextureFormat' + RGB16I = ... # type: 'QAbstractTexture.TextureFormat' + RGBA16I = ... # type: 'QAbstractTexture.TextureFormat' + R32I = ... # type: 'QAbstractTexture.TextureFormat' + RG32I = ... # type: 'QAbstractTexture.TextureFormat' + RGB32I = ... # type: 'QAbstractTexture.TextureFormat' + RGBA32I = ... # type: 'QAbstractTexture.TextureFormat' + R16F = ... # type: 'QAbstractTexture.TextureFormat' + RG16F = ... # type: 'QAbstractTexture.TextureFormat' + RGB16F = ... # type: 'QAbstractTexture.TextureFormat' + RGBA16F = ... # type: 'QAbstractTexture.TextureFormat' + R32F = ... # type: 'QAbstractTexture.TextureFormat' + RG32F = ... # type: 'QAbstractTexture.TextureFormat' + RGB32F = ... # type: 'QAbstractTexture.TextureFormat' + RGBA32F = ... # type: 'QAbstractTexture.TextureFormat' + RGB9E5 = ... # type: 'QAbstractTexture.TextureFormat' + RG11B10F = ... # type: 'QAbstractTexture.TextureFormat' + RG3B2 = ... # type: 'QAbstractTexture.TextureFormat' + R5G6B5 = ... # type: 'QAbstractTexture.TextureFormat' + RGB5A1 = ... # type: 'QAbstractTexture.TextureFormat' + RGBA4 = ... # type: 'QAbstractTexture.TextureFormat' + RGB10A2 = ... # type: 'QAbstractTexture.TextureFormat' + D16 = ... # type: 'QAbstractTexture.TextureFormat' + D24 = ... # type: 'QAbstractTexture.TextureFormat' + D24S8 = ... # type: 'QAbstractTexture.TextureFormat' + D32 = ... # type: 'QAbstractTexture.TextureFormat' + D32F = ... # type: 'QAbstractTexture.TextureFormat' + D32FS8X24 = ... # type: 'QAbstractTexture.TextureFormat' + RGB_DXT1 = ... # type: 'QAbstractTexture.TextureFormat' + RGBA_DXT1 = ... # type: 'QAbstractTexture.TextureFormat' + RGBA_DXT3 = ... # type: 'QAbstractTexture.TextureFormat' + RGBA_DXT5 = ... # type: 'QAbstractTexture.TextureFormat' + R_ATI1N_UNorm = ... # type: 'QAbstractTexture.TextureFormat' + R_ATI1N_SNorm = ... # type: 'QAbstractTexture.TextureFormat' + RG_ATI2N_UNorm = ... # type: 'QAbstractTexture.TextureFormat' + RG_ATI2N_SNorm = ... # type: 'QAbstractTexture.TextureFormat' + RGB_BP_UNSIGNED_FLOAT = ... # type: 'QAbstractTexture.TextureFormat' + RGB_BP_SIGNED_FLOAT = ... # type: 'QAbstractTexture.TextureFormat' + RGB_BP_UNorm = ... # type: 'QAbstractTexture.TextureFormat' + R11_EAC_UNorm = ... # type: 'QAbstractTexture.TextureFormat' + R11_EAC_SNorm = ... # type: 'QAbstractTexture.TextureFormat' + RG11_EAC_UNorm = ... # type: 'QAbstractTexture.TextureFormat' + RG11_EAC_SNorm = ... # type: 'QAbstractTexture.TextureFormat' + RGB8_ETC2 = ... # type: 'QAbstractTexture.TextureFormat' + SRGB8_ETC2 = ... # type: 'QAbstractTexture.TextureFormat' + RGB8_PunchThrough_Alpha1_ETC2 = ... # type: 'QAbstractTexture.TextureFormat' + SRGB8_PunchThrough_Alpha1_ETC2 = ... # type: 'QAbstractTexture.TextureFormat' + RGBA8_ETC2_EAC = ... # type: 'QAbstractTexture.TextureFormat' + SRGB8_Alpha8_ETC2_EAC = ... # type: 'QAbstractTexture.TextureFormat' + RGB8_ETC1 = ... # type: 'QAbstractTexture.TextureFormat' + SRGB8 = ... # type: 'QAbstractTexture.TextureFormat' + SRGB8_Alpha8 = ... # type: 'QAbstractTexture.TextureFormat' + SRGB_DXT1 = ... # type: 'QAbstractTexture.TextureFormat' + SRGB_Alpha_DXT1 = ... # type: 'QAbstractTexture.TextureFormat' + SRGB_Alpha_DXT3 = ... # type: 'QAbstractTexture.TextureFormat' + SRGB_Alpha_DXT5 = ... # type: 'QAbstractTexture.TextureFormat' + SRGB_BP_UNorm = ... # type: 'QAbstractTexture.TextureFormat' + DepthFormat = ... # type: 'QAbstractTexture.TextureFormat' + AlphaFormat = ... # type: 'QAbstractTexture.TextureFormat' + RGBFormat = ... # type: 'QAbstractTexture.TextureFormat' + RGBAFormat = ... # type: 'QAbstractTexture.TextureFormat' + LuminanceFormat = ... # type: 'QAbstractTexture.TextureFormat' + LuminanceAlphaFormat = ... # type: 'QAbstractTexture.TextureFormat' + RGB10A2U = ... # type: 'QAbstractTexture.TextureFormat' + + class Target(int): ... + TargetAutomatic = ... # type: 'QAbstractTexture.Target' + Target1D = ... # type: 'QAbstractTexture.Target' + Target1DArray = ... # type: 'QAbstractTexture.Target' + Target2D = ... # type: 'QAbstractTexture.Target' + Target2DArray = ... # type: 'QAbstractTexture.Target' + Target3D = ... # type: 'QAbstractTexture.Target' + TargetCubeMap = ... # type: 'QAbstractTexture.Target' + TargetCubeMapArray = ... # type: 'QAbstractTexture.Target' + Target2DMultisample = ... # type: 'QAbstractTexture.Target' + Target2DMultisampleArray = ... # type: 'QAbstractTexture.Target' + TargetRectangle = ... # type: 'QAbstractTexture.Target' + TargetBuffer = ... # type: 'QAbstractTexture.Target' + + class Status(int): ... + None = ... # type: 'QAbstractTexture.Status' + Loading = ... # type: 'QAbstractTexture.Status' + Ready = ... # type: 'QAbstractTexture.Status' + Error = ... # type: 'QAbstractTexture.Status' + + @typing.overload + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + @typing.overload + def __init__(self, target: 'QAbstractTexture.Target', parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def updateData(self, update: 'QTextureDataUpdate') -> None: ... + def handleChanged(self, handle: typing.Any) -> None: ... + def handleTypeChanged(self, handleType: 'QAbstractTexture.HandleType') -> None: ... + def handle(self) -> typing.Any: ... + def handleType(self) -> 'QAbstractTexture.HandleType': ... + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + def setStatus(self, status: 'QAbstractTexture.Status') -> None: ... + def samplesChanged(self, samples: int) -> None: ... + def layersChanged(self, layers: int) -> None: ... + def comparisonModeChanged(self, comparisonMode: 'QAbstractTexture.ComparisonMode') -> None: ... + def comparisonFunctionChanged(self, comparisonFunction: 'QAbstractTexture.ComparisonFunction') -> None: ... + def maximumAnisotropyChanged(self, maximumAnisotropy: float) -> None: ... + def minificationFilterChanged(self, minificationFilter: 'QAbstractTexture.Filter') -> None: ... + def magnificationFilterChanged(self, magnificationFilter: 'QAbstractTexture.Filter') -> None: ... + def depthChanged(self, depth: int) -> None: ... + def heightChanged(self, height: int) -> None: ... + def widthChanged(self, width: int) -> None: ... + def generateMipMapsChanged(self, generateMipMaps: bool) -> None: ... + def statusChanged(self, status: 'QAbstractTexture.Status') -> None: ... + def formatChanged(self, format: 'QAbstractTexture.TextureFormat') -> None: ... + def setSamples(self, samples: int) -> None: ... + def setLayers(self, layers: int) -> None: ... + def setComparisonMode(self, mode: 'QAbstractTexture.ComparisonMode') -> None: ... + def setComparisonFunction(self, function: 'QAbstractTexture.ComparisonFunction') -> None: ... + def setMaximumAnisotropy(self, anisotropy: float) -> None: ... + def setMagnificationFilter(self, f: 'QAbstractTexture.Filter') -> None: ... + def setMinificationFilter(self, f: 'QAbstractTexture.Filter') -> None: ... + def setDepth(self, depth: int) -> None: ... + def setHeight(self, height: int) -> None: ... + def setWidth(self, width: int) -> None: ... + def setGenerateMipMaps(self, gen: bool) -> None: ... + def setFormat(self, format: 'QAbstractTexture.TextureFormat') -> None: ... + def dataGenerator(self) -> 'QTextureGenerator': ... + def samples(self) -> int: ... + def layers(self) -> int: ... + def depth(self) -> int: ... + def height(self) -> int: ... + def width(self) -> int: ... + def comparisonMode(self) -> 'QAbstractTexture.ComparisonMode': ... + def comparisonFunction(self) -> 'QAbstractTexture.ComparisonFunction': ... + def maximumAnisotropy(self) -> float: ... + def magnificationFilter(self) -> 'QAbstractTexture.Filter': ... + def minificationFilter(self) -> 'QAbstractTexture.Filter': ... + def setSize(self, width: int, height: int = ..., depth: int = ...) -> None: ... + def wrapMode(self) -> 'QTextureWrapMode': ... + def setWrapMode(self, wrapMode: 'QTextureWrapMode') -> None: ... + def textureImages(self) -> typing.List['QAbstractTextureImage']: ... + def removeTextureImage(self, textureImage: 'QAbstractTextureImage') -> None: ... + def addTextureImage(self, textureImage: 'QAbstractTextureImage') -> None: ... + def status(self) -> 'QAbstractTexture.Status': ... + def generateMipMaps(self) -> bool: ... + def format(self) -> 'QAbstractTexture.TextureFormat': ... + def target(self) -> 'QAbstractTexture.Target': ... + + class QAbstractTextureImage(Qt3DCore.QNode): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def dataGenerator(self) -> 'QTextureImageDataGenerator': ... + def notifyDataGeneratorChanged(self) -> None: ... + def faceChanged(self, face: 'QAbstractTexture.CubeMapFace') -> None: ... + def layerChanged(self, layer: int) -> None: ... + def mipLevelChanged(self, mipLevel: int) -> None: ... + def setFace(self, face: 'QAbstractTexture.CubeMapFace') -> None: ... + def setLayer(self, layer: int) -> None: ... + def setMipLevel(self, level: int) -> None: ... + def face(self) -> 'QAbstractTexture.CubeMapFace': ... + def layer(self) -> int: ... + def mipLevel(self) -> int: ... + + class QRenderState(Qt3DCore.QNode): ... + + class QAlphaCoverage('QRenderState'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + class QAlphaTest('QRenderState'): + + class AlphaFunction(int): ... + Never = ... # type: 'QAlphaTest.AlphaFunction' + Always = ... # type: 'QAlphaTest.AlphaFunction' + Less = ... # type: 'QAlphaTest.AlphaFunction' + LessOrEqual = ... # type: 'QAlphaTest.AlphaFunction' + Equal = ... # type: 'QAlphaTest.AlphaFunction' + GreaterOrEqual = ... # type: 'QAlphaTest.AlphaFunction' + Greater = ... # type: 'QAlphaTest.AlphaFunction' + NotEqual = ... # type: 'QAlphaTest.AlphaFunction' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def referenceValueChanged(self, referenceValue: float) -> None: ... + def alphaFunctionChanged(self, alphaFunction: 'QAlphaTest.AlphaFunction') -> None: ... + def setReferenceValue(self, referenceValue: float) -> None: ... + def setAlphaFunction(self, alphaFunction: 'QAlphaTest.AlphaFunction') -> None: ... + def referenceValue(self) -> float: ... + def alphaFunction(self) -> 'QAlphaTest.AlphaFunction': ... + + class QAttribute(Qt3DCore.QNode): + + class VertexBaseType(int): ... + Byte = ... # type: 'QAttribute.VertexBaseType' + UnsignedByte = ... # type: 'QAttribute.VertexBaseType' + Short = ... # type: 'QAttribute.VertexBaseType' + UnsignedShort = ... # type: 'QAttribute.VertexBaseType' + Int = ... # type: 'QAttribute.VertexBaseType' + UnsignedInt = ... # type: 'QAttribute.VertexBaseType' + HalfFloat = ... # type: 'QAttribute.VertexBaseType' + Float = ... # type: 'QAttribute.VertexBaseType' + Double = ... # type: 'QAttribute.VertexBaseType' + + class AttributeType(int): ... + VertexAttribute = ... # type: 'QAttribute.AttributeType' + IndexAttribute = ... # type: 'QAttribute.AttributeType' + DrawIndirectAttribute = ... # type: 'QAttribute.AttributeType' + + @typing.overload + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + @typing.overload + def __init__(self, buf: 'QBuffer', vertexBaseType: 'QAttribute.VertexBaseType', vertexSize: int, count: int, offset: int = ..., stride: int = ..., parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + @typing.overload + def __init__(self, buf: 'QBuffer', name: str, vertexBaseType: 'QAttribute.VertexBaseType', vertexSize: int, count: int, offset: int = ..., stride: int = ..., parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def vertexSizeChanged(self, vertexSize: int) -> None: ... + def vertexBaseTypeChanged(self, vertexBaseType: 'QAttribute.VertexBaseType') -> None: ... + def attributeTypeChanged(self, attributeType: 'QAttribute.AttributeType') -> None: ... + def divisorChanged(self, divisor: int) -> None: ... + def byteOffsetChanged(self, byteOffset: int) -> None: ... + def byteStrideChanged(self, byteStride: int) -> None: ... + def countChanged(self, count: int) -> None: ... + def dataSizeChanged(self, vertexSize: int) -> None: ... + def dataTypeChanged(self, vertexBaseType: 'QAttribute.VertexBaseType') -> None: ... + def nameChanged(self, name: str) -> None: ... + def bufferChanged(self, buffer: 'QBuffer') -> None: ... + def setVertexSize(self, size: int) -> None: ... + def setVertexBaseType(self, type: 'QAttribute.VertexBaseType') -> None: ... + def setAttributeType(self, attributeType: 'QAttribute.AttributeType') -> None: ... + def setDivisor(self, divisor: int) -> None: ... + def setByteOffset(self, byteOffset: int) -> None: ... + def setByteStride(self, byteStride: int) -> None: ... + def setCount(self, count: int) -> None: ... + def setDataSize(self, size: int) -> None: ... + def setDataType(self, type: 'QAttribute.VertexBaseType') -> None: ... + def setName(self, name: str) -> None: ... + def setBuffer(self, buffer: 'QBuffer') -> None: ... + @staticmethod + def defaultJointWeightsAttributeName() -> str: ... + @staticmethod + def defaultJointIndicesAttributeName() -> str: ... + @staticmethod + def defaultTangentAttributeName() -> str: ... + @staticmethod + def defaultTextureCoordinate2AttributeName() -> str: ... + @staticmethod + def defaultTextureCoordinate1AttributeName() -> str: ... + @staticmethod + def defaultTextureCoordinateAttributeName() -> str: ... + @staticmethod + def defaultColorAttributeName() -> str: ... + @staticmethod + def defaultNormalAttributeName() -> str: ... + @staticmethod + def defaultPositionAttributeName() -> str: ... + def attributeType(self) -> 'QAttribute.AttributeType': ... + def divisor(self) -> int: ... + def byteOffset(self) -> int: ... + def byteStride(self) -> int: ... + def count(self) -> int: ... + def vertexSize(self) -> int: ... + def vertexBaseType(self) -> 'QAttribute.VertexBaseType': ... + def name(self) -> str: ... + def buffer(self) -> 'QBuffer': ... + + class QBlendEquation('QRenderState'): + + class BlendFunction(int): ... + Add = ... # type: 'QBlendEquation.BlendFunction' + Subtract = ... # type: 'QBlendEquation.BlendFunction' + ReverseSubtract = ... # type: 'QBlendEquation.BlendFunction' + Min = ... # type: 'QBlendEquation.BlendFunction' + Max = ... # type: 'QBlendEquation.BlendFunction' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def blendFunctionChanged(self, blendFunction: 'QBlendEquation.BlendFunction') -> None: ... + def setBlendFunction(self, blendFunction: 'QBlendEquation.BlendFunction') -> None: ... + def blendFunction(self) -> 'QBlendEquation.BlendFunction': ... + + class QBlendEquationArguments('QRenderState'): + + class Blending(int): ... + Zero = ... # type: 'QBlendEquationArguments.Blending' + One = ... # type: 'QBlendEquationArguments.Blending' + SourceColor = ... # type: 'QBlendEquationArguments.Blending' + SourceAlpha = ... # type: 'QBlendEquationArguments.Blending' + Source1Alpha = ... # type: 'QBlendEquationArguments.Blending' + Source1Color = ... # type: 'QBlendEquationArguments.Blending' + DestinationColor = ... # type: 'QBlendEquationArguments.Blending' + DestinationAlpha = ... # type: 'QBlendEquationArguments.Blending' + SourceAlphaSaturate = ... # type: 'QBlendEquationArguments.Blending' + ConstantColor = ... # type: 'QBlendEquationArguments.Blending' + ConstantAlpha = ... # type: 'QBlendEquationArguments.Blending' + OneMinusSourceColor = ... # type: 'QBlendEquationArguments.Blending' + OneMinusSourceAlpha = ... # type: 'QBlendEquationArguments.Blending' + OneMinusDestinationAlpha = ... # type: 'QBlendEquationArguments.Blending' + OneMinusDestinationColor = ... # type: 'QBlendEquationArguments.Blending' + OneMinusConstantColor = ... # type: 'QBlendEquationArguments.Blending' + OneMinusConstantAlpha = ... # type: 'QBlendEquationArguments.Blending' + OneMinusSource1Alpha = ... # type: 'QBlendEquationArguments.Blending' + OneMinusSource1Color0 = ... # type: 'QBlendEquationArguments.Blending' + OneMinusSource1Color = ... # type: 'QBlendEquationArguments.Blending' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def bufferIndexChanged(self, index: int) -> None: ... + def destinationRgbaChanged(self, destinationRgba: 'QBlendEquationArguments.Blending') -> None: ... + def sourceRgbaChanged(self, sourceRgba: 'QBlendEquationArguments.Blending') -> None: ... + def destinationAlphaChanged(self, destinationAlpha: 'QBlendEquationArguments.Blending') -> None: ... + def destinationRgbChanged(self, destinationRgb: 'QBlendEquationArguments.Blending') -> None: ... + def sourceAlphaChanged(self, sourceAlpha: 'QBlendEquationArguments.Blending') -> None: ... + def sourceRgbChanged(self, sourceRgb: 'QBlendEquationArguments.Blending') -> None: ... + def setBufferIndex(self, index: int) -> None: ... + def setDestinationRgba(self, destinationRgba: 'QBlendEquationArguments.Blending') -> None: ... + def setSourceRgba(self, sourceRgba: 'QBlendEquationArguments.Blending') -> None: ... + def setDestinationAlpha(self, destinationAlpha: 'QBlendEquationArguments.Blending') -> None: ... + def setSourceAlpha(self, sourceAlpha: 'QBlendEquationArguments.Blending') -> None: ... + def setDestinationRgb(self, destinationRgb: 'QBlendEquationArguments.Blending') -> None: ... + def setSourceRgb(self, sourceRgb: 'QBlendEquationArguments.Blending') -> None: ... + def bufferIndex(self) -> int: ... + def destinationAlpha(self) -> 'QBlendEquationArguments.Blending': ... + def sourceAlpha(self) -> 'QBlendEquationArguments.Blending': ... + def destinationRgb(self) -> 'QBlendEquationArguments.Blending': ... + def sourceRgb(self) -> 'QBlendEquationArguments.Blending': ... + + class QFrameGraphNode(Qt3DCore.QNode): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def parentFrameGraphNode(self) -> 'QFrameGraphNode': ... + + class QBlitFramebuffer('QFrameGraphNode'): + + class InterpolationMethod(int): ... + Nearest = ... # type: 'QBlitFramebuffer.InterpolationMethod' + Linear = ... # type: 'QBlitFramebuffer.InterpolationMethod' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def interpolationMethodChanged(self) -> None: ... + def destinationAttachmentPointChanged(self) -> None: ... + def sourceAttachmentPointChanged(self) -> None: ... + def destinationRectChanged(self) -> None: ... + def sourceRectChanged(self) -> None: ... + def destinationChanged(self) -> None: ... + def sourceChanged(self) -> None: ... + def setInterpolationMethod(self, interpolationMethod: 'QBlitFramebuffer.InterpolationMethod') -> None: ... + def setDestinationAttachmentPoint(self, destinationAttachmentPoint: 'QRenderTargetOutput.AttachmentPoint') -> None: ... + def setSourceAttachmentPoint(self, sourceAttachmentPoint: 'QRenderTargetOutput.AttachmentPoint') -> None: ... + def setDestinationRect(self, destinationRect: QtCore.QRectF) -> None: ... + def setSourceRect(self, sourceRect: QtCore.QRectF) -> None: ... + def setDestination(self, destination: 'QRenderTarget') -> None: ... + def setSource(self, source: 'QRenderTarget') -> None: ... + def interpolationMethod(self) -> 'QBlitFramebuffer.InterpolationMethod': ... + def destinationAttachmentPoint(self) -> 'QRenderTargetOutput.AttachmentPoint': ... + def sourceAttachmentPoint(self) -> 'QRenderTargetOutput.AttachmentPoint': ... + def destinationRect(self) -> QtCore.QRectF: ... + def sourceRect(self) -> QtCore.QRectF: ... + def destination(self) -> 'QRenderTarget': ... + def source(self) -> 'QRenderTarget': ... + + class QBuffer(Qt3DCore.QNode): + + class AccessType(int): ... + Write = ... # type: 'QBuffer.AccessType' + Read = ... # type: 'QBuffer.AccessType' + ReadWrite = ... # type: 'QBuffer.AccessType' + + class UsageType(int): ... + StreamDraw = ... # type: 'QBuffer.UsageType' + StreamRead = ... # type: 'QBuffer.UsageType' + StreamCopy = ... # type: 'QBuffer.UsageType' + StaticDraw = ... # type: 'QBuffer.UsageType' + StaticRead = ... # type: 'QBuffer.UsageType' + StaticCopy = ... # type: 'QBuffer.UsageType' + DynamicDraw = ... # type: 'QBuffer.UsageType' + DynamicRead = ... # type: 'QBuffer.UsageType' + DynamicCopy = ... # type: 'QBuffer.UsageType' + + class BufferType(int): ... + VertexBuffer = ... # type: 'QBuffer.BufferType' + IndexBuffer = ... # type: 'QBuffer.BufferType' + PixelPackBuffer = ... # type: 'QBuffer.BufferType' + PixelUnpackBuffer = ... # type: 'QBuffer.BufferType' + UniformBuffer = ... # type: 'QBuffer.BufferType' + ShaderStorageBuffer = ... # type: 'QBuffer.BufferType' + DrawIndirectBuffer = ... # type: 'QBuffer.BufferType' + + @typing.overload + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + @typing.overload + def __init__(self, ty: 'QBuffer.BufferType', parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def dataAvailable(self) -> None: ... + def accessTypeChanged(self, access: 'QBuffer.AccessType') -> None: ... + def setAccessType(self, access: 'QBuffer.AccessType') -> None: ... + def accessType(self) -> 'QBuffer.AccessType': ... + def updateData(self, offset: int, bytes: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + def syncDataChanged(self, syncData: bool) -> None: ... + def usageChanged(self, usage: 'QBuffer.UsageType') -> None: ... + def typeChanged(self, type: 'QBuffer.BufferType') -> None: ... + def dataChanged(self, bytes: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def setSyncData(self, syncData: bool) -> None: ... + def setUsage(self, usage: 'QBuffer.UsageType') -> None: ... + def setType(self, type: 'QBuffer.BufferType') -> None: ... + def dataGenerator(self) -> 'QBufferDataGenerator': ... + def setDataGenerator(self, functor: 'QBufferDataGenerator') -> None: ... + def data(self) -> QtCore.QByteArray: ... + def setData(self, bytes: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def isSyncData(self) -> bool: ... + def type(self) -> 'QBuffer.BufferType': ... + def usage(self) -> 'QBuffer.UsageType': ... + + class QBufferDataGenerator('QAbstractFunctor'): + + def __call__(self) -> QtCore.QByteArray: ... + + class QCamera(Qt3DCore.QEntity): + + class CameraTranslationOption(int): ... + TranslateViewCenter = ... # type: 'QCamera.CameraTranslationOption' + DontTranslateViewCenter = ... # type: 'QCamera.CameraTranslationOption' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def viewEntity(self, entity: Qt3DCore.QEntity) -> None: ... + def viewSphere(self, center: QtGui.QVector3D, radius: float) -> None: ... + def viewAll(self) -> None: ... + def exposureChanged(self, exposure: float) -> None: ... + def setExposure(self, exposure: float) -> None: ... + def exposure(self) -> float: ... + def viewMatrixChanged(self) -> None: ... + def viewVectorChanged(self, viewVector: QtGui.QVector3D) -> None: ... + def viewCenterChanged(self, viewCenter: QtGui.QVector3D) -> None: ... + def upVectorChanged(self, upVector: QtGui.QVector3D) -> None: ... + def positionChanged(self, position: QtGui.QVector3D) -> None: ... + def projectionMatrixChanged(self, projectionMatrix: QtGui.QMatrix4x4) -> None: ... + def topChanged(self, top: float) -> None: ... + def bottomChanged(self, bottom: float) -> None: ... + def rightChanged(self, right: float) -> None: ... + def leftChanged(self, left: float) -> None: ... + def aspectRatioChanged(self, aspectRatio: float) -> None: ... + def fieldOfViewChanged(self, fieldOfView: float) -> None: ... + def farPlaneChanged(self, farPlane: float) -> None: ... + def nearPlaneChanged(self, nearPlane: float) -> None: ... + def projectionTypeChanged(self, projectionType: 'QCameraLens.ProjectionType') -> None: ... + def setViewCenter(self, viewCenter: QtGui.QVector3D) -> None: ... + def setUpVector(self, upVector: QtGui.QVector3D) -> None: ... + def setPosition(self, position: QtGui.QVector3D) -> None: ... + def setProjectionMatrix(self, projectionMatrix: QtGui.QMatrix4x4) -> None: ... + def setTop(self, top: float) -> None: ... + def setBottom(self, bottom: float) -> None: ... + def setRight(self, right: float) -> None: ... + def setLeft(self, left: float) -> None: ... + def setAspectRatio(self, aspectRatio: float) -> None: ... + def setFieldOfView(self, fieldOfView: float) -> None: ... + def setFarPlane(self, farPlane: float) -> None: ... + def setNearPlane(self, nearPlane: float) -> None: ... + def setProjectionType(self, type: 'QCameraLens.ProjectionType') -> None: ... + def viewMatrix(self) -> QtGui.QMatrix4x4: ... + def viewVector(self) -> QtGui.QVector3D: ... + def viewCenter(self) -> QtGui.QVector3D: ... + def upVector(self) -> QtGui.QVector3D: ... + def position(self) -> QtGui.QVector3D: ... + def projectionMatrix(self) -> QtGui.QMatrix4x4: ... + def top(self) -> float: ... + def bottom(self) -> float: ... + def right(self) -> float: ... + def left(self) -> float: ... + def aspectRatio(self) -> float: ... + def fieldOfView(self) -> float: ... + def farPlane(self) -> float: ... + def nearPlane(self) -> float: ... + def projectionType(self) -> 'QCameraLens.ProjectionType': ... + def rotateAboutViewCenter(self, q: QtGui.QQuaternion) -> None: ... + def rotate(self, q: QtGui.QQuaternion) -> None: ... + def rollAboutViewCenter(self, angle: float) -> None: ... + @typing.overload + def panAboutViewCenter(self, angle: float) -> None: ... + @typing.overload + def panAboutViewCenter(self, angle: float, axis: QtGui.QVector3D) -> None: ... + def tiltAboutViewCenter(self, angle: float) -> None: ... + def roll(self, angle: float) -> None: ... + @typing.overload + def pan(self, angle: float) -> None: ... + @typing.overload + def pan(self, angle: float, axis: QtGui.QVector3D) -> None: ... + def tilt(self, angle: float) -> None: ... + def translateWorld(self, vWorld: QtGui.QVector3D, option: 'QCamera.CameraTranslationOption' = ...) -> None: ... + def translate(self, vLocal: QtGui.QVector3D, option: 'QCamera.CameraTranslationOption' = ...) -> None: ... + def rotation(self, angle: float, axis: QtGui.QVector3D) -> QtGui.QQuaternion: ... + def rollRotation(self, angle: float) -> QtGui.QQuaternion: ... + def panRotation(self, angle: float) -> QtGui.QQuaternion: ... + def tiltRotation(self, angle: float) -> QtGui.QQuaternion: ... + def transform(self) -> Qt3DCore.QTransform: ... + def lens(self) -> 'QCameraLens': ... + + class QCameraLens(Qt3DCore.QComponent): + + class ProjectionType(int): ... + OrthographicProjection = ... # type: 'QCameraLens.ProjectionType' + PerspectiveProjection = ... # type: 'QCameraLens.ProjectionType' + FrustumProjection = ... # type: 'QCameraLens.ProjectionType' + CustomProjection = ... # type: 'QCameraLens.ProjectionType' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def viewSphere(self, center: QtGui.QVector3D, radius: float) -> None: ... + def viewEntity(self, entityId: Qt3DCore.QNodeId, cameraId: Qt3DCore.QNodeId) -> None: ... + def viewAll(self, cameraId: Qt3DCore.QNodeId) -> None: ... + def exposureChanged(self, exposure: float) -> None: ... + def setExposure(self, exposure: float) -> None: ... + def exposure(self) -> float: ... + def projectionMatrixChanged(self, projectionMatrix: QtGui.QMatrix4x4) -> None: ... + def topChanged(self, top: float) -> None: ... + def bottomChanged(self, bottom: float) -> None: ... + def rightChanged(self, right: float) -> None: ... + def leftChanged(self, left: float) -> None: ... + def aspectRatioChanged(self, aspectRatio: float) -> None: ... + def fieldOfViewChanged(self, fieldOfView: float) -> None: ... + def farPlaneChanged(self, farPlane: float) -> None: ... + def nearPlaneChanged(self, nearPlane: float) -> None: ... + def projectionTypeChanged(self, projectionType: 'QCameraLens.ProjectionType') -> None: ... + def setProjectionMatrix(self, projectionMatrix: QtGui.QMatrix4x4) -> None: ... + def setTop(self, top: float) -> None: ... + def setBottom(self, bottom: float) -> None: ... + def setRight(self, right: float) -> None: ... + def setLeft(self, left: float) -> None: ... + def setAspectRatio(self, aspectRatio: float) -> None: ... + def setFieldOfView(self, fieldOfView: float) -> None: ... + def setFarPlane(self, farPlane: float) -> None: ... + def setNearPlane(self, nearPlane: float) -> None: ... + def setProjectionType(self, projectionType: 'QCameraLens.ProjectionType') -> None: ... + def setPerspectiveProjection(self, fieldOfView: float, aspect: float, nearPlane: float, farPlane: float) -> None: ... + def setFrustumProjection(self, left: float, right: float, bottom: float, top: float, nearPlane: float, farPlane: float) -> None: ... + def setOrthographicProjection(self, left: float, right: float, bottom: float, top: float, nearPlane: float, farPlane: float) -> None: ... + def projectionMatrix(self) -> QtGui.QMatrix4x4: ... + def top(self) -> float: ... + def bottom(self) -> float: ... + def right(self) -> float: ... + def left(self) -> float: ... + def aspectRatio(self) -> float: ... + def fieldOfView(self) -> float: ... + def farPlane(self) -> float: ... + def nearPlane(self) -> float: ... + def projectionType(self) -> 'QCameraLens.ProjectionType': ... + + class QCameraSelector('QFrameGraphNode'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def cameraChanged(self, camera: Qt3DCore.QEntity) -> None: ... + def setCamera(self, camera: Qt3DCore.QEntity) -> None: ... + def camera(self) -> Qt3DCore.QEntity: ... + + class QClearBuffers('QFrameGraphNode'): + + class BufferType(int): ... + None = ... # type: 'QClearBuffers.BufferType' + ColorBuffer = ... # type: 'QClearBuffers.BufferType' + DepthBuffer = ... # type: 'QClearBuffers.BufferType' + StencilBuffer = ... # type: 'QClearBuffers.BufferType' + DepthStencilBuffer = ... # type: 'QClearBuffers.BufferType' + ColorDepthBuffer = ... # type: 'QClearBuffers.BufferType' + ColorDepthStencilBuffer = ... # type: 'QClearBuffers.BufferType' + AllBuffers = ... # type: 'QClearBuffers.BufferType' + + class BufferTypeFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QClearBuffers.BufferTypeFlags', 'QClearBuffers.BufferType']) -> None: ... + @typing.overload + def __init__(self, a0: 'QClearBuffers.BufferTypeFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QClearBuffers.BufferTypeFlags': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def colorBufferChanged(self, buffer: 'QRenderTargetOutput') -> None: ... + def clearStencilValueChanged(self, clearStencilValue: int) -> None: ... + def clearDepthValueChanged(self, clearDepthValue: float) -> None: ... + def clearColorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def buffersChanged(self, buffers: 'QClearBuffers.BufferType') -> None: ... + def setColorBuffer(self, buffer: 'QRenderTargetOutput') -> None: ... + def setClearStencilValue(self, clearStencilValue: int) -> None: ... + def setClearDepthValue(self, clearDepthValue: float) -> None: ... + def setClearColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def setBuffers(self, buffers: 'QClearBuffers.BufferType') -> None: ... + def colorBuffer(self) -> 'QRenderTargetOutput': ... + def clearStencilValue(self) -> int: ... + def clearDepthValue(self) -> float: ... + def clearColor(self) -> QtGui.QColor: ... + def buffers(self) -> 'QClearBuffers.BufferType': ... + + class QClipPlane('QRenderState'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def distanceChanged(self, distance: float) -> None: ... + def normalChanged(self, normal: QtGui.QVector3D) -> None: ... + def planeIndexChanged(self, planeIndex: int) -> None: ... + def setDistance(self, a0: float) -> None: ... + def setNormal(self, a0: QtGui.QVector3D) -> None: ... + def setPlaneIndex(self, a0: int) -> None: ... + def distance(self) -> float: ... + def normal(self) -> QtGui.QVector3D: ... + def planeIndex(self) -> int: ... + + class QComputeCommand(Qt3DCore.QComponent): + + class RunType(int): ... + Continuous = ... # type: 'QComputeCommand.RunType' + Manual = ... # type: 'QComputeCommand.RunType' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def runTypeChanged(self) -> None: ... + @typing.overload + def trigger(self, frameCount: int = ...) -> None: ... + @typing.overload + def trigger(self, workGroupX: int, workGroupY: int, workGroupZ: int, frameCount: int = ...) -> None: ... + def setRunType(self, runType: 'QComputeCommand.RunType') -> None: ... + def runType(self) -> 'QComputeCommand.RunType': ... + def workGroupZChanged(self) -> None: ... + def workGroupYChanged(self) -> None: ... + def workGroupXChanged(self) -> None: ... + def setWorkGroupZ(self, workGroupZ: int) -> None: ... + def setWorkGroupY(self, workGroupY: int) -> None: ... + def setWorkGroupX(self, workGroupX: int) -> None: ... + def workGroupZ(self) -> int: ... + def workGroupY(self) -> int: ... + def workGroupX(self) -> int: ... + + class QColorMask('QRenderState'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def alphaMaskedChanged(self, alphaMasked: bool) -> None: ... + def blueMaskedChanged(self, blueMasked: bool) -> None: ... + def greenMaskedChanged(self, greenMasked: bool) -> None: ... + def redMaskedChanged(self, redMasked: bool) -> None: ... + def setAlphaMasked(self, alphaMasked: bool) -> None: ... + def setBlueMasked(self, blueMasked: bool) -> None: ... + def setGreenMasked(self, greenMasked: bool) -> None: ... + def setRedMasked(self, redMasked: bool) -> None: ... + def isAlphaMasked(self) -> bool: ... + def isBlueMasked(self) -> bool: ... + def isGreenMasked(self) -> bool: ... + def isRedMasked(self) -> bool: ... + + class QCullFace('QRenderState'): + + class CullingMode(int): ... + NoCulling = ... # type: 'QCullFace.CullingMode' + Front = ... # type: 'QCullFace.CullingMode' + Back = ... # type: 'QCullFace.CullingMode' + FrontAndBack = ... # type: 'QCullFace.CullingMode' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def modeChanged(self, mode: 'QCullFace.CullingMode') -> None: ... + def setMode(self, mode: 'QCullFace.CullingMode') -> None: ... + def mode(self) -> 'QCullFace.CullingMode': ... + + class QDepthRange('QRenderState'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def farValueChanged(self, farValue: float) -> None: ... + def nearValueChanged(self, nearValue: float) -> None: ... + def setFarValue(self, value: float) -> None: ... + def setNearValue(self, value: float) -> None: ... + def farValue(self) -> float: ... + def nearValue(self) -> float: ... + + class QDepthTest('QRenderState'): + + class DepthFunction(int): ... + Never = ... # type: 'QDepthTest.DepthFunction' + Always = ... # type: 'QDepthTest.DepthFunction' + Less = ... # type: 'QDepthTest.DepthFunction' + LessOrEqual = ... # type: 'QDepthTest.DepthFunction' + Equal = ... # type: 'QDepthTest.DepthFunction' + GreaterOrEqual = ... # type: 'QDepthTest.DepthFunction' + Greater = ... # type: 'QDepthTest.DepthFunction' + NotEqual = ... # type: 'QDepthTest.DepthFunction' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def depthFunctionChanged(self, depthFunction: 'QDepthTest.DepthFunction') -> None: ... + def setDepthFunction(self, depthFunction: 'QDepthTest.DepthFunction') -> None: ... + def depthFunction(self) -> 'QDepthTest.DepthFunction': ... + + class QDirectionalLight('QAbstractLight'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def worldDirectionChanged(self, worldDirection: QtGui.QVector3D) -> None: ... + def setWorldDirection(self, worldDirection: QtGui.QVector3D) -> None: ... + def worldDirection(self) -> QtGui.QVector3D: ... + + class QDispatchCompute('QFrameGraphNode'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def workGroupZChanged(self) -> None: ... + def workGroupYChanged(self) -> None: ... + def workGroupXChanged(self) -> None: ... + def setWorkGroupZ(self, workGroupZ: int) -> None: ... + def setWorkGroupY(self, workGroupY: int) -> None: ... + def setWorkGroupX(self, workGroupX: int) -> None: ... + def workGroupZ(self) -> int: ... + def workGroupY(self) -> int: ... + def workGroupX(self) -> int: ... + + class QDithering('QRenderState'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + class QEffect(Qt3DCore.QNode): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def techniques(self) -> typing.List['QTechnique']: ... + def removeTechnique(self, t: 'QTechnique') -> None: ... + def addTechnique(self, t: 'QTechnique') -> None: ... + def parameters(self) -> typing.List['QParameter']: ... + def removeParameter(self, parameter: 'QParameter') -> None: ... + def addParameter(self, parameter: 'QParameter') -> None: ... + + class QEnvironmentLight(Qt3DCore.QComponent): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def specularChanged(self, environmentSpecular: 'QAbstractTexture') -> None: ... + def irradianceChanged(self, environmentIrradiance: 'QAbstractTexture') -> None: ... + def setSpecular(self, specular: 'QAbstractTexture') -> None: ... + def setIrradiance(self, irradiance: 'QAbstractTexture') -> None: ... + def specular(self) -> 'QAbstractTexture': ... + def irradiance(self) -> 'QAbstractTexture': ... + + class QFilterKey(Qt3DCore.QNode): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def valueChanged(self, value: typing.Any) -> None: ... + def nameChanged(self, name: str) -> None: ... + def setName(self, customType: str) -> None: ... + def setValue(self, value: typing.Any) -> None: ... + def name(self) -> str: ... + def value(self) -> typing.Any: ... + + class QFrontFace('QRenderState'): + + class WindingDirection(int): ... + ClockWise = ... # type: 'QFrontFace.WindingDirection' + CounterClockWise = ... # type: 'QFrontFace.WindingDirection' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def directionChanged(self, direction: 'QFrontFace.WindingDirection') -> None: ... + def setDirection(self, direction: 'QFrontFace.WindingDirection') -> None: ... + def direction(self) -> 'QFrontFace.WindingDirection': ... + + class QFrustumCulling('QFrameGraphNode'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + class QGeometry(Qt3DCore.QNode): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + def maxExtentChanged(self, maxExtent: QtGui.QVector3D) -> None: ... + def minExtentChanged(self, minExtent: QtGui.QVector3D) -> None: ... + def maxExtent(self) -> QtGui.QVector3D: ... + def minExtent(self) -> QtGui.QVector3D: ... + def boundingVolumePositionAttributeChanged(self, boundingVolumePositionAttribute: 'QAttribute') -> None: ... + def setBoundingVolumePositionAttribute(self, boundingVolumePositionAttribute: 'QAttribute') -> None: ... + def boundingVolumePositionAttribute(self) -> 'QAttribute': ... + def removeAttribute(self, attribute: 'QAttribute') -> None: ... + def addAttribute(self, attribute: 'QAttribute') -> None: ... + def attributes(self) -> typing.List['QAttribute']: ... + + class QGeometryFactory('QAbstractFunctor'): + + def __call__(self) -> 'QGeometry': ... + + class QGeometryRenderer(Qt3DCore.QComponent): + + class PrimitiveType(int): ... + Points = ... # type: 'QGeometryRenderer.PrimitiveType' + Lines = ... # type: 'QGeometryRenderer.PrimitiveType' + LineLoop = ... # type: 'QGeometryRenderer.PrimitiveType' + LineStrip = ... # type: 'QGeometryRenderer.PrimitiveType' + Triangles = ... # type: 'QGeometryRenderer.PrimitiveType' + TriangleStrip = ... # type: 'QGeometryRenderer.PrimitiveType' + TriangleFan = ... # type: 'QGeometryRenderer.PrimitiveType' + LinesAdjacency = ... # type: 'QGeometryRenderer.PrimitiveType' + TrianglesAdjacency = ... # type: 'QGeometryRenderer.PrimitiveType' + LineStripAdjacency = ... # type: 'QGeometryRenderer.PrimitiveType' + TriangleStripAdjacency = ... # type: 'QGeometryRenderer.PrimitiveType' + Patches = ... # type: 'QGeometryRenderer.PrimitiveType' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + def indexBufferByteOffsetChanged(self, offset: int) -> None: ... + def setIndexBufferByteOffset(self, offset: int) -> None: ... + def indexBufferByteOffset(self) -> int: ... + def primitiveTypeChanged(self, primitiveType: 'QGeometryRenderer.PrimitiveType') -> None: ... + def geometryChanged(self, geometry: 'QGeometry') -> None: ... + def primitiveRestartEnabledChanged(self, primitiveRestartEnabled: bool) -> None: ... + def verticesPerPatchChanged(self, verticesPerPatch: int) -> None: ... + def restartIndexValueChanged(self, restartIndexValue: int) -> None: ... + def firstVertexChanged(self, firstVertex: int) -> None: ... + def firstInstanceChanged(self, firstInstance: int) -> None: ... + def indexOffsetChanged(self, indexOffset: int) -> None: ... + def vertexCountChanged(self, vertexCount: int) -> None: ... + def instanceCountChanged(self, instanceCount: int) -> None: ... + def setPrimitiveType(self, primitiveType: 'QGeometryRenderer.PrimitiveType') -> None: ... + def setGeometry(self, geometry: 'QGeometry') -> None: ... + def setPrimitiveRestartEnabled(self, enabled: bool) -> None: ... + def setVerticesPerPatch(self, verticesPerPatch: int) -> None: ... + def setRestartIndexValue(self, index: int) -> None: ... + def setFirstVertex(self, firstVertex: int) -> None: ... + def setFirstInstance(self, firstInstance: int) -> None: ... + def setIndexOffset(self, indexOffset: int) -> None: ... + def setVertexCount(self, vertexCount: int) -> None: ... + def setInstanceCount(self, instanceCount: int) -> None: ... + def setGeometryFactory(self, factory: 'QGeometryFactory') -> None: ... + def geometryFactory(self) -> 'QGeometryFactory': ... + def primitiveType(self) -> 'QGeometryRenderer.PrimitiveType': ... + def geometry(self) -> 'QGeometry': ... + def primitiveRestartEnabled(self) -> bool: ... + def verticesPerPatch(self) -> int: ... + def restartIndexValue(self) -> int: ... + def firstVertex(self) -> int: ... + def firstInstance(self) -> int: ... + def indexOffset(self) -> int: ... + def vertexCount(self) -> int: ... + def instanceCount(self) -> int: ... + + class QGraphicsApiFilter(QtCore.QObject): + + class OpenGLProfile(int): ... + NoProfile = ... # type: 'QGraphicsApiFilter.OpenGLProfile' + CoreProfile = ... # type: 'QGraphicsApiFilter.OpenGLProfile' + CompatibilityProfile = ... # type: 'QGraphicsApiFilter.OpenGLProfile' + + class Api(int): ... + OpenGLES = ... # type: 'QGraphicsApiFilter.Api' + OpenGL = ... # type: 'QGraphicsApiFilter.Api' + Vulkan = ... # type: 'QGraphicsApiFilter.Api' + DirectX = ... # type: 'QGraphicsApiFilter.Api' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def graphicsApiFilterChanged(self) -> None: ... + def vendorChanged(self, vendor: str) -> None: ... + def extensionsChanged(self, extensions: typing.Iterable[str]) -> None: ... + def majorVersionChanged(self, majorVersion: int) -> None: ... + def minorVersionChanged(self, minorVersion: int) -> None: ... + def profileChanged(self, profile: 'QGraphicsApiFilter.OpenGLProfile') -> None: ... + def apiChanged(self, api: 'QGraphicsApiFilter.Api') -> None: ... + def setVendor(self, vendor: str) -> None: ... + def setExtensions(self, extensions: typing.Iterable[str]) -> None: ... + def setMajorVersion(self, majorVersion: int) -> None: ... + def setMinorVersion(self, minorVersion: int) -> None: ... + def setProfile(self, profile: 'QGraphicsApiFilter.OpenGLProfile') -> None: ... + def setApi(self, api: 'QGraphicsApiFilter.Api') -> None: ... + def vendor(self) -> str: ... + def extensions(self) -> typing.List[str]: ... + def majorVersion(self) -> int: ... + def minorVersion(self) -> int: ... + def profile(self) -> 'QGraphicsApiFilter.OpenGLProfile': ... + def api(self) -> 'QGraphicsApiFilter.Api': ... + + class QLayer(Qt3DCore.QComponent): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def recursiveChanged(self) -> None: ... + def setRecursive(self, recursive: bool) -> None: ... + def recursive(self) -> bool: ... + + class QLayerFilter('QFrameGraphNode'): + + class FilterMode(int): ... + AcceptAnyMatchingLayers = ... # type: 'QLayerFilter.FilterMode' + AcceptAllMatchingLayers = ... # type: 'QLayerFilter.FilterMode' + DiscardAnyMatchingLayers = ... # type: 'QLayerFilter.FilterMode' + DiscardAllMatchingLayers = ... # type: 'QLayerFilter.FilterMode' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def filterModeChanged(self, filterMode: 'QLayerFilter.FilterMode') -> None: ... + def setFilterMode(self, filterMode: 'QLayerFilter.FilterMode') -> None: ... + def filterMode(self) -> 'QLayerFilter.FilterMode': ... + def layers(self) -> typing.List['QLayer']: ... + def removeLayer(self, layer: 'QLayer') -> None: ... + def addLayer(self, layer: 'QLayer') -> None: ... + + class QLevelOfDetail(Qt3DCore.QComponent): + + class ThresholdType(int): ... + DistanceToCameraThreshold = ... # type: 'QLevelOfDetail.ThresholdType' + ProjectedScreenPixelSizeThreshold = ... # type: 'QLevelOfDetail.ThresholdType' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + def volumeOverrideChanged(self, volumeOverride: 'QLevelOfDetailBoundingSphere') -> None: ... + def thresholdsChanged(self, thresholds: typing.Iterable[float]) -> None: ... + def thresholdTypeChanged(self, thresholdType: 'QLevelOfDetail.ThresholdType') -> None: ... + def currentIndexChanged(self, currentIndex: int) -> None: ... + def cameraChanged(self, camera: 'QCamera') -> None: ... + def setVolumeOverride(self, volumeOverride: 'QLevelOfDetailBoundingSphere') -> None: ... + def setThresholds(self, thresholds: typing.Iterable[float]) -> None: ... + def setThresholdType(self, thresholdType: 'QLevelOfDetail.ThresholdType') -> None: ... + def setCurrentIndex(self, currentIndex: int) -> None: ... + def setCamera(self, camera: 'QCamera') -> None: ... + def createBoundingSphere(self, center: QtGui.QVector3D, radius: float) -> 'QLevelOfDetailBoundingSphere': ... + def volumeOverride(self) -> 'QLevelOfDetailBoundingSphere': ... + def thresholds(self) -> typing.List[float]: ... + def thresholdType(self) -> 'QLevelOfDetail.ThresholdType': ... + def currentIndex(self) -> int: ... + def camera(self) -> 'QCamera': ... + + class QLevelOfDetailBoundingSphere(sip.simplewrapper): + + @typing.overload + def __init__(self, center: QtGui.QVector3D = ..., radius: float = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QLevelOfDetailBoundingSphere') -> None: ... + + def isEmpty(self) -> bool: ... + def radius(self) -> float: ... + def center(self) -> QtGui.QVector3D: ... + + class QLevelOfDetailSwitch('QLevelOfDetail'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + + class QLineWidth('QRenderState'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def smoothChanged(self, enabled: bool) -> None: ... + def valueChanged(self, value: float) -> None: ... + def setSmooth(self, enabled: bool) -> None: ... + def setValue(self, value: float) -> None: ... + def smooth(self) -> bool: ... + def value(self) -> float: ... + + class QMaterial(Qt3DCore.QComponent): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def effectChanged(self, effect: 'QEffect') -> None: ... + def setEffect(self, effect: 'QEffect') -> None: ... + def parameters(self) -> typing.List['QParameter']: ... + def removeParameter(self, parameter: 'QParameter') -> None: ... + def addParameter(self, parameter: 'QParameter') -> None: ... + def effect(self) -> 'QEffect': ... + + class QMemoryBarrier('QFrameGraphNode'): + + class Operation(int): ... + None = ... # type: 'QMemoryBarrier.Operation' + VertexAttributeArray = ... # type: 'QMemoryBarrier.Operation' + ElementArray = ... # type: 'QMemoryBarrier.Operation' + Uniform = ... # type: 'QMemoryBarrier.Operation' + TextureFetch = ... # type: 'QMemoryBarrier.Operation' + ShaderImageAccess = ... # type: 'QMemoryBarrier.Operation' + Command = ... # type: 'QMemoryBarrier.Operation' + PixelBuffer = ... # type: 'QMemoryBarrier.Operation' + TextureUpdate = ... # type: 'QMemoryBarrier.Operation' + BufferUpdate = ... # type: 'QMemoryBarrier.Operation' + FrameBuffer = ... # type: 'QMemoryBarrier.Operation' + TransformFeedback = ... # type: 'QMemoryBarrier.Operation' + AtomicCounter = ... # type: 'QMemoryBarrier.Operation' + ShaderStorage = ... # type: 'QMemoryBarrier.Operation' + QueryBuffer = ... # type: 'QMemoryBarrier.Operation' + All = ... # type: 'QMemoryBarrier.Operation' + + class Operations(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QMemoryBarrier.Operations', 'QMemoryBarrier.Operation']) -> None: ... + @typing.overload + def __init__(self, a0: 'QMemoryBarrier.Operations') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QMemoryBarrier.Operations': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def waitOperationsChanged(self, barrierTypes: typing.Union['QMemoryBarrier.Operations', 'QMemoryBarrier.Operation']) -> None: ... + def setWaitOperations(self, operations: typing.Union['QMemoryBarrier.Operations', 'QMemoryBarrier.Operation']) -> None: ... + def waitOperations(self) -> 'QMemoryBarrier.Operations': ... + + class QMesh('QGeometryRenderer'): + + class Status(int): ... + None = ... # type: 'QMesh.Status' + Loading = ... # type: 'QMesh.Status' + Ready = ... # type: 'QMesh.Status' + Error = ... # type: 'QMesh.Status' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + def statusChanged(self, status: 'QMesh.Status') -> None: ... + def status(self) -> 'QMesh.Status': ... + def meshNameChanged(self, meshName: str) -> None: ... + def sourceChanged(self, source: QtCore.QUrl) -> None: ... + def setMeshName(self, meshName: str) -> None: ... + def setSource(self, source: QtCore.QUrl) -> None: ... + def meshName(self) -> str: ... + def source(self) -> QtCore.QUrl: ... + + class QMultiSampleAntiAliasing('QRenderState'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + class QNoDepthMask('QRenderState'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + class QNoDraw('QFrameGraphNode'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + class QNoPicking('QFrameGraphNode'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + class QObjectPicker(Qt3DCore.QComponent): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def priorityChanged(self, priority: int) -> None: ... + def setPriority(self, priority: int) -> None: ... + def priority(self) -> int: ... + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + def containsMouseChanged(self, containsMouse: bool) -> None: ... + def pressedChanged(self, pressed: bool) -> None: ... + def dragEnabledChanged(self, dragEnabled: bool) -> None: ... + def hoverEnabledChanged(self, hoverEnabled: bool) -> None: ... + def exited(self) -> None: ... + def entered(self) -> None: ... + def moved(self, pick: 'QPickEvent') -> None: ... + def clicked(self, pick: 'QPickEvent') -> None: ... + def released(self, pick: 'QPickEvent') -> None: ... + def pressed(self, pick: 'QPickEvent') -> None: ... + def setDragEnabled(self, dragEnabled: bool) -> None: ... + def setHoverEnabled(self, hoverEnabled: bool) -> None: ... + def isPressed(self) -> bool: ... + def containsMouse(self) -> bool: ... + def isDragEnabled(self) -> bool: ... + def isHoverEnabled(self) -> bool: ... + + class QPaintedTextureImage('QAbstractTextureImage'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def paint(self, painter: QtGui.QPainter) -> None: ... + def sizeChanged(self, size: QtCore.QSize) -> None: ... + def heightChanged(self, w: int) -> None: ... + def widthChanged(self, w: int) -> None: ... + def setSize(self, size: QtCore.QSize) -> None: ... + def setHeight(self, h: int) -> None: ... + def setWidth(self, w: int) -> None: ... + def update(self, rect: QtCore.QRect = ...) -> None: ... + def size(self) -> QtCore.QSize: ... + def height(self) -> int: ... + def width(self) -> int: ... + + class QParameter(Qt3DCore.QNode): + + @typing.overload + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + @typing.overload + def __init__(self, name: str, value: typing.Any, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + @typing.overload + def __init__(self, name: str, texture: 'QAbstractTexture', parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def nameChanged(self, name: str) -> None: ... + def valueChanged(self, value: typing.Any) -> None: ... + def setValue(self, dv: typing.Any) -> None: ... + def setName(self, name: str) -> None: ... + def value(self) -> typing.Any: ... + def name(self) -> str: ... + + class QPickEvent(QtCore.QObject): + + class Modifiers(int): ... + NoModifier = ... # type: 'QPickEvent.Modifiers' + ShiftModifier = ... # type: 'QPickEvent.Modifiers' + ControlModifier = ... # type: 'QPickEvent.Modifiers' + AltModifier = ... # type: 'QPickEvent.Modifiers' + MetaModifier = ... # type: 'QPickEvent.Modifiers' + KeypadModifier = ... # type: 'QPickEvent.Modifiers' + + class Buttons(int): ... + LeftButton = ... # type: 'QPickEvent.Buttons' + RightButton = ... # type: 'QPickEvent.Buttons' + MiddleButton = ... # type: 'QPickEvent.Buttons' + BackButton = ... # type: 'QPickEvent.Buttons' + NoButton = ... # type: 'QPickEvent.Buttons' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, position: typing.Union[QtCore.QPointF, QtCore.QPoint], worldIntersection: QtGui.QVector3D, localIntersection: QtGui.QVector3D, distance: float) -> None: ... + @typing.overload + def __init__(self, position: typing.Union[QtCore.QPointF, QtCore.QPoint], worldIntersection: QtGui.QVector3D, localIntersection: QtGui.QVector3D, distance: float, button: 'QPickEvent.Buttons', buttons: int, modifiers: int) -> None: ... + + def entity(self) -> Qt3DCore.QEntity: ... + def viewport(self) -> 'QViewport': ... + def modifiers(self) -> int: ... + def buttons(self) -> int: ... + def button(self) -> 'QPickEvent.Buttons': ... + def acceptedChanged(self, accepted: bool) -> None: ... + def setAccepted(self, accepted: bool) -> None: ... + def localIntersection(self) -> QtGui.QVector3D: ... + def worldIntersection(self) -> QtGui.QVector3D: ... + def distance(self) -> float: ... + def position(self) -> QtCore.QPointF: ... + def isAccepted(self) -> bool: ... + + class QPickingSettings(Qt3DCore.QNode): + + class FaceOrientationPickingMode(int): ... + FrontFace = ... # type: 'QPickingSettings.FaceOrientationPickingMode' + BackFace = ... # type: 'QPickingSettings.FaceOrientationPickingMode' + FrontAndBackFace = ... # type: 'QPickingSettings.FaceOrientationPickingMode' + + class PickResultMode(int): ... + NearestPick = ... # type: 'QPickingSettings.PickResultMode' + AllPicks = ... # type: 'QPickingSettings.PickResultMode' + NearestPriorityPick = ... # type: 'QPickingSettings.PickResultMode' + + class PickMethod(int): ... + BoundingVolumePicking = ... # type: 'QPickingSettings.PickMethod' + TrianglePicking = ... # type: 'QPickingSettings.PickMethod' + LinePicking = ... # type: 'QPickingSettings.PickMethod' + PointPicking = ... # type: 'QPickingSettings.PickMethod' + PrimitivePicking = ... # type: 'QPickingSettings.PickMethod' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def worldSpaceToleranceChanged(self, worldSpaceTolerance: float) -> None: ... + def setWorldSpaceTolerance(self, worldSpaceTolerance: float) -> None: ... + def worldSpaceTolerance(self) -> float: ... + def faceOrientationPickingModeChanged(self, faceOrientationPickingMode: 'QPickingSettings.FaceOrientationPickingMode') -> None: ... + def setFaceOrientationPickingMode(self, faceOrientationPickingMode: 'QPickingSettings.FaceOrientationPickingMode') -> None: ... + def faceOrientationPickingMode(self) -> 'QPickingSettings.FaceOrientationPickingMode': ... + def pickResultModeChanged(self, pickResult: 'QPickingSettings.PickResultMode') -> None: ... + def pickMethodChanged(self, pickMethod: 'QPickingSettings.PickMethod') -> None: ... + def setPickResultMode(self, pickResultMode: 'QPickingSettings.PickResultMode') -> None: ... + def setPickMethod(self, pickMethod: 'QPickingSettings.PickMethod') -> None: ... + def pickResultMode(self) -> 'QPickingSettings.PickResultMode': ... + def pickMethod(self) -> 'QPickingSettings.PickMethod': ... + + class QPickLineEvent('QPickEvent'): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, position: typing.Union[QtCore.QPointF, QtCore.QPoint], worldIntersection: QtGui.QVector3D, localIntersection: QtGui.QVector3D, distance: float, edgeIndex: int, vertex1Index: int, vertex2Index: int, button: 'QPickEvent.Buttons', buttons: int, modifiers: int) -> None: ... + + def vertex2Index(self) -> int: ... + def vertex1Index(self) -> int: ... + def edgeIndex(self) -> int: ... + + class QPickPointEvent('QPickEvent'): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, position: typing.Union[QtCore.QPointF, QtCore.QPoint], worldIntersection: QtGui.QVector3D, localIntersection: QtGui.QVector3D, distance: float, pointIndex: int, button: 'QPickEvent.Buttons', buttons: int, modifiers: int) -> None: ... + + def pointIndex(self) -> int: ... + + class QPickTriangleEvent('QPickEvent'): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, position: typing.Union[QtCore.QPointF, QtCore.QPoint], worldIntersection: QtGui.QVector3D, localIntersection: QtGui.QVector3D, distance: float, triangleIndex: int, vertex1Index: int, vertex2Index: int, vertex3Index: int) -> None: ... + @typing.overload + def __init__(self, position: typing.Union[QtCore.QPointF, QtCore.QPoint], worldIntersection: QtGui.QVector3D, localIntersection: QtGui.QVector3D, distance: float, triangleIndex: int, vertex1Index: int, vertex2Index: int, vertex3Index: int, button: 'QPickEvent.Buttons', buttons: int, modifiers: int, uvw: QtGui.QVector3D) -> None: ... + + def uvw(self) -> QtGui.QVector3D: ... + def vertex3Index(self) -> int: ... + def vertex2Index(self) -> int: ... + def vertex1Index(self) -> int: ... + def triangleIndex(self) -> int: ... + + class QPointLight('QAbstractLight'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def quadraticAttenuationChanged(self, quadraticAttenuation: float) -> None: ... + def linearAttenuationChanged(self, linearAttenuation: float) -> None: ... + def constantAttenuationChanged(self, constantAttenuation: float) -> None: ... + def setQuadraticAttenuation(self, value: float) -> None: ... + def setLinearAttenuation(self, value: float) -> None: ... + def setConstantAttenuation(self, value: float) -> None: ... + def quadraticAttenuation(self) -> float: ... + def linearAttenuation(self) -> float: ... + def constantAttenuation(self) -> float: ... + + class QPointSize('QRenderState'): + + class SizeMode(int): ... + Fixed = ... # type: 'QPointSize.SizeMode' + Programmable = ... # type: 'QPointSize.SizeMode' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def valueChanged(self, value: float) -> None: ... + def sizeModeChanged(self, sizeMode: 'QPointSize.SizeMode') -> None: ... + def setValue(self, value: float) -> None: ... + def setSizeMode(self, sizeMode: 'QPointSize.SizeMode') -> None: ... + def value(self) -> float: ... + def sizeMode(self) -> 'QPointSize.SizeMode': ... + + class QPolygonOffset('QRenderState'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def depthStepsChanged(self, depthSteps: float) -> None: ... + def scaleFactorChanged(self, scaleFactor: float) -> None: ... + def setDepthSteps(self, depthSteps: float) -> None: ... + def setScaleFactor(self, scaleFactor: float) -> None: ... + def depthSteps(self) -> float: ... + def scaleFactor(self) -> float: ... + + class QProximityFilter('QFrameGraphNode'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def distanceThresholdChanged(self, distanceThreshold: float) -> None: ... + def entityChanged(self, entity: Qt3DCore.QEntity) -> None: ... + def setDistanceThreshold(self, distanceThreshold: float) -> None: ... + def setEntity(self, entity: Qt3DCore.QEntity) -> None: ... + def distanceThreshold(self) -> float: ... + def entity(self) -> Qt3DCore.QEntity: ... + + class QRasterMode('QRenderState'): + + class FaceMode(int): ... + Front = ... # type: 'QRasterMode.FaceMode' + Back = ... # type: 'QRasterMode.FaceMode' + FrontAndBack = ... # type: 'QRasterMode.FaceMode' + + class RasterMode(int): ... + Points = ... # type: 'QRasterMode.RasterMode' + Lines = ... # type: 'QRasterMode.RasterMode' + Fill = ... # type: 'QRasterMode.RasterMode' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def faceModeChanged(self, faceMode: 'QRasterMode.FaceMode') -> None: ... + def rasterModeChanged(self, rasterMode: 'QRasterMode.RasterMode') -> None: ... + def setFaceMode(self, faceMode: 'QRasterMode.FaceMode') -> None: ... + def setRasterMode(self, rasterMode: 'QRasterMode.RasterMode') -> None: ... + def faceMode(self) -> 'QRasterMode.FaceMode': ... + def rasterMode(self) -> 'QRasterMode.RasterMode': ... + + class QRayCaster('QAbstractRayCaster'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def lengthChanged(self, length: float) -> None: ... + def directionChanged(self, direction: QtGui.QVector3D) -> None: ... + def originChanged(self, origin: QtGui.QVector3D) -> None: ... + @typing.overload + def trigger(self) -> None: ... + @typing.overload + def trigger(self, origin: QtGui.QVector3D, direction: QtGui.QVector3D, length: float) -> None: ... + def setLength(self, length: float) -> None: ... + def setDirection(self, direction: QtGui.QVector3D) -> None: ... + def setOrigin(self, origin: QtGui.QVector3D) -> None: ... + def length(self) -> float: ... + def direction(self) -> QtGui.QVector3D: ... + def origin(self) -> QtGui.QVector3D: ... + + class QRayCasterHit(sip.simplewrapper): + + class HitType(int): ... + TriangleHit = ... # type: 'QRayCasterHit.HitType' + LineHit = ... # type: 'QRayCasterHit.HitType' + PointHit = ... # type: 'QRayCasterHit.HitType' + EntityHit = ... # type: 'QRayCasterHit.HitType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, type: 'QRayCasterHit.HitType', id: Qt3DCore.QNodeId, distance: float, localIntersect: QtGui.QVector3D, worldIntersect: QtGui.QVector3D, primitiveIndex: int, v1: int, v2: int, v3: int) -> None: ... + @typing.overload + def __init__(self, other: 'QRayCasterHit') -> None: ... + + def vertex3Index(self) -> int: ... + def vertex2Index(self) -> int: ... + def vertex1Index(self) -> int: ... + def primitiveIndex(self) -> int: ... + def worldIntersection(self) -> QtGui.QVector3D: ... + def localIntersection(self) -> QtGui.QVector3D: ... + def distance(self) -> float: ... + def entity(self) -> Qt3DCore.QEntity: ... + def entityId(self) -> Qt3DCore.QNodeId: ... + def type(self) -> 'QRayCasterHit.HitType': ... + + class Render(sip.simplewrapper): ... + + class QRenderAspect(Qt3DCore.QAbstractAspect): + + class RenderType(int): ... + Synchronous = ... # type: 'QRenderAspect.RenderType' + Threaded = ... # type: 'QRenderAspect.RenderType' + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, type: 'QRenderAspect.RenderType', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + class QRenderCaptureReply(QtCore.QObject): + + def completed(self) -> None: ... + def saveImage(self, fileName: str) -> bool: ... + def completeChanged(self, isComplete: bool) -> None: ... + def saveToFile(self, fileName: str) -> None: ... + def isComplete(self) -> bool: ... + def captureId(self) -> int: ... + def image(self) -> QtGui.QImage: ... + + class QRenderCapture('QFrameGraphNode'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + @typing.overload + def requestCapture(self, captureId: int) -> 'QRenderCaptureReply': ... + @typing.overload + def requestCapture(self) -> 'QRenderCaptureReply': ... + @typing.overload + def requestCapture(self, rect: QtCore.QRect) -> 'QRenderCaptureReply': ... + + class QRenderPass(Qt3DCore.QNode): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def shaderProgramChanged(self, shaderProgram: 'QShaderProgram') -> None: ... + def setShaderProgram(self, shaderProgram: 'QShaderProgram') -> None: ... + def parameters(self) -> typing.List['QParameter']: ... + def removeParameter(self, p: 'QParameter') -> None: ... + def addParameter(self, p: 'QParameter') -> None: ... + def renderStates(self) -> typing.List['QRenderState']: ... + def removeRenderState(self, state: 'QRenderState') -> None: ... + def addRenderState(self, state: 'QRenderState') -> None: ... + def filterKeys(self) -> typing.List['QFilterKey']: ... + def removeFilterKey(self, filterKey: 'QFilterKey') -> None: ... + def addFilterKey(self, filterKey: 'QFilterKey') -> None: ... + def shaderProgram(self) -> 'QShaderProgram': ... + + class QRenderPassFilter('QFrameGraphNode'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def parameters(self) -> typing.List['QParameter']: ... + def removeParameter(self, parameter: 'QParameter') -> None: ... + def addParameter(self, parameter: 'QParameter') -> None: ... + def removeMatch(self, filterKey: 'QFilterKey') -> None: ... + def addMatch(self, filterKey: 'QFilterKey') -> None: ... + def matchAny(self) -> typing.List['QFilterKey']: ... + + class QRenderSettings(Qt3DCore.QComponent): + + class RenderPolicy(int): ... + OnDemand = ... # type: 'QRenderSettings.RenderPolicy' + Always = ... # type: 'QRenderSettings.RenderPolicy' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def renderPolicyChanged(self, renderPolicy: 'QRenderSettings.RenderPolicy') -> None: ... + def activeFrameGraphChanged(self, activeFrameGraph: 'QFrameGraphNode') -> None: ... + def setRenderPolicy(self, renderPolicy: 'QRenderSettings.RenderPolicy') -> None: ... + def setActiveFrameGraph(self, activeFrameGraph: 'QFrameGraphNode') -> None: ... + def renderPolicy(self) -> 'QRenderSettings.RenderPolicy': ... + def activeFrameGraph(self) -> 'QFrameGraphNode': ... + def pickingSettings(self) -> 'QPickingSettings': ... + + class QRenderStateSet('QFrameGraphNode'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def renderStates(self) -> typing.List['QRenderState']: ... + def removeRenderState(self, state: 'QRenderState') -> None: ... + def addRenderState(self, state: 'QRenderState') -> None: ... + + class QRenderSurfaceSelector('QFrameGraphNode'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def surfacePixelRatioChanged(self, ratio: float) -> None: ... + def externalRenderTargetSizeChanged(self, size: QtCore.QSize) -> None: ... + def surfaceChanged(self, surface: QtCore.QObject) -> None: ... + def setSurfacePixelRatio(self, ratio: float) -> None: ... + def setSurface(self, surfaceObject: QtCore.QObject) -> None: ... + def setExternalRenderTargetSize(self, size: QtCore.QSize) -> None: ... + def surfacePixelRatio(self) -> float: ... + def externalRenderTargetSize(self) -> QtCore.QSize: ... + def surface(self) -> QtCore.QObject: ... + + class QRenderTarget(Qt3DCore.QComponent): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def outputs(self) -> typing.List['QRenderTargetOutput']: ... + def removeOutput(self, output: 'QRenderTargetOutput') -> None: ... + def addOutput(self, output: 'QRenderTargetOutput') -> None: ... + + class QRenderTargetOutput(Qt3DCore.QNode): + + class AttachmentPoint(int): ... + Color0 = ... # type: 'QRenderTargetOutput.AttachmentPoint' + Color1 = ... # type: 'QRenderTargetOutput.AttachmentPoint' + Color2 = ... # type: 'QRenderTargetOutput.AttachmentPoint' + Color3 = ... # type: 'QRenderTargetOutput.AttachmentPoint' + Color4 = ... # type: 'QRenderTargetOutput.AttachmentPoint' + Color5 = ... # type: 'QRenderTargetOutput.AttachmentPoint' + Color6 = ... # type: 'QRenderTargetOutput.AttachmentPoint' + Color7 = ... # type: 'QRenderTargetOutput.AttachmentPoint' + Color8 = ... # type: 'QRenderTargetOutput.AttachmentPoint' + Color9 = ... # type: 'QRenderTargetOutput.AttachmentPoint' + Color10 = ... # type: 'QRenderTargetOutput.AttachmentPoint' + Color11 = ... # type: 'QRenderTargetOutput.AttachmentPoint' + Color12 = ... # type: 'QRenderTargetOutput.AttachmentPoint' + Color13 = ... # type: 'QRenderTargetOutput.AttachmentPoint' + Color14 = ... # type: 'QRenderTargetOutput.AttachmentPoint' + Color15 = ... # type: 'QRenderTargetOutput.AttachmentPoint' + Depth = ... # type: 'QRenderTargetOutput.AttachmentPoint' + Stencil = ... # type: 'QRenderTargetOutput.AttachmentPoint' + DepthStencil = ... # type: 'QRenderTargetOutput.AttachmentPoint' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def faceChanged(self, face: 'QAbstractTexture.CubeMapFace') -> None: ... + def layerChanged(self, layer: int) -> None: ... + def mipLevelChanged(self, mipLevel: int) -> None: ... + def textureChanged(self, texture: 'QAbstractTexture') -> None: ... + def attachmentPointChanged(self, attachmentPoint: 'QRenderTargetOutput.AttachmentPoint') -> None: ... + def setFace(self, face: 'QAbstractTexture.CubeMapFace') -> None: ... + def setLayer(self, layer: int) -> None: ... + def setMipLevel(self, level: int) -> None: ... + def setTexture(self, texture: 'QAbstractTexture') -> None: ... + def setAttachmentPoint(self, attachmentPoint: 'QRenderTargetOutput.AttachmentPoint') -> None: ... + def face(self) -> 'QAbstractTexture.CubeMapFace': ... + def layer(self) -> int: ... + def mipLevel(self) -> int: ... + def texture(self) -> 'QAbstractTexture': ... + def attachmentPoint(self) -> 'QRenderTargetOutput.AttachmentPoint': ... + + class QRenderTargetSelector('QFrameGraphNode'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def targetChanged(self, target: 'QRenderTarget') -> None: ... + def setTarget(self, target: 'QRenderTarget') -> None: ... + def target(self) -> 'QRenderTarget': ... + def outputs(self) -> typing.List[QRenderTargetOutput.AttachmentPoint]: ... + + class QSceneLoader(Qt3DCore.QComponent): + + class ComponentType(int): ... + UnknownComponent = ... # type: 'QSceneLoader.ComponentType' + GeometryRendererComponent = ... # type: 'QSceneLoader.ComponentType' + TransformComponent = ... # type: 'QSceneLoader.ComponentType' + MaterialComponent = ... # type: 'QSceneLoader.ComponentType' + LightComponent = ... # type: 'QSceneLoader.ComponentType' + CameraLensComponent = ... # type: 'QSceneLoader.ComponentType' + + class Status(int): ... + None = ... # type: 'QSceneLoader.Status' + Loading = ... # type: 'QSceneLoader.Status' + Ready = ... # type: 'QSceneLoader.Status' + Error = ... # type: 'QSceneLoader.Status' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def component(self, entityName: str, componentType: 'QSceneLoader.ComponentType') -> Qt3DCore.QComponent: ... + def entityNames(self) -> typing.List[str]: ... + def entity(self, entityName: str) -> Qt3DCore.QEntity: ... + def statusChanged(self, status: 'QSceneLoader.Status') -> None: ... + def sourceChanged(self, source: QtCore.QUrl) -> None: ... + def setSource(self, arg: QtCore.QUrl) -> None: ... + def status(self) -> 'QSceneLoader.Status': ... + def source(self) -> QtCore.QUrl: ... + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + + class QScissorTest('QRenderState'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def heightChanged(self, height: int) -> None: ... + def widthChanged(self, width: int) -> None: ... + def bottomChanged(self, bottom: int) -> None: ... + def leftChanged(self, left: int) -> None: ... + def setHeight(self, height: int) -> None: ... + def setWidth(self, width: int) -> None: ... + def setBottom(self, bottom: int) -> None: ... + def setLeft(self, left: int) -> None: ... + def height(self) -> int: ... + def width(self) -> int: ... + def bottom(self) -> int: ... + def left(self) -> int: ... + + class QScreenRayCaster('QAbstractRayCaster'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def positionChanged(self, position: QtCore.QPoint) -> None: ... + @typing.overload + def trigger(self) -> None: ... + @typing.overload + def trigger(self, position: QtCore.QPoint) -> None: ... + def setPosition(self, position: QtCore.QPoint) -> None: ... + def position(self) -> QtCore.QPoint: ... + + class QSeamlessCubemap('QRenderState'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + class QSetFence('QFrameGraphNode'): + + class HandleType(int): ... + NoHandle = ... # type: 'QSetFence.HandleType' + OpenGLFenceId = ... # type: 'QSetFence.HandleType' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + def handleChanged(self, handle: typing.Any) -> None: ... + def handleTypeChanged(self, handleType: 'QSetFence.HandleType') -> None: ... + def handle(self) -> typing.Any: ... + def handleType(self) -> 'QSetFence.HandleType': ... + + class PropertyReaderInterface(sip.simplewrapper): + + def readProperty(self, v: typing.Any) -> typing.Any: ... + + class QShaderData(Qt3DCore.QComponent): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def event(self, event: QtCore.QEvent) -> bool: ... + def propertyReader(self) -> 'PropertyReaderInterface': ... + + class QShaderImage(Qt3DCore.QNode): + + class ImageFormat(int): ... + NoFormat = ... # type: 'QShaderImage.ImageFormat' + Automatic = ... # type: 'QShaderImage.ImageFormat' + R8_UNorm = ... # type: 'QShaderImage.ImageFormat' + RG8_UNorm = ... # type: 'QShaderImage.ImageFormat' + RGBA8_UNorm = ... # type: 'QShaderImage.ImageFormat' + R16_UNorm = ... # type: 'QShaderImage.ImageFormat' + RG16_UNorm = ... # type: 'QShaderImage.ImageFormat' + RGBA16_UNorm = ... # type: 'QShaderImage.ImageFormat' + R8_SNorm = ... # type: 'QShaderImage.ImageFormat' + RG8_SNorm = ... # type: 'QShaderImage.ImageFormat' + RGBA8_SNorm = ... # type: 'QShaderImage.ImageFormat' + R16_SNorm = ... # type: 'QShaderImage.ImageFormat' + RG16_SNorm = ... # type: 'QShaderImage.ImageFormat' + RGBA16_SNorm = ... # type: 'QShaderImage.ImageFormat' + R8U = ... # type: 'QShaderImage.ImageFormat' + RG8U = ... # type: 'QShaderImage.ImageFormat' + RGBA8U = ... # type: 'QShaderImage.ImageFormat' + R16U = ... # type: 'QShaderImage.ImageFormat' + RG16U = ... # type: 'QShaderImage.ImageFormat' + RGBA16U = ... # type: 'QShaderImage.ImageFormat' + R32U = ... # type: 'QShaderImage.ImageFormat' + RG32U = ... # type: 'QShaderImage.ImageFormat' + RGBA32U = ... # type: 'QShaderImage.ImageFormat' + R8I = ... # type: 'QShaderImage.ImageFormat' + RG8I = ... # type: 'QShaderImage.ImageFormat' + RGBA8I = ... # type: 'QShaderImage.ImageFormat' + R16I = ... # type: 'QShaderImage.ImageFormat' + RG16I = ... # type: 'QShaderImage.ImageFormat' + RGBA16I = ... # type: 'QShaderImage.ImageFormat' + R32I = ... # type: 'QShaderImage.ImageFormat' + RG32I = ... # type: 'QShaderImage.ImageFormat' + RGBA32I = ... # type: 'QShaderImage.ImageFormat' + R16F = ... # type: 'QShaderImage.ImageFormat' + RG16F = ... # type: 'QShaderImage.ImageFormat' + RGBA16F = ... # type: 'QShaderImage.ImageFormat' + R32F = ... # type: 'QShaderImage.ImageFormat' + RG32F = ... # type: 'QShaderImage.ImageFormat' + RGBA32F = ... # type: 'QShaderImage.ImageFormat' + RG11B10F = ... # type: 'QShaderImage.ImageFormat' + RGB10A2 = ... # type: 'QShaderImage.ImageFormat' + RGB10A2U = ... # type: 'QShaderImage.ImageFormat' + + class Access(int): ... + ReadOnly = ... # type: 'QShaderImage.Access' + WriteOnly = ... # type: 'QShaderImage.Access' + ReadWrite = ... # type: 'QShaderImage.Access' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def formatChanged(self, format: 'QShaderImage.ImageFormat') -> None: ... + def accessChanged(self, access: 'QShaderImage.Access') -> None: ... + def layerChanged(self, layer: int) -> None: ... + def mipLevelChanged(self, mipLevel: int) -> None: ... + def layeredChanged(self, layered: bool) -> None: ... + def textureChanged(self, texture: 'QAbstractTexture') -> None: ... + def setFormat(self, format: 'QShaderImage.ImageFormat') -> None: ... + def setAccess(self, access: 'QShaderImage.Access') -> None: ... + def setLayer(self, layer: int) -> None: ... + def setMipLevel(self, mipLevel: int) -> None: ... + def setLayered(self, layered: bool) -> None: ... + def setTexture(self, texture: 'QAbstractTexture') -> None: ... + def format(self) -> 'QShaderImage.ImageFormat': ... + def access(self) -> 'QShaderImage.Access': ... + def layer(self) -> int: ... + def mipLevel(self) -> int: ... + def layered(self) -> bool: ... + def texture(self) -> 'QAbstractTexture': ... + + class QShaderProgram(Qt3DCore.QNode): + + class Status(int): ... + NotReady = ... # type: 'QShaderProgram.Status' + Ready = ... # type: 'QShaderProgram.Status' + Error = ... # type: 'QShaderProgram.Status' + + class ShaderType(int): ... + Vertex = ... # type: 'QShaderProgram.ShaderType' + Fragment = ... # type: 'QShaderProgram.ShaderType' + TessellationControl = ... # type: 'QShaderProgram.ShaderType' + TessellationEvaluation = ... # type: 'QShaderProgram.ShaderType' + Geometry = ... # type: 'QShaderProgram.ShaderType' + Compute = ... # type: 'QShaderProgram.ShaderType' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + def statusChanged(self, status: 'QShaderProgram.Status') -> None: ... + def logChanged(self, log: str) -> None: ... + def status(self) -> 'QShaderProgram.Status': ... + def log(self) -> str: ... + def computeShaderCodeChanged(self, computeShaderCode: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def fragmentShaderCodeChanged(self, fragmentShaderCode: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def geometryShaderCodeChanged(self, geometryShaderCode: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def tessellationEvaluationShaderCodeChanged(self, tessellationEvaluationShaderCode: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def tessellationControlShaderCodeChanged(self, tessellationControlShaderCode: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def vertexShaderCodeChanged(self, vertexShaderCode: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def setComputeShaderCode(self, computeShaderCode: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def setFragmentShaderCode(self, fragmentShaderCode: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def setGeometryShaderCode(self, geometryShaderCode: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def setTessellationEvaluationShaderCode(self, tessellationEvaluationShaderCode: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def setTessellationControlShaderCode(self, tessellationControlShaderCode: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def setVertexShaderCode(self, vertexShaderCode: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + @staticmethod + def loadSource(sourceUrl: QtCore.QUrl) -> QtCore.QByteArray: ... + def shaderCode(self, type: 'QShaderProgram.ShaderType') -> QtCore.QByteArray: ... + def setShaderCode(self, type: 'QShaderProgram.ShaderType', shaderCode: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def computeShaderCode(self) -> QtCore.QByteArray: ... + def fragmentShaderCode(self) -> QtCore.QByteArray: ... + def geometryShaderCode(self) -> QtCore.QByteArray: ... + def tessellationEvaluationShaderCode(self) -> QtCore.QByteArray: ... + def tessellationControlShaderCode(self) -> QtCore.QByteArray: ... + def vertexShaderCode(self) -> QtCore.QByteArray: ... + + class QShaderProgramBuilder(Qt3DCore.QNode): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + def computeShaderCodeChanged(self, computeShaderCode: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def fragmentShaderCodeChanged(self, fragmentShaderCode: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def geometryShaderCodeChanged(self, geometryShaderCode: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def tessellationEvaluationShaderCodeChanged(self, tessellationEvaluationShaderCode: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def tessellationControlShaderCodeChanged(self, tessellationControlShaderCode: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def vertexShaderCodeChanged(self, vertexShaderCode: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def computeShaderCode(self) -> QtCore.QByteArray: ... + def fragmentShaderCode(self) -> QtCore.QByteArray: ... + def geometryShaderCode(self) -> QtCore.QByteArray: ... + def tessellationEvaluationShaderCode(self) -> QtCore.QByteArray: ... + def tessellationControlShaderCode(self) -> QtCore.QByteArray: ... + def vertexShaderCode(self) -> QtCore.QByteArray: ... + def computeShaderGraphChanged(self, computeShaderGraph: QtCore.QUrl) -> None: ... + def fragmentShaderGraphChanged(self, fragmentShaderGraph: QtCore.QUrl) -> None: ... + def geometryShaderGraphChanged(self, geometryShaderGraph: QtCore.QUrl) -> None: ... + def tessellationEvaluationShaderGraphChanged(self, tessellationEvaluationShaderGraph: QtCore.QUrl) -> None: ... + def tessellationControlShaderGraphChanged(self, tessellationControlShaderGraph: QtCore.QUrl) -> None: ... + def vertexShaderGraphChanged(self, vertexShaderGraph: QtCore.QUrl) -> None: ... + def enabledLayersChanged(self, layers: typing.Iterable[str]) -> None: ... + def shaderProgramChanged(self, shaderProgram: 'QShaderProgram') -> None: ... + def setComputeShaderGraph(self, computeShaderGraph: QtCore.QUrl) -> None: ... + def setFragmentShaderGraph(self, fragmentShaderGraph: QtCore.QUrl) -> None: ... + def setGeometryShaderGraph(self, geometryShaderGraph: QtCore.QUrl) -> None: ... + def setTessellationEvaluationShaderGraph(self, tessellationEvaluationShaderGraph: QtCore.QUrl) -> None: ... + def setTessellationControlShaderGraph(self, tessellationControlShaderGraph: QtCore.QUrl) -> None: ... + def setVertexShaderGraph(self, vertexShaderGraph: QtCore.QUrl) -> None: ... + def setEnabledLayers(self, layers: typing.Iterable[str]) -> None: ... + def setShaderProgram(self, program: 'QShaderProgram') -> None: ... + def computeShaderGraph(self) -> QtCore.QUrl: ... + def fragmentShaderGraph(self) -> QtCore.QUrl: ... + def geometryShaderGraph(self) -> QtCore.QUrl: ... + def tessellationEvaluationShaderGraph(self) -> QtCore.QUrl: ... + def tessellationControlShaderGraph(self) -> QtCore.QUrl: ... + def vertexShaderGraph(self) -> QtCore.QUrl: ... + def enabledLayers(self) -> typing.List[str]: ... + def shaderProgram(self) -> 'QShaderProgram': ... + + class QSortPolicy('QFrameGraphNode'): + + class SortType(int): ... + StateChangeCost = ... # type: 'QSortPolicy.SortType' + BackToFront = ... # type: 'QSortPolicy.SortType' + Material = ... # type: 'QSortPolicy.SortType' + FrontToBack = ... # type: 'QSortPolicy.SortType' + Texture = ... # type: 'QSortPolicy.SortType' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + @typing.overload + def sortTypesChanged(self, sortTypes: typing.Iterable[QSortPolicy.SortType]) -> None: ... + @typing.overload + def sortTypesChanged(self, sortTypes: typing.Iterable[int]) -> None: ... + @typing.overload + def setSortTypes(self, sortTypes: typing.Iterable[QSortPolicy.SortType]) -> None: ... + @typing.overload + def setSortTypes(self, sortTypesInt: typing.Iterable[int]) -> None: ... + def sortTypesInt(self) -> typing.List[int]: ... + def sortTypes(self) -> typing.List[QSortPolicy.SortType]: ... + + class QSpotLight('QAbstractLight'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def cutOffAngleChanged(self, cutOffAngle: float) -> None: ... + def localDirectionChanged(self, localDirection: QtGui.QVector3D) -> None: ... + def quadraticAttenuationChanged(self, quadraticAttenuation: float) -> None: ... + def linearAttenuationChanged(self, linearAttenuation: float) -> None: ... + def constantAttenuationChanged(self, constantAttenuation: float) -> None: ... + def setCutOffAngle(self, cutOffAngle: float) -> None: ... + def setLocalDirection(self, localDirection: QtGui.QVector3D) -> None: ... + def setQuadraticAttenuation(self, value: float) -> None: ... + def setLinearAttenuation(self, value: float) -> None: ... + def setConstantAttenuation(self, value: float) -> None: ... + def quadraticAttenuation(self) -> float: ... + def linearAttenuation(self) -> float: ... + def constantAttenuation(self) -> float: ... + def cutOffAngle(self) -> float: ... + def localDirection(self) -> QtGui.QVector3D: ... + + class QStencilMask('QRenderState'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def backOutputMaskChanged(self, backOutputMask: int) -> None: ... + def frontOutputMaskChanged(self, frontOutputMask: int) -> None: ... + def setBackOutputMask(self, backOutputMask: int) -> None: ... + def setFrontOutputMask(self, frontOutputMask: int) -> None: ... + def backOutputMask(self) -> int: ... + def frontOutputMask(self) -> int: ... + + class QStencilOperation('QRenderState'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def back(self) -> 'QStencilOperationArguments': ... + def front(self) -> 'QStencilOperationArguments': ... + + class QStencilOperationArguments(QtCore.QObject): + + class Operation(int): ... + Zero = ... # type: 'QStencilOperationArguments.Operation' + Keep = ... # type: 'QStencilOperationArguments.Operation' + Replace = ... # type: 'QStencilOperationArguments.Operation' + Increment = ... # type: 'QStencilOperationArguments.Operation' + Decrement = ... # type: 'QStencilOperationArguments.Operation' + IncrementWrap = ... # type: 'QStencilOperationArguments.Operation' + DecrementWrap = ... # type: 'QStencilOperationArguments.Operation' + Invert = ... # type: 'QStencilOperationArguments.Operation' + + class FaceMode(int): ... + Front = ... # type: 'QStencilOperationArguments.FaceMode' + Back = ... # type: 'QStencilOperationArguments.FaceMode' + FrontAndBack = ... # type: 'QStencilOperationArguments.FaceMode' + + def faceModeChanged(self, faceMode: 'QStencilOperationArguments.FaceMode') -> None: ... + def allTestsPassOperationChanged(self, stencilDepthPass: 'QStencilOperationArguments.Operation') -> None: ... + def depthTestFailureOperationChanged(self, depthFail: 'QStencilOperationArguments.Operation') -> None: ... + def stencilTestFailureOperationChanged(self, stencilFail: 'QStencilOperationArguments.Operation') -> None: ... + def setAllTestsPassOperation(self, operation: 'QStencilOperationArguments.Operation') -> None: ... + def setDepthTestFailureOperation(self, operation: 'QStencilOperationArguments.Operation') -> None: ... + def setStencilTestFailureOperation(self, operation: 'QStencilOperationArguments.Operation') -> None: ... + def allTestsPassOperation(self) -> 'QStencilOperationArguments.Operation': ... + def depthTestFailureOperation(self) -> 'QStencilOperationArguments.Operation': ... + def stencilTestFailureOperation(self) -> 'QStencilOperationArguments.Operation': ... + def faceMode(self) -> 'QStencilOperationArguments.FaceMode': ... + + class QStencilTest('QRenderState'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def back(self) -> 'QStencilTestArguments': ... + def front(self) -> 'QStencilTestArguments': ... + + class QStencilTestArguments(QtCore.QObject): + + class StencilFunction(int): ... + Never = ... # type: 'QStencilTestArguments.StencilFunction' + Always = ... # type: 'QStencilTestArguments.StencilFunction' + Less = ... # type: 'QStencilTestArguments.StencilFunction' + LessOrEqual = ... # type: 'QStencilTestArguments.StencilFunction' + Equal = ... # type: 'QStencilTestArguments.StencilFunction' + GreaterOrEqual = ... # type: 'QStencilTestArguments.StencilFunction' + Greater = ... # type: 'QStencilTestArguments.StencilFunction' + NotEqual = ... # type: 'QStencilTestArguments.StencilFunction' + + class StencilFaceMode(int): ... + Front = ... # type: 'QStencilTestArguments.StencilFaceMode' + Back = ... # type: 'QStencilTestArguments.StencilFaceMode' + FrontAndBack = ... # type: 'QStencilTestArguments.StencilFaceMode' + + def faceModeChanged(self, faceMode: 'QStencilTestArguments.StencilFaceMode') -> None: ... + def referenceValueChanged(self, referenceValue: int) -> None: ... + def stencilFunctionChanged(self, stencilFunction: 'QStencilTestArguments.StencilFunction') -> None: ... + def comparisonMaskChanged(self, comparisonMask: int) -> None: ... + def setStencilFunction(self, stencilFunction: 'QStencilTestArguments.StencilFunction') -> None: ... + def setReferenceValue(self, referenceValue: int) -> None: ... + def setComparisonMask(self, comparisonMask: int) -> None: ... + def faceMode(self) -> 'QStencilTestArguments.StencilFaceMode': ... + def stencilFunction(self) -> 'QStencilTestArguments.StencilFunction': ... + def referenceValue(self) -> int: ... + def comparisonMask(self) -> int: ... + + class QSubtreeEnabler('QFrameGraphNode'): + + class Enablement(int): ... + Persistent = ... # type: 'QSubtreeEnabler.Enablement' + SingleShot = ... # type: 'QSubtreeEnabler.Enablement' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def enablementChanged(self, enablement: 'QSubtreeEnabler.Enablement') -> None: ... + def requestUpdate(self) -> None: ... + def setEnablement(self, enablement: 'QSubtreeEnabler.Enablement') -> None: ... + def enablement(self) -> 'QSubtreeEnabler.Enablement': ... + + class QTechnique(Qt3DCore.QNode): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def graphicsApiFilter(self) -> 'QGraphicsApiFilter': ... + def renderPasses(self) -> typing.List['QRenderPass']: ... + def removeRenderPass(self, pass_: 'QRenderPass') -> None: ... + def addRenderPass(self, pass_: 'QRenderPass') -> None: ... + def parameters(self) -> typing.List['QParameter']: ... + def removeParameter(self, p: 'QParameter') -> None: ... + def addParameter(self, p: 'QParameter') -> None: ... + def filterKeys(self) -> typing.List['QFilterKey']: ... + def removeFilterKey(self, filterKey: 'QFilterKey') -> None: ... + def addFilterKey(self, filterKey: 'QFilterKey') -> None: ... + + class QTechniqueFilter('QFrameGraphNode'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def parameters(self) -> typing.List['QParameter']: ... + def removeParameter(self, p: 'QParameter') -> None: ... + def addParameter(self, p: 'QParameter') -> None: ... + def removeMatch(self, filterKey: 'QFilterKey') -> None: ... + def addMatch(self, filterKey: 'QFilterKey') -> None: ... + def matchAll(self) -> typing.List['QFilterKey']: ... + + class QTexture1D('QAbstractTexture'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + class QTexture1DArray('QAbstractTexture'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + class QTexture2D('QAbstractTexture'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + class QTexture2DArray('QAbstractTexture'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + class QTexture3D('QAbstractTexture'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + class QTextureCubeMap('QAbstractTexture'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + class QTextureCubeMapArray('QAbstractTexture'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + class QTexture2DMultisample('QAbstractTexture'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + class QTexture2DMultisampleArray('QAbstractTexture'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + class QTextureRectangle('QAbstractTexture'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + class QTextureBuffer('QAbstractTexture'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + class QTextureLoader('QAbstractTexture'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def mirroredChanged(self, mirrored: bool) -> None: ... + def setMirrored(self, mirrored: bool) -> None: ... + def isMirrored(self) -> bool: ... + def sourceChanged(self, source: QtCore.QUrl) -> None: ... + def setSource(self, source: QtCore.QUrl) -> None: ... + def source(self) -> QtCore.QUrl: ... + + class QSharedGLTexture('QAbstractTexture'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def textureIdChanged(self, textureId: int) -> None: ... + def setTextureId(self, id: int) -> None: ... + def textureId(self) -> int: ... + + class QTextureData(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextureData') -> None: ... + + def addImageData(self, imageData: 'QTextureImageData') -> None: ... + def imageData(self) -> typing.List[QTextureImageData]: ... + def setComparisonMode(self, comparisonMode: 'QAbstractTexture.ComparisonMode') -> None: ... + def comparisonMode(self) -> 'QAbstractTexture.ComparisonMode': ... + def setComparisonFunction(self, comparisonFunction: 'QAbstractTexture.ComparisonFunction') -> None: ... + def comparisonFunction(self) -> 'QAbstractTexture.ComparisonFunction': ... + def setWrapModeZ(self, wrapModeZ: 'QTextureWrapMode.WrapMode') -> None: ... + def wrapModeZ(self) -> 'QTextureWrapMode.WrapMode': ... + def setWrapModeY(self, wrapModeY: 'QTextureWrapMode.WrapMode') -> None: ... + def wrapModeY(self) -> 'QTextureWrapMode.WrapMode': ... + def setWrapModeX(self, wrapModeX: 'QTextureWrapMode.WrapMode') -> None: ... + def wrapModeX(self) -> 'QTextureWrapMode.WrapMode': ... + def setMagnificationFilter(self, filter: 'QAbstractTexture.Filter') -> None: ... + def magnificationFilter(self) -> 'QAbstractTexture.Filter': ... + def setMinificationFilter(self, filter: 'QAbstractTexture.Filter') -> None: ... + def minificationFilter(self) -> 'QAbstractTexture.Filter': ... + def setMaximumAnisotropy(self, maximumAnisotropy: float) -> None: ... + def maximumAnisotropy(self) -> float: ... + def setAutoMipMapGenerationEnabled(self, isAutoMipMapGenerationEnabled: bool) -> None: ... + def isAutoMipMapGenerationEnabled(self) -> bool: ... + def setLayers(self, layers: int) -> None: ... + def layers(self) -> int: ... + def setDepth(self, depth: int) -> None: ... + def depth(self) -> int: ... + def setHeight(self, height: int) -> None: ... + def height(self) -> int: ... + def setWidth(self, width: int) -> None: ... + def width(self) -> int: ... + def setFormat(self, a0: 'QAbstractTexture.TextureFormat') -> None: ... + def format(self) -> 'QAbstractTexture.TextureFormat': ... + def setTarget(self, target: 'QAbstractTexture.Target') -> None: ... + def target(self) -> 'QAbstractTexture.Target': ... + + class QTextureDataUpdate(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QTextureDataUpdate') -> None: ... + + def setData(self, data: 'QTextureImageData') -> None: ... + def setFace(self, face: 'QAbstractTexture.CubeMapFace') -> None: ... + def setMipLevel(self, mipLevel: int) -> None: ... + def setLayer(self, layer: int) -> None: ... + def setZ(self, z: int) -> None: ... + def setY(self, y: int) -> None: ... + def setX(self, x: int) -> None: ... + def data(self) -> 'QTextureImageData': ... + def face(self) -> 'QAbstractTexture.CubeMapFace': ... + def mipLevel(self) -> int: ... + def layer(self) -> int: ... + def z(self) -> int: ... + def y(self) -> int: ... + def x(self) -> int: ... + def swap(self, other: 'QTextureDataUpdate') -> None: ... + + class QTextureGenerator('QAbstractFunctor'): + + def __call__(self) -> 'QTextureData': ... + + class QTextureImage('QAbstractTextureImage'): + + class Status(int): ... + None = ... # type: 'QTextureImage.Status' + Loading = ... # type: 'QTextureImage.Status' + Ready = ... # type: 'QTextureImage.Status' + Error = ... # type: 'QTextureImage.Status' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def mirroredChanged(self, mirrored: bool) -> None: ... + def setMirrored(self, mirrored: bool) -> None: ... + def isMirrored(self) -> bool: ... + def setStatus(self, status: 'QTextureImage.Status') -> None: ... + def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ... + def statusChanged(self, status: 'QTextureImage.Status') -> None: ... + def sourceChanged(self, source: QtCore.QUrl) -> None: ... + def setSource(self, source: QtCore.QUrl) -> None: ... + def status(self) -> 'QTextureImage.Status': ... + def source(self) -> QtCore.QUrl: ... + + class QTextureImageData(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextureImageData') -> None: ... + + def data(self, layer: int = ..., face: int = ..., mipmapLevel: int = ...) -> QtCore.QByteArray: ... + def setData(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], blockSize: int, isCompressed: bool = ...) -> None: ... + def setImage(self, a0: QtGui.QImage) -> None: ... + def setPixelType(self, pixelType: QtGui.QOpenGLTexture.PixelType) -> None: ... + def setPixelFormat(self, pixelFormat: QtGui.QOpenGLTexture.PixelFormat) -> None: ... + def setFormat(self, format: QtGui.QOpenGLTexture.TextureFormat) -> None: ... + def setTarget(self, target: QtGui.QOpenGLTexture.Target) -> None: ... + def pixelType(self) -> QtGui.QOpenGLTexture.PixelType: ... + def pixelFormat(self) -> QtGui.QOpenGLTexture.PixelFormat: ... + def format(self) -> QtGui.QOpenGLTexture.TextureFormat: ... + def target(self) -> QtGui.QOpenGLTexture.Target: ... + def setFaces(self, faces: int) -> None: ... + def setMipLevels(self, mipLevels: int) -> None: ... + def setLayers(self, layers: int) -> None: ... + def setDepth(self, depth: int) -> None: ... + def setHeight(self, height: int) -> None: ... + def setWidth(self, width: int) -> None: ... + def faces(self) -> int: ... + def mipLevels(self) -> int: ... + def layers(self) -> int: ... + def depth(self) -> int: ... + def height(self) -> int: ... + def width(self) -> int: ... + def isCompressed(self) -> bool: ... + def cleanup(self) -> None: ... + + class QTextureImageDataGenerator('QAbstractFunctor'): + + def __call__(self) -> 'QTextureImageData': ... + + class QTextureWrapMode(QtCore.QObject): + + class WrapMode(int): ... + Repeat = ... # type: 'QTextureWrapMode.WrapMode' + MirroredRepeat = ... # type: 'QTextureWrapMode.WrapMode' + ClampToEdge = ... # type: 'QTextureWrapMode.WrapMode' + ClampToBorder = ... # type: 'QTextureWrapMode.WrapMode' + + @typing.overload + def __init__(self, wrapMode: 'QTextureWrapMode.WrapMode' = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, x: 'QTextureWrapMode.WrapMode', y: 'QTextureWrapMode.WrapMode', z: 'QTextureWrapMode.WrapMode', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def zChanged(self, z: 'QTextureWrapMode.WrapMode') -> None: ... + def yChanged(self, y: 'QTextureWrapMode.WrapMode') -> None: ... + def xChanged(self, x: 'QTextureWrapMode.WrapMode') -> None: ... + def setZ(self, z: 'QTextureWrapMode.WrapMode') -> None: ... + def setY(self, y: 'QTextureWrapMode.WrapMode') -> None: ... + def setX(self, x: 'QTextureWrapMode.WrapMode') -> None: ... + def z(self) -> 'QTextureWrapMode.WrapMode': ... + def y(self) -> 'QTextureWrapMode.WrapMode': ... + def x(self) -> 'QTextureWrapMode.WrapMode': ... + + class QViewport('QFrameGraphNode'): + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def gammaChanged(self, gamma: float) -> None: ... + def setGamma(self, gamma: float) -> None: ... + def gamma(self) -> float: ... + def normalizedRectChanged(self, normalizedRect: QtCore.QRectF) -> None: ... + def setNormalizedRect(self, normalizedRect: QtCore.QRectF) -> None: ... + def normalizedRect(self) -> QtCore.QRectF: ... + + class QWaitFence('QFrameGraphNode'): + + class HandleType(int): ... + NoHandle = ... # type: 'QWaitFence.HandleType' + OpenGLFenceId = ... # type: 'QWaitFence.HandleType' + + def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ... + + def handleChanged(self, handle: typing.Any) -> None: ... + def handleTypeChanged(self, handleType: 'QWaitFence.HandleType') -> None: ... + def timeoutChanged(self, timeoutChanged: int) -> None: ... + def waitOnCPUChanged(self, waitOnCPU: bool) -> None: ... + def setTimeout(self, timeout: int) -> None: ... + def timeout(self) -> int: ... + def setWaitOnCPU(self, waitOnCPU: bool) -> None: ... + def waitOnCPU(self) -> bool: ... + def handle(self) -> typing.Any: ... + def handleType(self) -> 'QWaitFence.HandleType': ... + def setHandle(self, handle: typing.Any) -> None: ... + def setHandleType(self, type: 'QWaitFence.HandleType') -> None: ... From 2ed427f936deb04788ffc660c4267dba987a0467 Mon Sep 17 00:00:00 2001 From: Stefan Lehmann Date: Mon, 4 May 2020 17:13:34 +0200 Subject: [PATCH 2/3] Add QtWebkit stubs --- PyQt5-stubs/QtWebChannel.pyi | 56 +++ PyQt5-stubs/QtWebEngine.pyi | 152 ++++++ PyQt5-stubs/QtWebEngineCore.pyi | 290 +++++++++++ PyQt5-stubs/QtWebEngineWidgets.pyi | 762 +++++++++++++++++++++++++++++ PyQt5-stubs/QtWebKit.pyi | 427 ++++++++++++++++ PyQt5-stubs/QtWebKitWidgets.pyi | 625 +++++++++++++++++++++++ PyQt5-stubs/QtWebSockets.pyi | 196 ++++++++ 7 files changed, 2508 insertions(+) create mode 100644 PyQt5-stubs/QtWebChannel.pyi create mode 100644 PyQt5-stubs/QtWebEngine.pyi create mode 100644 PyQt5-stubs/QtWebEngineCore.pyi create mode 100644 PyQt5-stubs/QtWebEngineWidgets.pyi create mode 100644 PyQt5-stubs/QtWebKit.pyi create mode 100644 PyQt5-stubs/QtWebKitWidgets.pyi create mode 100644 PyQt5-stubs/QtWebSockets.pyi diff --git a/PyQt5-stubs/QtWebChannel.pyi b/PyQt5-stubs/QtWebChannel.pyi new file mode 100644 index 00000000..51dacce5 --- /dev/null +++ b/PyQt5-stubs/QtWebChannel.pyi @@ -0,0 +1,56 @@ +# The PEP 484 type hints stub file for the QtWebChannel module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2020 Riverbank Computing Limited +# +# 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 sip + +from PyQt5 import QtCore + +# 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] + + +class QWebChannel(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def disconnectFrom(self, transport: 'QWebChannelAbstractTransport') -> None: ... + def connectTo(self, transport: 'QWebChannelAbstractTransport') -> None: ... + def blockUpdatesChanged(self, block: bool) -> None: ... + def setBlockUpdates(self, block: bool) -> None: ... + def blockUpdates(self) -> bool: ... + def deregisterObject(self, object: QtCore.QObject) -> None: ... + def registerObject(self, id: str, object: QtCore.QObject) -> None: ... + def registeredObjects(self) -> typing.Dict[str, QtCore.QObject]: ... + def registerObjects(self, objects: typing.Dict[str, QtCore.QObject]) -> None: ... + + +class QWebChannelAbstractTransport(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def messageReceived(self, message: typing.Dict[str, typing.Union[QtCore.QJsonValue, QtCore.QJsonValue.Type, typing.Iterable[QtCore.QJsonValue], bool, int, float, str]], transport: 'QWebChannelAbstractTransport') -> None: ... + def sendMessage(self, message: typing.Dict[str, typing.Union[QtCore.QJsonValue, QtCore.QJsonValue.Type, typing.Iterable[QtCore.QJsonValue], bool, int, float, str]]) -> None: ... diff --git a/PyQt5-stubs/QtWebEngine.pyi b/PyQt5-stubs/QtWebEngine.pyi new file mode 100644 index 00000000..0f3f5147 --- /dev/null +++ b/PyQt5-stubs/QtWebEngine.pyi @@ -0,0 +1,152 @@ +# The PEP 484 type hints stub file for the QtWebEngine module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQtWebEngine. +# +# 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 sip + +from PyQt5 import QtWebEngineCore + +# 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], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QQuickWebEngineProfile(QtCore.QObject): + + class PersistentCookiesPolicy(int): ... + NoPersistentCookies = ... # type: 'QQuickWebEngineProfile.PersistentCookiesPolicy' + AllowPersistentCookies = ... # type: 'QQuickWebEngineProfile.PersistentCookiesPolicy' + ForcePersistentCookies = ... # type: 'QQuickWebEngineProfile.PersistentCookiesPolicy' + + class HttpCacheType(int): ... + MemoryHttpCache = ... # type: 'QQuickWebEngineProfile.HttpCacheType' + DiskHttpCache = ... # type: 'QQuickWebEngineProfile.HttpCacheType' + NoCache = ... # type: 'QQuickWebEngineProfile.HttpCacheType' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def presentNotification(self, notification: QtWebEngineCore.QWebEngineNotification) -> None: ... + def downloadPathChanged(self) -> None: ... + def useForGlobalCertificateVerificationChanged(self) -> None: ... + def clientCertificateStore(self) -> QtWebEngineCore.QWebEngineClientCertificateStore: ... + def setDownloadPath(self, path: str) -> None: ... + def downloadPath(self) -> str: ... + def isUsedForGlobalCertificateVerification(self) -> bool: ... + def setUseForGlobalCertificateVerification(self, b: bool) -> None: ... + def spellCheckEnabledChanged(self) -> None: ... + def spellCheckLanguagesChanged(self) -> None: ... + def isSpellCheckEnabled(self) -> bool: ... + def setSpellCheckEnabled(self, enabled: bool) -> None: ... + def spellCheckLanguages(self) -> typing.List[str]: ... + def setSpellCheckLanguages(self, languages: typing.Iterable[str]) -> None: ... + def httpAcceptLanguageChanged(self) -> None: ... + def httpCacheMaximumSizeChanged(self) -> None: ... + def persistentCookiesPolicyChanged(self) -> None: ... + def httpCacheTypeChanged(self) -> None: ... + def httpUserAgentChanged(self) -> None: ... + def cachePathChanged(self) -> None: ... + def persistentStoragePathChanged(self) -> None: ... + def offTheRecordChanged(self) -> None: ... + def storageNameChanged(self) -> None: ... + @staticmethod + def defaultProfile() -> 'QQuickWebEngineProfile': ... + def clearHttpCache(self) -> None: ... + def removeAllUrlSchemeHandlers(self) -> None: ... + def removeUrlSchemeHandler(self, a0: QtWebEngineCore.QWebEngineUrlSchemeHandler) -> None: ... + def removeUrlScheme(self, scheme: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def installUrlSchemeHandler(self, scheme: typing.Union[QtCore.QByteArray, bytes, bytearray], a1: QtWebEngineCore.QWebEngineUrlSchemeHandler) -> None: ... + def urlSchemeHandler(self, a0: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> QtWebEngineCore.QWebEngineUrlSchemeHandler: ... + def setRequestInterceptor(self, interceptor: QtWebEngineCore.QWebEngineUrlRequestInterceptor) -> None: ... + def setUrlRequestInterceptor(self, interceptor: QtWebEngineCore.QWebEngineUrlRequestInterceptor) -> None: ... + def cookieStore(self) -> QtWebEngineCore.QWebEngineCookieStore: ... + def setHttpAcceptLanguage(self, httpAcceptLanguage: str) -> None: ... + def httpAcceptLanguage(self) -> str: ... + def setHttpCacheMaximumSize(self, maxSize: int) -> None: ... + def httpCacheMaximumSize(self) -> int: ... + def setPersistentCookiesPolicy(self, a0: 'QQuickWebEngineProfile.PersistentCookiesPolicy') -> None: ... + def persistentCookiesPolicy(self) -> 'QQuickWebEngineProfile.PersistentCookiesPolicy': ... + def setHttpCacheType(self, a0: 'QQuickWebEngineProfile.HttpCacheType') -> None: ... + def httpCacheType(self) -> 'QQuickWebEngineProfile.HttpCacheType': ... + def setHttpUserAgent(self, userAgent: str) -> None: ... + def httpUserAgent(self) -> str: ... + def setCachePath(self, path: str) -> None: ... + def cachePath(self) -> str: ... + def setPersistentStoragePath(self, path: str) -> None: ... + def persistentStoragePath(self) -> str: ... + def setOffTheRecord(self, offTheRecord: bool) -> None: ... + def isOffTheRecord(self) -> bool: ... + def setStorageName(self, name: str) -> None: ... + def storageName(self) -> str: ... + + +class QQuickWebEngineScript(QtCore.QObject): + + class ScriptWorldId(int): ... + MainWorld = ... # type: 'QQuickWebEngineScript.ScriptWorldId' + ApplicationWorld = ... # type: 'QQuickWebEngineScript.ScriptWorldId' + UserWorld = ... # type: 'QQuickWebEngineScript.ScriptWorldId' + + class InjectionPoint(int): ... + Deferred = ... # type: 'QQuickWebEngineScript.InjectionPoint' + DocumentReady = ... # type: 'QQuickWebEngineScript.InjectionPoint' + DocumentCreation = ... # type: 'QQuickWebEngineScript.InjectionPoint' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def timerEvent(self, e: QtCore.QTimerEvent) -> None: ... + def runOnSubframesChanged(self, on: bool) -> None: ... + def worldIdChanged(self, scriptWorldId: 'QQuickWebEngineScript.ScriptWorldId') -> None: ... + def injectionPointChanged(self, injectionPoint: 'QQuickWebEngineScript.InjectionPoint') -> None: ... + def sourceCodeChanged(self, code: str) -> None: ... + def sourceUrlChanged(self, url: QtCore.QUrl) -> None: ... + def nameChanged(self, name: str) -> None: ... + def setRunOnSubframes(self, on: bool) -> None: ... + def setWorldId(self, scriptWorldId: 'QQuickWebEngineScript.ScriptWorldId') -> None: ... + def setInjectionPoint(self, injectionPoint: 'QQuickWebEngineScript.InjectionPoint') -> None: ... + def setSourceCode(self, code: str) -> None: ... + def setSourceUrl(self, url: QtCore.QUrl) -> None: ... + def setName(self, name: str) -> None: ... + def runOnSubframes(self) -> bool: ... + def worldId(self) -> 'QQuickWebEngineScript.ScriptWorldId': ... + def injectionPoint(self) -> 'QQuickWebEngineScript.InjectionPoint': ... + def sourceCode(self) -> str: ... + def sourceUrl(self) -> QtCore.QUrl: ... + def name(self) -> str: ... + def toString(self) -> str: ... + + +class QtWebEngine(sip.simplewrapper): + + def initialize(self) -> None: ... + + +PYQT_WEBENGINE_VERSION = ... # type: int +PYQT_WEBENGINE_VERSION_STR = ... # type: str diff --git a/PyQt5-stubs/QtWebEngineCore.pyi b/PyQt5-stubs/QtWebEngineCore.pyi new file mode 100644 index 00000000..d8ec94d7 --- /dev/null +++ b/PyQt5-stubs/QtWebEngineCore.pyi @@ -0,0 +1,290 @@ +# The PEP 484 type hints stub file for the QtWebEngineCore module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQtWebEngine. +# +# 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 sip + +from PyQt5 import QtNetwork +from PyQt5 import QtGui +from PyQt5 import QtCore + +# 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], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QtWebEngineCore(sip.simplewrapper): ... + + +class QWebEngineClientCertificateStore(sip.simplewrapper): + + def clear(self) -> None: ... + def remove(self, certificate: QtNetwork.QSslCertificate) -> None: ... + def certificates(self) -> typing.List[QtNetwork.QSslCertificate]: ... + def add(self, certificate: QtNetwork.QSslCertificate, privateKey: QtNetwork.QSslKey) -> None: ... + + +class QWebEngineCookieStore(QtCore.QObject): + + class FilterRequest(sip.simplewrapper): + + firstPartyUrl = ... # type: QtCore.QUrl + origin = ... # type: QtCore.QUrl + thirdParty = ... # type: bool + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QWebEngineCookieStore.FilterRequest') -> None: ... + + def setCookieFilter(self, filterCallback: typing.Optional[typing.Callable[[FilterRequest], bool]] = ...) -> None: ... + def cookieRemoved(self, cookie: QtNetwork.QNetworkCookie) -> None: ... + def cookieAdded(self, cookie: QtNetwork.QNetworkCookie) -> None: ... + def loadAllCookies(self) -> None: ... + def deleteAllCookies(self) -> None: ... + def deleteSessionCookies(self) -> None: ... + def deleteCookie(self, cookie: QtNetwork.QNetworkCookie, origin: QtCore.QUrl = ...) -> None: ... + def setCookie(self, cookie: QtNetwork.QNetworkCookie, origin: QtCore.QUrl = ...) -> None: ... + + +class QWebEngineFindTextResult(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QWebEngineFindTextResult') -> None: ... + + def activeMatch(self) -> int: ... + def numberOfMatches(self) -> int: ... + + +class QWebEngineHttpRequest(sip.simplewrapper): + + class Method(int): ... + Get = ... # type: 'QWebEngineHttpRequest.Method' + Post = ... # type: 'QWebEngineHttpRequest.Method' + + @typing.overload + def __init__(self, url: QtCore.QUrl = ..., method: 'QWebEngineHttpRequest.Method' = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QWebEngineHttpRequest') -> None: ... + + def unsetHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def setHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray], value: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def header(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> QtCore.QByteArray: ... + def headers(self) -> typing.List[QtCore.QByteArray]: ... + def hasHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ... + def setPostData(self, postData: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def postData(self) -> QtCore.QByteArray: ... + def setUrl(self, url: QtCore.QUrl) -> None: ... + def url(self) -> QtCore.QUrl: ... + def setMethod(self, method: 'QWebEngineHttpRequest.Method') -> None: ... + def method(self) -> 'QWebEngineHttpRequest.Method': ... + def swap(self, other: 'QWebEngineHttpRequest') -> None: ... + @staticmethod + def postRequest(url: QtCore.QUrl, postData: typing.Dict[str, str]) -> 'QWebEngineHttpRequest': ... + + +class QWebEngineNotification(QtCore.QObject): + + def closed(self) -> None: ... + def close(self) -> None: ... + def click(self) -> None: ... + def show(self) -> None: ... + def direction(self) -> QtCore.Qt.LayoutDirection: ... + def language(self) -> str: ... + def tag(self) -> str: ... + def message(self) -> str: ... + def title(self) -> str: ... + def icon(self) -> QtGui.QImage: ... + def origin(self) -> QtCore.QUrl: ... + def matches(self, other: 'QWebEngineNotification') -> bool: ... + + +class QWebEngineQuotaRequest(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QWebEngineQuotaRequest') -> None: ... + + def requestedSize(self) -> int: ... + def origin(self) -> QtCore.QUrl: ... + def reject(self) -> None: ... + def accept(self) -> None: ... + + +class QWebEngineRegisterProtocolHandlerRequest(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QWebEngineRegisterProtocolHandlerRequest') -> None: ... + + def scheme(self) -> str: ... + def origin(self) -> QtCore.QUrl: ... + def reject(self) -> None: ... + def accept(self) -> None: ... + + +class QWebEngineUrlRequestInfo(sip.simplewrapper): + + class NavigationType(int): ... + NavigationTypeLink = ... # type: 'QWebEngineUrlRequestInfo.NavigationType' + NavigationTypeTyped = ... # type: 'QWebEngineUrlRequestInfo.NavigationType' + NavigationTypeFormSubmitted = ... # type: 'QWebEngineUrlRequestInfo.NavigationType' + NavigationTypeBackForward = ... # type: 'QWebEngineUrlRequestInfo.NavigationType' + NavigationTypeReload = ... # type: 'QWebEngineUrlRequestInfo.NavigationType' + NavigationTypeRedirect = ... # type: 'QWebEngineUrlRequestInfo.NavigationType' + NavigationTypeOther = ... # type: 'QWebEngineUrlRequestInfo.NavigationType' + + class ResourceType(int): ... + ResourceTypeMainFrame = ... # type: 'QWebEngineUrlRequestInfo.ResourceType' + ResourceTypeSubFrame = ... # type: 'QWebEngineUrlRequestInfo.ResourceType' + ResourceTypeStylesheet = ... # type: 'QWebEngineUrlRequestInfo.ResourceType' + ResourceTypeScript = ... # type: 'QWebEngineUrlRequestInfo.ResourceType' + ResourceTypeImage = ... # type: 'QWebEngineUrlRequestInfo.ResourceType' + ResourceTypeFontResource = ... # type: 'QWebEngineUrlRequestInfo.ResourceType' + ResourceTypeSubResource = ... # type: 'QWebEngineUrlRequestInfo.ResourceType' + ResourceTypeObject = ... # type: 'QWebEngineUrlRequestInfo.ResourceType' + ResourceTypeMedia = ... # type: 'QWebEngineUrlRequestInfo.ResourceType' + ResourceTypeWorker = ... # type: 'QWebEngineUrlRequestInfo.ResourceType' + ResourceTypeSharedWorker = ... # type: 'QWebEngineUrlRequestInfo.ResourceType' + ResourceTypePrefetch = ... # type: 'QWebEngineUrlRequestInfo.ResourceType' + ResourceTypeFavicon = ... # type: 'QWebEngineUrlRequestInfo.ResourceType' + ResourceTypeXhr = ... # type: 'QWebEngineUrlRequestInfo.ResourceType' + ResourceTypePing = ... # type: 'QWebEngineUrlRequestInfo.ResourceType' + ResourceTypeServiceWorker = ... # type: 'QWebEngineUrlRequestInfo.ResourceType' + ResourceTypeUnknown = ... # type: 'QWebEngineUrlRequestInfo.ResourceType' + ResourceTypeCspReport = ... # type: 'QWebEngineUrlRequestInfo.ResourceType' + ResourceTypePluginResource = ... # type: 'QWebEngineUrlRequestInfo.ResourceType' + ResourceTypeNavigationPreloadMainFrame = ... # type: 'QWebEngineUrlRequestInfo.ResourceType' + ResourceTypeNavigationPreloadSubFrame = ... # type: 'QWebEngineUrlRequestInfo.ResourceType' + + def initiator(self) -> QtCore.QUrl: ... + def setHttpHeader(self, name: typing.Union[QtCore.QByteArray, bytes, bytearray], value: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def redirect(self, url: QtCore.QUrl) -> None: ... + def block(self, shouldBlock: bool) -> None: ... + def requestMethod(self) -> QtCore.QByteArray: ... + def firstPartyUrl(self) -> QtCore.QUrl: ... + def requestUrl(self) -> QtCore.QUrl: ... + def navigationType(self) -> 'QWebEngineUrlRequestInfo.NavigationType': ... + def resourceType(self) -> 'QWebEngineUrlRequestInfo.ResourceType': ... + + +class QWebEngineUrlRequestInterceptor(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def interceptRequest(self, info: QWebEngineUrlRequestInfo) -> None: ... + + +class QWebEngineUrlRequestJob(QtCore.QObject): + + class Error(int): ... + NoError = ... # type: 'QWebEngineUrlRequestJob.Error' + UrlNotFound = ... # type: 'QWebEngineUrlRequestJob.Error' + UrlInvalid = ... # type: 'QWebEngineUrlRequestJob.Error' + RequestAborted = ... # type: 'QWebEngineUrlRequestJob.Error' + RequestDenied = ... # type: 'QWebEngineUrlRequestJob.Error' + RequestFailed = ... # type: 'QWebEngineUrlRequestJob.Error' + + def requestHeaders(self) -> typing.Dict[QtCore.QByteArray, QtCore.QByteArray]: ... + def initiator(self) -> QtCore.QUrl: ... + def redirect(self, url: QtCore.QUrl) -> None: ... + def fail(self, error: 'QWebEngineUrlRequestJob.Error') -> None: ... + def reply(self, contentType: typing.Union[QtCore.QByteArray, bytes, bytearray], device: QtCore.QIODevice) -> None: ... + def requestMethod(self) -> QtCore.QByteArray: ... + def requestUrl(self) -> QtCore.QUrl: ... + + +class QWebEngineUrlScheme(sip.simplewrapper): + + class Flag(int): ... + SecureScheme = ... # type: 'QWebEngineUrlScheme.Flag' + LocalScheme = ... # type: 'QWebEngineUrlScheme.Flag' + LocalAccessAllowed = ... # type: 'QWebEngineUrlScheme.Flag' + NoAccessAllowed = ... # type: 'QWebEngineUrlScheme.Flag' + ServiceWorkersAllowed = ... # type: 'QWebEngineUrlScheme.Flag' + ViewSourceAllowed = ... # type: 'QWebEngineUrlScheme.Flag' + ContentSecurityPolicyIgnored = ... # type: 'QWebEngineUrlScheme.Flag' + CorsEnabled = ... # type: 'QWebEngineUrlScheme.Flag' + + class SpecialPort(int): ... + PortUnspecified = ... # type: 'QWebEngineUrlScheme.SpecialPort' + + class Syntax(int): ... + HostPortAndUserInformation = ... # type: 'QWebEngineUrlScheme.Syntax' + HostAndPort = ... # type: 'QWebEngineUrlScheme.Syntax' + Host = ... # type: 'QWebEngineUrlScheme.Syntax' + Path = ... # type: 'QWebEngineUrlScheme.Syntax' + + class Flags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QWebEngineUrlScheme.Flags', 'QWebEngineUrlScheme.Flag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QWebEngineUrlScheme.Flags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QWebEngineUrlScheme.Flags': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, name: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + @typing.overload + def __init__(self, that: 'QWebEngineUrlScheme') -> None: ... + + @staticmethod + def schemeByName(name: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> 'QWebEngineUrlScheme': ... + @staticmethod + def registerScheme(scheme: 'QWebEngineUrlScheme') -> None: ... + def setFlags(self, newValue: typing.Union['QWebEngineUrlScheme.Flags', 'QWebEngineUrlScheme.Flag']) -> None: ... + def flags(self) -> 'QWebEngineUrlScheme.Flags': ... + def setDefaultPort(self, newValue: int) -> None: ... + def defaultPort(self) -> int: ... + def setSyntax(self, newValue: 'QWebEngineUrlScheme.Syntax') -> None: ... + def syntax(self) -> 'QWebEngineUrlScheme.Syntax': ... + def setName(self, newValue: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def name(self) -> QtCore.QByteArray: ... + + +class QWebEngineUrlSchemeHandler(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def requestStarted(self, a0: QWebEngineUrlRequestJob) -> None: ... diff --git a/PyQt5-stubs/QtWebEngineWidgets.pyi b/PyQt5-stubs/QtWebEngineWidgets.pyi new file mode 100644 index 00000000..3de12a77 --- /dev/null +++ b/PyQt5-stubs/QtWebEngineWidgets.pyi @@ -0,0 +1,762 @@ +# The PEP 484 type hints stub file for the QtWebEngineWidgets module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQtWebEngine. +# +# 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 sip + +from PyQt5 import QtWebChannel +from PyQt5 import QtWebEngineCore +from PyQt5 import QtWidgets +from PyQt5 import QtPrintSupport +from PyQt5 import QtNetwork +from PyQt5 import QtCore + +# 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], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QWebEngineCertificateError(sip.simplewrapper): + + class Error(int): ... + SslPinnedKeyNotInCertificateChain = ... # type: 'QWebEngineCertificateError.Error' + CertificateCommonNameInvalid = ... # type: 'QWebEngineCertificateError.Error' + CertificateDateInvalid = ... # type: 'QWebEngineCertificateError.Error' + CertificateAuthorityInvalid = ... # type: 'QWebEngineCertificateError.Error' + CertificateContainsErrors = ... # type: 'QWebEngineCertificateError.Error' + CertificateNoRevocationMechanism = ... # type: 'QWebEngineCertificateError.Error' + CertificateUnableToCheckRevocation = ... # type: 'QWebEngineCertificateError.Error' + CertificateRevoked = ... # type: 'QWebEngineCertificateError.Error' + CertificateInvalid = ... # type: 'QWebEngineCertificateError.Error' + CertificateWeakSignatureAlgorithm = ... # type: 'QWebEngineCertificateError.Error' + CertificateNonUniqueName = ... # type: 'QWebEngineCertificateError.Error' + CertificateWeakKey = ... # type: 'QWebEngineCertificateError.Error' + CertificateNameConstraintViolation = ... # type: 'QWebEngineCertificateError.Error' + CertificateValidityTooLong = ... # type: 'QWebEngineCertificateError.Error' + CertificateTransparencyRequired = ... # type: 'QWebEngineCertificateError.Error' + + def __init__(self, other: 'QWebEngineCertificateError') -> None: ... + + def certificateChain(self) -> typing.List[QtNetwork.QSslCertificate]: ... + def answered(self) -> bool: ... + def ignoreCertificateError(self) -> None: ... + def rejectCertificate(self) -> None: ... + def deferred(self) -> bool: ... + def defer(self) -> None: ... + def errorDescription(self) -> str: ... + def isOverridable(self) -> bool: ... + def url(self) -> QtCore.QUrl: ... + def error(self) -> 'QWebEngineCertificateError.Error': ... + + +class QWebEngineClientCertificateSelection(sip.simplewrapper): + + def __init__(self, a0: 'QWebEngineClientCertificateSelection') -> None: ... + + def certificates(self) -> typing.List[QtNetwork.QSslCertificate]: ... + def selectNone(self) -> None: ... + def select(self, certificate: QtNetwork.QSslCertificate) -> None: ... + def host(self) -> QtCore.QUrl: ... + + +class QWebEngineContextMenuData(sip.simplewrapper): + + class EditFlag(int): ... + CanUndo = ... # type: 'QWebEngineContextMenuData.EditFlag' + CanRedo = ... # type: 'QWebEngineContextMenuData.EditFlag' + CanCut = ... # type: 'QWebEngineContextMenuData.EditFlag' + CanCopy = ... # type: 'QWebEngineContextMenuData.EditFlag' + CanPaste = ... # type: 'QWebEngineContextMenuData.EditFlag' + CanDelete = ... # type: 'QWebEngineContextMenuData.EditFlag' + CanSelectAll = ... # type: 'QWebEngineContextMenuData.EditFlag' + CanTranslate = ... # type: 'QWebEngineContextMenuData.EditFlag' + CanEditRichly = ... # type: 'QWebEngineContextMenuData.EditFlag' + + class MediaFlag(int): ... + MediaInError = ... # type: 'QWebEngineContextMenuData.MediaFlag' + MediaPaused = ... # type: 'QWebEngineContextMenuData.MediaFlag' + MediaMuted = ... # type: 'QWebEngineContextMenuData.MediaFlag' + MediaLoop = ... # type: 'QWebEngineContextMenuData.MediaFlag' + MediaCanSave = ... # type: 'QWebEngineContextMenuData.MediaFlag' + MediaHasAudio = ... # type: 'QWebEngineContextMenuData.MediaFlag' + MediaCanToggleControls = ... # type: 'QWebEngineContextMenuData.MediaFlag' + MediaControls = ... # type: 'QWebEngineContextMenuData.MediaFlag' + MediaCanPrint = ... # type: 'QWebEngineContextMenuData.MediaFlag' + MediaCanRotate = ... # type: 'QWebEngineContextMenuData.MediaFlag' + + class MediaType(int): ... + MediaTypeNone = ... # type: 'QWebEngineContextMenuData.MediaType' + MediaTypeImage = ... # type: 'QWebEngineContextMenuData.MediaType' + MediaTypeVideo = ... # type: 'QWebEngineContextMenuData.MediaType' + MediaTypeAudio = ... # type: 'QWebEngineContextMenuData.MediaType' + MediaTypeCanvas = ... # type: 'QWebEngineContextMenuData.MediaType' + MediaTypeFile = ... # type: 'QWebEngineContextMenuData.MediaType' + MediaTypePlugin = ... # type: 'QWebEngineContextMenuData.MediaType' + + class MediaFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QWebEngineContextMenuData.MediaFlags', 'QWebEngineContextMenuData.MediaFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QWebEngineContextMenuData.MediaFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QWebEngineContextMenuData.MediaFlags': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + class EditFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QWebEngineContextMenuData.EditFlags', 'QWebEngineContextMenuData.EditFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QWebEngineContextMenuData.EditFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QWebEngineContextMenuData.EditFlags': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QWebEngineContextMenuData') -> None: ... + + def editFlags(self) -> 'QWebEngineContextMenuData.EditFlags': ... + def mediaFlags(self) -> 'QWebEngineContextMenuData.MediaFlags': ... + def spellCheckerSuggestions(self) -> typing.List[str]: ... + def misspelledWord(self) -> str: ... + def isContentEditable(self) -> bool: ... + def mediaType(self) -> 'QWebEngineContextMenuData.MediaType': ... + def mediaUrl(self) -> QtCore.QUrl: ... + def linkUrl(self) -> QtCore.QUrl: ... + def linkText(self) -> str: ... + def selectedText(self) -> str: ... + def position(self) -> QtCore.QPoint: ... + def isValid(self) -> bool: ... + + +class QWebEngineDownloadItem(QtCore.QObject): + + class DownloadInterruptReason(int): ... + NoReason = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason' + FileFailed = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason' + FileAccessDenied = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason' + FileNoSpace = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason' + FileNameTooLong = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason' + FileTooLarge = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason' + FileVirusInfected = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason' + FileTransientError = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason' + FileBlocked = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason' + FileSecurityCheckFailed = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason' + FileTooShort = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason' + FileHashMismatch = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason' + NetworkFailed = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason' + NetworkTimeout = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason' + NetworkDisconnected = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason' + NetworkServerDown = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason' + NetworkInvalidRequest = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason' + ServerFailed = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason' + ServerBadContent = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason' + ServerUnauthorized = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason' + ServerCertProblem = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason' + ServerForbidden = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason' + ServerUnreachable = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason' + UserCanceled = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason' + + class DownloadType(int): ... + Attachment = ... # type: 'QWebEngineDownloadItem.DownloadType' + DownloadAttribute = ... # type: 'QWebEngineDownloadItem.DownloadType' + UserRequested = ... # type: 'QWebEngineDownloadItem.DownloadType' + SavePage = ... # type: 'QWebEngineDownloadItem.DownloadType' + + class SavePageFormat(int): ... + UnknownSaveFormat = ... # type: 'QWebEngineDownloadItem.SavePageFormat' + SingleHtmlSaveFormat = ... # type: 'QWebEngineDownloadItem.SavePageFormat' + CompleteHtmlSaveFormat = ... # type: 'QWebEngineDownloadItem.SavePageFormat' + MimeHtmlSaveFormat = ... # type: 'QWebEngineDownloadItem.SavePageFormat' + + class DownloadState(int): ... + DownloadRequested = ... # type: 'QWebEngineDownloadItem.DownloadState' + DownloadInProgress = ... # type: 'QWebEngineDownloadItem.DownloadState' + DownloadCompleted = ... # type: 'QWebEngineDownloadItem.DownloadState' + DownloadCancelled = ... # type: 'QWebEngineDownloadItem.DownloadState' + DownloadInterrupted = ... # type: 'QWebEngineDownloadItem.DownloadState' + + def setDownloadFileName(self, fileName: str) -> None: ... + def downloadFileName(self) -> str: ... + def setDownloadDirectory(self, directory: str) -> None: ... + def downloadDirectory(self) -> str: ... + def suggestedFileName(self) -> str: ... + def page(self) -> 'QWebEnginePage': ... + def isSavePageDownload(self) -> bool: ... + def isPausedChanged(self, isPaused: bool) -> None: ... + def resume(self) -> None: ... + def pause(self) -> None: ... + def isPaused(self) -> bool: ... + def interruptReasonString(self) -> str: ... + def interruptReason(self) -> 'QWebEngineDownloadItem.DownloadInterruptReason': ... + def type(self) -> 'QWebEngineDownloadItem.DownloadType': ... + def setSavePageFormat(self, format: 'QWebEngineDownloadItem.SavePageFormat') -> None: ... + def savePageFormat(self) -> 'QWebEngineDownloadItem.SavePageFormat': ... + def mimeType(self) -> str: ... + def downloadProgress(self, bytesReceived: int, bytesTotal: int) -> None: ... + def stateChanged(self, state: 'QWebEngineDownloadItem.DownloadState') -> None: ... + def finished(self) -> None: ... + def cancel(self) -> None: ... + def accept(self) -> None: ... + def isFinished(self) -> bool: ... + def setPath(self, path: str) -> None: ... + def path(self) -> str: ... + def url(self) -> QtCore.QUrl: ... + def receivedBytes(self) -> int: ... + def totalBytes(self) -> int: ... + def state(self) -> 'QWebEngineDownloadItem.DownloadState': ... + def id(self) -> int: ... + + +class QWebEngineFullScreenRequest(sip.simplewrapper): + + def __init__(self, a0: 'QWebEngineFullScreenRequest') -> None: ... + + def origin(self) -> QtCore.QUrl: ... + def toggleOn(self) -> bool: ... + def accept(self) -> None: ... + def reject(self) -> None: ... + + +class QWebEngineHistoryItem(sip.simplewrapper): + + def __init__(self, other: 'QWebEngineHistoryItem') -> None: ... + + def swap(self, other: 'QWebEngineHistoryItem') -> None: ... + def isValid(self) -> bool: ... + def iconUrl(self) -> QtCore.QUrl: ... + def lastVisited(self) -> QtCore.QDateTime: ... + def title(self) -> str: ... + def url(self) -> QtCore.QUrl: ... + def originalUrl(self) -> QtCore.QUrl: ... + + +class QWebEngineHistory(sip.simplewrapper): + + def __len__(self) -> int: ... + def count(self) -> int: ... + def currentItemIndex(self) -> int: ... + def itemAt(self, i: int) -> QWebEngineHistoryItem: ... + def forwardItem(self) -> QWebEngineHistoryItem: ... + def currentItem(self) -> QWebEngineHistoryItem: ... + def backItem(self) -> QWebEngineHistoryItem: ... + def goToItem(self, item: QWebEngineHistoryItem) -> None: ... + def forward(self) -> None: ... + def back(self) -> None: ... + def canGoForward(self) -> bool: ... + def canGoBack(self) -> bool: ... + def forwardItems(self, maxItems: int) -> typing.List[QWebEngineHistoryItem]: ... + def backItems(self, maxItems: int) -> typing.List[QWebEngineHistoryItem]: ... + def items(self) -> typing.List[QWebEngineHistoryItem]: ... + def clear(self) -> None: ... + + +class QWebEnginePage(QtCore.QObject): + + class LifecycleState(int): ... + Active = ... # type: 'QWebEnginePage.LifecycleState' + Frozen = ... # type: 'QWebEnginePage.LifecycleState' + Discarded = ... # type: 'QWebEnginePage.LifecycleState' + + class RenderProcessTerminationStatus(int): ... + NormalTerminationStatus = ... # type: 'QWebEnginePage.RenderProcessTerminationStatus' + AbnormalTerminationStatus = ... # type: 'QWebEnginePage.RenderProcessTerminationStatus' + CrashedTerminationStatus = ... # type: 'QWebEnginePage.RenderProcessTerminationStatus' + KilledTerminationStatus = ... # type: 'QWebEnginePage.RenderProcessTerminationStatus' + + class NavigationType(int): ... + NavigationTypeLinkClicked = ... # type: 'QWebEnginePage.NavigationType' + NavigationTypeTyped = ... # type: 'QWebEnginePage.NavigationType' + NavigationTypeFormSubmitted = ... # type: 'QWebEnginePage.NavigationType' + NavigationTypeBackForward = ... # type: 'QWebEnginePage.NavigationType' + NavigationTypeReload = ... # type: 'QWebEnginePage.NavigationType' + NavigationTypeRedirect = ... # type: 'QWebEnginePage.NavigationType' + NavigationTypeOther = ... # type: 'QWebEnginePage.NavigationType' + + class JavaScriptConsoleMessageLevel(int): ... + InfoMessageLevel = ... # type: 'QWebEnginePage.JavaScriptConsoleMessageLevel' + WarningMessageLevel = ... # type: 'QWebEnginePage.JavaScriptConsoleMessageLevel' + ErrorMessageLevel = ... # type: 'QWebEnginePage.JavaScriptConsoleMessageLevel' + + class FileSelectionMode(int): ... + FileSelectOpen = ... # type: 'QWebEnginePage.FileSelectionMode' + FileSelectOpenMultiple = ... # type: 'QWebEnginePage.FileSelectionMode' + + class Feature(int): ... + Notifications = ... # type: 'QWebEnginePage.Feature' + Geolocation = ... # type: 'QWebEnginePage.Feature' + MediaAudioCapture = ... # type: 'QWebEnginePage.Feature' + MediaVideoCapture = ... # type: 'QWebEnginePage.Feature' + MediaAudioVideoCapture = ... # type: 'QWebEnginePage.Feature' + MouseLock = ... # type: 'QWebEnginePage.Feature' + DesktopVideoCapture = ... # type: 'QWebEnginePage.Feature' + DesktopAudioVideoCapture = ... # type: 'QWebEnginePage.Feature' + + class PermissionPolicy(int): ... + PermissionUnknown = ... # type: 'QWebEnginePage.PermissionPolicy' + PermissionGrantedByUser = ... # type: 'QWebEnginePage.PermissionPolicy' + PermissionDeniedByUser = ... # type: 'QWebEnginePage.PermissionPolicy' + + class WebWindowType(int): ... + WebBrowserWindow = ... # type: 'QWebEnginePage.WebWindowType' + WebBrowserTab = ... # type: 'QWebEnginePage.WebWindowType' + WebDialog = ... # type: 'QWebEnginePage.WebWindowType' + WebBrowserBackgroundTab = ... # type: 'QWebEnginePage.WebWindowType' + + class FindFlag(int): ... + FindBackward = ... # type: 'QWebEnginePage.FindFlag' + FindCaseSensitively = ... # type: 'QWebEnginePage.FindFlag' + + class WebAction(int): ... + NoWebAction = ... # type: 'QWebEnginePage.WebAction' + Back = ... # type: 'QWebEnginePage.WebAction' + Forward = ... # type: 'QWebEnginePage.WebAction' + Stop = ... # type: 'QWebEnginePage.WebAction' + Reload = ... # type: 'QWebEnginePage.WebAction' + Cut = ... # type: 'QWebEnginePage.WebAction' + Copy = ... # type: 'QWebEnginePage.WebAction' + Paste = ... # type: 'QWebEnginePage.WebAction' + Undo = ... # type: 'QWebEnginePage.WebAction' + Redo = ... # type: 'QWebEnginePage.WebAction' + SelectAll = ... # type: 'QWebEnginePage.WebAction' + ReloadAndBypassCache = ... # type: 'QWebEnginePage.WebAction' + PasteAndMatchStyle = ... # type: 'QWebEnginePage.WebAction' + OpenLinkInThisWindow = ... # type: 'QWebEnginePage.WebAction' + OpenLinkInNewWindow = ... # type: 'QWebEnginePage.WebAction' + OpenLinkInNewTab = ... # type: 'QWebEnginePage.WebAction' + CopyLinkToClipboard = ... # type: 'QWebEnginePage.WebAction' + DownloadLinkToDisk = ... # type: 'QWebEnginePage.WebAction' + CopyImageToClipboard = ... # type: 'QWebEnginePage.WebAction' + CopyImageUrlToClipboard = ... # type: 'QWebEnginePage.WebAction' + DownloadImageToDisk = ... # type: 'QWebEnginePage.WebAction' + CopyMediaUrlToClipboard = ... # type: 'QWebEnginePage.WebAction' + ToggleMediaControls = ... # type: 'QWebEnginePage.WebAction' + ToggleMediaLoop = ... # type: 'QWebEnginePage.WebAction' + ToggleMediaPlayPause = ... # type: 'QWebEnginePage.WebAction' + ToggleMediaMute = ... # type: 'QWebEnginePage.WebAction' + DownloadMediaToDisk = ... # type: 'QWebEnginePage.WebAction' + InspectElement = ... # type: 'QWebEnginePage.WebAction' + ExitFullScreen = ... # type: 'QWebEnginePage.WebAction' + RequestClose = ... # type: 'QWebEnginePage.WebAction' + Unselect = ... # type: 'QWebEnginePage.WebAction' + SavePage = ... # type: 'QWebEnginePage.WebAction' + OpenLinkInNewBackgroundTab = ... # type: 'QWebEnginePage.WebAction' + ViewSource = ... # type: 'QWebEnginePage.WebAction' + ToggleBold = ... # type: 'QWebEnginePage.WebAction' + ToggleItalic = ... # type: 'QWebEnginePage.WebAction' + ToggleUnderline = ... # type: 'QWebEnginePage.WebAction' + ToggleStrikethrough = ... # type: 'QWebEnginePage.WebAction' + AlignLeft = ... # type: 'QWebEnginePage.WebAction' + AlignCenter = ... # type: 'QWebEnginePage.WebAction' + AlignRight = ... # type: 'QWebEnginePage.WebAction' + AlignJustified = ... # type: 'QWebEnginePage.WebAction' + Indent = ... # type: 'QWebEnginePage.WebAction' + Outdent = ... # type: 'QWebEnginePage.WebAction' + InsertOrderedList = ... # type: 'QWebEnginePage.WebAction' + InsertUnorderedList = ... # type: 'QWebEnginePage.WebAction' + + class FindFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QWebEnginePage.FindFlags', 'QWebEnginePage.FindFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QWebEnginePage.FindFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QWebEnginePage.FindFlags': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, profile: 'QWebEngineProfile', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def findTextFinished(self, result: QtWebEngineCore.QWebEngineFindTextResult) -> None: ... + def recommendedStateChanged(self, state: 'QWebEnginePage.LifecycleState') -> None: ... + def lifecycleStateChanged(self, state: 'QWebEnginePage.LifecycleState') -> None: ... + def visibleChanged(self, visible: bool) -> None: ... + def setVisible(self, visible: bool) -> None: ... + def isVisible(self) -> bool: ... + def recommendedState(self) -> 'QWebEnginePage.LifecycleState': ... + def setLifecycleState(self, state: 'QWebEnginePage.LifecycleState') -> None: ... + def lifecycleState(self) -> 'QWebEnginePage.LifecycleState': ... + def setUrlRequestInterceptor(self, interceptor: QtWebEngineCore.QWebEngineUrlRequestInterceptor) -> None: ... + def printRequested(self) -> None: ... + def selectClientCertificate(self, clientCertSelection: QWebEngineClientCertificateSelection) -> None: ... + def registerProtocolHandlerRequested(self, request: QtWebEngineCore.QWebEngineRegisterProtocolHandlerRequest) -> None: ... + def quotaRequested(self, quotaRequest: QtWebEngineCore.QWebEngineQuotaRequest) -> None: ... + def devToolsPage(self) -> 'QWebEnginePage': ... + def setDevToolsPage(self, page: 'QWebEnginePage') -> None: ... + def inspectedPage(self) -> 'QWebEnginePage': ... + def setInspectedPage(self, page: 'QWebEnginePage') -> None: ... + def download(self, url: QtCore.QUrl, filename: str = ...) -> None: ... + def print(self, printer: QtPrintSupport.QPrinter, resultCallback: typing.Callable[[bool], None]) -> None: ... + def save(self, filePath: str, format: QWebEngineDownloadItem.SavePageFormat = ...) -> None: ... + def replaceMisspelledWord(self, replacement: str) -> None: ... + def pdfPrintingFinished(self, filePath: str, success: bool) -> None: ... + def recentlyAudibleChanged(self, recentlyAudible: bool) -> None: ... + def audioMutedChanged(self, muted: bool) -> None: ... + def contentsSizeChanged(self, size: QtCore.QSizeF) -> None: ... + def scrollPositionChanged(self, position: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def iconChanged(self, icon: QtGui.QIcon) -> None: ... + def contextMenuData(self) -> QWebEngineContextMenuData: ... + @typing.overload + def printToPdf(self, filePath: str, pageLayout: QtGui.QPageLayout = ...) -> None: ... + @typing.overload + def printToPdf(self, resultCallback: typing.Callable[[typing.Union[QtCore.QByteArray, bytes, bytearray]], None], pageLayout: QtGui.QPageLayout = ...) -> None: ... + def recentlyAudible(self) -> bool: ... + def setAudioMuted(self, muted: bool) -> None: ... + def isAudioMuted(self) -> bool: ... + def contentsSize(self) -> QtCore.QSizeF: ... + def scrollPosition(self) -> QtCore.QPointF: ... + def icon(self) -> QtGui.QIcon: ... + def renderProcessTerminated(self, terminationStatus: 'QWebEnginePage.RenderProcessTerminationStatus', exitCode: int) -> None: ... + def fullScreenRequested(self, fullScreenRequest: QWebEngineFullScreenRequest) -> None: ... + def setBackgroundColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def backgroundColor(self) -> QtGui.QColor: ... + def acceptNavigationRequest(self, url: QtCore.QUrl, type: 'QWebEnginePage.NavigationType', isMainFrame: bool) -> bool: ... + @typing.overload + def setWebChannel(self, a0: QtWebChannel.QWebChannel) -> None: ... + @typing.overload + def setWebChannel(self, a0: QtWebChannel.QWebChannel, worldId: int) -> None: ... + def webChannel(self) -> QtWebChannel.QWebChannel: ... + def scripts(self) -> 'QWebEngineScriptCollection': ... + def profile(self) -> 'QWebEngineProfile': ... + def certificateError(self, certificateError: QWebEngineCertificateError) -> bool: ... + def javaScriptConsoleMessage(self, level: 'QWebEnginePage.JavaScriptConsoleMessageLevel', message: str, lineNumber: int, sourceID: str) -> None: ... + def javaScriptPrompt(self, securityOrigin: QtCore.QUrl, msg: str, defaultValue: str) -> typing.Tuple[bool, str]: ... + def javaScriptConfirm(self, securityOrigin: QtCore.QUrl, msg: str) -> bool: ... + def javaScriptAlert(self, securityOrigin: QtCore.QUrl, msg: str) -> None: ... + def chooseFiles(self, mode: 'QWebEnginePage.FileSelectionMode', oldFiles: typing.Iterable[str], acceptedMimeTypes: typing.Iterable[str]) -> typing.List[str]: ... + def createWindow(self, type: 'QWebEnginePage.WebWindowType') -> 'QWebEnginePage': ... + def iconUrlChanged(self, url: QtCore.QUrl) -> None: ... + def urlChanged(self, url: QtCore.QUrl) -> None: ... + def titleChanged(self, title: str) -> None: ... + def proxyAuthenticationRequired(self, requestUrl: QtCore.QUrl, authenticator: QtNetwork.QAuthenticator, proxyHost: str) -> None: ... + def authenticationRequired(self, requestUrl: QtCore.QUrl, authenticator: QtNetwork.QAuthenticator) -> None: ... + def featurePermissionRequestCanceled(self, securityOrigin: QtCore.QUrl, feature: 'QWebEnginePage.Feature') -> None: ... + def featurePermissionRequested(self, securityOrigin: QtCore.QUrl, feature: 'QWebEnginePage.Feature') -> None: ... + def windowCloseRequested(self) -> None: ... + def geometryChangeRequested(self, geom: QtCore.QRect) -> None: ... + def selectionChanged(self) -> None: ... + def linkHovered(self, url: str) -> None: ... + def loadFinished(self, ok: bool) -> None: ... + def loadProgress(self, progress: int) -> None: ... + def loadStarted(self) -> None: ... + def settings(self) -> 'QWebEngineSettings': ... + @typing.overload + def runJavaScript(self, scriptSource: str, worldId: int) -> None: ... + @typing.overload + def runJavaScript(self, scriptSource: str, worldId: int, resultCallback: typing.Callable[..., None]) -> None: ... + @typing.overload + def runJavaScript(self, scriptSource: str) -> None: ... + @typing.overload + def runJavaScript(self, scriptSource: str, resultCallback: typing.Callable[[typing.Any], None]) -> None: ... + def setZoomFactor(self, factor: float) -> None: ... + def zoomFactor(self) -> float: ... + def iconUrl(self) -> QtCore.QUrl: ... + def requestedUrl(self) -> QtCore.QUrl: ... + def url(self) -> QtCore.QUrl: ... + def setUrl(self, url: QtCore.QUrl) -> None: ... + def title(self) -> str: ... + def toPlainText(self, resultCallback: typing.Callable[[str], None]) -> None: ... + def toHtml(self, resultCallback: typing.Callable[[str], None]) -> None: ... + def setContent(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], mimeType: str = ..., baseUrl: QtCore.QUrl = ...) -> None: ... + def setHtml(self, html: str, baseUrl: QtCore.QUrl = ...) -> None: ... + @typing.overload + def load(self, url: QtCore.QUrl) -> None: ... + @typing.overload + def load(self, request: QtWebEngineCore.QWebEngineHttpRequest) -> None: ... + def setFeaturePermission(self, securityOrigin: QtCore.QUrl, feature: 'QWebEnginePage.Feature', policy: 'QWebEnginePage.PermissionPolicy') -> None: ... + def createStandardContextMenu(self) -> QtWidgets.QMenu: ... + def findText(self, subString: str, options: typing.Union['QWebEnginePage.FindFlags', 'QWebEnginePage.FindFlag'] = ..., resultCallback: typing.Optional[typing.Callable[[bool], None]] = ...) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def triggerAction(self, action: 'QWebEnginePage.WebAction', checked: bool = ...) -> None: ... + def action(self, action: 'QWebEnginePage.WebAction') -> QtWidgets.QAction: ... + def selectedText(self) -> str: ... + def hasSelection(self) -> bool: ... + def view(self) -> QtWidgets.QWidget: ... + def setView(self, view: QtWidgets.QWidget) -> None: ... + def history(self) -> QWebEngineHistory: ... + + +class QWebEngineProfile(QtCore.QObject): + + class PersistentCookiesPolicy(int): ... + NoPersistentCookies = ... # type: 'QWebEngineProfile.PersistentCookiesPolicy' + AllowPersistentCookies = ... # type: 'QWebEngineProfile.PersistentCookiesPolicy' + ForcePersistentCookies = ... # type: 'QWebEngineProfile.PersistentCookiesPolicy' + + class HttpCacheType(int): ... + MemoryHttpCache = ... # type: 'QWebEngineProfile.HttpCacheType' + DiskHttpCache = ... # type: 'QWebEngineProfile.HttpCacheType' + NoCache = ... # type: 'QWebEngineProfile.HttpCacheType' + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, name: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def clientCertificateStore(self) -> QtWebEngineCore.QWebEngineClientCertificateStore: ... + def setNotificationPresenter(self, a0: typing.Callable[[QtWebEngineCore.QWebEngineNotification], None]) -> None: ... + def setDownloadPath(self, path: str) -> None: ... + def downloadPath(self) -> str: ... + def isUsedForGlobalCertificateVerification(self) -> bool: ... + def setUseForGlobalCertificateVerification(self, enabled: bool = ...) -> None: ... + def isSpellCheckEnabled(self) -> bool: ... + def setSpellCheckEnabled(self, enabled: bool) -> None: ... + def spellCheckLanguages(self) -> typing.List[str]: ... + def setSpellCheckLanguages(self, languages: typing.Iterable[str]) -> None: ... + def clearHttpCache(self) -> None: ... + def removeAllUrlSchemeHandlers(self) -> None: ... + def removeUrlSchemeHandler(self, a0: QtWebEngineCore.QWebEngineUrlSchemeHandler) -> None: ... + def removeUrlScheme(self, scheme: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def installUrlSchemeHandler(self, scheme: typing.Union[QtCore.QByteArray, bytes, bytearray], a1: QtWebEngineCore.QWebEngineUrlSchemeHandler) -> None: ... + def urlSchemeHandler(self, a0: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> QtWebEngineCore.QWebEngineUrlSchemeHandler: ... + def setRequestInterceptor(self, interceptor: QtWebEngineCore.QWebEngineUrlRequestInterceptor) -> None: ... + def setUrlRequestInterceptor(self, interceptor: QtWebEngineCore.QWebEngineUrlRequestInterceptor) -> None: ... + def cookieStore(self) -> QtWebEngineCore.QWebEngineCookieStore: ... + def httpAcceptLanguage(self) -> str: ... + def setHttpAcceptLanguage(self, httpAcceptLanguage: str) -> None: ... + def downloadRequested(self, download: QWebEngineDownloadItem) -> None: ... + @staticmethod + def defaultProfile() -> 'QWebEngineProfile': ... + def scripts(self) -> 'QWebEngineScriptCollection': ... + def settings(self) -> 'QWebEngineSettings': ... + def visitedLinksContainsUrl(self, url: QtCore.QUrl) -> bool: ... + def clearVisitedLinks(self, urls: typing.Iterable[QtCore.QUrl]) -> None: ... + def clearAllVisitedLinks(self) -> None: ... + def setHttpCacheMaximumSize(self, maxSize: int) -> None: ... + def httpCacheMaximumSize(self) -> int: ... + def setPersistentCookiesPolicy(self, a0: 'QWebEngineProfile.PersistentCookiesPolicy') -> None: ... + def persistentCookiesPolicy(self) -> 'QWebEngineProfile.PersistentCookiesPolicy': ... + def setHttpCacheType(self, a0: 'QWebEngineProfile.HttpCacheType') -> None: ... + def httpCacheType(self) -> 'QWebEngineProfile.HttpCacheType': ... + def setHttpUserAgent(self, userAgent: str) -> None: ... + def httpUserAgent(self) -> str: ... + def setCachePath(self, path: str) -> None: ... + def cachePath(self) -> str: ... + def setPersistentStoragePath(self, path: str) -> None: ... + def persistentStoragePath(self) -> str: ... + def isOffTheRecord(self) -> bool: ... + def storageName(self) -> str: ... + + +class QWebEngineScript(sip.simplewrapper): + + class ScriptWorldId(int): ... + MainWorld = ... # type: 'QWebEngineScript.ScriptWorldId' + ApplicationWorld = ... # type: 'QWebEngineScript.ScriptWorldId' + UserWorld = ... # type: 'QWebEngineScript.ScriptWorldId' + + class InjectionPoint(int): ... + Deferred = ... # type: 'QWebEngineScript.InjectionPoint' + DocumentReady = ... # type: 'QWebEngineScript.InjectionPoint' + DocumentCreation = ... # type: 'QWebEngineScript.InjectionPoint' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QWebEngineScript') -> None: ... + + def swap(self, other: 'QWebEngineScript') -> None: ... + def setRunsOnSubFrames(self, on: bool) -> None: ... + def runsOnSubFrames(self) -> bool: ... + def setWorldId(self, a0: int) -> None: ... + def worldId(self) -> int: ... + def setInjectionPoint(self, a0: 'QWebEngineScript.InjectionPoint') -> None: ... + def injectionPoint(self) -> 'QWebEngineScript.InjectionPoint': ... + def setSourceCode(self, a0: str) -> None: ... + def sourceCode(self) -> str: ... + def setName(self, a0: str) -> None: ... + def name(self) -> str: ... + def isNull(self) -> bool: ... + + +class QWebEngineScriptCollection(sip.simplewrapper): + + def toList(self) -> typing.List[QWebEngineScript]: ... + def clear(self) -> None: ... + def remove(self, a0: QWebEngineScript) -> bool: ... + @typing.overload + def insert(self, a0: QWebEngineScript) -> None: ... + @typing.overload + def insert(self, list: typing.Iterable[QWebEngineScript]) -> None: ... + def findScripts(self, name: str) -> typing.List[QWebEngineScript]: ... + def findScript(self, name: str) -> QWebEngineScript: ... + def contains(self, value: QWebEngineScript) -> bool: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def isEmpty(self) -> bool: ... + + +class QWebEngineSettings(sip.simplewrapper): + + class UnknownUrlSchemePolicy(int): ... + DisallowUnknownUrlSchemes = ... # type: 'QWebEngineSettings.UnknownUrlSchemePolicy' + AllowUnknownUrlSchemesFromUserInteraction = ... # type: 'QWebEngineSettings.UnknownUrlSchemePolicy' + AllowAllUnknownUrlSchemes = ... # type: 'QWebEngineSettings.UnknownUrlSchemePolicy' + + class FontSize(int): ... + MinimumFontSize = ... # type: 'QWebEngineSettings.FontSize' + MinimumLogicalFontSize = ... # type: 'QWebEngineSettings.FontSize' + DefaultFontSize = ... # type: 'QWebEngineSettings.FontSize' + DefaultFixedFontSize = ... # type: 'QWebEngineSettings.FontSize' + + class WebAttribute(int): ... + AutoLoadImages = ... # type: 'QWebEngineSettings.WebAttribute' + JavascriptEnabled = ... # type: 'QWebEngineSettings.WebAttribute' + JavascriptCanOpenWindows = ... # type: 'QWebEngineSettings.WebAttribute' + JavascriptCanAccessClipboard = ... # type: 'QWebEngineSettings.WebAttribute' + LinksIncludedInFocusChain = ... # type: 'QWebEngineSettings.WebAttribute' + LocalStorageEnabled = ... # type: 'QWebEngineSettings.WebAttribute' + LocalContentCanAccessRemoteUrls = ... # type: 'QWebEngineSettings.WebAttribute' + XSSAuditingEnabled = ... # type: 'QWebEngineSettings.WebAttribute' + SpatialNavigationEnabled = ... # type: 'QWebEngineSettings.WebAttribute' + LocalContentCanAccessFileUrls = ... # type: 'QWebEngineSettings.WebAttribute' + HyperlinkAuditingEnabled = ... # type: 'QWebEngineSettings.WebAttribute' + ScrollAnimatorEnabled = ... # type: 'QWebEngineSettings.WebAttribute' + ErrorPageEnabled = ... # type: 'QWebEngineSettings.WebAttribute' + PluginsEnabled = ... # type: 'QWebEngineSettings.WebAttribute' + FullScreenSupportEnabled = ... # type: 'QWebEngineSettings.WebAttribute' + ScreenCaptureEnabled = ... # type: 'QWebEngineSettings.WebAttribute' + WebGLEnabled = ... # type: 'QWebEngineSettings.WebAttribute' + Accelerated2dCanvasEnabled = ... # type: 'QWebEngineSettings.WebAttribute' + AutoLoadIconsForPage = ... # type: 'QWebEngineSettings.WebAttribute' + TouchIconsEnabled = ... # type: 'QWebEngineSettings.WebAttribute' + FocusOnNavigationEnabled = ... # type: 'QWebEngineSettings.WebAttribute' + PrintElementBackgrounds = ... # type: 'QWebEngineSettings.WebAttribute' + AllowRunningInsecureContent = ... # type: 'QWebEngineSettings.WebAttribute' + AllowGeolocationOnInsecureOrigins = ... # type: 'QWebEngineSettings.WebAttribute' + AllowWindowActivationFromJavaScript = ... # type: 'QWebEngineSettings.WebAttribute' + ShowScrollBars = ... # type: 'QWebEngineSettings.WebAttribute' + PlaybackRequiresUserGesture = ... # type: 'QWebEngineSettings.WebAttribute' + WebRTCPublicInterfacesOnly = ... # type: 'QWebEngineSettings.WebAttribute' + JavascriptCanPaste = ... # type: 'QWebEngineSettings.WebAttribute' + DnsPrefetchEnabled = ... # type: 'QWebEngineSettings.WebAttribute' + PdfViewerEnabled = ... # type: 'QWebEngineSettings.WebAttribute' + + class FontFamily(int): ... + StandardFont = ... # type: 'QWebEngineSettings.FontFamily' + FixedFont = ... # type: 'QWebEngineSettings.FontFamily' + SerifFont = ... # type: 'QWebEngineSettings.FontFamily' + SansSerifFont = ... # type: 'QWebEngineSettings.FontFamily' + CursiveFont = ... # type: 'QWebEngineSettings.FontFamily' + FantasyFont = ... # type: 'QWebEngineSettings.FontFamily' + PictographFont = ... # type: 'QWebEngineSettings.FontFamily' + + def resetUnknownUrlSchemePolicy(self) -> None: ... + def setUnknownUrlSchemePolicy(self, policy: 'QWebEngineSettings.UnknownUrlSchemePolicy') -> None: ... + def unknownUrlSchemePolicy(self) -> 'QWebEngineSettings.UnknownUrlSchemePolicy': ... + def defaultTextEncoding(self) -> str: ... + def setDefaultTextEncoding(self, encoding: str) -> None: ... + def resetAttribute(self, attr: 'QWebEngineSettings.WebAttribute') -> None: ... + def testAttribute(self, attr: 'QWebEngineSettings.WebAttribute') -> bool: ... + def setAttribute(self, attr: 'QWebEngineSettings.WebAttribute', on: bool) -> None: ... + def resetFontSize(self, type: 'QWebEngineSettings.FontSize') -> None: ... + def fontSize(self, type: 'QWebEngineSettings.FontSize') -> int: ... + def setFontSize(self, type: 'QWebEngineSettings.FontSize', size: int) -> None: ... + def resetFontFamily(self, which: 'QWebEngineSettings.FontFamily') -> None: ... + def fontFamily(self, which: 'QWebEngineSettings.FontFamily') -> str: ... + def setFontFamily(self, which: 'QWebEngineSettings.FontFamily', family: str) -> None: ... + @staticmethod + def globalSettings() -> 'QWebEngineSettings': ... + @staticmethod + def defaultSettings() -> 'QWebEngineSettings': ... + + +class QWebEngineView(QtWidgets.QWidget): + + def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + + def closeEvent(self, a0: QtGui.QCloseEvent) -> None: ... + def dropEvent(self, e: QtGui.QDropEvent) -> None: ... + def dragMoveEvent(self, e: QtGui.QDragMoveEvent) -> None: ... + def dragLeaveEvent(self, e: QtGui.QDragLeaveEvent) -> None: ... + def dragEnterEvent(self, e: QtGui.QDragEnterEvent) -> None: ... + def iconChanged(self, a0: QtGui.QIcon) -> None: ... + def icon(self) -> QtGui.QIcon: ... + def hideEvent(self, a0: QtGui.QHideEvent) -> None: ... + def showEvent(self, a0: QtGui.QShowEvent) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def contextMenuEvent(self, a0: QtGui.QContextMenuEvent) -> None: ... + def createWindow(self, type: QWebEnginePage.WebWindowType) -> 'QWebEngineView': ... + def renderProcessTerminated(self, terminationStatus: QWebEnginePage.RenderProcessTerminationStatus, exitCode: int) -> None: ... + def iconUrlChanged(self, a0: QtCore.QUrl) -> None: ... + def urlChanged(self, a0: QtCore.QUrl) -> None: ... + def selectionChanged(self) -> None: ... + def titleChanged(self, title: str) -> None: ... + def loadFinished(self, a0: bool) -> None: ... + def loadProgress(self, progress: int) -> None: ... + def loadStarted(self) -> None: ... + def reload(self) -> None: ... + def forward(self) -> None: ... + def back(self) -> None: ... + def stop(self) -> None: ... + def settings(self) -> QWebEngineSettings: ... + def sizeHint(self) -> QtCore.QSize: ... + def findText(self, subString: str, options: typing.Union[QWebEnginePage.FindFlags, QWebEnginePage.FindFlag] = ..., resultCallback: typing.Optional[typing.Callable[[bool], None]] = ...) -> None: ... + def setZoomFactor(self, factor: float) -> None: ... + def zoomFactor(self) -> float: ... + def triggerPageAction(self, action: QWebEnginePage.WebAction, checked: bool = ...) -> None: ... + def pageAction(self, action: QWebEnginePage.WebAction) -> QtWidgets.QAction: ... + def selectedText(self) -> str: ... + def hasSelection(self) -> bool: ... + def iconUrl(self) -> QtCore.QUrl: ... + def url(self) -> QtCore.QUrl: ... + def setUrl(self, url: QtCore.QUrl) -> None: ... + def title(self) -> str: ... + def history(self) -> QWebEngineHistory: ... + def setContent(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], mimeType: str = ..., baseUrl: QtCore.QUrl = ...) -> None: ... + def setHtml(self, html: str, baseUrl: QtCore.QUrl = ...) -> None: ... + @typing.overload + def load(self, url: QtCore.QUrl) -> None: ... + @typing.overload + def load(self, request: QtWebEngineCore.QWebEngineHttpRequest) -> None: ... + def setPage(self, page: QWebEnginePage) -> None: ... + def page(self) -> QWebEnginePage: ... diff --git a/PyQt5-stubs/QtWebKit.pyi b/PyQt5-stubs/QtWebKit.pyi new file mode 100644 index 00000000..3cc65a25 --- /dev/null +++ b/PyQt5-stubs/QtWebKit.pyi @@ -0,0 +1,427 @@ +# The PEP 484 type hints stub file for the QtWebKit module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2020 Riverbank Computing Limited +# +# 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 sip + +from PyQt5 import QtNetwork +from PyQt5 import QtGui +from PyQt5 import QtCore + +# 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], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QWebDatabase(sip.simplewrapper): + + def __init__(self, other: 'QWebDatabase') -> None: ... + + @staticmethod + def removeAllDatabases() -> None: ... + @staticmethod + def removeDatabase(db: 'QWebDatabase') -> None: ... + def origin(self) -> 'QWebSecurityOrigin': ... + def fileName(self) -> str: ... + def size(self) -> int: ... + def expectedSize(self) -> int: ... + def displayName(self) -> str: ... + def name(self) -> str: ... + + +class QWebElement(sip.simplewrapper): + + class StyleResolveStrategy(int): ... + InlineStyle = ... # type: 'QWebElement.StyleResolveStrategy' + CascadedStyle = ... # type: 'QWebElement.StyleResolveStrategy' + ComputedStyle = ... # type: 'QWebElement.StyleResolveStrategy' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QWebElement') -> None: ... + + @typing.overload + def render(self, painter: QtGui.QPainter) -> None: ... + @typing.overload + def render(self, painter: QtGui.QPainter, clip: QtCore.QRect) -> None: ... + def setStyleProperty(self, name: str, value: str) -> None: ... + def styleProperty(self, name: str, strategy: 'QWebElement.StyleResolveStrategy') -> str: ... + def evaluateJavaScript(self, scriptSource: str) -> typing.Any: ... + def removeAllChildren(self) -> None: ... + def removeFromDocument(self) -> None: ... + def takeFromDocument(self) -> 'QWebElement': ... + def clone(self) -> 'QWebElement': ... + @typing.overload + def replace(self, markup: str) -> None: ... + @typing.overload + def replace(self, element: 'QWebElement') -> None: ... + @typing.overload + def encloseWith(self, markup: str) -> None: ... + @typing.overload + def encloseWith(self, element: 'QWebElement') -> None: ... + @typing.overload + def encloseContentsWith(self, element: 'QWebElement') -> None: ... + @typing.overload + def encloseContentsWith(self, markup: str) -> None: ... + @typing.overload + def prependOutside(self, markup: str) -> None: ... + @typing.overload + def prependOutside(self, element: 'QWebElement') -> None: ... + @typing.overload + def appendOutside(self, markup: str) -> None: ... + @typing.overload + def appendOutside(self, element: 'QWebElement') -> None: ... + @typing.overload + def prependInside(self, markup: str) -> None: ... + @typing.overload + def prependInside(self, element: 'QWebElement') -> None: ... + @typing.overload + def appendInside(self, markup: str) -> None: ... + @typing.overload + def appendInside(self, element: 'QWebElement') -> None: ... + def webFrame(self) -> QWebFrame: ... + def document(self) -> 'QWebElement': ... + def previousSibling(self) -> 'QWebElement': ... + def nextSibling(self) -> 'QWebElement': ... + def lastChild(self) -> 'QWebElement': ... + def firstChild(self) -> 'QWebElement': ... + def parent(self) -> 'QWebElement': ... + def namespaceUri(self) -> str: ... + def localName(self) -> str: ... + def prefix(self) -> str: ... + def tagName(self) -> str: ... + def geometry(self) -> QtCore.QRect: ... + def setFocus(self) -> None: ... + def hasFocus(self) -> bool: ... + def toggleClass(self, name: str) -> None: ... + def removeClass(self, name: str) -> None: ... + def addClass(self, name: str) -> None: ... + def hasClass(self, name: str) -> bool: ... + def classes(self) -> typing.List[str]: ... + def attributeNames(self, namespaceUri: str = ...) -> typing.List[str]: ... + def hasAttributes(self) -> bool: ... + def removeAttributeNS(self, namespaceUri: str, name: str) -> None: ... + def removeAttribute(self, name: str) -> None: ... + def hasAttributeNS(self, namespaceUri: str, name: str) -> bool: ... + def hasAttribute(self, name: str) -> bool: ... + def attributeNS(self, namespaceUri: str, name: str, defaultValue: str = ...) -> str: ... + def attribute(self, name: str, defaultValue: str = ...) -> str: ... + def setAttributeNS(self, namespaceUri: str, name: str, value: str) -> None: ... + def setAttribute(self, name: str, value: str) -> None: ... + def toInnerXml(self) -> str: ... + def setInnerXml(self, markup: str) -> None: ... + def toOuterXml(self) -> str: ... + def setOuterXml(self, markup: str) -> None: ... + def toPlainText(self) -> str: ... + def setPlainText(self, text: str) -> None: ... + def findFirst(self, selectorQuery: str) -> 'QWebElement': ... + def findAll(self, selectorQuery: str) -> 'QWebElementCollection': ... + def isNull(self) -> bool: ... + + +class QWebElementCollection(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, contextElement: QWebElement, query: str) -> None: ... + @typing.overload + def __init__(self, a0: 'QWebElementCollection') -> None: ... + + def toList(self) -> typing.List[QWebElement]: ... + def last(self) -> QWebElement: ... + def first(self) -> QWebElement: ... + def __getitem__(self, i: int) -> QWebElement: ... + def at(self, i: int) -> QWebElement: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def append(self, collection: 'QWebElementCollection') -> None: ... + + +class QWebHistoryItem(sip.simplewrapper): + + def __init__(self, other: 'QWebHistoryItem') -> None: ... + + def isValid(self) -> bool: ... + def setUserData(self, userData: typing.Any) -> None: ... + def userData(self) -> typing.Any: ... + def icon(self) -> QtGui.QIcon: ... + def lastVisited(self) -> QtCore.QDateTime: ... + def title(self) -> str: ... + def url(self) -> QtCore.QUrl: ... + def originalUrl(self) -> QtCore.QUrl: ... + + +class QWebHistory(sip.simplewrapper): + + def setMaximumItemCount(self, count: int) -> None: ... + def maximumItemCount(self) -> int: ... + def currentItemIndex(self) -> int: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def itemAt(self, i: int) -> QWebHistoryItem: ... + def forwardItem(self) -> QWebHistoryItem: ... + def currentItem(self) -> QWebHistoryItem: ... + def backItem(self) -> QWebHistoryItem: ... + def goToItem(self, item: QWebHistoryItem) -> None: ... + def forward(self) -> None: ... + def back(self) -> None: ... + def canGoForward(self) -> bool: ... + def canGoBack(self) -> bool: ... + def forwardItems(self, maxItems: int) -> typing.List[QWebHistoryItem]: ... + def backItems(self, maxItems: int) -> typing.List[QWebHistoryItem]: ... + def items(self) -> typing.List[QWebHistoryItem]: ... + def clear(self) -> None: ... + + +class QWebHistoryInterface(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def addHistoryEntry(self, url: str) -> None: ... + def historyContains(self, url: str) -> bool: ... + @staticmethod + def defaultInterface() -> 'QWebHistoryInterface': ... + @staticmethod + def setDefaultInterface(defaultInterface: 'QWebHistoryInterface') -> None: ... + + +class QWebPluginFactory(QtCore.QObject): + + class Extension(int): ... + + class MimeType(sip.simplewrapper): + + description = ... # type: str + fileExtensions = ... # type: typing.Iterable[str] + name = ... # type: str + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QWebPluginFactory.MimeType') -> None: ... + + class Plugin(sip.simplewrapper): + + description = ... # type: str + mimeTypes = ... # type: typing.Iterable['QWebPluginFactory.MimeType'] + name = ... # type: str + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QWebPluginFactory.Plugin') -> None: ... + + class ExtensionOption(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QWebPluginFactory.ExtensionOption') -> None: ... + + class ExtensionReturn(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QWebPluginFactory.ExtensionReturn') -> None: ... + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def supportsExtension(self, extension: 'QWebPluginFactory.Extension') -> bool: ... + def extension(self, extension: 'QWebPluginFactory.Extension', option: typing.Optional['QWebPluginFactory.ExtensionOption'] = ..., output: typing.Optional['QWebPluginFactory.ExtensionReturn'] = ...) -> bool: ... + def create(self, mimeType: str, url: QtCore.QUrl, argumentNames: typing.Iterable[str], argumentValues: typing.Iterable[str]) -> QtCore.QObject: ... + def refreshPlugins(self) -> None: ... + def plugins(self) -> typing.List['QWebPluginFactory.Plugin']: ... + + +class QWebSecurityOrigin(sip.simplewrapper): + + class SubdomainSetting(int): ... + AllowSubdomains = ... # type: 'QWebSecurityOrigin.SubdomainSetting' + DisallowSubdomains = ... # type: 'QWebSecurityOrigin.SubdomainSetting' + + @typing.overload + def __init__(self, url: QtCore.QUrl) -> None: ... + @typing.overload + def __init__(self, other: 'QWebSecurityOrigin') -> None: ... + + def removeAccessWhitelistEntry(self, scheme: str, host: str, subdomainSetting: 'QWebSecurityOrigin.SubdomainSetting') -> None: ... + def addAccessWhitelistEntry(self, scheme: str, host: str, subdomainSetting: 'QWebSecurityOrigin.SubdomainSetting') -> None: ... + def setApplicationCacheQuota(self, quota: int) -> None: ... + @staticmethod + def localSchemes() -> typing.List[str]: ... + @staticmethod + def removeLocalScheme(scheme: str) -> None: ... + @staticmethod + def addLocalScheme(scheme: str) -> None: ... + def databases(self) -> typing.List[QWebDatabase]: ... + def setDatabaseQuota(self, quota: int) -> None: ... + def databaseQuota(self) -> int: ... + def databaseUsage(self) -> int: ... + def port(self) -> int: ... + def host(self) -> str: ... + def scheme(self) -> str: ... + @staticmethod + def allOrigins() -> typing.List['QWebSecurityOrigin']: ... + + +class QWebSettings(sip.simplewrapper): + + class ThirdPartyCookiePolicy(int): ... + AlwaysAllowThirdPartyCookies = ... # type: 'QWebSettings.ThirdPartyCookiePolicy' + AlwaysBlockThirdPartyCookies = ... # type: 'QWebSettings.ThirdPartyCookiePolicy' + AllowThirdPartyWithExistingCookies = ... # type: 'QWebSettings.ThirdPartyCookiePolicy' + + class FontSize(int): ... + MinimumFontSize = ... # type: 'QWebSettings.FontSize' + MinimumLogicalFontSize = ... # type: 'QWebSettings.FontSize' + DefaultFontSize = ... # type: 'QWebSettings.FontSize' + DefaultFixedFontSize = ... # type: 'QWebSettings.FontSize' + + class WebGraphic(int): ... + MissingImageGraphic = ... # type: 'QWebSettings.WebGraphic' + MissingPluginGraphic = ... # type: 'QWebSettings.WebGraphic' + DefaultFrameIconGraphic = ... # type: 'QWebSettings.WebGraphic' + TextAreaSizeGripCornerGraphic = ... # type: 'QWebSettings.WebGraphic' + InputSpeechButtonGraphic = ... # type: 'QWebSettings.WebGraphic' + SearchCancelButtonGraphic = ... # type: 'QWebSettings.WebGraphic' + SearchCancelButtonPressedGraphic = ... # type: 'QWebSettings.WebGraphic' + + class WebAttribute(int): ... + AutoLoadImages = ... # type: 'QWebSettings.WebAttribute' + JavascriptEnabled = ... # type: 'QWebSettings.WebAttribute' + JavaEnabled = ... # type: 'QWebSettings.WebAttribute' + PluginsEnabled = ... # type: 'QWebSettings.WebAttribute' + PrivateBrowsingEnabled = ... # type: 'QWebSettings.WebAttribute' + JavascriptCanOpenWindows = ... # type: 'QWebSettings.WebAttribute' + JavascriptCanCloseWindows = ... # type: 'QWebSettings.WebAttribute' + JavascriptCanAccessClipboard = ... # type: 'QWebSettings.WebAttribute' + DeveloperExtrasEnabled = ... # type: 'QWebSettings.WebAttribute' + LinksIncludedInFocusChain = ... # type: 'QWebSettings.WebAttribute' + ZoomTextOnly = ... # type: 'QWebSettings.WebAttribute' + PrintElementBackgrounds = ... # type: 'QWebSettings.WebAttribute' + OfflineStorageDatabaseEnabled = ... # type: 'QWebSettings.WebAttribute' + OfflineWebApplicationCacheEnabled = ... # type: 'QWebSettings.WebAttribute' + LocalStorageDatabaseEnabled = ... # type: 'QWebSettings.WebAttribute' + LocalStorageEnabled = ... # type: 'QWebSettings.WebAttribute' + LocalContentCanAccessRemoteUrls = ... # type: 'QWebSettings.WebAttribute' + DnsPrefetchEnabled = ... # type: 'QWebSettings.WebAttribute' + XSSAuditingEnabled = ... # type: 'QWebSettings.WebAttribute' + AcceleratedCompositingEnabled = ... # type: 'QWebSettings.WebAttribute' + SpatialNavigationEnabled = ... # type: 'QWebSettings.WebAttribute' + LocalContentCanAccessFileUrls = ... # type: 'QWebSettings.WebAttribute' + TiledBackingStoreEnabled = ... # type: 'QWebSettings.WebAttribute' + FrameFlatteningEnabled = ... # type: 'QWebSettings.WebAttribute' + SiteSpecificQuirksEnabled = ... # type: 'QWebSettings.WebAttribute' + WebGLEnabled = ... # type: 'QWebSettings.WebAttribute' + HyperlinkAuditingEnabled = ... # type: 'QWebSettings.WebAttribute' + CSSRegionsEnabled = ... # type: 'QWebSettings.WebAttribute' + CSSGridLayoutEnabled = ... # type: 'QWebSettings.WebAttribute' + ScrollAnimatorEnabled = ... # type: 'QWebSettings.WebAttribute' + CaretBrowsingEnabled = ... # type: 'QWebSettings.WebAttribute' + NotificationsEnabled = ... # type: 'QWebSettings.WebAttribute' + WebAudioEnabled = ... # type: 'QWebSettings.WebAttribute' + Accelerated2dCanvasEnabled = ... # type: 'QWebSettings.WebAttribute' + + class FontFamily(int): ... + StandardFont = ... # type: 'QWebSettings.FontFamily' + FixedFont = ... # type: 'QWebSettings.FontFamily' + SerifFont = ... # type: 'QWebSettings.FontFamily' + SansSerifFont = ... # type: 'QWebSettings.FontFamily' + CursiveFont = ... # type: 'QWebSettings.FontFamily' + FantasyFont = ... # type: 'QWebSettings.FontFamily' + + def cssMediaType(self) -> str: ... + def setCSSMediaType(self, a0: str) -> None: ... + def thirdPartyCookiePolicy(self) -> 'QWebSettings.ThirdPartyCookiePolicy': ... + def setThirdPartyCookiePolicy(self, a0: 'QWebSettings.ThirdPartyCookiePolicy') -> None: ... + @staticmethod + def enablePersistentStorage(path: str = ...) -> None: ... + @staticmethod + def clearMemoryCaches() -> None: ... + def localStoragePath(self) -> str: ... + def setLocalStoragePath(self, path: str) -> None: ... + @staticmethod + def offlineWebApplicationCacheQuota() -> int: ... + @staticmethod + def setOfflineWebApplicationCacheQuota(maximumSize: int) -> None: ... + @staticmethod + def offlineWebApplicationCachePath() -> str: ... + @staticmethod + def setOfflineWebApplicationCachePath(path: str) -> None: ... + def defaultTextEncoding(self) -> str: ... + def setDefaultTextEncoding(self, encoding: str) -> None: ... + @staticmethod + def offlineStorageDefaultQuota() -> int: ... + @staticmethod + def setOfflineStorageDefaultQuota(maximumSize: int) -> None: ... + @staticmethod + def offlineStoragePath() -> str: ... + @staticmethod + def setOfflineStoragePath(path: str) -> None: ... + @staticmethod + def setObjectCacheCapacities(cacheMinDeadCapacity: int, cacheMaxDead: int, totalCapacity: int) -> None: ... + @staticmethod + def maximumPagesInCache() -> int: ... + @staticmethod + def setMaximumPagesInCache(pages: int) -> None: ... + @staticmethod + def webGraphic(type: 'QWebSettings.WebGraphic') -> QtGui.QPixmap: ... + @staticmethod + def setWebGraphic(type: 'QWebSettings.WebGraphic', graphic: QtGui.QPixmap) -> None: ... + @staticmethod + def iconForUrl(url: QtCore.QUrl) -> QtGui.QIcon: ... + @staticmethod + def clearIconDatabase() -> None: ... + @staticmethod + def iconDatabasePath() -> str: ... + @staticmethod + def setIconDatabasePath(location: str) -> None: ... + def userStyleSheetUrl(self) -> QtCore.QUrl: ... + def setUserStyleSheetUrl(self, location: QtCore.QUrl) -> None: ... + def resetAttribute(self, attr: 'QWebSettings.WebAttribute') -> None: ... + def testAttribute(self, attr: 'QWebSettings.WebAttribute') -> bool: ... + def setAttribute(self, attr: 'QWebSettings.WebAttribute', on: bool) -> None: ... + def resetFontSize(self, type: 'QWebSettings.FontSize') -> None: ... + def fontSize(self, type: 'QWebSettings.FontSize') -> int: ... + def setFontSize(self, type: 'QWebSettings.FontSize', size: int) -> None: ... + def resetFontFamily(self, which: 'QWebSettings.FontFamily') -> None: ... + def fontFamily(self, which: 'QWebSettings.FontFamily') -> str: ... + def setFontFamily(self, which: 'QWebSettings.FontFamily', family: str) -> None: ... + @staticmethod + def globalSettings() -> 'QWebSettings': ... + + +def qWebKitMinorVersion() -> int: ... +def qWebKitMajorVersion() -> int: ... +def qWebKitVersion() -> str: ... diff --git a/PyQt5-stubs/QtWebKitWidgets.pyi b/PyQt5-stubs/QtWebKitWidgets.pyi new file mode 100644 index 00000000..9d582342 --- /dev/null +++ b/PyQt5-stubs/QtWebKitWidgets.pyi @@ -0,0 +1,625 @@ +# The PEP 484 type hints stub file for the QtWebKitWidgets module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2020 Riverbank Computing Limited +# +# 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 sip + +from PyQt5 import QtWidgets +from PyQt5 import QtWebKit +from PyQt5 import QtPrintSupport +from PyQt5 import QtNetwork +from PyQt5 import QtCore + +# 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], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QGraphicsWebView(QtWidgets.QGraphicsWidget): + + def __init__(self, parent: typing.Optional[QtWidgets.QGraphicsItem] = ...) -> None: ... + + def setRenderHint(self, hint: QtGui.QPainter.RenderHint, enabled: bool = ...) -> None: ... + def setRenderHints(self, hints: QtGui.QPainter.RenderHints) -> None: ... + def renderHints(self) -> QtGui.QPainter.RenderHints: ... + def setTiledBackingStoreFrozen(self, frozen: bool) -> None: ... + def isTiledBackingStoreFrozen(self) -> bool: ... + def setResizesToContents(self, enabled: bool) -> None: ... + def resizesToContents(self) -> bool: ... + def sceneEvent(self, a0: QtCore.QEvent) -> bool: ... + def focusNextPrevChild(self, next: bool) -> bool: ... + def inputMethodEvent(self, a0: QtGui.QInputMethodEvent) -> None: ... + def focusOutEvent(self, a0: QtGui.QFocusEvent) -> None: ... + def focusInEvent(self, a0: QtGui.QFocusEvent) -> None: ... + def dropEvent(self, a0: QtWidgets.QGraphicsSceneDragDropEvent) -> None: ... + def dragMoveEvent(self, a0: QtWidgets.QGraphicsSceneDragDropEvent) -> None: ... + def dragLeaveEvent(self, a0: QtWidgets.QGraphicsSceneDragDropEvent) -> None: ... + def dragEnterEvent(self, a0: QtWidgets.QGraphicsSceneDragDropEvent) -> None: ... + def contextMenuEvent(self, a0: QtWidgets.QGraphicsSceneContextMenuEvent) -> None: ... + def keyReleaseEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def wheelEvent(self, a0: QtWidgets.QGraphicsSceneWheelEvent) -> None: ... + def hoverLeaveEvent(self, a0: QtWidgets.QGraphicsSceneHoverEvent) -> None: ... + def hoverMoveEvent(self, a0: QtWidgets.QGraphicsSceneHoverEvent) -> None: ... + def mouseMoveEvent(self, a0: QtWidgets.QGraphicsSceneMouseEvent) -> None: ... + def mouseReleaseEvent(self, a0: QtWidgets.QGraphicsSceneMouseEvent) -> None: ... + def mouseDoubleClickEvent(self, a0: QtWidgets.QGraphicsSceneMouseEvent) -> None: ... + def mousePressEvent(self, a0: QtWidgets.QGraphicsSceneMouseEvent) -> None: ... + def linkClicked(self, a0: QtCore.QUrl) -> None: ... + def statusBarMessage(self, message: str) -> None: ... + def iconChanged(self) -> None: ... + def titleChanged(self, a0: str) -> None: ... + def urlChanged(self, a0: QtCore.QUrl) -> None: ... + def loadProgress(self, progress: int) -> None: ... + def loadFinished(self, a0: bool) -> None: ... + def loadStarted(self) -> None: ... + def reload(self) -> None: ... + def forward(self) -> None: ... + def back(self) -> None: ... + def stop(self) -> None: ... + def inputMethodQuery(self, query: QtCore.Qt.InputMethodQuery) -> typing.Any: ... + def sizeHint(self, which: QtCore.Qt.SizeHint, constraint: QtCore.QSizeF) -> QtCore.QSizeF: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def itemChange(self, change: QtWidgets.QGraphicsItem.GraphicsItemChange, value: typing.Any) -> typing.Any: ... + def paint(self, painter: QtGui.QPainter, option: QtWidgets.QStyleOptionGraphicsItem, widget: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + def updateGeometry(self) -> None: ... + def setGeometry(self, rect: QtCore.QRectF) -> None: ... + def findText(self, subString: str, options: 'QWebPage.FindFlags' = ...) -> bool: ... + def triggerPageAction(self, action: 'QWebPage.WebAction', checked: bool = ...) -> None: ... + def pageAction(self, action: 'QWebPage.WebAction') -> QtWidgets.QAction: ... + def settings(self) -> QtWebKit.QWebSettings: ... + def history(self) -> QtWebKit.QWebHistory: ... + def setContent(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], mimeType: str = ..., baseUrl: QtCore.QUrl = ...) -> None: ... + def setHtml(self, html: str, baseUrl: QtCore.QUrl = ...) -> None: ... + @typing.overload + def load(self, url: QtCore.QUrl) -> None: ... + @typing.overload + def load(self, request: QtNetwork.QNetworkRequest, operation: QtNetwork.QNetworkAccessManager.Operation = ..., body: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> None: ... + def isModified(self) -> bool: ... + def setZoomFactor(self, a0: float) -> None: ... + def zoomFactor(self) -> float: ... + def icon(self) -> QtGui.QIcon: ... + def title(self) -> str: ... + def setUrl(self, a0: QtCore.QUrl) -> None: ... + def url(self) -> QtCore.QUrl: ... + def setPage(self, a0: 'QWebPage') -> None: ... + def page(self) -> 'QWebPage': ... + + +class QWebHitTestResult(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QWebHitTestResult') -> None: ... + + def linkTitleString(self) -> str: ... + def mediaUrl(self) -> QtCore.QUrl: ... + def element(self) -> QtWebKit.QWebElement: ... + def linkElement(self) -> QtWebKit.QWebElement: ... + def enclosingBlockElement(self) -> QtWebKit.QWebElement: ... + def boundingRect(self) -> QtCore.QRect: ... + def frame(self) -> 'QWebFrame': ... + def isContentSelected(self) -> bool: ... + def isContentEditable(self) -> bool: ... + def pixmap(self) -> QtGui.QPixmap: ... + def imageUrl(self) -> QtCore.QUrl: ... + def alternateText(self) -> str: ... + def linkTargetFrame(self) -> 'QWebFrame': ... + def linkTitle(self) -> QtCore.QUrl: ... + def linkUrl(self) -> QtCore.QUrl: ... + def linkText(self) -> str: ... + def title(self) -> str: ... + def pos(self) -> QtCore.QPoint: ... + def isNull(self) -> bool: ... + + +class QWebFrame(QtCore.QObject): + + class RenderLayer(int): ... + ContentsLayer = ... # type: 'QWebFrame.RenderLayer' + ScrollBarLayer = ... # type: 'QWebFrame.RenderLayer' + PanIconLayer = ... # type: 'QWebFrame.RenderLayer' + AllLayers = ... # type: 'QWebFrame.RenderLayer' + + class ValueOwnership(int): ... + QtOwnership = ... # type: 'QWebFrame.ValueOwnership' + ScriptOwnership = ... # type: 'QWebFrame.ValueOwnership' + AutoOwnership = ... # type: 'QWebFrame.ValueOwnership' + + class RenderLayers(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QWebFrame.RenderLayers', 'QWebFrame.RenderLayer']) -> None: ... + @typing.overload + def __init__(self, a0: 'QWebFrame.RenderLayers') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QWebFrame.RenderLayers': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + def scrollToAnchor(self, anchor: str) -> None: ... + def pageChanged(self) -> None: ... + def loadFinished(self, ok: bool) -> None: ... + def loadStarted(self) -> None: ... + def contentsSizeChanged(self, size: QtCore.QSize) -> None: ... + def findFirstElement(self, selectorQuery: str) -> QtWebKit.QWebElement: ... + def findAllElements(self, selectorQuery: str) -> QtWebKit.QWebElementCollection: ... + def documentElement(self) -> QtWebKit.QWebElement: ... + def setFocus(self) -> None: ... + def hasFocus(self) -> bool: ... + @typing.overload + def render(self, a0: QtGui.QPainter, clip: QtGui.QRegion = ...) -> None: ... + @typing.overload + def render(self, a0: QtGui.QPainter, layer: 'QWebFrame.RenderLayers', clip: QtGui.QRegion = ...) -> None: ... + def scrollBarGeometry(self, orientation: QtCore.Qt.Orientation) -> QtCore.QRect: ... + def baseUrl(self) -> QtCore.QUrl: ... + def requestedUrl(self) -> QtCore.QUrl: ... + def securityOrigin(self) -> QtWebKit.QWebSecurityOrigin: ... + def setZoomFactor(self, factor: float) -> None: ... + def zoomFactor(self) -> float: ... + def setScrollPosition(self, pos: QtCore.QPoint) -> None: ... + def scrollPosition(self) -> QtCore.QPoint: ... + def scroll(self, a0: int, a1: int) -> None: ... + def metaData(self) -> typing.Dict[str, typing.List[str]]: ... + def iconChanged(self) -> None: ... + def initialLayoutCompleted(self) -> None: ... + def urlChanged(self, url: QtCore.QUrl) -> None: ... + def titleChanged(self, title: str) -> None: ... + def javaScriptWindowObjectCleared(self) -> None: ... + def print(self, printer: QtPrintSupport.QPrinter) -> None: ... + def print_(self, printer: QtPrintSupport.QPrinter) -> None: ... + def evaluateJavaScript(self, scriptSource: str) -> typing.Any: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def hitTestContent(self, pos: QtCore.QPoint) -> QWebHitTestResult: ... + def contentsSize(self) -> QtCore.QSize: ... + def geometry(self) -> QtCore.QRect: ... + def pos(self) -> QtCore.QPoint: ... + def scrollBarMaximum(self, orientation: QtCore.Qt.Orientation) -> int: ... + def scrollBarMinimum(self, orientation: QtCore.Qt.Orientation) -> int: ... + def scrollBarValue(self, orientation: QtCore.Qt.Orientation) -> int: ... + def setScrollBarValue(self, orientation: QtCore.Qt.Orientation, value: int) -> None: ... + def setScrollBarPolicy(self, orientation: QtCore.Qt.Orientation, policy: QtCore.Qt.ScrollBarPolicy) -> None: ... + def scrollBarPolicy(self, orientation: QtCore.Qt.Orientation) -> QtCore.Qt.ScrollBarPolicy: ... + def childFrames(self) -> typing.List['QWebFrame']: ... + def parentFrame(self) -> 'QWebFrame': ... + def frameName(self) -> str: ... + def icon(self) -> QtGui.QIcon: ... + def url(self) -> QtCore.QUrl: ... + def setUrl(self, url: QtCore.QUrl) -> None: ... + def title(self) -> str: ... + def toPlainText(self) -> str: ... + def toHtml(self) -> str: ... + def addToJavaScriptWindowObject(self, name: str, object: QtCore.QObject, ownership: 'QWebFrame.ValueOwnership' = ...) -> None: ... + def setContent(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], mimeType: str = ..., baseUrl: QtCore.QUrl = ...) -> None: ... + def setHtml(self, html: str, baseUrl: QtCore.QUrl = ...) -> None: ... + @typing.overload + def load(self, url: QtCore.QUrl) -> None: ... + @typing.overload + def load(self, request: QtNetwork.QNetworkRequest, operation: QtNetwork.QNetworkAccessManager.Operation = ..., body: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> None: ... + def page(self) -> 'QWebPage': ... + + +class QWebInspector(QtWidgets.QWidget): + + def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + + def closeEvent(self, event: QtGui.QCloseEvent) -> None: ... + def hideEvent(self, event: QtGui.QHideEvent) -> None: ... + def showEvent(self, event: QtGui.QShowEvent) -> None: ... + def resizeEvent(self, event: QtGui.QResizeEvent) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def sizeHint(self) -> QtCore.QSize: ... + def page(self) -> 'QWebPage': ... + def setPage(self, page: 'QWebPage') -> None: ... + + +class QWebPage(QtCore.QObject): + + class VisibilityState(int): ... + VisibilityStateVisible = ... # type: 'QWebPage.VisibilityState' + VisibilityStateHidden = ... # type: 'QWebPage.VisibilityState' + VisibilityStatePrerender = ... # type: 'QWebPage.VisibilityState' + VisibilityStateUnloaded = ... # type: 'QWebPage.VisibilityState' + + class Feature(int): ... + Notifications = ... # type: 'QWebPage.Feature' + Geolocation = ... # type: 'QWebPage.Feature' + + class PermissionPolicy(int): ... + PermissionUnknown = ... # type: 'QWebPage.PermissionPolicy' + PermissionGrantedByUser = ... # type: 'QWebPage.PermissionPolicy' + PermissionDeniedByUser = ... # type: 'QWebPage.PermissionPolicy' + + class ErrorDomain(int): ... + QtNetwork = ... # type: 'QWebPage.ErrorDomain' + Http = ... # type: 'QWebPage.ErrorDomain' + WebKit = ... # type: 'QWebPage.ErrorDomain' + + class Extension(int): ... + ChooseMultipleFilesExtension = ... # type: 'QWebPage.Extension' + ErrorPageExtension = ... # type: 'QWebPage.Extension' + + class WebWindowType(int): ... + WebBrowserWindow = ... # type: 'QWebPage.WebWindowType' + WebModalDialog = ... # type: 'QWebPage.WebWindowType' + + class LinkDelegationPolicy(int): ... + DontDelegateLinks = ... # type: 'QWebPage.LinkDelegationPolicy' + DelegateExternalLinks = ... # type: 'QWebPage.LinkDelegationPolicy' + DelegateAllLinks = ... # type: 'QWebPage.LinkDelegationPolicy' + + class FindFlag(int): ... + FindBackward = ... # type: 'QWebPage.FindFlag' + FindCaseSensitively = ... # type: 'QWebPage.FindFlag' + FindWrapsAroundDocument = ... # type: 'QWebPage.FindFlag' + HighlightAllOccurrences = ... # type: 'QWebPage.FindFlag' + FindAtWordBeginningsOnly = ... # type: 'QWebPage.FindFlag' + TreatMedialCapitalAsWordBeginning = ... # type: 'QWebPage.FindFlag' + FindBeginsInSelection = ... # type: 'QWebPage.FindFlag' + + class WebAction(int): ... + NoWebAction = ... # type: 'QWebPage.WebAction' + OpenLink = ... # type: 'QWebPage.WebAction' + OpenLinkInNewWindow = ... # type: 'QWebPage.WebAction' + OpenFrameInNewWindow = ... # type: 'QWebPage.WebAction' + DownloadLinkToDisk = ... # type: 'QWebPage.WebAction' + CopyLinkToClipboard = ... # type: 'QWebPage.WebAction' + OpenImageInNewWindow = ... # type: 'QWebPage.WebAction' + DownloadImageToDisk = ... # type: 'QWebPage.WebAction' + CopyImageToClipboard = ... # type: 'QWebPage.WebAction' + Back = ... # type: 'QWebPage.WebAction' + Forward = ... # type: 'QWebPage.WebAction' + Stop = ... # type: 'QWebPage.WebAction' + Reload = ... # type: 'QWebPage.WebAction' + Cut = ... # type: 'QWebPage.WebAction' + Copy = ... # type: 'QWebPage.WebAction' + Paste = ... # type: 'QWebPage.WebAction' + Undo = ... # type: 'QWebPage.WebAction' + Redo = ... # type: 'QWebPage.WebAction' + MoveToNextChar = ... # type: 'QWebPage.WebAction' + MoveToPreviousChar = ... # type: 'QWebPage.WebAction' + MoveToNextWord = ... # type: 'QWebPage.WebAction' + MoveToPreviousWord = ... # type: 'QWebPage.WebAction' + MoveToNextLine = ... # type: 'QWebPage.WebAction' + MoveToPreviousLine = ... # type: 'QWebPage.WebAction' + MoveToStartOfLine = ... # type: 'QWebPage.WebAction' + MoveToEndOfLine = ... # type: 'QWebPage.WebAction' + MoveToStartOfBlock = ... # type: 'QWebPage.WebAction' + MoveToEndOfBlock = ... # type: 'QWebPage.WebAction' + MoveToStartOfDocument = ... # type: 'QWebPage.WebAction' + MoveToEndOfDocument = ... # type: 'QWebPage.WebAction' + SelectNextChar = ... # type: 'QWebPage.WebAction' + SelectPreviousChar = ... # type: 'QWebPage.WebAction' + SelectNextWord = ... # type: 'QWebPage.WebAction' + SelectPreviousWord = ... # type: 'QWebPage.WebAction' + SelectNextLine = ... # type: 'QWebPage.WebAction' + SelectPreviousLine = ... # type: 'QWebPage.WebAction' + SelectStartOfLine = ... # type: 'QWebPage.WebAction' + SelectEndOfLine = ... # type: 'QWebPage.WebAction' + SelectStartOfBlock = ... # type: 'QWebPage.WebAction' + SelectEndOfBlock = ... # type: 'QWebPage.WebAction' + SelectStartOfDocument = ... # type: 'QWebPage.WebAction' + SelectEndOfDocument = ... # type: 'QWebPage.WebAction' + DeleteStartOfWord = ... # type: 'QWebPage.WebAction' + DeleteEndOfWord = ... # type: 'QWebPage.WebAction' + SetTextDirectionDefault = ... # type: 'QWebPage.WebAction' + SetTextDirectionLeftToRight = ... # type: 'QWebPage.WebAction' + SetTextDirectionRightToLeft = ... # type: 'QWebPage.WebAction' + ToggleBold = ... # type: 'QWebPage.WebAction' + ToggleItalic = ... # type: 'QWebPage.WebAction' + ToggleUnderline = ... # type: 'QWebPage.WebAction' + InspectElement = ... # type: 'QWebPage.WebAction' + InsertParagraphSeparator = ... # type: 'QWebPage.WebAction' + InsertLineSeparator = ... # type: 'QWebPage.WebAction' + SelectAll = ... # type: 'QWebPage.WebAction' + ReloadAndBypassCache = ... # type: 'QWebPage.WebAction' + PasteAndMatchStyle = ... # type: 'QWebPage.WebAction' + RemoveFormat = ... # type: 'QWebPage.WebAction' + ToggleStrikethrough = ... # type: 'QWebPage.WebAction' + ToggleSubscript = ... # type: 'QWebPage.WebAction' + ToggleSuperscript = ... # type: 'QWebPage.WebAction' + InsertUnorderedList = ... # type: 'QWebPage.WebAction' + InsertOrderedList = ... # type: 'QWebPage.WebAction' + Indent = ... # type: 'QWebPage.WebAction' + Outdent = ... # type: 'QWebPage.WebAction' + AlignCenter = ... # type: 'QWebPage.WebAction' + AlignJustified = ... # type: 'QWebPage.WebAction' + AlignLeft = ... # type: 'QWebPage.WebAction' + AlignRight = ... # type: 'QWebPage.WebAction' + StopScheduledPageRefresh = ... # type: 'QWebPage.WebAction' + CopyImageUrlToClipboard = ... # type: 'QWebPage.WebAction' + OpenLinkInThisWindow = ... # type: 'QWebPage.WebAction' + DownloadMediaToDisk = ... # type: 'QWebPage.WebAction' + CopyMediaUrlToClipboard = ... # type: 'QWebPage.WebAction' + ToggleMediaControls = ... # type: 'QWebPage.WebAction' + ToggleMediaLoop = ... # type: 'QWebPage.WebAction' + ToggleMediaPlayPause = ... # type: 'QWebPage.WebAction' + ToggleMediaMute = ... # type: 'QWebPage.WebAction' + ToggleVideoFullscreen = ... # type: 'QWebPage.WebAction' + + class NavigationType(int): ... + NavigationTypeLinkClicked = ... # type: 'QWebPage.NavigationType' + NavigationTypeFormSubmitted = ... # type: 'QWebPage.NavigationType' + NavigationTypeBackOrForward = ... # type: 'QWebPage.NavigationType' + NavigationTypeReload = ... # type: 'QWebPage.NavigationType' + NavigationTypeFormResubmitted = ... # type: 'QWebPage.NavigationType' + NavigationTypeOther = ... # type: 'QWebPage.NavigationType' + + class FindFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QWebPage.FindFlags', 'QWebPage.FindFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QWebPage.FindFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QWebPage.FindFlags': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + class ExtensionOption(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QWebPage.ExtensionOption') -> None: ... + + class ExtensionReturn(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QWebPage.ExtensionReturn') -> None: ... + + class ChooseMultipleFilesExtensionOption('QWebPage.ExtensionOption'): + + parentFrame = ... # type: QWebFrame + suggestedFileNames = ... # type: typing.Iterable[str] + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QWebPage.ChooseMultipleFilesExtensionOption') -> None: ... + + class ChooseMultipleFilesExtensionReturn('QWebPage.ExtensionReturn'): + + fileNames = ... # type: typing.Iterable[str] + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QWebPage.ChooseMultipleFilesExtensionReturn') -> None: ... + + class ErrorPageExtensionOption('QWebPage.ExtensionOption'): + + domain = ... # type: 'QWebPage.ErrorDomain' + error = ... # type: int + errorString = ... # type: str + frame = ... # type: QWebFrame + url = ... # type: QtCore.QUrl + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QWebPage.ErrorPageExtensionOption') -> None: ... + + class ErrorPageExtensionReturn('QWebPage.ExtensionReturn'): + + baseUrl = ... # type: QtCore.QUrl + content = ... # type: typing.Union[QtCore.QByteArray, bytes, bytearray] + contentType = ... # type: str + encoding = ... # type: str + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QWebPage.ErrorPageExtensionReturn') -> None: ... + + class ViewportAttributes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QWebPage.ViewportAttributes') -> None: ... + + def size(self) -> QtCore.QSizeF: ... + def isValid(self) -> bool: ... + def isUserScalable(self) -> bool: ... + def devicePixelRatio(self) -> float: ... + def maximumScaleFactor(self) -> float: ... + def minimumScaleFactor(self) -> float: ... + def initialScaleFactor(self) -> float: ... + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setVisibilityState(self, a0: 'QWebPage.VisibilityState') -> None: ... + def visibilityState(self) -> 'QWebPage.VisibilityState': ... + def featurePermissionRequestCanceled(self, frame: QWebFrame, feature: 'QWebPage.Feature') -> None: ... + def featurePermissionRequested(self, frame: QWebFrame, feature: 'QWebPage.Feature') -> None: ... + def viewportChangeRequested(self) -> None: ... + def applicationCacheQuotaExceeded(self, origin: QtWebKit.QWebSecurityOrigin, defaultOriginQuota: int, totalSpaceNeeded: int) -> None: ... + def supportsContentType(self, mimeType: str) -> bool: ... + def supportedContentTypes(self) -> typing.List[str]: ... + def setFeaturePermission(self, frame: QWebFrame, feature: 'QWebPage.Feature', policy: 'QWebPage.PermissionPolicy') -> None: ... + def setActualVisibleContentRect(self, rect: QtCore.QRect) -> None: ... + def viewportAttributesForSize(self, availableSize: QtCore.QSize) -> 'QWebPage.ViewportAttributes': ... + def selectedHtml(self) -> str: ... + def hasSelection(self) -> bool: ... + def shouldInterruptJavaScript(self) -> bool: ... + def setPreferredContentsSize(self, size: QtCore.QSize) -> None: ... + def preferredContentsSize(self) -> QtCore.QSize: ... + def frameAt(self, pos: QtCore.QPoint) -> QWebFrame: ... + def restoreFrameStateRequested(self, frame: QWebFrame) -> None: ... + def saveFrameStateRequested(self, frame: QWebFrame, item: QtWebKit.QWebHistoryItem) -> None: ... + def databaseQuotaExceeded(self, frame: QWebFrame, databaseName: str) -> None: ... + def contentsChanged(self) -> None: ... + def createStandardContextMenu(self) -> QtWidgets.QMenu: ... + def isContentEditable(self) -> bool: ... + def setContentEditable(self, editable: bool) -> None: ... + def userAgentForUrl(self, url: QtCore.QUrl) -> str: ... + def javaScriptConsoleMessage(self, message: str, lineNumber: int, sourceID: str) -> None: ... + def javaScriptPrompt(self, originatingFrame: QWebFrame, msg: str, defaultValue: str) -> typing.Tuple[bool, str]: ... + def javaScriptConfirm(self, originatingFrame: QWebFrame, msg: str) -> bool: ... + def javaScriptAlert(self, originatingFrame: QWebFrame, msg: str) -> None: ... + def chooseFile(self, originatingFrame: QWebFrame, oldFile: str) -> str: ... + def acceptNavigationRequest(self, frame: QWebFrame, request: QtNetwork.QNetworkRequest, type: 'QWebPage.NavigationType') -> bool: ... + def createPlugin(self, classid: str, url: QtCore.QUrl, paramNames: typing.Iterable[str], paramValues: typing.Iterable[str]) -> QtCore.QObject: ... + def createWindow(self, type: 'QWebPage.WebWindowType') -> 'QWebPage': ... + def microFocusChanged(self) -> None: ... + def downloadRequested(self, request: QtNetwork.QNetworkRequest) -> None: ... + def unsupportedContent(self, reply: QtNetwork.QNetworkReply) -> None: ... + def menuBarVisibilityChangeRequested(self, visible: bool) -> None: ... + def statusBarVisibilityChangeRequested(self, visible: bool) -> None: ... + def toolBarVisibilityChangeRequested(self, visible: bool) -> None: ... + def linkClicked(self, url: QtCore.QUrl) -> None: ... + def printRequested(self, frame: QWebFrame) -> None: ... + def windowCloseRequested(self) -> None: ... + def scrollRequested(self, dx: int, dy: int, scrollViewRect: QtCore.QRect) -> None: ... + def repaintRequested(self, dirtyRect: QtCore.QRect) -> None: ... + def geometryChangeRequested(self, geom: QtCore.QRect) -> None: ... + def frameCreated(self, frame: QWebFrame) -> None: ... + def selectionChanged(self) -> None: ... + def statusBarMessage(self, text: str) -> None: ... + def linkHovered(self, link: str, title: str, textContent: str) -> None: ... + def loadStarted(self) -> None: ... + def loadProgress(self, progress: int) -> None: ... + def loadFinished(self, ok: bool) -> None: ... + def supportsExtension(self, extension: 'QWebPage.Extension') -> bool: ... + def extension(self, extension: 'QWebPage.Extension', option: typing.Optional['QWebPage.ExtensionOption'] = ..., output: typing.Optional['QWebPage.ExtensionReturn'] = ...) -> bool: ... + def updatePositionDependentActions(self, pos: QtCore.QPoint) -> None: ... + def swallowContextMenuEvent(self, event: QtGui.QContextMenuEvent) -> bool: ... + def palette(self) -> QtGui.QPalette: ... + def setPalette(self, palette: QtGui.QPalette) -> None: ... + def linkDelegationPolicy(self) -> 'QWebPage.LinkDelegationPolicy': ... + def setLinkDelegationPolicy(self, policy: 'QWebPage.LinkDelegationPolicy') -> None: ... + def forwardUnsupportedContent(self) -> bool: ... + def setForwardUnsupportedContent(self, forward: bool) -> None: ... + def findText(self, subString: str, options: 'QWebPage.FindFlags' = ...) -> bool: ... + def inputMethodQuery(self, property: QtCore.Qt.InputMethodQuery) -> typing.Any: ... + def focusNextPrevChild(self, next: bool) -> bool: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def setViewportSize(self, size: QtCore.QSize) -> None: ... + def viewportSize(self) -> QtCore.QSize: ... + def triggerAction(self, action: 'QWebPage.WebAction', checked: bool = ...) -> None: ... + def action(self, action: 'QWebPage.WebAction') -> QtWidgets.QAction: ... + def selectedText(self) -> str: ... + def bytesReceived(self) -> int: ... + def totalBytes(self) -> int: ... + def pluginFactory(self) -> QtWebKit.QWebPluginFactory: ... + def setPluginFactory(self, factory: QtWebKit.QWebPluginFactory) -> None: ... + def networkAccessManager(self) -> QtNetwork.QNetworkAccessManager: ... + def setNetworkAccessManager(self, manager: QtNetwork.QNetworkAccessManager) -> None: ... + def undoStack(self) -> QtWidgets.QUndoStack: ... + def isModified(self) -> bool: ... + def view(self) -> QtWidgets.QWidget: ... + def setView(self, view: QtWidgets.QWidget) -> None: ... + def settings(self) -> QtWebKit.QWebSettings: ... + def history(self) -> QtWebKit.QWebHistory: ... + def currentFrame(self) -> QWebFrame: ... + def mainFrame(self) -> QWebFrame: ... + + +class QWebView(QtWidgets.QWidget): + + def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + + def selectedHtml(self) -> str: ... + def hasSelection(self) -> bool: ... + def setRenderHint(self, hint: QtGui.QPainter.RenderHint, enabled: bool = ...) -> None: ... + def setRenderHints(self, hints: QtGui.QPainter.RenderHints) -> None: ... + def renderHints(self) -> QtGui.QPainter.RenderHints: ... + def setZoomFactor(self, factor: float) -> None: ... + def zoomFactor(self) -> float: ... + def focusNextPrevChild(self, next: bool) -> bool: ... + def inputMethodEvent(self, a0: QtGui.QInputMethodEvent) -> None: ... + def focusOutEvent(self, a0: QtGui.QFocusEvent) -> None: ... + def focusInEvent(self, a0: QtGui.QFocusEvent) -> None: ... + def dropEvent(self, a0: QtGui.QDropEvent) -> None: ... + def dragMoveEvent(self, a0: QtGui.QDragMoveEvent) -> None: ... + def dragLeaveEvent(self, a0: QtGui.QDragLeaveEvent) -> None: ... + def dragEnterEvent(self, a0: QtGui.QDragEnterEvent) -> None: ... + def keyReleaseEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def wheelEvent(self, a0: QtGui.QWheelEvent) -> None: ... + def contextMenuEvent(self, a0: QtGui.QContextMenuEvent) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mouseDoubleClickEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def changeEvent(self, a0: QtCore.QEvent) -> None: ... + def paintEvent(self, ev: QtGui.QPaintEvent) -> None: ... + def resizeEvent(self, e: QtGui.QResizeEvent) -> None: ... + def createWindow(self, type: QWebPage.WebWindowType) -> 'QWebView': ... + def urlChanged(self, url: QtCore.QUrl) -> None: ... + def iconChanged(self) -> None: ... + def selectionChanged(self) -> None: ... + def linkClicked(self, url: QtCore.QUrl) -> None: ... + def statusBarMessage(self, text: str) -> None: ... + def titleChanged(self, title: str) -> None: ... + def loadFinished(self, a0: bool) -> None: ... + def loadProgress(self, progress: int) -> None: ... + def loadStarted(self) -> None: ... + def print(self, printer: QtPrintSupport.QPrinter) -> None: ... + def print_(self, printer: QtPrintSupport.QPrinter) -> None: ... + def reload(self) -> None: ... + def forward(self) -> None: ... + def back(self) -> None: ... + def stop(self) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def findText(self, subString: str, options: QWebPage.FindFlags = ...) -> bool: ... + def sizeHint(self) -> QtCore.QSize: ... + def inputMethodQuery(self, property: QtCore.Qt.InputMethodQuery) -> typing.Any: ... + def isModified(self) -> bool: ... + def triggerPageAction(self, action: QWebPage.WebAction, checked: bool = ...) -> None: ... + def pageAction(self, action: QWebPage.WebAction) -> QtWidgets.QAction: ... + def selectedText(self) -> str: ... + def icon(self) -> QtGui.QIcon: ... + def url(self) -> QtCore.QUrl: ... + def setUrl(self, url: QtCore.QUrl) -> None: ... + def title(self) -> str: ... + def settings(self) -> QtWebKit.QWebSettings: ... + def history(self) -> QtWebKit.QWebHistory: ... + def setContent(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], mimeType: str = ..., baseUrl: QtCore.QUrl = ...) -> None: ... + def setHtml(self, html: str, baseUrl: QtCore.QUrl = ...) -> None: ... + @typing.overload + def load(self, url: QtCore.QUrl) -> None: ... + @typing.overload + def load(self, request: QtNetwork.QNetworkRequest, operation: QtNetwork.QNetworkAccessManager.Operation = ..., body: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> None: ... + def setPage(self, page: QWebPage) -> None: ... + def page(self) -> QWebPage: ... diff --git a/PyQt5-stubs/QtWebSockets.pyi b/PyQt5-stubs/QtWebSockets.pyi new file mode 100644 index 00000000..4b14bbd2 --- /dev/null +++ b/PyQt5-stubs/QtWebSockets.pyi @@ -0,0 +1,196 @@ +# The PEP 484 type hints stub file for the QtWebSockets module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2020 Riverbank Computing Limited +# +# 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 sip + +from PyQt5 import QtNetwork +from PyQt5 import QtCore + +# 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] + + +class QMaskGenerator(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def nextMask(self) -> int: ... + def seed(self) -> bool: ... + + +class QWebSocket(QtCore.QObject): + + def __init__(self, origin: str = ..., version: 'QWebSocketProtocol.Version' = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def bytesToWrite(self) -> int: ... + def preSharedKeyAuthenticationRequired(self, authenticator: QtNetwork.QSslPreSharedKeyAuthenticator) -> None: ... + def sslErrors(self, errors: typing.Iterable[QtNetwork.QSslError]) -> None: ... + def bytesWritten(self, bytes: int) -> None: ... + def pong(self, elapsedTime: int, payload: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def binaryMessageReceived(self, message: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def textMessageReceived(self, message: str) -> None: ... + def binaryFrameReceived(self, frame: typing.Union[QtCore.QByteArray, bytes, bytearray], isLastFrame: bool) -> None: ... + def textFrameReceived(self, frame: str, isLastFrame: bool) -> None: ... + def readChannelFinished(self) -> None: ... + def proxyAuthenticationRequired(self, proxy: QtNetwork.QNetworkProxy, pAuthenticator: QtNetwork.QAuthenticator) -> None: ... + def stateChanged(self, state: QtNetwork.QAbstractSocket.SocketState) -> None: ... + def disconnected(self) -> None: ... + def connected(self) -> None: ... + def aboutToClose(self) -> None: ... + def ping(self, payload: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> None: ... + @typing.overload + def open(self, url: QtCore.QUrl) -> None: ... + @typing.overload + def open(self, request: QtNetwork.QNetworkRequest) -> None: ... + def close(self, closeCode: 'QWebSocketProtocol.CloseCode' = ..., reason: str = ...) -> None: ... + def request(self) -> QtNetwork.QNetworkRequest: ... + def sslConfiguration(self) -> QtNetwork.QSslConfiguration: ... + def setSslConfiguration(self, sslConfiguration: QtNetwork.QSslConfiguration) -> None: ... + @typing.overload + def ignoreSslErrors(self, errors: typing.Iterable[QtNetwork.QSslError]) -> None: ... + @typing.overload + def ignoreSslErrors(self) -> None: ... + def sendBinaryMessage(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> int: ... + def sendTextMessage(self, message: str) -> int: ... + def closeReason(self) -> str: ... + def closeCode(self) -> 'QWebSocketProtocol.CloseCode': ... + def origin(self) -> str: ... + def requestUrl(self) -> QtCore.QUrl: ... + def resourceName(self) -> str: ... + def version(self) -> 'QWebSocketProtocol.Version': ... + def state(self) -> QtNetwork.QAbstractSocket.SocketState: ... + def setPauseMode(self, pauseMode: typing.Union[QtNetwork.QAbstractSocket.PauseModes, QtNetwork.QAbstractSocket.PauseMode]) -> None: ... + def resume(self) -> None: ... + def setReadBufferSize(self, size: int) -> None: ... + def readBufferSize(self) -> int: ... + def maskGenerator(self) -> QMaskGenerator: ... + def setMaskGenerator(self, maskGenerator: QMaskGenerator) -> None: ... + def setProxy(self, networkProxy: QtNetwork.QNetworkProxy) -> None: ... + def proxy(self) -> QtNetwork.QNetworkProxy: ... + def peerPort(self) -> int: ... + def peerName(self) -> str: ... + def peerAddress(self) -> QtNetwork.QHostAddress: ... + def pauseMode(self) -> QtNetwork.QAbstractSocket.PauseModes: ... + def localPort(self) -> int: ... + def localAddress(self) -> QtNetwork.QHostAddress: ... + def isValid(self) -> bool: ... + def flush(self) -> bool: ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> QtNetwork.QAbstractSocket.SocketError: ... + @typing.overload + def error(self, error: QtNetwork.QAbstractSocket.SocketError) -> None: ... + def abort(self) -> None: ... + + +class QWebSocketCorsAuthenticator(sip.simplewrapper): + + @typing.overload + def __init__(self, origin: str) -> None: ... + @typing.overload + def __init__(self, other: 'QWebSocketCorsAuthenticator') -> None: ... + + def allowed(self) -> bool: ... + def setAllowed(self, allowed: bool) -> None: ... + def origin(self) -> str: ... + def swap(self, other: 'QWebSocketCorsAuthenticator') -> None: ... + + +class QWebSocketProtocol(sip.simplewrapper): + + class CloseCode(int): ... + CloseCodeNormal = ... # type: 'QWebSocketProtocol.CloseCode' + CloseCodeGoingAway = ... # type: 'QWebSocketProtocol.CloseCode' + CloseCodeProtocolError = ... # type: 'QWebSocketProtocol.CloseCode' + CloseCodeDatatypeNotSupported = ... # type: 'QWebSocketProtocol.CloseCode' + CloseCodeReserved1004 = ... # type: 'QWebSocketProtocol.CloseCode' + CloseCodeMissingStatusCode = ... # type: 'QWebSocketProtocol.CloseCode' + CloseCodeAbnormalDisconnection = ... # type: 'QWebSocketProtocol.CloseCode' + CloseCodeWrongDatatype = ... # type: 'QWebSocketProtocol.CloseCode' + CloseCodePolicyViolated = ... # type: 'QWebSocketProtocol.CloseCode' + CloseCodeTooMuchData = ... # type: 'QWebSocketProtocol.CloseCode' + CloseCodeMissingExtension = ... # type: 'QWebSocketProtocol.CloseCode' + CloseCodeBadOperation = ... # type: 'QWebSocketProtocol.CloseCode' + CloseCodeTlsHandshakeFailed = ... # type: 'QWebSocketProtocol.CloseCode' + + class Version(int): ... + VersionUnknown = ... # type: 'QWebSocketProtocol.Version' + Version0 = ... # type: 'QWebSocketProtocol.Version' + Version4 = ... # type: 'QWebSocketProtocol.Version' + Version5 = ... # type: 'QWebSocketProtocol.Version' + Version6 = ... # type: 'QWebSocketProtocol.Version' + Version7 = ... # type: 'QWebSocketProtocol.Version' + Version8 = ... # type: 'QWebSocketProtocol.Version' + Version13 = ... # type: 'QWebSocketProtocol.Version' + VersionLatest = ... # type: 'QWebSocketProtocol.Version' + + +class QWebSocketServer(QtCore.QObject): + + class SslMode(int): ... + SecureMode = ... # type: 'QWebSocketServer.SslMode' + NonSecureMode = ... # type: 'QWebSocketServer.SslMode' + + def __init__(self, serverName: str, secureMode: 'QWebSocketServer.SslMode', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def handshakeTimeoutMS(self) -> int: ... + def setHandshakeTimeout(self, msec: int) -> None: ... + def nativeDescriptor(self) -> sip.voidptr: ... + def setNativeDescriptor(self, descriptor: sip.voidptr) -> bool: ... + def preSharedKeyAuthenticationRequired(self, authenticator: QtNetwork.QSslPreSharedKeyAuthenticator) -> None: ... + def closed(self) -> None: ... + def sslErrors(self, errors: typing.Iterable[QtNetwork.QSslError]) -> None: ... + def peerVerifyError(self, error: QtNetwork.QSslError) -> None: ... + def newConnection(self) -> None: ... + def originAuthenticationRequired(self, pAuthenticator: QWebSocketCorsAuthenticator) -> None: ... + def serverError(self, closeCode: QWebSocketProtocol.CloseCode) -> None: ... + def acceptError(self, socketError: QtNetwork.QAbstractSocket.SocketError) -> None: ... + def handleConnection(self, socket: QtNetwork.QTcpSocket) -> None: ... + def serverUrl(self) -> QtCore.QUrl: ... + def supportedVersions(self) -> typing.List[QWebSocketProtocol.Version]: ... + def sslConfiguration(self) -> QtNetwork.QSslConfiguration: ... + def setSslConfiguration(self, sslConfiguration: QtNetwork.QSslConfiguration) -> None: ... + def proxy(self) -> QtNetwork.QNetworkProxy: ... + def setProxy(self, networkProxy: QtNetwork.QNetworkProxy) -> None: ... + def serverName(self) -> str: ... + def setServerName(self, serverName: str) -> None: ... + def resumeAccepting(self) -> None: ... + def pauseAccepting(self) -> None: ... + def errorString(self) -> str: ... + def error(self) -> QWebSocketProtocol.CloseCode: ... + def nextPendingConnection(self) -> QWebSocket: ... + def hasPendingConnections(self) -> bool: ... + def socketDescriptor(self) -> int: ... + def setSocketDescriptor(self, socketDescriptor: int) -> bool: ... + def secureMode(self) -> 'QWebSocketServer.SslMode': ... + def serverAddress(self) -> QtNetwork.QHostAddress: ... + def serverPort(self) -> int: ... + def maxPendingConnections(self) -> int: ... + def setMaxPendingConnections(self, numConnections: int) -> None: ... + def isListening(self) -> bool: ... + def close(self) -> None: ... + def listen(self, address: typing.Union[QtNetwork.QHostAddress, QtNetwork.QHostAddress.SpecialAddress] = ..., port: int = ...) -> bool: ... From 1dfbd660a61e5b17a1447b0fd4a948e2e9135603 Mon Sep 17 00:00:00 2001 From: Stefan Lehmann Date: Mon, 4 May 2020 17:14:10 +0200 Subject: [PATCH 3/3] Add remaining stubs --- PyQt5-stubs/QtDataVisualization.pyi | 1404 ++++++++++++++++++++ PyQt5-stubs/QtDesigner.pyi | 482 +++++++ PyQt5-stubs/QtLocation.pyi | 1187 +++++++++++++++++ PyQt5-stubs/QtMultimedia.pyi | 1912 +++++++++++++++++++++++++++ PyQt5-stubs/QtMultimediaWidgets.pyi | 100 ++ PyQt5-stubs/QtNfc.pyi | 434 ++++++ PyQt5-stubs/QtPositioning.pyi | 537 ++++++++ PyQt5-stubs/QtPurchasing.pyi | 89 ++ PyQt5-stubs/QtQml.pyi | 653 +++++++++ PyQt5-stubs/QtQuick.pyi | 1467 ++++++++++++++++++++ PyQt5-stubs/QtQuickWidgets.pyi | 102 ++ PyQt5-stubs/QtRemoteObjects.pyi | 191 +++ PyQt5-stubs/QtSensors.pyi | 663 ++++++++++ PyQt5-stubs/QtSerialPort.pyi | 241 ++++ PyQt5-stubs/QtSvg.pyi | 143 ++ PyQt5-stubs/QtX11Extras.pyi | 73 + PyQt5-stubs/QtXmlPatterns.pyi | 368 ++++++ 17 files changed, 10046 insertions(+) create mode 100644 PyQt5-stubs/QtDataVisualization.pyi create mode 100644 PyQt5-stubs/QtDesigner.pyi create mode 100644 PyQt5-stubs/QtLocation.pyi create mode 100644 PyQt5-stubs/QtMultimedia.pyi create mode 100644 PyQt5-stubs/QtMultimediaWidgets.pyi create mode 100644 PyQt5-stubs/QtNfc.pyi create mode 100644 PyQt5-stubs/QtPositioning.pyi create mode 100644 PyQt5-stubs/QtPurchasing.pyi create mode 100644 PyQt5-stubs/QtQml.pyi create mode 100644 PyQt5-stubs/QtQuick.pyi create mode 100644 PyQt5-stubs/QtQuickWidgets.pyi create mode 100644 PyQt5-stubs/QtRemoteObjects.pyi create mode 100644 PyQt5-stubs/QtSensors.pyi create mode 100644 PyQt5-stubs/QtSerialPort.pyi create mode 100644 PyQt5-stubs/QtSvg.pyi create mode 100644 PyQt5-stubs/QtX11Extras.pyi create mode 100644 PyQt5-stubs/QtXmlPatterns.pyi diff --git a/PyQt5-stubs/QtDataVisualization.pyi b/PyQt5-stubs/QtDataVisualization.pyi new file mode 100644 index 00000000..6a71a950 --- /dev/null +++ b/PyQt5-stubs/QtDataVisualization.pyi @@ -0,0 +1,1404 @@ +# The PEP 484 type hints stub file for the QtDataVisualization module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQtDataVisualization. +# +# 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 sip + +from PyQt5 import QtGui + +# 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], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QtDataVisualization(sip.simplewrapper): + + class QAbstract3DGraph(QtGui.QWindow): + + class OptimizationHint(int): ... + OptimizationDefault = ... # type: 'QAbstract3DGraph.OptimizationHint' + OptimizationStatic = ... # type: 'QAbstract3DGraph.OptimizationHint' + + class ElementType(int): ... + ElementNone = ... # type: 'QAbstract3DGraph.ElementType' + ElementSeries = ... # type: 'QAbstract3DGraph.ElementType' + ElementAxisXLabel = ... # type: 'QAbstract3DGraph.ElementType' + ElementAxisYLabel = ... # type: 'QAbstract3DGraph.ElementType' + ElementAxisZLabel = ... # type: 'QAbstract3DGraph.ElementType' + ElementCustomItem = ... # type: 'QAbstract3DGraph.ElementType' + + class ShadowQuality(int): ... + ShadowQualityNone = ... # type: 'QAbstract3DGraph.ShadowQuality' + ShadowQualityLow = ... # type: 'QAbstract3DGraph.ShadowQuality' + ShadowQualityMedium = ... # type: 'QAbstract3DGraph.ShadowQuality' + ShadowQualityHigh = ... # type: 'QAbstract3DGraph.ShadowQuality' + ShadowQualitySoftLow = ... # type: 'QAbstract3DGraph.ShadowQuality' + ShadowQualitySoftMedium = ... # type: 'QAbstract3DGraph.ShadowQuality' + ShadowQualitySoftHigh = ... # type: 'QAbstract3DGraph.ShadowQuality' + + class SelectionFlag(int): ... + SelectionNone = ... # type: 'QAbstract3DGraph.SelectionFlag' + SelectionItem = ... # type: 'QAbstract3DGraph.SelectionFlag' + SelectionRow = ... # type: 'QAbstract3DGraph.SelectionFlag' + SelectionItemAndRow = ... # type: 'QAbstract3DGraph.SelectionFlag' + SelectionColumn = ... # type: 'QAbstract3DGraph.SelectionFlag' + SelectionItemAndColumn = ... # type: 'QAbstract3DGraph.SelectionFlag' + SelectionRowAndColumn = ... # type: 'QAbstract3DGraph.SelectionFlag' + SelectionItemRowAndColumn = ... # type: 'QAbstract3DGraph.SelectionFlag' + SelectionSlice = ... # type: 'QAbstract3DGraph.SelectionFlag' + SelectionMultiSeries = ... # type: 'QAbstract3DGraph.SelectionFlag' + + class SelectionFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QAbstract3DGraph.SelectionFlags', 'QAbstract3DGraph.SelectionFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QAbstract3DGraph.SelectionFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QAbstract3DGraph.SelectionFlags': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + class OptimizationHints(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QAbstract3DGraph.OptimizationHints', 'QAbstract3DGraph.OptimizationHint']) -> None: ... + @typing.overload + def __init__(self, a0: 'QAbstract3DGraph.OptimizationHints') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QAbstract3DGraph.OptimizationHints': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + def hasContext(self) -> bool: ... + def marginChanged(self, margin: float) -> None: ... + def queriedGraphPositionChanged(self, data: QtGui.QVector3D) -> None: ... + def localeChanged(self, locale: QtCore.QLocale) -> None: ... + def reflectivityChanged(self, reflectivity: float) -> None: ... + def reflectionChanged(self, enabled: bool) -> None: ... + def horizontalAspectRatioChanged(self, ratio: float) -> None: ... + def radialLabelOffsetChanged(self, offset: float) -> None: ... + def polarChanged(self, enabled: bool) -> None: ... + def margin(self) -> float: ... + def setMargin(self, margin: float) -> None: ... + def queriedGraphPosition(self) -> QtGui.QVector3D: ... + def locale(self) -> QtCore.QLocale: ... + def setLocale(self, locale: QtCore.QLocale) -> None: ... + def reflectivity(self) -> float: ... + def setReflectivity(self, reflectivity: float) -> None: ... + def isReflection(self) -> bool: ... + def setReflection(self, enable: bool) -> None: ... + def horizontalAspectRatio(self) -> float: ... + def setHorizontalAspectRatio(self, ratio: float) -> None: ... + def radialLabelOffset(self) -> float: ... + def setRadialLabelOffset(self, offset: float) -> None: ... + def isPolar(self) -> bool: ... + def setPolar(self, enable: bool) -> None: ... + def customItems(self) -> typing.List['QCustom3DItem']: ... + def optimizationHintsChanged(self, hints: typing.Union['QAbstract3DGraph.OptimizationHints', 'QAbstract3DGraph.OptimizationHint']) -> None: ... + def aspectRatioChanged(self, ratio: float) -> None: ... + def orthoProjectionChanged(self, enabled: bool) -> None: ... + def currentFpsChanged(self, fps: float) -> None: ... + def measureFpsChanged(self, enabled: bool) -> None: ... + def selectedElementChanged(self, type: 'QAbstract3DGraph.ElementType') -> None: ... + def optimizationHints(self) -> 'QAbstract3DGraph.OptimizationHints': ... + def setOptimizationHints(self, hints: typing.Union['QAbstract3DGraph.OptimizationHints', 'QAbstract3DGraph.OptimizationHint']) -> None: ... + def aspectRatio(self) -> float: ... + def setAspectRatio(self, ratio: float) -> None: ... + def selectedElement(self) -> 'QAbstract3DGraph.ElementType': ... + def isOrthoProjection(self) -> bool: ... + def setOrthoProjection(self, enable: bool) -> None: ... + def currentFps(self) -> float: ... + def measureFps(self) -> bool: ... + def setMeasureFps(self, enable: bool) -> None: ... + def renderToImage(self, msaaSamples: int = ..., imageSize: QtCore.QSize = ...) -> QtGui.QImage: ... + def selectedCustomItem(self) -> 'QCustom3DItem': ... + def selectedCustomItemIndex(self) -> int: ... + def selectedAxis(self) -> 'QAbstract3DAxis': ... + def selectedLabelIndex(self) -> int: ... + def releaseCustomItem(self, item: 'QCustom3DItem') -> None: ... + def removeCustomItemAt(self, position: QtGui.QVector3D) -> None: ... + def removeCustomItem(self, item: 'QCustom3DItem') -> None: ... + def removeCustomItems(self) -> None: ... + def addCustomItem(self, item: 'QCustom3DItem') -> int: ... + def wheelEvent(self, event: QtGui.QWheelEvent) -> None: ... + def mouseMoveEvent(self, event: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, event: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, event: QtGui.QMouseEvent) -> None: ... + def touchEvent(self, event: QtGui.QTouchEvent) -> None: ... + def mouseDoubleClickEvent(self, event: QtGui.QMouseEvent) -> None: ... + def exposeEvent(self, event: QtGui.QExposeEvent) -> None: ... + def resizeEvent(self, event: QtGui.QResizeEvent) -> None: ... + def event(self, event: QtCore.QEvent) -> bool: ... + def shadowQualityChanged(self, quality: 'QAbstract3DGraph.ShadowQuality') -> None: ... + def selectionModeChanged(self, mode: typing.Union['QAbstract3DGraph.SelectionFlags', 'QAbstract3DGraph.SelectionFlag']) -> None: ... + def activeThemeChanged(self, theme: 'Q3DTheme') -> None: ... + def activeInputHandlerChanged(self, inputHandler: 'QAbstract3DInputHandler') -> None: ... + def shadowsSupported(self) -> bool: ... + def activeInputHandler(self) -> 'QAbstract3DInputHandler': ... + def clearSelection(self) -> None: ... + def scene(self) -> 'Q3DScene': ... + def shadowQuality(self) -> 'QAbstract3DGraph.ShadowQuality': ... + def setShadowQuality(self, quality: 'QAbstract3DGraph.ShadowQuality') -> None: ... + def selectionMode(self) -> 'QAbstract3DGraph.SelectionFlags': ... + def setSelectionMode(self, mode: typing.Union['QAbstract3DGraph.SelectionFlags', 'QAbstract3DGraph.SelectionFlag']) -> None: ... + def themes(self) -> typing.List['Q3DTheme']: ... + def activeTheme(self) -> 'Q3DTheme': ... + def setActiveTheme(self, theme: 'Q3DTheme') -> None: ... + def releaseTheme(self, theme: 'Q3DTheme') -> None: ... + def addTheme(self, theme: 'Q3DTheme') -> None: ... + def inputHandlers(self) -> typing.List['QAbstract3DInputHandler']: ... + def setActiveInputHandler(self, inputHandler: 'QAbstract3DInputHandler') -> None: ... + def releaseInputHandler(self, inputHandler: 'QAbstract3DInputHandler') -> None: ... + def addInputHandler(self, inputHandler: 'QAbstract3DInputHandler') -> None: ... + + class Q3DBars('QAbstract3DGraph'): + + def __init__(self, format: typing.Optional[QtGui.QSurfaceFormat] = ..., parent: typing.Optional[QtGui.QWindow] = ...) -> None: ... + + def floorLevelChanged(self, level: float) -> None: ... + def floorLevel(self) -> float: ... + def setFloorLevel(self, level: float) -> None: ... + def selectedSeriesChanged(self, series: 'QBar3DSeries') -> None: ... + def primarySeriesChanged(self, series: 'QBar3DSeries') -> None: ... + def valueAxisChanged(self, axis: 'QValue3DAxis') -> None: ... + def columnAxisChanged(self, axis: 'QCategory3DAxis') -> None: ... + def rowAxisChanged(self, axis: 'QCategory3DAxis') -> None: ... + def barSpacingRelativeChanged(self, relative: bool) -> None: ... + def barSpacingChanged(self, spacing: QtCore.QSizeF) -> None: ... + def barThicknessChanged(self, thicknessRatio: float) -> None: ... + def multiSeriesUniformChanged(self, uniform: bool) -> None: ... + def selectedSeries(self) -> 'QBar3DSeries': ... + def axes(self) -> typing.List['QAbstract3DAxis']: ... + def releaseAxis(self, axis: 'QAbstract3DAxis') -> None: ... + def addAxis(self, axis: 'QAbstract3DAxis') -> None: ... + def valueAxis(self) -> 'QValue3DAxis': ... + def setValueAxis(self, axis: 'QValue3DAxis') -> None: ... + def columnAxis(self) -> 'QCategory3DAxis': ... + def setColumnAxis(self, axis: 'QCategory3DAxis') -> None: ... + def rowAxis(self) -> 'QCategory3DAxis': ... + def setRowAxis(self, axis: 'QCategory3DAxis') -> None: ... + def isBarSpacingRelative(self) -> bool: ... + def setBarSpacingRelative(self, relative: bool) -> None: ... + def barSpacing(self) -> QtCore.QSizeF: ... + def setBarSpacing(self, spacing: QtCore.QSizeF) -> None: ... + def barThickness(self) -> float: ... + def setBarThickness(self, thicknessRatio: float) -> None: ... + def isMultiSeriesUniform(self) -> bool: ... + def setMultiSeriesUniform(self, uniform: bool) -> None: ... + def seriesList(self) -> typing.List['QBar3DSeries']: ... + def insertSeries(self, index: int, series: 'QBar3DSeries') -> None: ... + def removeSeries(self, series: 'QBar3DSeries') -> None: ... + def addSeries(self, series: 'QBar3DSeries') -> None: ... + def primarySeries(self) -> 'QBar3DSeries': ... + def setPrimarySeries(self, series: 'QBar3DSeries') -> None: ... + + class Q3DObject(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def isDirty(self) -> bool: ... + def setDirty(self, dirty: bool) -> None: ... + def positionChanged(self, position: QtGui.QVector3D) -> None: ... + def setPosition(self, position: QtGui.QVector3D) -> None: ... + def position(self) -> QtGui.QVector3D: ... + def parentScene(self) -> 'Q3DScene': ... + def copyValuesFrom(self, source: 'Q3DObject') -> None: ... + + class Q3DCamera('Q3DObject'): + + class CameraPreset(int): ... + CameraPresetNone = ... # type: 'Q3DCamera.CameraPreset' + CameraPresetFrontLow = ... # type: 'Q3DCamera.CameraPreset' + CameraPresetFront = ... # type: 'Q3DCamera.CameraPreset' + CameraPresetFrontHigh = ... # type: 'Q3DCamera.CameraPreset' + CameraPresetLeftLow = ... # type: 'Q3DCamera.CameraPreset' + CameraPresetLeft = ... # type: 'Q3DCamera.CameraPreset' + CameraPresetLeftHigh = ... # type: 'Q3DCamera.CameraPreset' + CameraPresetRightLow = ... # type: 'Q3DCamera.CameraPreset' + CameraPresetRight = ... # type: 'Q3DCamera.CameraPreset' + CameraPresetRightHigh = ... # type: 'Q3DCamera.CameraPreset' + CameraPresetBehindLow = ... # type: 'Q3DCamera.CameraPreset' + CameraPresetBehind = ... # type: 'Q3DCamera.CameraPreset' + CameraPresetBehindHigh = ... # type: 'Q3DCamera.CameraPreset' + CameraPresetIsometricLeft = ... # type: 'Q3DCamera.CameraPreset' + CameraPresetIsometricLeftHigh = ... # type: 'Q3DCamera.CameraPreset' + CameraPresetIsometricRight = ... # type: 'Q3DCamera.CameraPreset' + CameraPresetIsometricRightHigh = ... # type: 'Q3DCamera.CameraPreset' + CameraPresetDirectlyAbove = ... # type: 'Q3DCamera.CameraPreset' + CameraPresetDirectlyAboveCW45 = ... # type: 'Q3DCamera.CameraPreset' + CameraPresetDirectlyAboveCCW45 = ... # type: 'Q3DCamera.CameraPreset' + CameraPresetFrontBelow = ... # type: 'Q3DCamera.CameraPreset' + CameraPresetLeftBelow = ... # type: 'Q3DCamera.CameraPreset' + CameraPresetRightBelow = ... # type: 'Q3DCamera.CameraPreset' + CameraPresetBehindBelow = ... # type: 'Q3DCamera.CameraPreset' + CameraPresetDirectlyBelow = ... # type: 'Q3DCamera.CameraPreset' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def targetChanged(self, target: QtGui.QVector3D) -> None: ... + def maxZoomLevelChanged(self, zoomLevel: float) -> None: ... + def minZoomLevelChanged(self, zoomLevel: float) -> None: ... + def setTarget(self, target: QtGui.QVector3D) -> None: ... + def target(self) -> QtGui.QVector3D: ... + def setMaxZoomLevel(self, zoomLevel: float) -> None: ... + def maxZoomLevel(self) -> float: ... + def setMinZoomLevel(self, zoomLevel: float) -> None: ... + def minZoomLevel(self) -> float: ... + def wrapYRotationChanged(self, isEnabled: bool) -> None: ... + def wrapXRotationChanged(self, isEnabled: bool) -> None: ... + def cameraPresetChanged(self, preset: 'Q3DCamera.CameraPreset') -> None: ... + def zoomLevelChanged(self, zoomLevel: float) -> None: ... + def yRotationChanged(self, rotation: float) -> None: ... + def xRotationChanged(self, rotation: float) -> None: ... + def setZoomLevel(self, zoomLevel: float) -> None: ... + def zoomLevel(self) -> float: ... + def setCameraPosition(self, horizontal: float, vertical: float, zoom: float = ...) -> None: ... + def setCameraPreset(self, preset: 'Q3DCamera.CameraPreset') -> None: ... + def cameraPreset(self) -> 'Q3DCamera.CameraPreset': ... + def copyValuesFrom(self, source: 'Q3DObject') -> None: ... + def setWrapYRotation(self, isEnabled: bool) -> None: ... + def wrapYRotation(self) -> bool: ... + def setWrapXRotation(self, isEnabled: bool) -> None: ... + def wrapXRotation(self) -> bool: ... + def setYRotation(self, rotation: float) -> None: ... + def yRotation(self) -> float: ... + def setXRotation(self, rotation: float) -> None: ... + def xRotation(self) -> float: ... + + class QAbstract3DInputHandler(QtCore.QObject): + + class InputView(int): ... + InputViewNone = ... # type: 'QAbstract3DInputHandler.InputView' + InputViewOnPrimary = ... # type: 'QAbstract3DInputHandler.InputView' + InputViewOnSecondary = ... # type: 'QAbstract3DInputHandler.InputView' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def previousInputPos(self) -> QtCore.QPoint: ... + def setPreviousInputPos(self, position: QtCore.QPoint) -> None: ... + def prevDistance(self) -> int: ... + def setPrevDistance(self, distance: int) -> None: ... + def sceneChanged(self, scene: 'Q3DScene') -> None: ... + def inputViewChanged(self, view: 'QAbstract3DInputHandler.InputView') -> None: ... + def positionChanged(self, position: QtCore.QPoint) -> None: ... + def setScene(self, scene: 'Q3DScene') -> None: ... + def scene(self) -> 'Q3DScene': ... + def setInputPosition(self, position: QtCore.QPoint) -> None: ... + def inputPosition(self) -> QtCore.QPoint: ... + def setInputView(self, inputView: 'QAbstract3DInputHandler.InputView') -> None: ... + def inputView(self) -> 'QAbstract3DInputHandler.InputView': ... + def wheelEvent(self, event: QtGui.QWheelEvent) -> None: ... + def mouseMoveEvent(self, event: QtGui.QMouseEvent, mousePos: QtCore.QPoint) -> None: ... + def mouseReleaseEvent(self, event: QtGui.QMouseEvent, mousePos: QtCore.QPoint) -> None: ... + def mousePressEvent(self, event: QtGui.QMouseEvent, mousePos: QtCore.QPoint) -> None: ... + def touchEvent(self, event: QtGui.QTouchEvent) -> None: ... + def mouseDoubleClickEvent(self, event: QtGui.QMouseEvent) -> None: ... + + class Q3DInputHandler('QAbstract3DInputHandler'): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def zoomAtTargetEnabledChanged(self, enable: bool) -> None: ... + def selectionEnabledChanged(self, enable: bool) -> None: ... + def zoomEnabledChanged(self, enable: bool) -> None: ... + def rotationEnabledChanged(self, enable: bool) -> None: ... + def isZoomAtTargetEnabled(self) -> bool: ... + def setZoomAtTargetEnabled(self, enable: bool) -> None: ... + def isSelectionEnabled(self) -> bool: ... + def setSelectionEnabled(self, enable: bool) -> None: ... + def isZoomEnabled(self) -> bool: ... + def setZoomEnabled(self, enable: bool) -> None: ... + def isRotationEnabled(self) -> bool: ... + def setRotationEnabled(self, enable: bool) -> None: ... + def wheelEvent(self, event: QtGui.QWheelEvent) -> None: ... + def mouseMoveEvent(self, event: QtGui.QMouseEvent, mousePos: QtCore.QPoint) -> None: ... + def mouseReleaseEvent(self, event: QtGui.QMouseEvent, mousePos: QtCore.QPoint) -> None: ... + def mousePressEvent(self, event: QtGui.QMouseEvent, mousePos: QtCore.QPoint) -> None: ... + + class Q3DLight('Q3DObject'): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def autoPositionChanged(self, autoPosition: bool) -> None: ... + def isAutoPosition(self) -> bool: ... + def setAutoPosition(self, enabled: bool) -> None: ... + + class Q3DScatter('QAbstract3DGraph'): + + def __init__(self, format: typing.Optional[QtGui.QSurfaceFormat] = ..., parent: typing.Optional[QtGui.QWindow] = ...) -> None: ... + + def selectedSeriesChanged(self, series: 'QScatter3DSeries') -> None: ... + def axisZChanged(self, axis: 'QValue3DAxis') -> None: ... + def axisYChanged(self, axis: 'QValue3DAxis') -> None: ... + def axisXChanged(self, axis: 'QValue3DAxis') -> None: ... + def selectedSeries(self) -> 'QScatter3DSeries': ... + def axes(self) -> typing.List['QValue3DAxis']: ... + def releaseAxis(self, axis: 'QValue3DAxis') -> None: ... + def addAxis(self, axis: 'QValue3DAxis') -> None: ... + def axisZ(self) -> 'QValue3DAxis': ... + def setAxisZ(self, axis: 'QValue3DAxis') -> None: ... + def axisY(self) -> 'QValue3DAxis': ... + def setAxisY(self, axis: 'QValue3DAxis') -> None: ... + def axisX(self) -> 'QValue3DAxis': ... + def setAxisX(self, axis: 'QValue3DAxis') -> None: ... + def seriesList(self) -> typing.List['QScatter3DSeries']: ... + def removeSeries(self, series: 'QScatter3DSeries') -> None: ... + def addSeries(self, series: 'QScatter3DSeries') -> None: ... + + class Q3DScene(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def graphPositionQueryChanged(self, position: QtCore.QPoint) -> None: ... + def graphPositionQuery(self) -> QtCore.QPoint: ... + def setGraphPositionQuery(self, point: QtCore.QPoint) -> None: ... + def selectionQueryPositionChanged(self, position: QtCore.QPoint) -> None: ... + def devicePixelRatioChanged(self, pixelRatio: float) -> None: ... + def activeLightChanged(self, light: 'Q3DLight') -> None: ... + def activeCameraChanged(self, camera: 'Q3DCamera') -> None: ... + def slicingActiveChanged(self, isSlicingActive: bool) -> None: ... + def secondarySubviewOnTopChanged(self, isSecondaryOnTop: bool) -> None: ... + def secondarySubViewportChanged(self, subViewport: QtCore.QRect) -> None: ... + def primarySubViewportChanged(self, subViewport: QtCore.QRect) -> None: ... + def viewportChanged(self, viewport: QtCore.QRect) -> None: ... + def setDevicePixelRatio(self, pixelRatio: float) -> None: ... + def devicePixelRatio(self) -> float: ... + def setActiveLight(self, light: 'Q3DLight') -> None: ... + def activeLight(self) -> 'Q3DLight': ... + def setActiveCamera(self, camera: 'Q3DCamera') -> None: ... + def activeCamera(self) -> 'Q3DCamera': ... + def isSecondarySubviewOnTop(self) -> bool: ... + def setSecondarySubviewOnTop(self, isSecondaryOnTop: bool) -> None: ... + def isSlicingActive(self) -> bool: ... + def setSlicingActive(self, isSlicing: bool) -> None: ... + @staticmethod + def invalidSelectionPoint() -> QtCore.QPoint: ... + def selectionQueryPosition(self) -> QtCore.QPoint: ... + def setSelectionQueryPosition(self, point: QtCore.QPoint) -> None: ... + def isPointInSecondarySubView(self, point: QtCore.QPoint) -> bool: ... + def setSecondarySubViewport(self, secondarySubViewport: QtCore.QRect) -> None: ... + def secondarySubViewport(self) -> QtCore.QRect: ... + def isPointInPrimarySubView(self, point: QtCore.QPoint) -> bool: ... + def setPrimarySubViewport(self, primarySubViewport: QtCore.QRect) -> None: ... + def primarySubViewport(self) -> QtCore.QRect: ... + def viewport(self) -> QtCore.QRect: ... + + class Q3DSurface('QAbstract3DGraph'): + + def __init__(self, format: typing.Optional[QtGui.QSurfaceFormat] = ..., parent: typing.Optional[QtGui.QWindow] = ...) -> None: ... + + def flipHorizontalGridChanged(self, flip: bool) -> None: ... + def flipHorizontalGrid(self) -> bool: ... + def setFlipHorizontalGrid(self, flip: bool) -> None: ... + def selectedSeriesChanged(self, series: 'QSurface3DSeries') -> None: ... + def axisZChanged(self, axis: 'QValue3DAxis') -> None: ... + def axisYChanged(self, axis: 'QValue3DAxis') -> None: ... + def axisXChanged(self, axis: 'QValue3DAxis') -> None: ... + def selectedSeries(self) -> 'QSurface3DSeries': ... + def axes(self) -> typing.List['QValue3DAxis']: ... + def releaseAxis(self, axis: 'QValue3DAxis') -> None: ... + def addAxis(self, axis: 'QValue3DAxis') -> None: ... + def axisZ(self) -> 'QValue3DAxis': ... + def setAxisZ(self, axis: 'QValue3DAxis') -> None: ... + def axisY(self) -> 'QValue3DAxis': ... + def setAxisY(self, axis: 'QValue3DAxis') -> None: ... + def axisX(self) -> 'QValue3DAxis': ... + def setAxisX(self, axis: 'QValue3DAxis') -> None: ... + def seriesList(self) -> typing.List['QSurface3DSeries']: ... + def removeSeries(self, series: 'QSurface3DSeries') -> None: ... + def addSeries(self, series: 'QSurface3DSeries') -> None: ... + + class Q3DTheme(QtCore.QObject): + + class Theme(int): ... + ThemeQt = ... # type: 'Q3DTheme.Theme' + ThemePrimaryColors = ... # type: 'Q3DTheme.Theme' + ThemeDigia = ... # type: 'Q3DTheme.Theme' + ThemeStoneMoss = ... # type: 'Q3DTheme.Theme' + ThemeArmyBlue = ... # type: 'Q3DTheme.Theme' + ThemeRetro = ... # type: 'Q3DTheme.Theme' + ThemeEbony = ... # type: 'Q3DTheme.Theme' + ThemeIsabelle = ... # type: 'Q3DTheme.Theme' + ThemeUserDefined = ... # type: 'Q3DTheme.Theme' + + class ColorStyle(int): ... + ColorStyleUniform = ... # type: 'Q3DTheme.ColorStyle' + ColorStyleObjectGradient = ... # type: 'Q3DTheme.ColorStyle' + ColorStyleRangeGradient = ... # type: 'Q3DTheme.ColorStyle' + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, themeType: 'Q3DTheme.Theme', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def colorStyleChanged(self, style: 'Q3DTheme.ColorStyle') -> None: ... + def labelBackgroundEnabledChanged(self, enabled: bool) -> None: ... + def gridEnabledChanged(self, enabled: bool) -> None: ... + def backgroundEnabledChanged(self, enabled: bool) -> None: ... + def fontChanged(self, font: QtGui.QFont) -> None: ... + def labelBorderEnabledChanged(self, enabled: bool) -> None: ... + def highlightLightStrengthChanged(self, strength: float) -> None: ... + def ambientLightStrengthChanged(self, strength: float) -> None: ... + def lightStrengthChanged(self, strength: float) -> None: ... + def multiHighlightGradientChanged(self, gradient: QtGui.QLinearGradient) -> None: ... + def singleHighlightGradientChanged(self, gradient: QtGui.QLinearGradient) -> None: ... + def baseGradientsChanged(self, gradients: typing.Iterable[QtGui.QLinearGradient]) -> None: ... + def lightColorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def multiHighlightColorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def singleHighlightColorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def gridLineColorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def labelBackgroundColorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def labelTextColorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def windowColorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def backgroundColorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def baseColorsChanged(self, colors: typing.Iterable[typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]]) -> None: ... + def typeChanged(self, themeType: 'Q3DTheme.Theme') -> None: ... + def colorStyle(self) -> 'Q3DTheme.ColorStyle': ... + def setColorStyle(self, style: 'Q3DTheme.ColorStyle') -> None: ... + def isLabelBackgroundEnabled(self) -> bool: ... + def setLabelBackgroundEnabled(self, enabled: bool) -> None: ... + def isGridEnabled(self) -> bool: ... + def setGridEnabled(self, enabled: bool) -> None: ... + def isBackgroundEnabled(self) -> bool: ... + def setBackgroundEnabled(self, enabled: bool) -> None: ... + def font(self) -> QtGui.QFont: ... + def setFont(self, font: QtGui.QFont) -> None: ... + def isLabelBorderEnabled(self) -> bool: ... + def setLabelBorderEnabled(self, enabled: bool) -> None: ... + def highlightLightStrength(self) -> float: ... + def setHighlightLightStrength(self, strength: float) -> None: ... + def ambientLightStrength(self) -> float: ... + def setAmbientLightStrength(self, strength: float) -> None: ... + def lightStrength(self) -> float: ... + def setLightStrength(self, strength: float) -> None: ... + def multiHighlightGradient(self) -> QtGui.QLinearGradient: ... + def setMultiHighlightGradient(self, gradient: QtGui.QLinearGradient) -> None: ... + def singleHighlightGradient(self) -> QtGui.QLinearGradient: ... + def setSingleHighlightGradient(self, gradient: QtGui.QLinearGradient) -> None: ... + def baseGradients(self) -> typing.List[QtGui.QLinearGradient]: ... + def setBaseGradients(self, gradients: typing.Iterable[QtGui.QLinearGradient]) -> None: ... + def lightColor(self) -> QtGui.QColor: ... + def setLightColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def multiHighlightColor(self) -> QtGui.QColor: ... + def setMultiHighlightColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def singleHighlightColor(self) -> QtGui.QColor: ... + def setSingleHighlightColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def gridLineColor(self) -> QtGui.QColor: ... + def setGridLineColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def labelBackgroundColor(self) -> QtGui.QColor: ... + def setLabelBackgroundColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def labelTextColor(self) -> QtGui.QColor: ... + def setLabelTextColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def windowColor(self) -> QtGui.QColor: ... + def setWindowColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def backgroundColor(self) -> QtGui.QColor: ... + def setBackgroundColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def baseColors(self) -> typing.List[QtGui.QColor]: ... + def setBaseColors(self, colors: typing.Iterable[typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]]) -> None: ... + def type(self) -> 'Q3DTheme.Theme': ... + def setType(self, themeType: 'Q3DTheme.Theme') -> None: ... + + class QAbstract3DAxis(QtCore.QObject): + + class AxisType(int): ... + AxisTypeNone = ... # type: 'QAbstract3DAxis.AxisType' + AxisTypeCategory = ... # type: 'QAbstract3DAxis.AxisType' + AxisTypeValue = ... # type: 'QAbstract3DAxis.AxisType' + + class AxisOrientation(int): ... + AxisOrientationNone = ... # type: 'QAbstract3DAxis.AxisOrientation' + AxisOrientationX = ... # type: 'QAbstract3DAxis.AxisOrientation' + AxisOrientationY = ... # type: 'QAbstract3DAxis.AxisOrientation' + AxisOrientationZ = ... # type: 'QAbstract3DAxis.AxisOrientation' + + def titleFixedChanged(self, fixed: bool) -> None: ... + def titleVisibilityChanged(self, visible: bool) -> None: ... + def labelAutoRotationChanged(self, angle: float) -> None: ... + def isTitleFixed(self) -> bool: ... + def setTitleFixed(self, fixed: bool) -> None: ... + def isTitleVisible(self) -> bool: ... + def setTitleVisible(self, visible: bool) -> None: ... + def labelAutoRotation(self) -> float: ... + def setLabelAutoRotation(self, angle: float) -> None: ... + def autoAdjustRangeChanged(self, autoAdjust: bool) -> None: ... + def rangeChanged(self, min: float, max: float) -> None: ... + def maxChanged(self, value: float) -> None: ... + def minChanged(self, value: float) -> None: ... + def orientationChanged(self, orientation: 'QAbstract3DAxis.AxisOrientation') -> None: ... + def labelsChanged(self) -> None: ... + def titleChanged(self, newTitle: str) -> None: ... + def setTitle(self, title: str) -> None: ... + def setRange(self, min: float, max: float) -> None: ... + def isAutoAdjustRange(self) -> bool: ... + def setAutoAdjustRange(self, autoAdjust: bool) -> None: ... + def max(self) -> float: ... + def setMax(self, max: float) -> None: ... + def min(self) -> float: ... + def setMin(self, min: float) -> None: ... + def type(self) -> 'QAbstract3DAxis.AxisType': ... + def orientation(self) -> 'QAbstract3DAxis.AxisOrientation': ... + def labels(self) -> typing.List[str]: ... + def setLabels(self, labels: typing.Iterable[str]) -> None: ... + def title(self) -> str: ... + + class QAbstract3DSeries(QtCore.QObject): + + class Mesh(int): ... + MeshUserDefined = ... # type: 'QAbstract3DSeries.Mesh' + MeshBar = ... # type: 'QAbstract3DSeries.Mesh' + MeshCube = ... # type: 'QAbstract3DSeries.Mesh' + MeshPyramid = ... # type: 'QAbstract3DSeries.Mesh' + MeshCone = ... # type: 'QAbstract3DSeries.Mesh' + MeshCylinder = ... # type: 'QAbstract3DSeries.Mesh' + MeshBevelBar = ... # type: 'QAbstract3DSeries.Mesh' + MeshBevelCube = ... # type: 'QAbstract3DSeries.Mesh' + MeshSphere = ... # type: 'QAbstract3DSeries.Mesh' + MeshMinimal = ... # type: 'QAbstract3DSeries.Mesh' + MeshArrow = ... # type: 'QAbstract3DSeries.Mesh' + MeshPoint = ... # type: 'QAbstract3DSeries.Mesh' + + class SeriesType(int): ... + SeriesTypeNone = ... # type: 'QAbstract3DSeries.SeriesType' + SeriesTypeBar = ... # type: 'QAbstract3DSeries.SeriesType' + SeriesTypeScatter = ... # type: 'QAbstract3DSeries.SeriesType' + SeriesTypeSurface = ... # type: 'QAbstract3DSeries.SeriesType' + + def itemLabelVisibilityChanged(self, visible: bool) -> None: ... + def itemLabelChanged(self, label: str) -> None: ... + def isItemLabelVisible(self) -> bool: ... + def setItemLabelVisible(self, visible: bool) -> None: ... + def itemLabel(self) -> str: ... + def nameChanged(self, name: str) -> None: ... + def multiHighlightGradientChanged(self, gradient: QtGui.QLinearGradient) -> None: ... + def multiHighlightColorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def singleHighlightGradientChanged(self, gradient: QtGui.QLinearGradient) -> None: ... + def singleHighlightColorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def baseGradientChanged(self, gradient: QtGui.QLinearGradient) -> None: ... + def baseColorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def colorStyleChanged(self, style: 'Q3DTheme.ColorStyle') -> None: ... + def userDefinedMeshChanged(self, fileName: str) -> None: ... + def meshRotationChanged(self, rotation: QtGui.QQuaternion) -> None: ... + def meshSmoothChanged(self, enabled: bool) -> None: ... + def meshChanged(self, mesh: 'QAbstract3DSeries.Mesh') -> None: ... + def visibilityChanged(self, visible: bool) -> None: ... + def itemLabelFormatChanged(self, format: str) -> None: ... + def setMeshAxisAndAngle(self, axis: QtGui.QVector3D, angle: float) -> None: ... + def name(self) -> str: ... + def setName(self, name: str) -> None: ... + def multiHighlightGradient(self) -> QtGui.QLinearGradient: ... + def setMultiHighlightGradient(self, gradient: QtGui.QLinearGradient) -> None: ... + def multiHighlightColor(self) -> QtGui.QColor: ... + def setMultiHighlightColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def singleHighlightGradient(self) -> QtGui.QLinearGradient: ... + def setSingleHighlightGradient(self, gradient: QtGui.QLinearGradient) -> None: ... + def singleHighlightColor(self) -> QtGui.QColor: ... + def setSingleHighlightColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def baseGradient(self) -> QtGui.QLinearGradient: ... + def setBaseGradient(self, gradient: QtGui.QLinearGradient) -> None: ... + def baseColor(self) -> QtGui.QColor: ... + def setBaseColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def colorStyle(self) -> 'Q3DTheme.ColorStyle': ... + def setColorStyle(self, style: 'Q3DTheme.ColorStyle') -> None: ... + def userDefinedMesh(self) -> str: ... + def setUserDefinedMesh(self, fileName: str) -> None: ... + def meshRotation(self) -> QtGui.QQuaternion: ... + def setMeshRotation(self, rotation: QtGui.QQuaternion) -> None: ... + def isMeshSmooth(self) -> bool: ... + def setMeshSmooth(self, enable: bool) -> None: ... + def mesh(self) -> 'QAbstract3DSeries.Mesh': ... + def setMesh(self, mesh: 'QAbstract3DSeries.Mesh') -> None: ... + def isVisible(self) -> bool: ... + def setVisible(self, visible: bool) -> None: ... + def itemLabelFormat(self) -> str: ... + def setItemLabelFormat(self, format: str) -> None: ... + def type(self) -> 'QAbstract3DSeries.SeriesType': ... + + class QAbstractDataProxy(QtCore.QObject): + + class DataType(int): ... + DataTypeNone = ... # type: 'QAbstractDataProxy.DataType' + DataTypeBar = ... # type: 'QAbstractDataProxy.DataType' + DataTypeScatter = ... # type: 'QAbstractDataProxy.DataType' + DataTypeSurface = ... # type: 'QAbstractDataProxy.DataType' + + def type(self) -> 'QAbstractDataProxy.DataType': ... + + class QBar3DSeries('QAbstract3DSeries'): + + @typing.overload + def __init__(self, dataProxy: 'QBarDataProxy', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def meshAngleChanged(self, angle: float) -> None: ... + def selectedBarChanged(self, position: QtCore.QPoint) -> None: ... + def dataProxyChanged(self, proxy: 'QBarDataProxy') -> None: ... + def meshAngle(self) -> float: ... + def setMeshAngle(self, angle: float) -> None: ... + @staticmethod + def invalidSelectionPosition() -> QtCore.QPoint: ... + def selectedBar(self) -> QtCore.QPoint: ... + def setSelectedBar(self, position: QtCore.QPoint) -> None: ... + def dataProxy(self) -> 'QBarDataProxy': ... + def setDataProxy(self, proxy: 'QBarDataProxy') -> None: ... + + class QBarDataItem(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, value: float) -> None: ... + @typing.overload + def __init__(self, value: float, angle: float) -> None: ... + @typing.overload + def __init__(self, other: 'QBarDataItem') -> None: ... + + def rotation(self) -> float: ... + def setRotation(self, angle: float) -> None: ... + def value(self) -> float: ... + def setValue(self, value: float) -> None: ... + + class QBarDataProxy('QAbstractDataProxy'): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def seriesChanged(self, series: 'QBar3DSeries') -> None: ... + def columnLabelsChanged(self) -> None: ... + def rowLabelsChanged(self) -> None: ... + def rowCountChanged(self, count: int) -> None: ... + def itemChanged(self, rowIndex: int, columnIndex: int) -> None: ... + def rowsInserted(self, startIndex: int, count: int) -> None: ... + def rowsRemoved(self, startIndex: int, count: int) -> None: ... + def rowsChanged(self, startIndex: int, count: int) -> None: ... + def rowsAdded(self, startIndex: int, count: int) -> None: ... + def arrayReset(self) -> None: ... + def series(self) -> 'QBar3DSeries': ... + def removeRows(self, rowIndex: int, removeCount: int, removeLabels: bool = ...) -> None: ... + @typing.overload + def insertRows(self, rowIndex: int, rows: typing.Iterable[typing.Iterable['QBarDataItem']]) -> None: ... + @typing.overload + def insertRows(self, rowIndex: int, rows: typing.Iterable[typing.Iterable['QBarDataItem']], labels: typing.Iterable[str]) -> None: ... + @typing.overload + def insertRow(self, rowIndex: int, row: typing.Iterable['QBarDataItem']) -> None: ... + @typing.overload + def insertRow(self, rowIndex: int, row: typing.Iterable['QBarDataItem'], label: str) -> None: ... + @typing.overload + def addRows(self, rows: typing.Iterable[typing.Iterable['QBarDataItem']]) -> int: ... + @typing.overload + def addRows(self, rows: typing.Iterable[typing.Iterable['QBarDataItem']], labels: typing.Iterable[str]) -> int: ... + @typing.overload + def addRow(self, row: typing.Iterable['QBarDataItem']) -> int: ... + @typing.overload + def addRow(self, row: typing.Iterable['QBarDataItem'], label: str) -> int: ... + @typing.overload + def setItem(self, rowIndex: int, columnIndex: int, item: 'QBarDataItem') -> None: ... + @typing.overload + def setItem(self, position: QtCore.QPoint, item: 'QBarDataItem') -> None: ... + @typing.overload + def setRows(self, rowIndex: int, rows: typing.Iterable[typing.Iterable['QBarDataItem']]) -> None: ... + @typing.overload + def setRows(self, rowIndex: int, rows: typing.Iterable[typing.Iterable['QBarDataItem']], labels: typing.Iterable[str]) -> None: ... + @typing.overload + def setRow(self, rowIndex: int, row: typing.Iterable['QBarDataItem']) -> None: ... + @typing.overload + def setRow(self, rowIndex: int, row: typing.Iterable['QBarDataItem'], label: str) -> None: ... + @typing.overload + def resetArray(self) -> None: ... + @typing.overload + def resetArray(self, newArray: typing.Iterable[typing.Iterable['QBarDataItem']]) -> None: ... + @typing.overload + def resetArray(self, newArray: typing.Iterable[typing.Iterable['QBarDataItem']], rowLabels: typing.Iterable[str], columnLabels: typing.Iterable[str]) -> None: ... + @typing.overload + def itemAt(self, rowIndex: int, columnIndex: int) -> 'QBarDataItem': ... + @typing.overload + def itemAt(self, position: QtCore.QPoint) -> 'QBarDataItem': ... + def rowAt(self, rowIndex: int) -> typing.List['QBarDataItem']: ... + def array(self) -> typing.List[typing.List['QBarDataItem']]: ... + def setColumnLabels(self, labels: typing.Iterable[str]) -> None: ... + def columnLabels(self) -> typing.List[str]: ... + def setRowLabels(self, labels: typing.Iterable[str]) -> None: ... + def rowLabels(self) -> typing.List[str]: ... + def rowCount(self) -> int: ... + + class QCategory3DAxis('QAbstract3DAxis'): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def labelsChanged(self) -> None: ... + def labels(self) -> typing.List[str]: ... + def setLabels(self, labels: typing.Iterable[str]) -> None: ... + + class QCustom3DItem(QtCore.QObject): + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, meshFile: str, position: QtGui.QVector3D, scaling: QtGui.QVector3D, rotation: QtGui.QQuaternion, texture: QtGui.QImage, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def scalingAbsoluteChanged(self, scalingAbsolute: bool) -> None: ... + def isScalingAbsolute(self) -> bool: ... + def setScalingAbsolute(self, scalingAbsolute: bool) -> None: ... + def shadowCastingChanged(self, shadowCasting: bool) -> None: ... + def visibleChanged(self, visible: bool) -> None: ... + def rotationChanged(self, rotation: QtGui.QQuaternion) -> None: ... + def scalingChanged(self, scaling: QtGui.QVector3D) -> None: ... + def positionAbsoluteChanged(self, positionAbsolute: bool) -> None: ... + def positionChanged(self, position: QtGui.QVector3D) -> None: ... + def textureFileChanged(self, textureFile: str) -> None: ... + def meshFileChanged(self, meshFile: str) -> None: ... + def setTextureImage(self, textureImage: QtGui.QImage) -> None: ... + def setRotationAxisAndAngle(self, axis: QtGui.QVector3D, angle: float) -> None: ... + def isShadowCasting(self) -> bool: ... + def setShadowCasting(self, enabled: bool) -> None: ... + def isVisible(self) -> bool: ... + def setVisible(self, visible: bool) -> None: ... + def rotation(self) -> QtGui.QQuaternion: ... + def setRotation(self, rotation: QtGui.QQuaternion) -> None: ... + def scaling(self) -> QtGui.QVector3D: ... + def setScaling(self, scaling: QtGui.QVector3D) -> None: ... + def isPositionAbsolute(self) -> bool: ... + def setPositionAbsolute(self, positionAbsolute: bool) -> None: ... + def position(self) -> QtGui.QVector3D: ... + def setPosition(self, position: QtGui.QVector3D) -> None: ... + def textureFile(self) -> str: ... + def setTextureFile(self, textureFile: str) -> None: ... + def meshFile(self) -> str: ... + def setMeshFile(self, meshFile: str) -> None: ... + + class QCustom3DLabel('QCustom3DItem'): + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, text: str, font: QtGui.QFont, position: QtGui.QVector3D, scaling: QtGui.QVector3D, rotation: QtGui.QQuaternion, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def facingCameraChanged(self, enabled: bool) -> None: ... + def backgroundEnabledChanged(self, enabled: bool) -> None: ... + def borderEnabledChanged(self, enabled: bool) -> None: ... + def backgroundColorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def textColorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def fontChanged(self, font: QtGui.QFont) -> None: ... + def textChanged(self, text: str) -> None: ... + def isFacingCamera(self) -> bool: ... + def setFacingCamera(self, enabled: bool) -> None: ... + def isBackgroundEnabled(self) -> bool: ... + def setBackgroundEnabled(self, enabled: bool) -> None: ... + def isBorderEnabled(self) -> bool: ... + def setBorderEnabled(self, enabled: bool) -> None: ... + def backgroundColor(self) -> QtGui.QColor: ... + def setBackgroundColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def textColor(self) -> QtGui.QColor: ... + def setTextColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def font(self) -> QtGui.QFont: ... + def setFont(self, font: QtGui.QFont) -> None: ... + def text(self) -> str: ... + def setText(self, text: str) -> None: ... + + class QCustom3DVolume('QCustom3DItem'): + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, position: QtGui.QVector3D, scaling: QtGui.QVector3D, rotation: QtGui.QQuaternion, textureWidth: int, textureHeight: int, textureDepth: int, textureData: sip.array, textureFormat: QtGui.QImage.Format, colorTable: typing.Iterable[int], parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def sliceFrameThicknessesChanged(self, values: QtGui.QVector3D) -> None: ... + def sliceFrameGapsChanged(self, values: QtGui.QVector3D) -> None: ... + def sliceFrameWidthsChanged(self, values: QtGui.QVector3D) -> None: ... + def sliceFrameColorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def drawSliceFramesChanged(self, enabled: bool) -> None: ... + def drawSlicesChanged(self, enabled: bool) -> None: ... + def useHighDefShaderChanged(self, enabled: bool) -> None: ... + def preserveOpacityChanged(self, enabled: bool) -> None: ... + def alphaMultiplierChanged(self, mult: float) -> None: ... + def textureFormatChanged(self, format: QtGui.QImage.Format) -> None: ... + def textureDataChanged(self, data: sip.array) -> None: ... + def colorTableChanged(self) -> None: ... + def sliceIndexZChanged(self, value: int) -> None: ... + def sliceIndexYChanged(self, value: int) -> None: ... + def sliceIndexXChanged(self, value: int) -> None: ... + def textureDepthChanged(self, value: int) -> None: ... + def textureHeightChanged(self, value: int) -> None: ... + def textureWidthChanged(self, value: int) -> None: ... + def renderSlice(self, axis: QtCore.Qt.Axis, index: int) -> QtGui.QImage: ... + def sliceFrameThicknesses(self) -> QtGui.QVector3D: ... + def setSliceFrameThicknesses(self, values: QtGui.QVector3D) -> None: ... + def sliceFrameGaps(self) -> QtGui.QVector3D: ... + def setSliceFrameGaps(self, values: QtGui.QVector3D) -> None: ... + def sliceFrameWidths(self) -> QtGui.QVector3D: ... + def setSliceFrameWidths(self, values: QtGui.QVector3D) -> None: ... + def sliceFrameColor(self) -> QtGui.QColor: ... + def setSliceFrameColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def drawSliceFrames(self) -> bool: ... + def setDrawSliceFrames(self, enable: bool) -> None: ... + def drawSlices(self) -> bool: ... + def setDrawSlices(self, enable: bool) -> None: ... + def useHighDefShader(self) -> bool: ... + def setUseHighDefShader(self, enable: bool) -> None: ... + def preserveOpacity(self) -> bool: ... + def setPreserveOpacity(self, enable: bool) -> None: ... + def alphaMultiplier(self) -> float: ... + def setAlphaMultiplier(self, mult: float) -> None: ... + def textureFormat(self) -> QtGui.QImage.Format: ... + def setTextureFormat(self, format: QtGui.QImage.Format) -> None: ... + @typing.overload + def setSubTextureData(self, axis: QtCore.Qt.Axis, index: int, data: sip.voidptr) -> None: ... + @typing.overload + def setSubTextureData(self, axis: QtCore.Qt.Axis, index: int, image: QtGui.QImage) -> None: ... + def textureData(self) -> sip.array: ... + def createTextureData(self, images: typing.Iterable[QtGui.QImage]) -> sip.array: ... + def setTextureData(self, data: sip.array) -> None: ... + def colorTable(self) -> typing.List[int]: ... + def setColorTable(self, colors: typing.Iterable[int]) -> None: ... + def setSliceIndices(self, x: int, y: int, z: int) -> None: ... + def sliceIndexZ(self) -> int: ... + def setSliceIndexZ(self, value: int) -> None: ... + def sliceIndexY(self) -> int: ... + def setSliceIndexY(self, value: int) -> None: ... + def sliceIndexX(self) -> int: ... + def setSliceIndexX(self, value: int) -> None: ... + def textureDataWidth(self) -> int: ... + def setTextureDimensions(self, width: int, height: int, depth: int) -> None: ... + def textureDepth(self) -> int: ... + def setTextureDepth(self, value: int) -> None: ... + def textureHeight(self) -> int: ... + def setTextureHeight(self, value: int) -> None: ... + def textureWidth(self) -> int: ... + def setTextureWidth(self, value: int) -> None: ... + + class QSurfaceDataProxy('QAbstractDataProxy'): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def seriesChanged(self, series: 'QSurface3DSeries') -> None: ... + def columnCountChanged(self, count: int) -> None: ... + def rowCountChanged(self, count: int) -> None: ... + def itemChanged(self, rowIndex: int, columnIndex: int) -> None: ... + def rowsInserted(self, startIndex: int, count: int) -> None: ... + def rowsRemoved(self, startIndex: int, count: int) -> None: ... + def rowsChanged(self, startIndex: int, count: int) -> None: ... + def rowsAdded(self, startIndex: int, count: int) -> None: ... + def arrayReset(self) -> None: ... + @typing.overload + def itemAt(self, rowIndex: int, columnIndex: int) -> 'QSurfaceDataItem': ... + @typing.overload + def itemAt(self, position: QtCore.QPoint) -> 'QSurfaceDataItem': ... + def series(self) -> 'QSurface3DSeries': ... + def removeRows(self, rowIndex: int, removeCount: int) -> None: ... + def insertRows(self, rowIndex: int, rows: typing.Iterable[typing.Iterable['QSurfaceDataItem']]) -> None: ... + def insertRow(self, rowIndex: int, row: typing.Iterable['QSurfaceDataItem']) -> None: ... + def addRows(self, rows: typing.Iterable[typing.Iterable['QSurfaceDataItem']]) -> int: ... + def addRow(self, row: typing.Iterable['QSurfaceDataItem']) -> int: ... + @typing.overload + def setItem(self, rowIndex: int, columnIndex: int, item: 'QSurfaceDataItem') -> None: ... + @typing.overload + def setItem(self, position: QtCore.QPoint, item: 'QSurfaceDataItem') -> None: ... + def setRows(self, rowIndex: int, rows: typing.Iterable[typing.Iterable['QSurfaceDataItem']]) -> None: ... + def setRow(self, rowIndex: int, row: typing.Iterable['QSurfaceDataItem']) -> None: ... + def resetArray(self, newArray: typing.Iterable[typing.Iterable['QSurfaceDataItem']]) -> None: ... + def array(self) -> typing.List[typing.List['QSurfaceDataItem']]: ... + def columnCount(self) -> int: ... + def rowCount(self) -> int: ... + + class QHeightMapSurfaceDataProxy('QSurfaceDataProxy'): + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, image: QtGui.QImage, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, filename: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def maxZValueChanged(self, value: float) -> None: ... + def minZValueChanged(self, value: float) -> None: ... + def maxXValueChanged(self, value: float) -> None: ... + def minXValueChanged(self, value: float) -> None: ... + def heightMapFileChanged(self, filename: str) -> None: ... + def heightMapChanged(self, image: QtGui.QImage) -> None: ... + def maxZValue(self) -> float: ... + def setMaxZValue(self, max: float) -> None: ... + def minZValue(self) -> float: ... + def setMinZValue(self, min: float) -> None: ... + def maxXValue(self) -> float: ... + def setMaxXValue(self, max: float) -> None: ... + def minXValue(self) -> float: ... + def setMinXValue(self, min: float) -> None: ... + def setValueRanges(self, minX: float, maxX: float, minZ: float, maxZ: float) -> None: ... + def heightMapFile(self) -> str: ... + def setHeightMapFile(self, filename: str) -> None: ... + def heightMap(self) -> QtGui.QImage: ... + def setHeightMap(self, image: QtGui.QImage) -> None: ... + + class QItemModelBarDataProxy('QBarDataProxy'): + + class MultiMatchBehavior(int): ... + MMBFirst = ... # type: 'QItemModelBarDataProxy.MultiMatchBehavior' + MMBLast = ... # type: 'QItemModelBarDataProxy.MultiMatchBehavior' + MMBAverage = ... # type: 'QItemModelBarDataProxy.MultiMatchBehavior' + MMBCumulative = ... # type: 'QItemModelBarDataProxy.MultiMatchBehavior' + + @typing.overload + def __init__(self, itemModel: QtCore.QAbstractItemModel, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, itemModel: QtCore.QAbstractItemModel, valueRole: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, itemModel: QtCore.QAbstractItemModel, rowRole: str, columnRole: str, valueRole: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, itemModel: QtCore.QAbstractItemModel, rowRole: str, columnRole: str, valueRole: str, rotationRole: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, itemModel: QtCore.QAbstractItemModel, rowRole: str, columnRole: str, valueRole: str, rowCategories: typing.Iterable[str], columnCategories: typing.Iterable[str], parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, itemModel: QtCore.QAbstractItemModel, rowRole: str, columnRole: str, valueRole: str, rotationRole: str, rowCategories: typing.Iterable[str], columnCategories: typing.Iterable[str], parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def multiMatchBehaviorChanged(self, behavior: 'QItemModelBarDataProxy.MultiMatchBehavior') -> None: ... + def rotationRoleReplaceChanged(self, replace: str) -> None: ... + def valueRoleReplaceChanged(self, replace: str) -> None: ... + def columnRoleReplaceChanged(self, replace: str) -> None: ... + def rowRoleReplaceChanged(self, replace: str) -> None: ... + def rotationRolePatternChanged(self, pattern: QtCore.QRegExp) -> None: ... + def valueRolePatternChanged(self, pattern: QtCore.QRegExp) -> None: ... + def columnRolePatternChanged(self, pattern: QtCore.QRegExp) -> None: ... + def rowRolePatternChanged(self, pattern: QtCore.QRegExp) -> None: ... + def multiMatchBehavior(self) -> 'QItemModelBarDataProxy.MultiMatchBehavior': ... + def setMultiMatchBehavior(self, behavior: 'QItemModelBarDataProxy.MultiMatchBehavior') -> None: ... + def rotationRoleReplace(self) -> str: ... + def setRotationRoleReplace(self, replace: str) -> None: ... + def valueRoleReplace(self) -> str: ... + def setValueRoleReplace(self, replace: str) -> None: ... + def columnRoleReplace(self) -> str: ... + def setColumnRoleReplace(self, replace: str) -> None: ... + def rowRoleReplace(self) -> str: ... + def setRowRoleReplace(self, replace: str) -> None: ... + def rotationRolePattern(self) -> QtCore.QRegExp: ... + def setRotationRolePattern(self, pattern: QtCore.QRegExp) -> None: ... + def valueRolePattern(self) -> QtCore.QRegExp: ... + def setValueRolePattern(self, pattern: QtCore.QRegExp) -> None: ... + def columnRolePattern(self) -> QtCore.QRegExp: ... + def setColumnRolePattern(self, pattern: QtCore.QRegExp) -> None: ... + def rowRolePattern(self) -> QtCore.QRegExp: ... + def setRowRolePattern(self, pattern: QtCore.QRegExp) -> None: ... + def autoColumnCategoriesChanged(self, enable: bool) -> None: ... + def autoRowCategoriesChanged(self, enable: bool) -> None: ... + def useModelCategoriesChanged(self, enable: bool) -> None: ... + def columnCategoriesChanged(self) -> None: ... + def rowCategoriesChanged(self) -> None: ... + def rotationRoleChanged(self, role: str) -> None: ... + def valueRoleChanged(self, role: str) -> None: ... + def columnRoleChanged(self, role: str) -> None: ... + def rowRoleChanged(self, role: str) -> None: ... + def itemModelChanged(self, itemModel: QtCore.QAbstractItemModel) -> None: ... + def remap(self, rowRole: str, columnRole: str, valueRole: str, rotationRole: str, rowCategories: typing.Iterable[str], columnCategories: typing.Iterable[str]) -> None: ... + def rotationRole(self) -> str: ... + def setRotationRole(self, role: str) -> None: ... + def columnCategoryIndex(self, category: str) -> int: ... + def rowCategoryIndex(self, category: str) -> int: ... + def autoColumnCategories(self) -> bool: ... + def setAutoColumnCategories(self, enable: bool) -> None: ... + def autoRowCategories(self) -> bool: ... + def setAutoRowCategories(self, enable: bool) -> None: ... + def useModelCategories(self) -> bool: ... + def setUseModelCategories(self, enable: bool) -> None: ... + def columnCategories(self) -> typing.List[str]: ... + def setColumnCategories(self, categories: typing.Iterable[str]) -> None: ... + def rowCategories(self) -> typing.List[str]: ... + def setRowCategories(self, categories: typing.Iterable[str]) -> None: ... + def valueRole(self) -> str: ... + def setValueRole(self, role: str) -> None: ... + def columnRole(self) -> str: ... + def setColumnRole(self, role: str) -> None: ... + def rowRole(self) -> str: ... + def setRowRole(self, role: str) -> None: ... + def itemModel(self) -> QtCore.QAbstractItemModel: ... + def setItemModel(self, itemModel: QtCore.QAbstractItemModel) -> None: ... + + class QScatterDataProxy('QAbstractDataProxy'): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def seriesChanged(self, series: 'QScatter3DSeries') -> None: ... + def itemCountChanged(self, count: int) -> None: ... + def itemsInserted(self, startIndex: int, count: int) -> None: ... + def itemsRemoved(self, startIndex: int, count: int) -> None: ... + def itemsChanged(self, startIndex: int, count: int) -> None: ... + def itemsAdded(self, startIndex: int, count: int) -> None: ... + def arrayReset(self) -> None: ... + def series(self) -> 'QScatter3DSeries': ... + def removeItems(self, index: int, removeCount: int) -> None: ... + def insertItems(self, index: int, items: typing.Iterable['QScatterDataItem']) -> None: ... + def insertItem(self, index: int, item: 'QScatterDataItem') -> None: ... + def addItems(self, items: typing.Iterable['QScatterDataItem']) -> int: ... + def addItem(self, item: 'QScatterDataItem') -> int: ... + def setItems(self, index: int, items: typing.Iterable['QScatterDataItem']) -> None: ... + def setItem(self, index: int, item: 'QScatterDataItem') -> None: ... + def resetArray(self, newArray: typing.Iterable['QScatterDataItem']) -> None: ... + def itemAt(self, index: int) -> 'QScatterDataItem': ... + def array(self) -> typing.List['QScatterDataItem']: ... + def itemCount(self) -> int: ... + + class QItemModelScatterDataProxy('QScatterDataProxy'): + + @typing.overload + def __init__(self, itemModel: QtCore.QAbstractItemModel, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, itemModel: QtCore.QAbstractItemModel, xPosRole: str, yPosRole: str, zPosRole: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, itemModel: QtCore.QAbstractItemModel, xPosRole: str, yPosRole: str, zPosRole: str, rotationRole: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def zPosRoleReplaceChanged(self, replace: str) -> None: ... + def yPosRoleReplaceChanged(self, replace: str) -> None: ... + def xPosRoleReplaceChanged(self, replace: str) -> None: ... + def rotationRoleReplaceChanged(self, replace: str) -> None: ... + def rotationRolePatternChanged(self, pattern: QtCore.QRegExp) -> None: ... + def zPosRolePatternChanged(self, pattern: QtCore.QRegExp) -> None: ... + def yPosRolePatternChanged(self, pattern: QtCore.QRegExp) -> None: ... + def xPosRolePatternChanged(self, pattern: QtCore.QRegExp) -> None: ... + def rotationRoleReplace(self) -> str: ... + def setRotationRoleReplace(self, replace: str) -> None: ... + def zPosRoleReplace(self) -> str: ... + def setZPosRoleReplace(self, replace: str) -> None: ... + def yPosRoleReplace(self) -> str: ... + def setYPosRoleReplace(self, replace: str) -> None: ... + def xPosRoleReplace(self) -> str: ... + def setXPosRoleReplace(self, replace: str) -> None: ... + def rotationRolePattern(self) -> QtCore.QRegExp: ... + def setRotationRolePattern(self, pattern: QtCore.QRegExp) -> None: ... + def zPosRolePattern(self) -> QtCore.QRegExp: ... + def setZPosRolePattern(self, pattern: QtCore.QRegExp) -> None: ... + def yPosRolePattern(self) -> QtCore.QRegExp: ... + def setYPosRolePattern(self, pattern: QtCore.QRegExp) -> None: ... + def xPosRolePattern(self) -> QtCore.QRegExp: ... + def setXPosRolePattern(self, pattern: QtCore.QRegExp) -> None: ... + def rotationRoleChanged(self, role: str) -> None: ... + def zPosRoleChanged(self, role: str) -> None: ... + def yPosRoleChanged(self, role: str) -> None: ... + def xPosRoleChanged(self, role: str) -> None: ... + def itemModelChanged(self, itemModel: QtCore.QAbstractItemModel) -> None: ... + def remap(self, xPosRole: str, yPosRole: str, zPosRole: str, rotationRole: str) -> None: ... + def rotationRole(self) -> str: ... + def setRotationRole(self, role: str) -> None: ... + def zPosRole(self) -> str: ... + def setZPosRole(self, role: str) -> None: ... + def yPosRole(self) -> str: ... + def setYPosRole(self, role: str) -> None: ... + def xPosRole(self) -> str: ... + def setXPosRole(self, role: str) -> None: ... + def itemModel(self) -> QtCore.QAbstractItemModel: ... + def setItemModel(self, itemModel: QtCore.QAbstractItemModel) -> None: ... + + class QItemModelSurfaceDataProxy('QSurfaceDataProxy'): + + class MultiMatchBehavior(int): ... + MMBFirst = ... # type: 'QItemModelSurfaceDataProxy.MultiMatchBehavior' + MMBLast = ... # type: 'QItemModelSurfaceDataProxy.MultiMatchBehavior' + MMBAverage = ... # type: 'QItemModelSurfaceDataProxy.MultiMatchBehavior' + MMBCumulativeY = ... # type: 'QItemModelSurfaceDataProxy.MultiMatchBehavior' + + @typing.overload + def __init__(self, itemModel: QtCore.QAbstractItemModel, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, itemModel: QtCore.QAbstractItemModel, yPosRole: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, itemModel: QtCore.QAbstractItemModel, rowRole: str, columnRole: str, yPosRole: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, itemModel: QtCore.QAbstractItemModel, rowRole: str, columnRole: str, yPosRole: str, rowCategories: typing.Iterable[str], columnCategories: typing.Iterable[str], parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, itemModel: QtCore.QAbstractItemModel, rowRole: str, columnRole: str, xPosRole: str, yPosRole: str, zPosRole: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, itemModel: QtCore.QAbstractItemModel, rowRole: str, columnRole: str, xPosRole: str, yPosRole: str, zPosRole: str, rowCategories: typing.Iterable[str], columnCategories: typing.Iterable[str], parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def multiMatchBehaviorChanged(self, behavior: 'QItemModelSurfaceDataProxy.MultiMatchBehavior') -> None: ... + def zPosRoleReplaceChanged(self, replace: str) -> None: ... + def yPosRoleReplaceChanged(self, replace: str) -> None: ... + def xPosRoleReplaceChanged(self, replace: str) -> None: ... + def columnRoleReplaceChanged(self, replace: str) -> None: ... + def rowRoleReplaceChanged(self, replace: str) -> None: ... + def zPosRolePatternChanged(self, pattern: QtCore.QRegExp) -> None: ... + def yPosRolePatternChanged(self, pattern: QtCore.QRegExp) -> None: ... + def xPosRolePatternChanged(self, pattern: QtCore.QRegExp) -> None: ... + def columnRolePatternChanged(self, pattern: QtCore.QRegExp) -> None: ... + def rowRolePatternChanged(self, pattern: QtCore.QRegExp) -> None: ... + def multiMatchBehavior(self) -> 'QItemModelSurfaceDataProxy.MultiMatchBehavior': ... + def setMultiMatchBehavior(self, behavior: 'QItemModelSurfaceDataProxy.MultiMatchBehavior') -> None: ... + def zPosRoleReplace(self) -> str: ... + def setZPosRoleReplace(self, replace: str) -> None: ... + def yPosRoleReplace(self) -> str: ... + def setYPosRoleReplace(self, replace: str) -> None: ... + def xPosRoleReplace(self) -> str: ... + def setXPosRoleReplace(self, replace: str) -> None: ... + def columnRoleReplace(self) -> str: ... + def setColumnRoleReplace(self, replace: str) -> None: ... + def rowRoleReplace(self) -> str: ... + def setRowRoleReplace(self, replace: str) -> None: ... + def zPosRolePattern(self) -> QtCore.QRegExp: ... + def setZPosRolePattern(self, pattern: QtCore.QRegExp) -> None: ... + def yPosRolePattern(self) -> QtCore.QRegExp: ... + def setYPosRolePattern(self, pattern: QtCore.QRegExp) -> None: ... + def xPosRolePattern(self) -> QtCore.QRegExp: ... + def setXPosRolePattern(self, pattern: QtCore.QRegExp) -> None: ... + def columnRolePattern(self) -> QtCore.QRegExp: ... + def setColumnRolePattern(self, pattern: QtCore.QRegExp) -> None: ... + def rowRolePattern(self) -> QtCore.QRegExp: ... + def setRowRolePattern(self, pattern: QtCore.QRegExp) -> None: ... + def autoColumnCategoriesChanged(self, enable: bool) -> None: ... + def autoRowCategoriesChanged(self, enable: bool) -> None: ... + def useModelCategoriesChanged(self, enable: bool) -> None: ... + def columnCategoriesChanged(self) -> None: ... + def rowCategoriesChanged(self) -> None: ... + def zPosRoleChanged(self, role: str) -> None: ... + def yPosRoleChanged(self, role: str) -> None: ... + def xPosRoleChanged(self, role: str) -> None: ... + def columnRoleChanged(self, role: str) -> None: ... + def rowRoleChanged(self, role: str) -> None: ... + def itemModelChanged(self, itemModel: QtCore.QAbstractItemModel) -> None: ... + def remap(self, rowRole: str, columnRole: str, xPosRole: str, yPosRole: str, zPosRole: str, rowCategories: typing.Iterable[str], columnCategories: typing.Iterable[str]) -> None: ... + def zPosRole(self) -> str: ... + def setZPosRole(self, role: str) -> None: ... + def yPosRole(self) -> str: ... + def setYPosRole(self, role: str) -> None: ... + def xPosRole(self) -> str: ... + def setXPosRole(self, role: str) -> None: ... + def columnCategoryIndex(self, category: str) -> int: ... + def rowCategoryIndex(self, category: str) -> int: ... + def autoColumnCategories(self) -> bool: ... + def setAutoColumnCategories(self, enable: bool) -> None: ... + def autoRowCategories(self) -> bool: ... + def setAutoRowCategories(self, enable: bool) -> None: ... + def useModelCategories(self) -> bool: ... + def setUseModelCategories(self, enable: bool) -> None: ... + def columnCategories(self) -> typing.List[str]: ... + def setColumnCategories(self, categories: typing.Iterable[str]) -> None: ... + def rowCategories(self) -> typing.List[str]: ... + def setRowCategories(self, categories: typing.Iterable[str]) -> None: ... + def columnRole(self) -> str: ... + def setColumnRole(self, role: str) -> None: ... + def rowRole(self) -> str: ... + def setRowRole(self, role: str) -> None: ... + def itemModel(self) -> QtCore.QAbstractItemModel: ... + def setItemModel(self, itemModel: QtCore.QAbstractItemModel) -> None: ... + + class QValue3DAxisFormatter(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def locale(self) -> QtCore.QLocale: ... + def setLocale(self, locale: QtCore.QLocale) -> None: ... + def labelStrings(self) -> typing.List[str]: ... + def labelPositions(self) -> typing.List[float]: ... + def subGridPositions(self) -> typing.List[float]: ... + def gridPositions(self) -> typing.List[float]: ... + def axis(self) -> 'QValue3DAxis': ... + def markDirty(self, labelsChange: bool = ...) -> None: ... + def populateCopy(self, copy: 'QValue3DAxisFormatter') -> None: ... + def valueAt(self, position: float) -> float: ... + def positionAt(self, value: float) -> float: ... + def stringForValue(self, value: float, format: str) -> str: ... + def recalculate(self) -> None: ... + def createNewInstance(self) -> 'QValue3DAxisFormatter': ... + def allowZero(self) -> bool: ... + def setAllowZero(self, allow: bool) -> None: ... + def allowNegatives(self) -> bool: ... + def setAllowNegatives(self, allow: bool) -> None: ... + + class QLogValue3DAxisFormatter('QValue3DAxisFormatter'): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def populateCopy(self, copy: 'QValue3DAxisFormatter') -> None: ... + def valueAt(self, position: float) -> float: ... + def positionAt(self, value: float) -> float: ... + def recalculate(self) -> None: ... + def createNewInstance(self) -> 'QValue3DAxisFormatter': ... + def showEdgeLabelsChanged(self, enabled: bool) -> None: ... + def autoSubGridChanged(self, enabled: bool) -> None: ... + def baseChanged(self, base: float) -> None: ... + def showEdgeLabels(self) -> bool: ... + def setShowEdgeLabels(self, enabled: bool) -> None: ... + def autoSubGrid(self) -> bool: ... + def setAutoSubGrid(self, enabled: bool) -> None: ... + def base(self) -> float: ... + def setBase(self, base: float) -> None: ... + + class QScatter3DSeries('QAbstract3DSeries'): + + @typing.overload + def __init__(self, dataProxy: 'QScatterDataProxy', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def itemSizeChanged(self, size: float) -> None: ... + def selectedItemChanged(self, index: int) -> None: ... + def dataProxyChanged(self, proxy: 'QScatterDataProxy') -> None: ... + def itemSize(self) -> float: ... + def setItemSize(self, size: float) -> None: ... + @staticmethod + def invalidSelectionIndex() -> int: ... + def selectedItem(self) -> int: ... + def setSelectedItem(self, index: int) -> None: ... + def dataProxy(self) -> 'QScatterDataProxy': ... + def setDataProxy(self, proxy: 'QScatterDataProxy') -> None: ... + + class QScatterDataItem(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, position: QtGui.QVector3D) -> None: ... + @typing.overload + def __init__(self, position: QtGui.QVector3D, rotation: QtGui.QQuaternion) -> None: ... + @typing.overload + def __init__(self, other: 'QScatterDataItem') -> None: ... + + def z(self) -> float: ... + def y(self) -> float: ... + def x(self) -> float: ... + def setZ(self, value: float) -> None: ... + def setY(self, value: float) -> None: ... + def setX(self, value: float) -> None: ... + def rotation(self) -> QtGui.QQuaternion: ... + def setRotation(self, rotation: QtGui.QQuaternion) -> None: ... + def position(self) -> QtGui.QVector3D: ... + def setPosition(self, position: QtGui.QVector3D) -> None: ... + + class QSurface3DSeries('QAbstract3DSeries'): + + class DrawFlag(int): ... + DrawWireframe = ... # type: 'QSurface3DSeries.DrawFlag' + DrawSurface = ... # type: 'QSurface3DSeries.DrawFlag' + DrawSurfaceAndWireframe = ... # type: 'QSurface3DSeries.DrawFlag' + + class DrawFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSurface3DSeries.DrawFlags', 'QSurface3DSeries.DrawFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSurface3DSeries.DrawFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSurface3DSeries.DrawFlags': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, dataProxy: 'QSurfaceDataProxy', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def textureFileChanged(self, filename: str) -> None: ... + def textureChanged(self, image: QtGui.QImage) -> None: ... + def textureFile(self) -> str: ... + def setTextureFile(self, filename: str) -> None: ... + def texture(self) -> QtGui.QImage: ... + def setTexture(self, texture: QtGui.QImage) -> None: ... + def drawModeChanged(self, mode: typing.Union['QSurface3DSeries.DrawFlags', 'QSurface3DSeries.DrawFlag']) -> None: ... + def flatShadingSupportedChanged(self, enable: bool) -> None: ... + def flatShadingEnabledChanged(self, enable: bool) -> None: ... + def selectedPointChanged(self, position: QtCore.QPoint) -> None: ... + def dataProxyChanged(self, proxy: 'QSurfaceDataProxy') -> None: ... + def isFlatShadingSupported(self) -> bool: ... + def drawMode(self) -> 'QSurface3DSeries.DrawFlags': ... + def setDrawMode(self, mode: typing.Union['QSurface3DSeries.DrawFlags', 'QSurface3DSeries.DrawFlag']) -> None: ... + def isFlatShadingEnabled(self) -> bool: ... + def setFlatShadingEnabled(self, enabled: bool) -> None: ... + @staticmethod + def invalidSelectionPosition() -> QtCore.QPoint: ... + def selectedPoint(self) -> QtCore.QPoint: ... + def setSelectedPoint(self, position: QtCore.QPoint) -> None: ... + def dataProxy(self) -> 'QSurfaceDataProxy': ... + def setDataProxy(self, proxy: 'QSurfaceDataProxy') -> None: ... + + class QSurfaceDataItem(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, position: QtGui.QVector3D) -> None: ... + @typing.overload + def __init__(self, other: 'QSurfaceDataItem') -> None: ... + + def z(self) -> float: ... + def y(self) -> float: ... + def x(self) -> float: ... + def setZ(self, value: float) -> None: ... + def setY(self, value: float) -> None: ... + def setX(self, value: float) -> None: ... + def position(self) -> QtGui.QVector3D: ... + def setPosition(self, position: QtGui.QVector3D) -> None: ... + + class QTouch3DInputHandler('Q3DInputHandler'): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def touchEvent(self, event: QtGui.QTouchEvent) -> None: ... + + class QValue3DAxis('QAbstract3DAxis'): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reversedChanged(self, enable: bool) -> None: ... + def formatterChanged(self, formatter: 'QValue3DAxisFormatter') -> None: ... + def reversed(self) -> bool: ... + def setReversed(self, enable: bool) -> None: ... + def formatter(self) -> 'QValue3DAxisFormatter': ... + def setFormatter(self, formatter: 'QValue3DAxisFormatter') -> None: ... + def labelFormatChanged(self, format: str) -> None: ... + def subSegmentCountChanged(self, count: int) -> None: ... + def segmentCountChanged(self, count: int) -> None: ... + def labelFormat(self) -> str: ... + def setLabelFormat(self, format: str) -> None: ... + def subSegmentCount(self) -> int: ... + def setSubSegmentCount(self, count: int) -> None: ... + def segmentCount(self) -> int: ... + def setSegmentCount(self, count: int) -> None: ... + + def qDefaultSurfaceFormat(self, antialias: bool = ...) -> QtGui.QSurfaceFormat: ... + + +PYQT_DATAVISUALIZATION_VERSION = ... # type: int +PYQT_DATAVISUALIZATION_VERSION_STR = ... # type: str +QTDATAVISUALIZATION_VERSION = ... # type: int +QTDATAVISUALIZATION_VERSION_STR = ... # type: str diff --git a/PyQt5-stubs/QtDesigner.pyi b/PyQt5-stubs/QtDesigner.pyi new file mode 100644 index 00000000..2e56bd75 --- /dev/null +++ b/PyQt5-stubs/QtDesigner.pyi @@ -0,0 +1,482 @@ +# The PEP 484 type hints stub file for the QtDesigner module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2020 Riverbank Computing Limited +# +# 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 sip + +from PyQt5 import QtWidgets +from PyQt5 import QtCore + +# 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], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QDesignerActionEditorInterface(QtWidgets.QWidget): + + def __init__(self, parent: QtWidgets.QWidget, flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def setFormWindow(self, formWindow: 'QDesignerFormWindowInterface') -> None: ... + def unmanageAction(self, action: QtWidgets.QAction) -> None: ... + def manageAction(self, action: QtWidgets.QAction) -> None: ... + def core(self) -> 'QDesignerFormEditorInterface': ... + + +class QAbstractFormBuilder(sip.simplewrapper): + + def __init__(self) -> None: ... + + def errorString(self) -> str: ... + def workingDirectory(self) -> QtCore.QDir: ... + def setWorkingDirectory(self, directory: QtCore.QDir) -> None: ... + def save(self, dev: QtCore.QIODevice, widget: QtWidgets.QWidget) -> None: ... + def load(self, device: QtCore.QIODevice, parent: typing.Optional[QtWidgets.QWidget] = ...) -> QtWidgets.QWidget: ... + + +class QDesignerFormEditorInterface(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setActionEditor(self, actionEditor: QDesignerActionEditorInterface) -> None: ... + def setObjectInspector(self, objectInspector: 'QDesignerObjectInspectorInterface') -> None: ... + def setPropertyEditor(self, propertyEditor: 'QDesignerPropertyEditorInterface') -> None: ... + def setWidgetBox(self, widgetBox: 'QDesignerWidgetBoxInterface') -> None: ... + def actionEditor(self) -> QDesignerActionEditorInterface: ... + def formWindowManager(self) -> 'QDesignerFormWindowManagerInterface': ... + def objectInspector(self) -> 'QDesignerObjectInspectorInterface': ... + def propertyEditor(self) -> 'QDesignerPropertyEditorInterface': ... + def widgetBox(self) -> 'QDesignerWidgetBoxInterface': ... + def topLevel(self) -> QtWidgets.QWidget: ... + def extensionManager(self) -> 'QExtensionManager': ... + + +class QDesignerFormWindowInterface(QtWidgets.QWidget): + + class FeatureFlag(int): ... + EditFeature = ... # type: 'QDesignerFormWindowInterface.FeatureFlag' + GridFeature = ... # type: 'QDesignerFormWindowInterface.FeatureFlag' + TabOrderFeature = ... # type: 'QDesignerFormWindowInterface.FeatureFlag' + DefaultFeature = ... # type: 'QDesignerFormWindowInterface.FeatureFlag' + + class Feature(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QDesignerFormWindowInterface.Feature', 'QDesignerFormWindowInterface.FeatureFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QDesignerFormWindowInterface.Feature') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QDesignerFormWindowInterface.Feature': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def activateResourceFilePaths(self, paths: typing.Iterable[str]) -> typing.Tuple[int, str]: ... + def formContainer(self) -> QtWidgets.QWidget: ... + def activeResourceFilePaths(self) -> typing.List[str]: ... + def checkContents(self) -> typing.List[str]: ... + def objectRemoved(self, o: QtCore.QObject) -> None: ... + def widgetRemoved(self, w: QtWidgets.QWidget) -> None: ... + def changed(self) -> None: ... + def activated(self, widget: QtWidgets.QWidget) -> None: ... + def aboutToUnmanageWidget(self, widget: QtWidgets.QWidget) -> None: ... + def widgetUnmanaged(self, widget: QtWidgets.QWidget) -> None: ... + def widgetManaged(self, widget: QtWidgets.QWidget) -> None: ... + def resourceFilesChanged(self) -> None: ... + def geometryChanged(self) -> None: ... + def selectionChanged(self) -> None: ... + def featureChanged(self, f: typing.Union['QDesignerFormWindowInterface.Feature', 'QDesignerFormWindowInterface.FeatureFlag']) -> None: ... + def fileNameChanged(self, fileName: str) -> None: ... + def mainContainerChanged(self, mainContainer: QtWidgets.QWidget) -> None: ... + def setFileName(self, fileName: str) -> None: ... + def setGrid(self, grid: QtCore.QPoint) -> None: ... + def selectWidget(self, widget: QtWidgets.QWidget, select: bool = ...) -> None: ... + def clearSelection(self, update: bool = ...) -> None: ... + def setDirty(self, dirty: bool) -> None: ... + def setFeatures(self, f: typing.Union['QDesignerFormWindowInterface.Feature', 'QDesignerFormWindowInterface.FeatureFlag']) -> None: ... + def unmanageWidget(self, widget: QtWidgets.QWidget) -> None: ... + def manageWidget(self, widget: QtWidgets.QWidget) -> None: ... + def removeResourceFile(self, path: str) -> None: ... + def addResourceFile(self, path: str) -> None: ... + def resourceFiles(self) -> typing.List[str]: ... + def emitSelectionChanged(self) -> None: ... + @typing.overload + @staticmethod + def findFormWindow(w: QtWidgets.QWidget) -> 'QDesignerFormWindowInterface': ... + @typing.overload + @staticmethod + def findFormWindow(obj: QtCore.QObject) -> 'QDesignerFormWindowInterface': ... + def isDirty(self) -> bool: ... + def isManaged(self, widget: QtWidgets.QWidget) -> bool: ... + def setMainContainer(self, mainContainer: QtWidgets.QWidget) -> None: ... + def mainContainer(self) -> QtWidgets.QWidget: ... + def grid(self) -> QtCore.QPoint: ... + def cursor(self) -> 'QDesignerFormWindowCursorInterface': ... + def core(self) -> QDesignerFormEditorInterface: ... + def setIncludeHints(self, includeHints: typing.Iterable[str]) -> None: ... + def includeHints(self) -> typing.List[str]: ... + def setExportMacro(self, exportMacro: str) -> None: ... + def exportMacro(self) -> str: ... + def setPixmapFunction(self, pixmapFunction: str) -> None: ... + def pixmapFunction(self) -> str: ... + def setLayoutFunction(self, margin: str, spacing: str) -> None: ... + def layoutFunction(self) -> typing.Tuple[str, str]: ... + def setLayoutDefault(self, margin: int, spacing: int) -> None: ... + def layoutDefault(self) -> typing.Tuple[int, int]: ... + def setComment(self, comment: str) -> None: ... + def comment(self) -> str: ... + def setAuthor(self, author: str) -> None: ... + def author(self) -> str: ... + def hasFeature(self, f: typing.Union['QDesignerFormWindowInterface.Feature', 'QDesignerFormWindowInterface.FeatureFlag']) -> bool: ... + def features(self) -> 'QDesignerFormWindowInterface.Feature': ... + @typing.overload + def setContents(self, dev: QtCore.QIODevice, errorMessage: typing.Optional[str] = ...) -> bool: ... + @typing.overload + def setContents(self, contents: str) -> bool: ... + def contents(self) -> str: ... + def absoluteDir(self) -> QtCore.QDir: ... + def fileName(self) -> str: ... + + +class QDesignerFormWindowCursorInterface(sip.simplewrapper): + + class MoveMode(int): ... + MoveAnchor = ... # type: 'QDesignerFormWindowCursorInterface.MoveMode' + KeepAnchor = ... # type: 'QDesignerFormWindowCursorInterface.MoveMode' + + class MoveOperation(int): ... + NoMove = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation' + Start = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation' + End = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation' + Next = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation' + Prev = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation' + Left = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation' + Right = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation' + Up = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation' + Down = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDesignerFormWindowCursorInterface') -> None: ... + + def isWidgetSelected(self, widget: QtWidgets.QWidget) -> bool: ... + def resetWidgetProperty(self, widget: QtWidgets.QWidget, name: str) -> None: ... + def setWidgetProperty(self, widget: QtWidgets.QWidget, name: str, value: typing.Any) -> None: ... + def setProperty(self, name: str, value: typing.Any) -> None: ... + def selectedWidget(self, index: int) -> QtWidgets.QWidget: ... + def selectedWidgetCount(self) -> int: ... + def hasSelection(self) -> bool: ... + def widget(self, index: int) -> QtWidgets.QWidget: ... + def widgetCount(self) -> int: ... + def current(self) -> QtWidgets.QWidget: ... + def setPosition(self, pos: int, mode: 'QDesignerFormWindowCursorInterface.MoveMode' = ...) -> None: ... + def position(self) -> int: ... + def movePosition(self, op: 'QDesignerFormWindowCursorInterface.MoveOperation', mode: 'QDesignerFormWindowCursorInterface.MoveMode' = ...) -> bool: ... + def formWindow(self) -> QDesignerFormWindowInterface: ... + + +class QDesignerFormWindowManagerInterface(QtCore.QObject): + + class ActionGroup(int): ... + StyledPreviewActionGroup = ... # type: 'QDesignerFormWindowManagerInterface.ActionGroup' + + class Action(int): ... + CutAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + CopyAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + PasteAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + DeleteAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + SelectAllAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + LowerAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + RaiseAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + UndoAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + RedoAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + HorizontalLayoutAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + VerticalLayoutAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + SplitHorizontalAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + SplitVerticalAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + GridLayoutAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + FormLayoutAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + BreakLayoutAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + AdjustSizeAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + SimplifyLayoutAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + DefaultPreviewAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + FormWindowSettingsDialogAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def showPluginDialog(self) -> None: ... + def closeAllPreviews(self) -> None: ... + def showPreview(self) -> None: ... + def actionGroup(self, actionGroup: 'QDesignerFormWindowManagerInterface.ActionGroup') -> QtWidgets.QActionGroup: ... + def action(self, action: 'QDesignerFormWindowManagerInterface.Action') -> QtWidgets.QAction: ... + def setActiveFormWindow(self, formWindow: QDesignerFormWindowInterface) -> None: ... + def removeFormWindow(self, formWindow: QDesignerFormWindowInterface) -> None: ... + def addFormWindow(self, formWindow: QDesignerFormWindowInterface) -> None: ... + def formWindowSettingsChanged(self, fw: QDesignerFormWindowInterface) -> None: ... + def activeFormWindowChanged(self, formWindow: QDesignerFormWindowInterface) -> None: ... + def formWindowRemoved(self, formWindow: QDesignerFormWindowInterface) -> None: ... + def formWindowAdded(self, formWindow: QDesignerFormWindowInterface) -> None: ... + def core(self) -> QDesignerFormEditorInterface: ... + def createFormWindow(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> QDesignerFormWindowInterface: ... + def formWindow(self, index: int) -> QDesignerFormWindowInterface: ... + def formWindowCount(self) -> int: ... + def activeFormWindow(self) -> QDesignerFormWindowInterface: ... + def actionSimplifyLayout(self) -> QtWidgets.QAction: ... + def actionFormLayout(self) -> QtWidgets.QAction: ... + + +class QDesignerObjectInspectorInterface(QtWidgets.QWidget): + + def __init__(self, parent: QtWidgets.QWidget, flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def setFormWindow(self, formWindow: QDesignerFormWindowInterface) -> None: ... + def core(self) -> QDesignerFormEditorInterface: ... + + +class QDesignerPropertyEditorInterface(QtWidgets.QWidget): + + def __init__(self, parent: QtWidgets.QWidget, flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def setReadOnly(self, readOnly: bool) -> None: ... + def setPropertyValue(self, name: str, value: typing.Any, changed: bool = ...) -> None: ... + def setObject(self, object: QtCore.QObject) -> None: ... + def propertyChanged(self, name: str, value: typing.Any) -> None: ... + def currentPropertyName(self) -> str: ... + def object(self) -> QtCore.QObject: ... + def isReadOnly(self) -> bool: ... + def core(self) -> QDesignerFormEditorInterface: ... + + +class QDesignerWidgetBoxInterface(QtWidgets.QWidget): + + def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def save(self) -> bool: ... + def load(self) -> bool: ... + def fileName(self) -> str: ... + def setFileName(self, file_name: str) -> None: ... + + +class QDesignerContainerExtension(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDesignerContainerExtension') -> None: ... + + def canRemove(self, index: int) -> bool: ... + def canAddWidget(self) -> bool: ... + def remove(self, index: int) -> None: ... + def insertWidget(self, index: int, widget: QtWidgets.QWidget) -> None: ... + def addWidget(self, widget: QtWidgets.QWidget) -> None: ... + def setCurrentIndex(self, index: int) -> None: ... + def currentIndex(self) -> int: ... + def widget(self, index: int) -> QtWidgets.QWidget: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + + +class QDesignerCustomWidgetInterface(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDesignerCustomWidgetInterface') -> None: ... + + def codeTemplate(self) -> str: ... + def domXml(self) -> str: ... + def initialize(self, core: QDesignerFormEditorInterface) -> None: ... + def isInitialized(self) -> bool: ... + def createWidget(self, parent: QtWidgets.QWidget) -> QtWidgets.QWidget: ... + def isContainer(self) -> bool: ... + def icon(self) -> QtGui.QIcon: ... + def includeFile(self) -> str: ... + def whatsThis(self) -> str: ... + def toolTip(self) -> str: ... + def group(self) -> str: ... + def name(self) -> str: ... + + +class QDesignerCustomWidgetCollectionInterface(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDesignerCustomWidgetCollectionInterface') -> None: ... + + def customWidgets(self) -> typing.List[QDesignerCustomWidgetInterface]: ... + + +class QAbstractExtensionFactory(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QAbstractExtensionFactory') -> None: ... + + def extension(self, object: QtCore.QObject, iid: str) -> QtCore.QObject: ... + + +class QExtensionFactory(QtCore.QObject, QAbstractExtensionFactory): + + def __init__(self, parent: typing.Optional['QExtensionManager'] = ...) -> None: ... + + def createExtension(self, object: QtCore.QObject, iid: str, parent: QtCore.QObject) -> QtCore.QObject: ... + def extensionManager(self) -> 'QExtensionManager': ... + def extension(self, object: QtCore.QObject, iid: str) -> QtCore.QObject: ... + + +class QAbstractExtensionManager(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QAbstractExtensionManager') -> None: ... + + def extension(self, object: QtCore.QObject, iid: str) -> QtCore.QObject: ... + def unregisterExtensions(self, factory: QAbstractExtensionFactory, iid: str) -> None: ... + def registerExtensions(self, factory: QAbstractExtensionFactory, iid: str) -> None: ... + + +class QFormBuilder(QAbstractFormBuilder): + + def __init__(self) -> None: ... + + def customWidgets(self) -> typing.List[QDesignerCustomWidgetInterface]: ... + def setPluginPath(self, pluginPaths: typing.Iterable[str]) -> None: ... + def addPluginPath(self, pluginPath: str) -> None: ... + def clearPluginPaths(self) -> None: ... + def pluginPaths(self) -> typing.List[str]: ... + + +class QDesignerMemberSheetExtension(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDesignerMemberSheetExtension') -> None: ... + + def parameterNames(self, index: int) -> typing.List[QtCore.QByteArray]: ... + def parameterTypes(self, index: int) -> typing.List[QtCore.QByteArray]: ... + def signature(self, index: int) -> str: ... + def declaredInClass(self, index: int) -> str: ... + def inheritedFromWidget(self, index: int) -> bool: ... + def isSlot(self, index: int) -> bool: ... + def isSignal(self, index: int) -> bool: ... + def setVisible(self, index: int, b: bool) -> None: ... + def isVisible(self, index: int) -> bool: ... + def setMemberGroup(self, index: int, group: str) -> None: ... + def memberGroup(self, index: int) -> str: ... + def memberName(self, index: int) -> str: ... + def indexOf(self, name: str) -> int: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + + +class QDesignerPropertySheetExtension(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDesignerPropertySheetExtension') -> None: ... + + def isEnabled(self, index: int) -> bool: ... + def setChanged(self, index: int, changed: bool) -> None: ... + def isChanged(self, index: int) -> bool: ... + def setProperty(self, index: int, value: typing.Any) -> None: ... + def property(self, index: int) -> typing.Any: ... + def setAttribute(self, index: int, b: bool) -> None: ... + def isAttribute(self, index: int) -> bool: ... + def setVisible(self, index: int, b: bool) -> None: ... + def isVisible(self, index: int) -> bool: ... + def reset(self, index: int) -> bool: ... + def hasReset(self, index: int) -> bool: ... + def setPropertyGroup(self, index: int, group: str) -> None: ... + def propertyGroup(self, index: int) -> str: ... + def propertyName(self, index: int) -> str: ... + def indexOf(self, name: str) -> int: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + + +class QExtensionManager(QtCore.QObject, QAbstractExtensionManager): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def extension(self, object: QtCore.QObject, iid: str) -> QtCore.QObject: ... + def unregisterExtensions(self, factory: QAbstractExtensionFactory, iid: str = ...) -> None: ... + def registerExtensions(self, factory: QAbstractExtensionFactory, iid: str = ...) -> None: ... + + +class QDesignerTaskMenuExtension(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDesignerTaskMenuExtension') -> None: ... + + def preferredEditAction(self) -> QtWidgets.QAction: ... + def taskActions(self) -> typing.List[QtWidgets.QAction]: ... + + +class QPyDesignerContainerExtension(QtCore.QObject, QDesignerContainerExtension): + + def __init__(self, parent: QtCore.QObject) -> None: ... + + +class QPyDesignerCustomWidgetCollectionPlugin(QtCore.QObject, QDesignerCustomWidgetCollectionInterface): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + +class QPyDesignerCustomWidgetPlugin(QtCore.QObject, QDesignerCustomWidgetInterface): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + +class QPyDesignerTaskMenuExtension(QtCore.QObject, QDesignerTaskMenuExtension): + + def __init__(self, parent: QtCore.QObject) -> None: ... + + +class QPyDesignerPropertySheetExtension(QtCore.QObject, QDesignerPropertySheetExtension): + + def __init__(self, parent: QtCore.QObject) -> None: ... + + +class QPyDesignerMemberSheetExtension(QtCore.QObject, QDesignerMemberSheetExtension): + + def __init__(self, parent: QtCore.QObject) -> None: ... diff --git a/PyQt5-stubs/QtLocation.pyi b/PyQt5-stubs/QtLocation.pyi new file mode 100644 index 00000000..770777b6 --- /dev/null +++ b/PyQt5-stubs/QtLocation.pyi @@ -0,0 +1,1187 @@ +# The PEP 484 type hints stub file for the QtLocation module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2020 Riverbank Computing Limited +# +# 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 sip + +from PyQt5 import QtPositioning +from PyQt5 import QtCore + +# 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] + + +class QGeoCodeReply(QtCore.QObject): + + class Error(int): ... + NoError = ... # type: 'QGeoCodeReply.Error' + EngineNotSetError = ... # type: 'QGeoCodeReply.Error' + CommunicationError = ... # type: 'QGeoCodeReply.Error' + ParseError = ... # type: 'QGeoCodeReply.Error' + UnsupportedOptionError = ... # type: 'QGeoCodeReply.Error' + CombinationError = ... # type: 'QGeoCodeReply.Error' + UnknownError = ... # type: 'QGeoCodeReply.Error' + + @typing.overload + def __init__(self, error: 'QGeoCodeReply.Error', errorString: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setOffset(self, offset: int) -> None: ... + def setLimit(self, limit: int) -> None: ... + def setLocations(self, locations: typing.Iterable[QtPositioning.QGeoLocation]) -> None: ... + def addLocation(self, location: QtPositioning.QGeoLocation) -> None: ... + def setViewport(self, viewport: QtPositioning.QGeoShape) -> None: ... + def setFinished(self, finished: bool) -> None: ... + def setError(self, error: 'QGeoCodeReply.Error', errorString: str) -> None: ... + def finished(self) -> None: ... + def aborted(self) -> None: ... + def abort(self) -> None: ... + def offset(self) -> int: ... + def limit(self) -> int: ... + def locations(self) -> typing.List[QtPositioning.QGeoLocation]: ... + def viewport(self) -> QtPositioning.QGeoShape: ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> 'QGeoCodeReply.Error': ... + @typing.overload + def error(self, error: 'QGeoCodeReply.Error', errorString: str = ...) -> None: ... + def isFinished(self) -> bool: ... + + +class QGeoCodingManager(QtCore.QObject): + + def error(self, reply: QGeoCodeReply, error: QGeoCodeReply.Error, errorString: str = ...) -> None: ... + def finished(self, reply: QGeoCodeReply) -> None: ... + def locale(self) -> QtCore.QLocale: ... + def setLocale(self, locale: QtCore.QLocale) -> None: ... + def reverseGeocode(self, coordinate: QtPositioning.QGeoCoordinate, bounds: QtPositioning.QGeoShape = ...) -> QGeoCodeReply: ... + @typing.overload + def geocode(self, address: QtPositioning.QGeoAddress, bounds: QtPositioning.QGeoShape = ...) -> QGeoCodeReply: ... + @typing.overload + def geocode(self, searchString: str, limit: int = ..., offset: int = ..., bounds: QtPositioning.QGeoShape = ...) -> QGeoCodeReply: ... + def managerVersion(self) -> int: ... + def managerName(self) -> str: ... + + +class QGeoCodingManagerEngine(QtCore.QObject): + + def __init__(self, parameters: typing.Dict[str, typing.Any], parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def error(self, reply: QGeoCodeReply, error: QGeoCodeReply.Error, errorString: str = ...) -> None: ... + def finished(self, reply: QGeoCodeReply) -> None: ... + def locale(self) -> QtCore.QLocale: ... + def setLocale(self, locale: QtCore.QLocale) -> None: ... + def reverseGeocode(self, coordinate: QtPositioning.QGeoCoordinate, bounds: QtPositioning.QGeoShape) -> QGeoCodeReply: ... + @typing.overload + def geocode(self, address: QtPositioning.QGeoAddress, bounds: QtPositioning.QGeoShape) -> QGeoCodeReply: ... + @typing.overload + def geocode(self, address: str, limit: int, offset: int, bounds: QtPositioning.QGeoShape) -> QGeoCodeReply: ... + def managerVersion(self) -> int: ... + def managerName(self) -> str: ... + + +class QGeoManeuver(sip.simplewrapper): + + class InstructionDirection(int): ... + NoDirection = ... # type: 'QGeoManeuver.InstructionDirection' + DirectionForward = ... # type: 'QGeoManeuver.InstructionDirection' + DirectionBearRight = ... # type: 'QGeoManeuver.InstructionDirection' + DirectionLightRight = ... # type: 'QGeoManeuver.InstructionDirection' + DirectionRight = ... # type: 'QGeoManeuver.InstructionDirection' + DirectionHardRight = ... # type: 'QGeoManeuver.InstructionDirection' + DirectionUTurnRight = ... # type: 'QGeoManeuver.InstructionDirection' + DirectionUTurnLeft = ... # type: 'QGeoManeuver.InstructionDirection' + DirectionHardLeft = ... # type: 'QGeoManeuver.InstructionDirection' + DirectionLeft = ... # type: 'QGeoManeuver.InstructionDirection' + DirectionLightLeft = ... # type: 'QGeoManeuver.InstructionDirection' + DirectionBearLeft = ... # type: 'QGeoManeuver.InstructionDirection' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoManeuver') -> None: ... + + def extendedAttributes(self) -> typing.Dict[str, typing.Any]: ... + def setExtendedAttributes(self, extendedAttributes: typing.Dict[str, typing.Any]) -> None: ... + def waypoint(self) -> QtPositioning.QGeoCoordinate: ... + def setWaypoint(self, coordinate: QtPositioning.QGeoCoordinate) -> None: ... + def distanceToNextInstruction(self) -> float: ... + def setDistanceToNextInstruction(self, distance: float) -> None: ... + def timeToNextInstruction(self) -> int: ... + def setTimeToNextInstruction(self, secs: int) -> None: ... + def direction(self) -> 'QGeoManeuver.InstructionDirection': ... + def setDirection(self, direction: 'QGeoManeuver.InstructionDirection') -> None: ... + def instructionText(self) -> str: ... + def setInstructionText(self, instructionText: str) -> None: ... + def position(self) -> QtPositioning.QGeoCoordinate: ... + def setPosition(self, position: QtPositioning.QGeoCoordinate) -> None: ... + def isValid(self) -> bool: ... + + +class QGeoRoute(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoRoute') -> None: ... + + def extendedAttributes(self) -> typing.Dict[str, typing.Any]: ... + def setExtendedAttributes(self, extendedAttributes: typing.Dict[str, typing.Any]) -> None: ... + def routeLegs(self) -> typing.List['QGeoRouteLeg']: ... + def setRouteLegs(self, legs: typing.Iterable['QGeoRouteLeg']) -> None: ... + def path(self) -> typing.List[QtPositioning.QGeoCoordinate]: ... + def setPath(self, path: typing.Iterable[QtPositioning.QGeoCoordinate]) -> None: ... + def travelMode(self) -> 'QGeoRouteRequest.TravelMode': ... + def setTravelMode(self, mode: 'QGeoRouteRequest.TravelMode') -> None: ... + def distance(self) -> float: ... + def setDistance(self, distance: float) -> None: ... + def travelTime(self) -> int: ... + def setTravelTime(self, secs: int) -> None: ... + def firstRouteSegment(self) -> 'QGeoRouteSegment': ... + def setFirstRouteSegment(self, routeSegment: 'QGeoRouteSegment') -> None: ... + def bounds(self) -> QtPositioning.QGeoRectangle: ... + def setBounds(self, bounds: QtPositioning.QGeoRectangle) -> None: ... + def request(self) -> 'QGeoRouteRequest': ... + def setRequest(self, request: 'QGeoRouteRequest') -> None: ... + def routeId(self) -> str: ... + def setRouteId(self, id: str) -> None: ... + + +class QGeoRouteLeg(QGeoRoute): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoRouteLeg') -> None: ... + + def overallRoute(self) -> QGeoRoute: ... + def setOverallRoute(self, route: QGeoRoute) -> None: ... + def legIndex(self) -> int: ... + def setLegIndex(self, idx: int) -> None: ... + + +class QGeoRouteReply(QtCore.QObject): + + class Error(int): ... + NoError = ... # type: 'QGeoRouteReply.Error' + EngineNotSetError = ... # type: 'QGeoRouteReply.Error' + CommunicationError = ... # type: 'QGeoRouteReply.Error' + ParseError = ... # type: 'QGeoRouteReply.Error' + UnsupportedOptionError = ... # type: 'QGeoRouteReply.Error' + UnknownError = ... # type: 'QGeoRouteReply.Error' + + @typing.overload + def __init__(self, error: 'QGeoRouteReply.Error', errorString: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, request: 'QGeoRouteRequest', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def addRoutes(self, routes: typing.Iterable[QGeoRoute]) -> None: ... + def setRoutes(self, routes: typing.Iterable[QGeoRoute]) -> None: ... + def setFinished(self, finished: bool) -> None: ... + def setError(self, error: 'QGeoRouteReply.Error', errorString: str) -> None: ... + def finished(self) -> None: ... + def aborted(self) -> None: ... + def abort(self) -> None: ... + def routes(self) -> typing.List[QGeoRoute]: ... + def request(self) -> 'QGeoRouteRequest': ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> 'QGeoRouteReply.Error': ... + @typing.overload + def error(self, error: 'QGeoRouteReply.Error', errorString: str = ...) -> None: ... + def isFinished(self) -> bool: ... + + +class QGeoRouteRequest(sip.simplewrapper): + + class ManeuverDetail(int): ... + NoManeuvers = ... # type: 'QGeoRouteRequest.ManeuverDetail' + BasicManeuvers = ... # type: 'QGeoRouteRequest.ManeuverDetail' + + class SegmentDetail(int): ... + NoSegmentData = ... # type: 'QGeoRouteRequest.SegmentDetail' + BasicSegmentData = ... # type: 'QGeoRouteRequest.SegmentDetail' + + class RouteOptimization(int): ... + ShortestRoute = ... # type: 'QGeoRouteRequest.RouteOptimization' + FastestRoute = ... # type: 'QGeoRouteRequest.RouteOptimization' + MostEconomicRoute = ... # type: 'QGeoRouteRequest.RouteOptimization' + MostScenicRoute = ... # type: 'QGeoRouteRequest.RouteOptimization' + + class FeatureWeight(int): ... + NeutralFeatureWeight = ... # type: 'QGeoRouteRequest.FeatureWeight' + PreferFeatureWeight = ... # type: 'QGeoRouteRequest.FeatureWeight' + RequireFeatureWeight = ... # type: 'QGeoRouteRequest.FeatureWeight' + AvoidFeatureWeight = ... # type: 'QGeoRouteRequest.FeatureWeight' + DisallowFeatureWeight = ... # type: 'QGeoRouteRequest.FeatureWeight' + + class FeatureType(int): ... + NoFeature = ... # type: 'QGeoRouteRequest.FeatureType' + TollFeature = ... # type: 'QGeoRouteRequest.FeatureType' + HighwayFeature = ... # type: 'QGeoRouteRequest.FeatureType' + PublicTransitFeature = ... # type: 'QGeoRouteRequest.FeatureType' + FerryFeature = ... # type: 'QGeoRouteRequest.FeatureType' + TunnelFeature = ... # type: 'QGeoRouteRequest.FeatureType' + DirtRoadFeature = ... # type: 'QGeoRouteRequest.FeatureType' + ParksFeature = ... # type: 'QGeoRouteRequest.FeatureType' + MotorPoolLaneFeature = ... # type: 'QGeoRouteRequest.FeatureType' + TrafficFeature = ... # type: 'QGeoRouteRequest.FeatureType' + + class TravelMode(int): ... + CarTravel = ... # type: 'QGeoRouteRequest.TravelMode' + PedestrianTravel = ... # type: 'QGeoRouteRequest.TravelMode' + BicycleTravel = ... # type: 'QGeoRouteRequest.TravelMode' + PublicTransitTravel = ... # type: 'QGeoRouteRequest.TravelMode' + TruckTravel = ... # type: 'QGeoRouteRequest.TravelMode' + + class TravelModes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoRouteRequest.TravelModes', 'QGeoRouteRequest.TravelMode']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoRouteRequest.TravelModes') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoRouteRequest.TravelModes': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + class FeatureTypes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoRouteRequest.FeatureTypes', 'QGeoRouteRequest.FeatureType']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoRouteRequest.FeatureTypes') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoRouteRequest.FeatureTypes': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + class FeatureWeights(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoRouteRequest.FeatureWeights', 'QGeoRouteRequest.FeatureWeight']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoRouteRequest.FeatureWeights') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoRouteRequest.FeatureWeights': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + class RouteOptimizations(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoRouteRequest.RouteOptimizations', 'QGeoRouteRequest.RouteOptimization']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoRouteRequest.RouteOptimizations') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoRouteRequest.RouteOptimizations': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + class SegmentDetails(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoRouteRequest.SegmentDetails', 'QGeoRouteRequest.SegmentDetail']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoRouteRequest.SegmentDetails') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoRouteRequest.SegmentDetails': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + class ManeuverDetails(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoRouteRequest.ManeuverDetails', 'QGeoRouteRequest.ManeuverDetail']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoRouteRequest.ManeuverDetails') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoRouteRequest.ManeuverDetails': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, waypoints: typing.Iterable[QtPositioning.QGeoCoordinate] = ...) -> None: ... + @typing.overload + def __init__(self, origin: QtPositioning.QGeoCoordinate, destination: QtPositioning.QGeoCoordinate) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoRouteRequest') -> None: ... + + def departureTime(self) -> QtCore.QDateTime: ... + def setDepartureTime(self, departureTime: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ... + def extraParameters(self) -> typing.Dict[str, typing.Any]: ... + def setExtraParameters(self, extraParameters: typing.Dict[str, typing.Any]) -> None: ... + def waypointsMetadata(self) -> typing.List[typing.Dict[str, typing.Any]]: ... + def setWaypointsMetadata(self, waypointMetadata: typing.Iterable[typing.Dict[str, typing.Any]]) -> None: ... + def maneuverDetail(self) -> 'QGeoRouteRequest.ManeuverDetail': ... + def setManeuverDetail(self, maneuverDetail: 'QGeoRouteRequest.ManeuverDetail') -> None: ... + def segmentDetail(self) -> 'QGeoRouteRequest.SegmentDetail': ... + def setSegmentDetail(self, segmentDetail: 'QGeoRouteRequest.SegmentDetail') -> None: ... + def routeOptimization(self) -> 'QGeoRouteRequest.RouteOptimizations': ... + def setRouteOptimization(self, optimization: typing.Union['QGeoRouteRequest.RouteOptimizations', 'QGeoRouteRequest.RouteOptimization']) -> None: ... + def featureTypes(self) -> typing.List['QGeoRouteRequest.FeatureType']: ... + def featureWeight(self, featureType: 'QGeoRouteRequest.FeatureType') -> 'QGeoRouteRequest.FeatureWeight': ... + def setFeatureWeight(self, featureType: 'QGeoRouteRequest.FeatureType', featureWeight: 'QGeoRouteRequest.FeatureWeight') -> None: ... + def travelModes(self) -> 'QGeoRouteRequest.TravelModes': ... + def setTravelModes(self, travelModes: typing.Union['QGeoRouteRequest.TravelModes', 'QGeoRouteRequest.TravelMode']) -> None: ... + def numberAlternativeRoutes(self) -> int: ... + def setNumberAlternativeRoutes(self, alternatives: int) -> None: ... + def excludeAreas(self) -> typing.List[QtPositioning.QGeoRectangle]: ... + def setExcludeAreas(self, areas: typing.Iterable[QtPositioning.QGeoRectangle]) -> None: ... + def waypoints(self) -> typing.List[QtPositioning.QGeoCoordinate]: ... + def setWaypoints(self, waypoints: typing.Iterable[QtPositioning.QGeoCoordinate]) -> None: ... + + +class QGeoRouteSegment(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoRouteSegment') -> None: ... + + def isLegLastSegment(self) -> bool: ... + def maneuver(self) -> QGeoManeuver: ... + def setManeuver(self, maneuver: QGeoManeuver) -> None: ... + def path(self) -> typing.List[QtPositioning.QGeoCoordinate]: ... + def setPath(self, path: typing.Iterable[QtPositioning.QGeoCoordinate]) -> None: ... + def distance(self) -> float: ... + def setDistance(self, distance: float) -> None: ... + def travelTime(self) -> int: ... + def setTravelTime(self, secs: int) -> None: ... + def nextRouteSegment(self) -> 'QGeoRouteSegment': ... + def setNextRouteSegment(self, routeSegment: 'QGeoRouteSegment') -> None: ... + def isValid(self) -> bool: ... + + +class QGeoRoutingManager(QtCore.QObject): + + def error(self, reply: QGeoRouteReply, error: QGeoRouteReply.Error, errorString: str = ...) -> None: ... + def finished(self, reply: QGeoRouteReply) -> None: ... + def measurementSystem(self) -> QtCore.QLocale.MeasurementSystem: ... + def setMeasurementSystem(self, system: QtCore.QLocale.MeasurementSystem) -> None: ... + def locale(self) -> QtCore.QLocale: ... + def setLocale(self, locale: QtCore.QLocale) -> None: ... + def supportedManeuverDetails(self) -> QGeoRouteRequest.ManeuverDetails: ... + def supportedSegmentDetails(self) -> QGeoRouteRequest.SegmentDetails: ... + def supportedRouteOptimizations(self) -> QGeoRouteRequest.RouteOptimizations: ... + def supportedFeatureWeights(self) -> QGeoRouteRequest.FeatureWeights: ... + def supportedFeatureTypes(self) -> QGeoRouteRequest.FeatureTypes: ... + def supportedTravelModes(self) -> QGeoRouteRequest.TravelModes: ... + def updateRoute(self, route: QGeoRoute, position: QtPositioning.QGeoCoordinate) -> QGeoRouteReply: ... + def calculateRoute(self, request: QGeoRouteRequest) -> QGeoRouteReply: ... + def managerVersion(self) -> int: ... + def managerName(self) -> str: ... + + +class QGeoRoutingManagerEngine(QtCore.QObject): + + def __init__(self, parameters: typing.Dict[str, typing.Any], parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setSupportedManeuverDetails(self, maneuverDetails: typing.Union[QGeoRouteRequest.ManeuverDetails, QGeoRouteRequest.ManeuverDetail]) -> None: ... + def setSupportedSegmentDetails(self, segmentDetails: typing.Union[QGeoRouteRequest.SegmentDetails, QGeoRouteRequest.SegmentDetail]) -> None: ... + def setSupportedRouteOptimizations(self, optimizations: typing.Union[QGeoRouteRequest.RouteOptimizations, QGeoRouteRequest.RouteOptimization]) -> None: ... + def setSupportedFeatureWeights(self, featureWeights: typing.Union[QGeoRouteRequest.FeatureWeights, QGeoRouteRequest.FeatureWeight]) -> None: ... + def setSupportedFeatureTypes(self, featureTypes: typing.Union[QGeoRouteRequest.FeatureTypes, QGeoRouteRequest.FeatureType]) -> None: ... + def setSupportedTravelModes(self, travelModes: typing.Union[QGeoRouteRequest.TravelModes, QGeoRouteRequest.TravelMode]) -> None: ... + def error(self, reply: QGeoRouteReply, error: QGeoRouteReply.Error, errorString: str = ...) -> None: ... + def finished(self, reply: QGeoRouteReply) -> None: ... + def measurementSystem(self) -> QtCore.QLocale.MeasurementSystem: ... + def setMeasurementSystem(self, system: QtCore.QLocale.MeasurementSystem) -> None: ... + def locale(self) -> QtCore.QLocale: ... + def setLocale(self, locale: QtCore.QLocale) -> None: ... + def supportedManeuverDetails(self) -> QGeoRouteRequest.ManeuverDetails: ... + def supportedSegmentDetails(self) -> QGeoRouteRequest.SegmentDetails: ... + def supportedRouteOptimizations(self) -> QGeoRouteRequest.RouteOptimizations: ... + def supportedFeatureWeights(self) -> QGeoRouteRequest.FeatureWeights: ... + def supportedFeatureTypes(self) -> QGeoRouteRequest.FeatureTypes: ... + def supportedTravelModes(self) -> QGeoRouteRequest.TravelModes: ... + def updateRoute(self, route: QGeoRoute, position: QtPositioning.QGeoCoordinate) -> QGeoRouteReply: ... + def calculateRoute(self, request: QGeoRouteRequest) -> QGeoRouteReply: ... + def managerVersion(self) -> int: ... + def managerName(self) -> str: ... + + +class QNavigationManager(sip.simplewrapper): ... + + +class QGeoServiceProvider(QtCore.QObject): + + class NavigationFeature(int): ... + NoNavigationFeatures = ... # type: 'QGeoServiceProvider.NavigationFeature' + OnlineNavigationFeature = ... # type: 'QGeoServiceProvider.NavigationFeature' + OfflineNavigationFeature = ... # type: 'QGeoServiceProvider.NavigationFeature' + AnyNavigationFeatures = ... # type: 'QGeoServiceProvider.NavigationFeature' + + class PlacesFeature(int): ... + NoPlacesFeatures = ... # type: 'QGeoServiceProvider.PlacesFeature' + OnlinePlacesFeature = ... # type: 'QGeoServiceProvider.PlacesFeature' + OfflinePlacesFeature = ... # type: 'QGeoServiceProvider.PlacesFeature' + SavePlaceFeature = ... # type: 'QGeoServiceProvider.PlacesFeature' + RemovePlaceFeature = ... # type: 'QGeoServiceProvider.PlacesFeature' + SaveCategoryFeature = ... # type: 'QGeoServiceProvider.PlacesFeature' + RemoveCategoryFeature = ... # type: 'QGeoServiceProvider.PlacesFeature' + PlaceRecommendationsFeature = ... # type: 'QGeoServiceProvider.PlacesFeature' + SearchSuggestionsFeature = ... # type: 'QGeoServiceProvider.PlacesFeature' + LocalizedPlacesFeature = ... # type: 'QGeoServiceProvider.PlacesFeature' + NotificationsFeature = ... # type: 'QGeoServiceProvider.PlacesFeature' + PlaceMatchingFeature = ... # type: 'QGeoServiceProvider.PlacesFeature' + AnyPlacesFeatures = ... # type: 'QGeoServiceProvider.PlacesFeature' + + class MappingFeature(int): ... + NoMappingFeatures = ... # type: 'QGeoServiceProvider.MappingFeature' + OnlineMappingFeature = ... # type: 'QGeoServiceProvider.MappingFeature' + OfflineMappingFeature = ... # type: 'QGeoServiceProvider.MappingFeature' + LocalizedMappingFeature = ... # type: 'QGeoServiceProvider.MappingFeature' + AnyMappingFeatures = ... # type: 'QGeoServiceProvider.MappingFeature' + + class GeocodingFeature(int): ... + NoGeocodingFeatures = ... # type: 'QGeoServiceProvider.GeocodingFeature' + OnlineGeocodingFeature = ... # type: 'QGeoServiceProvider.GeocodingFeature' + OfflineGeocodingFeature = ... # type: 'QGeoServiceProvider.GeocodingFeature' + ReverseGeocodingFeature = ... # type: 'QGeoServiceProvider.GeocodingFeature' + LocalizedGeocodingFeature = ... # type: 'QGeoServiceProvider.GeocodingFeature' + AnyGeocodingFeatures = ... # type: 'QGeoServiceProvider.GeocodingFeature' + + class RoutingFeature(int): ... + NoRoutingFeatures = ... # type: 'QGeoServiceProvider.RoutingFeature' + OnlineRoutingFeature = ... # type: 'QGeoServiceProvider.RoutingFeature' + OfflineRoutingFeature = ... # type: 'QGeoServiceProvider.RoutingFeature' + LocalizedRoutingFeature = ... # type: 'QGeoServiceProvider.RoutingFeature' + RouteUpdatesFeature = ... # type: 'QGeoServiceProvider.RoutingFeature' + AlternativeRoutesFeature = ... # type: 'QGeoServiceProvider.RoutingFeature' + ExcludeAreasRoutingFeature = ... # type: 'QGeoServiceProvider.RoutingFeature' + AnyRoutingFeatures = ... # type: 'QGeoServiceProvider.RoutingFeature' + + class Error(int): ... + NoError = ... # type: 'QGeoServiceProvider.Error' + NotSupportedError = ... # type: 'QGeoServiceProvider.Error' + UnknownParameterError = ... # type: 'QGeoServiceProvider.Error' + MissingRequiredParameterError = ... # type: 'QGeoServiceProvider.Error' + ConnectionError = ... # type: 'QGeoServiceProvider.Error' + LoaderError = ... # type: 'QGeoServiceProvider.Error' + + class RoutingFeatures(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoServiceProvider.RoutingFeatures', 'QGeoServiceProvider.RoutingFeature']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoServiceProvider.RoutingFeatures') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoServiceProvider.RoutingFeatures': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + class GeocodingFeatures(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoServiceProvider.GeocodingFeatures', 'QGeoServiceProvider.GeocodingFeature']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoServiceProvider.GeocodingFeatures') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoServiceProvider.GeocodingFeatures': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + class MappingFeatures(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoServiceProvider.MappingFeatures', 'QGeoServiceProvider.MappingFeature']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoServiceProvider.MappingFeatures') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoServiceProvider.MappingFeatures': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + class PlacesFeatures(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoServiceProvider.PlacesFeatures', 'QGeoServiceProvider.PlacesFeature']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoServiceProvider.PlacesFeatures') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoServiceProvider.PlacesFeatures': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + class NavigationFeatures(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoServiceProvider.NavigationFeatures', 'QGeoServiceProvider.NavigationFeature']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoServiceProvider.NavigationFeatures') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoServiceProvider.NavigationFeatures': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + def __init__(self, providerName: str, parameters: typing.Dict[str, typing.Any] = ..., allowExperimental: bool = ...) -> None: ... + + def navigationErrorString(self) -> str: ... + def navigationError(self) -> 'QGeoServiceProvider.Error': ... + def placesErrorString(self) -> str: ... + def placesError(self) -> 'QGeoServiceProvider.Error': ... + def routingErrorString(self) -> str: ... + def routingError(self) -> 'QGeoServiceProvider.Error': ... + def geocodingErrorString(self) -> str: ... + def geocodingError(self) -> 'QGeoServiceProvider.Error': ... + def mappingErrorString(self) -> str: ... + def mappingError(self) -> 'QGeoServiceProvider.Error': ... + def navigationManager(self) -> QNavigationManager: ... + def navigationFeatures(self) -> 'QGeoServiceProvider.NavigationFeatures': ... + def setAllowExperimental(self, allow: bool) -> None: ... + def setLocale(self, locale: QtCore.QLocale) -> None: ... + def setParameters(self, parameters: typing.Dict[str, typing.Any]) -> None: ... + def errorString(self) -> str: ... + def error(self) -> 'QGeoServiceProvider.Error': ... + def placeManager(self) -> 'QPlaceManager': ... + def routingManager(self) -> QGeoRoutingManager: ... + def geocodingManager(self) -> QGeoCodingManager: ... + def placesFeatures(self) -> 'QGeoServiceProvider.PlacesFeatures': ... + def mappingFeatures(self) -> 'QGeoServiceProvider.MappingFeatures': ... + def geocodingFeatures(self) -> 'QGeoServiceProvider.GeocodingFeatures': ... + def routingFeatures(self) -> 'QGeoServiceProvider.RoutingFeatures': ... + @staticmethod + def availableServiceProviders() -> typing.List[str]: ... + + +class QLocation(sip.simplewrapper): + + class Visibility(int): ... + UnspecifiedVisibility = ... # type: 'QLocation.Visibility' + DeviceVisibility = ... # type: 'QLocation.Visibility' + PrivateVisibility = ... # type: 'QLocation.Visibility' + PublicVisibility = ... # type: 'QLocation.Visibility' + + class VisibilityScope(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QLocation.VisibilityScope', 'QLocation.Visibility']) -> None: ... + @typing.overload + def __init__(self, a0: 'QLocation.VisibilityScope') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QLocation.VisibilityScope': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + +class QPlace(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlace') -> None: ... + + def isEmpty(self) -> bool: ... + def setVisibility(self, visibility: QLocation.Visibility) -> None: ... + def visibility(self) -> QLocation.Visibility: ... + def removeContactDetails(self, contactType: str) -> None: ... + def appendContactDetail(self, contactType: str, detail: 'QPlaceContactDetail') -> None: ... + def setContactDetails(self, contactType: str, details: typing.Iterable['QPlaceContactDetail']) -> None: ... + def contactDetails(self, contactType: str) -> typing.List['QPlaceContactDetail']: ... + def contactTypes(self) -> typing.List[str]: ... + def removeExtendedAttribute(self, attributeType: str) -> None: ... + def setExtendedAttribute(self, attributeType: str, attribute: 'QPlaceAttribute') -> None: ... + def extendedAttribute(self, attributeType: str) -> 'QPlaceAttribute': ... + def extendedAttributeTypes(self) -> typing.List[str]: ... + def setDetailsFetched(self, fetched: bool) -> None: ... + def detailsFetched(self) -> bool: ... + def primaryWebsite(self) -> QtCore.QUrl: ... + def primaryEmail(self) -> str: ... + def primaryFax(self) -> str: ... + def primaryPhone(self) -> str: ... + def setPlaceId(self, identifier: str) -> None: ... + def placeId(self) -> str: ... + def setName(self, name: str) -> None: ... + def name(self) -> str: ... + def setTotalContentCount(self, type: 'QPlaceContent.Type', total: int) -> None: ... + def totalContentCount(self, type: 'QPlaceContent.Type') -> int: ... + def insertContent(self, type: 'QPlaceContent.Type', content: typing.Dict[int, 'QPlaceContent']) -> None: ... + def setContent(self, type: 'QPlaceContent.Type', content: typing.Dict[int, 'QPlaceContent']) -> None: ... + def content(self, type: 'QPlaceContent.Type') -> typing.Dict[int, 'QPlaceContent']: ... + def setIcon(self, icon: 'QPlaceIcon') -> None: ... + def icon(self) -> 'QPlaceIcon': ... + def setAttribution(self, attribution: str) -> None: ... + def attribution(self) -> str: ... + def setSupplier(self, supplier: 'QPlaceSupplier') -> None: ... + def supplier(self) -> 'QPlaceSupplier': ... + def setRatings(self, ratings: 'QPlaceRatings') -> None: ... + def ratings(self) -> 'QPlaceRatings': ... + def setLocation(self, location: QtPositioning.QGeoLocation) -> None: ... + def location(self) -> QtPositioning.QGeoLocation: ... + def setCategories(self, categories: typing.Iterable['QPlaceCategory']) -> None: ... + def setCategory(self, category: 'QPlaceCategory') -> None: ... + def categories(self) -> typing.List['QPlaceCategory']: ... + + +class QPlaceAttribute(sip.simplewrapper): + + OpeningHours = ... # type: str + Payment = ... # type: str + Provider = ... # type: str + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlaceAttribute') -> None: ... + + def isEmpty(self) -> bool: ... + def setText(self, text: str) -> None: ... + def text(self) -> str: ... + def setLabel(self, label: str) -> None: ... + def label(self) -> str: ... + + +class QPlaceCategory(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlaceCategory') -> None: ... + + def isEmpty(self) -> bool: ... + def setIcon(self, icon: 'QPlaceIcon') -> None: ... + def icon(self) -> 'QPlaceIcon': ... + def setVisibility(self, visibility: QLocation.Visibility) -> None: ... + def visibility(self) -> QLocation.Visibility: ... + def setName(self, name: str) -> None: ... + def name(self) -> str: ... + def setCategoryId(self, identifier: str) -> None: ... + def categoryId(self) -> str: ... + + +class QPlaceContactDetail(sip.simplewrapper): + + Email = ... # type: str + Fax = ... # type: str + Phone = ... # type: str + Website = ... # type: str + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlaceContactDetail') -> None: ... + + def clear(self) -> None: ... + def setValue(self, value: str) -> None: ... + def value(self) -> str: ... + def setLabel(self, label: str) -> None: ... + def label(self) -> str: ... + + +class QPlaceContent(sip.simplewrapper): + + class Type(int): ... + NoType = ... # type: 'QPlaceContent.Type' + ImageType = ... # type: 'QPlaceContent.Type' + ReviewType = ... # type: 'QPlaceContent.Type' + EditorialType = ... # type: 'QPlaceContent.Type' + CustomType = ... # type: 'QPlaceContent.Type' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlaceContent') -> None: ... + + def setAttribution(self, attribution: str) -> None: ... + def attribution(self) -> str: ... + def setUser(self, user: 'QPlaceUser') -> None: ... + def user(self) -> 'QPlaceUser': ... + def setSupplier(self, supplier: 'QPlaceSupplier') -> None: ... + def supplier(self) -> 'QPlaceSupplier': ... + def type(self) -> 'QPlaceContent.Type': ... + + +class QPlaceReply(QtCore.QObject): + + class Type(int): ... + Reply = ... # type: 'QPlaceReply.Type' + DetailsReply = ... # type: 'QPlaceReply.Type' + SearchReply = ... # type: 'QPlaceReply.Type' + SearchSuggestionReply = ... # type: 'QPlaceReply.Type' + ContentReply = ... # type: 'QPlaceReply.Type' + IdReply = ... # type: 'QPlaceReply.Type' + MatchReply = ... # type: 'QPlaceReply.Type' + + class Error(int): ... + NoError = ... # type: 'QPlaceReply.Error' + PlaceDoesNotExistError = ... # type: 'QPlaceReply.Error' + CategoryDoesNotExistError = ... # type: 'QPlaceReply.Error' + CommunicationError = ... # type: 'QPlaceReply.Error' + ParseError = ... # type: 'QPlaceReply.Error' + PermissionsError = ... # type: 'QPlaceReply.Error' + UnsupportedError = ... # type: 'QPlaceReply.Error' + BadArgumentError = ... # type: 'QPlaceReply.Error' + CancelError = ... # type: 'QPlaceReply.Error' + UnknownError = ... # type: 'QPlaceReply.Error' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setError(self, error: 'QPlaceReply.Error', errorString: str) -> None: ... + def setFinished(self, finished: bool) -> None: ... + def contentUpdated(self) -> None: ... + def finished(self) -> None: ... + def aborted(self) -> None: ... + def abort(self) -> None: ... + @typing.overload + def error(self) -> 'QPlaceReply.Error': ... + @typing.overload + def error(self, error: 'QPlaceReply.Error', errorString: str = ...) -> None: ... + def errorString(self) -> str: ... + def type(self) -> 'QPlaceReply.Type': ... + def isFinished(self) -> bool: ... + + +class QPlaceContentReply(QPlaceReply): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setNextPageRequest(self, next: 'QPlaceContentRequest') -> None: ... + def setPreviousPageRequest(self, previous: 'QPlaceContentRequest') -> None: ... + def setRequest(self, request: 'QPlaceContentRequest') -> None: ... + def setTotalCount(self, total: int) -> None: ... + def setContent(self, content: typing.Dict[int, QPlaceContent]) -> None: ... + def nextPageRequest(self) -> 'QPlaceContentRequest': ... + def previousPageRequest(self) -> 'QPlaceContentRequest': ... + def request(self) -> 'QPlaceContentRequest': ... + def totalCount(self) -> int: ... + def content(self) -> typing.Dict[int, QPlaceContent]: ... + def type(self) -> QPlaceReply.Type: ... + + +class QPlaceContentRequest(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlaceContentRequest') -> None: ... + + def clear(self) -> None: ... + def setLimit(self, limit: int) -> None: ... + def limit(self) -> int: ... + def setContentContext(self, context: typing.Any) -> None: ... + def contentContext(self) -> typing.Any: ... + def setPlaceId(self, identifier: str) -> None: ... + def placeId(self) -> str: ... + def setContentType(self, type: QPlaceContent.Type) -> None: ... + def contentType(self) -> QPlaceContent.Type: ... + + +class QPlaceDetailsReply(QPlaceReply): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setPlace(self, place: QPlace) -> None: ... + def place(self) -> QPlace: ... + def type(self) -> QPlaceReply.Type: ... + + +class QPlaceEditorial(QPlaceContent): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: QPlaceContent) -> None: ... + @typing.overload + def __init__(self, a0: 'QPlaceEditorial') -> None: ... + + def setLanguage(self, data: str) -> None: ... + def language(self) -> str: ... + def setTitle(self, data: str) -> None: ... + def title(self) -> str: ... + def setText(self, text: str) -> None: ... + def text(self) -> str: ... + + +class QPlaceIcon(sip.simplewrapper): + + SingleUrl = ... # type: str + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlaceIcon') -> None: ... + + def isEmpty(self) -> bool: ... + def setParameters(self, parameters: typing.Dict[str, typing.Any]) -> None: ... + def parameters(self) -> typing.Dict[str, typing.Any]: ... + def setManager(self, manager: 'QPlaceManager') -> None: ... + def manager(self) -> 'QPlaceManager': ... + def url(self, size: QtCore.QSize = ...) -> QtCore.QUrl: ... + + +class QPlaceIdReply(QPlaceReply): + + class OperationType(int): ... + SavePlace = ... # type: 'QPlaceIdReply.OperationType' + SaveCategory = ... # type: 'QPlaceIdReply.OperationType' + RemovePlace = ... # type: 'QPlaceIdReply.OperationType' + RemoveCategory = ... # type: 'QPlaceIdReply.OperationType' + + def __init__(self, operationType: 'QPlaceIdReply.OperationType', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setId(self, identifier: str) -> None: ... + def id(self) -> str: ... + def operationType(self) -> 'QPlaceIdReply.OperationType': ... + def type(self) -> QPlaceReply.Type: ... + + +class QPlaceImage(QPlaceContent): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: QPlaceContent) -> None: ... + @typing.overload + def __init__(self, a0: 'QPlaceImage') -> None: ... + + def setMimeType(self, data: str) -> None: ... + def mimeType(self) -> str: ... + def setImageId(self, identifier: str) -> None: ... + def imageId(self) -> str: ... + def setUrl(self, url: QtCore.QUrl) -> None: ... + def url(self) -> QtCore.QUrl: ... + + +class QPlaceManager(QtCore.QObject): + + def dataChanged(self) -> None: ... + def categoryRemoved(self, categoryId: str, parentId: str) -> None: ... + def categoryUpdated(self, category: QPlaceCategory, parentId: str) -> None: ... + def categoryAdded(self, category: QPlaceCategory, parentId: str) -> None: ... + def placeRemoved(self, placeId: str) -> None: ... + def placeUpdated(self, placeId: str) -> None: ... + def placeAdded(self, placeId: str) -> None: ... + def error(self, a0: QPlaceReply, error: QPlaceReply.Error, errorString: str = ...) -> None: ... + def finished(self, reply: QPlaceReply) -> None: ... + def matchingPlaces(self, request: 'QPlaceMatchRequest') -> 'QPlaceMatchReply': ... + def compatiblePlace(self, place: QPlace) -> QPlace: ... + def setLocales(self, locale: typing.Iterable[QtCore.QLocale]) -> None: ... + def setLocale(self, locale: QtCore.QLocale) -> None: ... + def locales(self) -> typing.List[QtCore.QLocale]: ... + def childCategories(self, parentId: str = ...) -> typing.List[QPlaceCategory]: ... + def category(self, categoryId: str) -> QPlaceCategory: ... + def childCategoryIds(self, parentId: str = ...) -> typing.List[str]: ... + def parentCategoryId(self, categoryId: str) -> str: ... + def initializeCategories(self) -> QPlaceReply: ... + def removeCategory(self, categoryId: str) -> QPlaceIdReply: ... + def saveCategory(self, category: QPlaceCategory, parentId: str = ...) -> QPlaceIdReply: ... + def removePlace(self, placeId: str) -> QPlaceIdReply: ... + def savePlace(self, place: QPlace) -> QPlaceIdReply: ... + def searchSuggestions(self, request: 'QPlaceSearchRequest') -> 'QPlaceSearchSuggestionReply': ... + def search(self, query: 'QPlaceSearchRequest') -> 'QPlaceSearchReply': ... + def getPlaceContent(self, request: QPlaceContentRequest) -> QPlaceContentReply: ... + def getPlaceDetails(self, placeId: str) -> QPlaceDetailsReply: ... + def managerVersion(self) -> int: ... + def managerName(self) -> str: ... + + +class QPlaceManagerEngine(QtCore.QObject): + + def __init__(self, parameters: typing.Dict[str, typing.Any], parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def manager(self) -> QPlaceManager: ... + def dataChanged(self) -> None: ... + def categoryRemoved(self, categoryId: str, parentCategoryId: str) -> None: ... + def categoryUpdated(self, category: QPlaceCategory, parentCategoryId: str) -> None: ... + def categoryAdded(self, category: QPlaceCategory, parentCategoryId: str) -> None: ... + def placeRemoved(self, placeId: str) -> None: ... + def placeUpdated(self, placeId: str) -> None: ... + def placeAdded(self, placeId: str) -> None: ... + def error(self, a0: QPlaceReply, error: QPlaceReply.Error, errorString: str = ...) -> None: ... + def finished(self, reply: QPlaceReply) -> None: ... + def matchingPlaces(self, request: 'QPlaceMatchRequest') -> 'QPlaceMatchReply': ... + def compatiblePlace(self, original: QPlace) -> QPlace: ... + def constructIconUrl(self, icon: QPlaceIcon, size: QtCore.QSize) -> QtCore.QUrl: ... + def setLocales(self, locales: typing.Iterable[QtCore.QLocale]) -> None: ... + def locales(self) -> typing.List[QtCore.QLocale]: ... + def childCategories(self, parentId: str) -> typing.List[QPlaceCategory]: ... + def category(self, categoryId: str) -> QPlaceCategory: ... + def childCategoryIds(self, categoryId: str) -> typing.List[str]: ... + def parentCategoryId(self, categoryId: str) -> str: ... + def initializeCategories(self) -> QPlaceReply: ... + def removeCategory(self, categoryId: str) -> QPlaceIdReply: ... + def saveCategory(self, category: QPlaceCategory, parentId: str) -> QPlaceIdReply: ... + def removePlace(self, placeId: str) -> QPlaceIdReply: ... + def savePlace(self, place: QPlace) -> QPlaceIdReply: ... + def searchSuggestions(self, request: 'QPlaceSearchRequest') -> 'QPlaceSearchSuggestionReply': ... + def search(self, request: 'QPlaceSearchRequest') -> 'QPlaceSearchReply': ... + def getPlaceContent(self, request: QPlaceContentRequest) -> QPlaceContentReply: ... + def getPlaceDetails(self, placeId: str) -> QPlaceDetailsReply: ... + def managerVersion(self) -> int: ... + def managerName(self) -> str: ... + + +class QPlaceMatchReply(QPlaceReply): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setRequest(self, request: 'QPlaceMatchRequest') -> None: ... + def setPlaces(self, results: typing.Iterable[QPlace]) -> None: ... + def request(self) -> 'QPlaceMatchRequest': ... + def places(self) -> typing.List[QPlace]: ... + def type(self) -> QPlaceReply.Type: ... + + +class QPlaceMatchRequest(sip.simplewrapper): + + AlternativeId = ... # type: str + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlaceMatchRequest') -> None: ... + + def clear(self) -> None: ... + def setParameters(self, parameters: typing.Dict[str, typing.Any]) -> None: ... + def parameters(self) -> typing.Dict[str, typing.Any]: ... + def setResults(self, results: typing.Iterable['QPlaceSearchResult']) -> None: ... + def setPlaces(self, places: typing.Iterable[QPlace]) -> None: ... + def places(self) -> typing.List[QPlace]: ... + + +class QPlaceSearchResult(sip.simplewrapper): + + class SearchResultType(int): ... + UnknownSearchResult = ... # type: 'QPlaceSearchResult.SearchResultType' + PlaceResult = ... # type: 'QPlaceSearchResult.SearchResultType' + ProposedSearchResult = ... # type: 'QPlaceSearchResult.SearchResultType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlaceSearchResult') -> None: ... + + def setIcon(self, icon: QPlaceIcon) -> None: ... + def icon(self) -> QPlaceIcon: ... + def setTitle(self, title: str) -> None: ... + def title(self) -> str: ... + def type(self) -> 'QPlaceSearchResult.SearchResultType': ... + + +class QPlaceProposedSearchResult(QPlaceSearchResult): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: QPlaceSearchResult) -> None: ... + @typing.overload + def __init__(self, a0: 'QPlaceProposedSearchResult') -> None: ... + + def setSearchRequest(self, request: 'QPlaceSearchRequest') -> None: ... + def searchRequest(self) -> 'QPlaceSearchRequest': ... + + +class QPlaceRatings(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlaceRatings') -> None: ... + + def isEmpty(self) -> bool: ... + def setMaximum(self, max: float) -> None: ... + def maximum(self) -> float: ... + def setCount(self, count: int) -> None: ... + def count(self) -> int: ... + def setAverage(self, average: float) -> None: ... + def average(self) -> float: ... + + +class QPlaceResult(QPlaceSearchResult): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: QPlaceSearchResult) -> None: ... + @typing.overload + def __init__(self, a0: 'QPlaceResult') -> None: ... + + def setSponsored(self, sponsored: bool) -> None: ... + def isSponsored(self) -> bool: ... + def setPlace(self, place: QPlace) -> None: ... + def place(self) -> QPlace: ... + def setDistance(self, distance: float) -> None: ... + def distance(self) -> float: ... + + +class QPlaceReview(QPlaceContent): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: QPlaceContent) -> None: ... + @typing.overload + def __init__(self, a0: 'QPlaceReview') -> None: ... + + def setTitle(self, data: str) -> None: ... + def title(self) -> str: ... + def setReviewId(self, identifier: str) -> None: ... + def reviewId(self) -> str: ... + def setRating(self, data: float) -> None: ... + def rating(self) -> float: ... + def setLanguage(self, data: str) -> None: ... + def language(self) -> str: ... + def setText(self, text: str) -> None: ... + def text(self) -> str: ... + def setDateTime(self, dt: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ... + def dateTime(self) -> QtCore.QDateTime: ... + + +class QPlaceSearchReply(QPlaceReply): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setNextPageRequest(self, next: 'QPlaceSearchRequest') -> None: ... + def setPreviousPageRequest(self, previous: 'QPlaceSearchRequest') -> None: ... + def setRequest(self, request: 'QPlaceSearchRequest') -> None: ... + def setResults(self, results: typing.Iterable[QPlaceSearchResult]) -> None: ... + def nextPageRequest(self) -> 'QPlaceSearchRequest': ... + def previousPageRequest(self) -> 'QPlaceSearchRequest': ... + def request(self) -> 'QPlaceSearchRequest': ... + def results(self) -> typing.List[QPlaceSearchResult]: ... + def type(self) -> QPlaceReply.Type: ... + + +class QPlaceSearchRequest(sip.simplewrapper): + + class RelevanceHint(int): ... + UnspecifiedHint = ... # type: 'QPlaceSearchRequest.RelevanceHint' + DistanceHint = ... # type: 'QPlaceSearchRequest.RelevanceHint' + LexicalPlaceNameHint = ... # type: 'QPlaceSearchRequest.RelevanceHint' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlaceSearchRequest') -> None: ... + + def clear(self) -> None: ... + def setLimit(self, limit: int) -> None: ... + def limit(self) -> int: ... + def setRelevanceHint(self, hint: 'QPlaceSearchRequest.RelevanceHint') -> None: ... + def relevanceHint(self) -> 'QPlaceSearchRequest.RelevanceHint': ... + def setVisibilityScope(self, visibilityScopes: typing.Union[QLocation.VisibilityScope, QLocation.Visibility]) -> None: ... + def visibilityScope(self) -> QLocation.VisibilityScope: ... + def setSearchContext(self, context: typing.Any) -> None: ... + def searchContext(self) -> typing.Any: ... + def setRecommendationId(self, recommendationId: str) -> None: ... + def recommendationId(self) -> str: ... + def setSearchArea(self, area: QtPositioning.QGeoShape) -> None: ... + def searchArea(self) -> QtPositioning.QGeoShape: ... + def setCategories(self, categories: typing.Iterable[QPlaceCategory]) -> None: ... + def setCategory(self, category: QPlaceCategory) -> None: ... + def categories(self) -> typing.List[QPlaceCategory]: ... + def setSearchTerm(self, term: str) -> None: ... + def searchTerm(self) -> str: ... + + +class QPlaceSearchSuggestionReply(QPlaceReply): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setSuggestions(self, suggestions: typing.Iterable[str]) -> None: ... + def type(self) -> QPlaceReply.Type: ... + def suggestions(self) -> typing.List[str]: ... + + +class QPlaceSupplier(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlaceSupplier') -> None: ... + + def isEmpty(self) -> bool: ... + def setIcon(self, icon: QPlaceIcon) -> None: ... + def icon(self) -> QPlaceIcon: ... + def setUrl(self, data: QtCore.QUrl) -> None: ... + def url(self) -> QtCore.QUrl: ... + def setSupplierId(self, identifier: str) -> None: ... + def supplierId(self) -> str: ... + def setName(self, data: str) -> None: ... + def name(self) -> str: ... + + +class QPlaceUser(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlaceUser') -> None: ... + + def setName(self, name: str) -> None: ... + def name(self) -> str: ... + def setUserId(self, identifier: str) -> None: ... + def userId(self) -> str: ... diff --git a/PyQt5-stubs/QtMultimedia.pyi b/PyQt5-stubs/QtMultimedia.pyi new file mode 100644 index 00000000..a9dbe9fe --- /dev/null +++ b/PyQt5-stubs/QtMultimedia.pyi @@ -0,0 +1,1912 @@ +# The PEP 484 type hints stub file for the QtMultimedia module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2020 Riverbank Computing Limited +# +# 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 sip + +from PyQt5 import QtNetwork +from PyQt5 import QtGui +from PyQt5 import QtCore + +# 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], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QAbstractVideoBuffer(sip.simplewrapper): + + class MapMode(int): ... + NotMapped = ... # type: 'QAbstractVideoBuffer.MapMode' + ReadOnly = ... # type: 'QAbstractVideoBuffer.MapMode' + WriteOnly = ... # type: 'QAbstractVideoBuffer.MapMode' + ReadWrite = ... # type: 'QAbstractVideoBuffer.MapMode' + + class HandleType(int): ... + NoHandle = ... # type: 'QAbstractVideoBuffer.HandleType' + GLTextureHandle = ... # type: 'QAbstractVideoBuffer.HandleType' + XvShmImageHandle = ... # type: 'QAbstractVideoBuffer.HandleType' + CoreImageHandle = ... # type: 'QAbstractVideoBuffer.HandleType' + QPixmapHandle = ... # type: 'QAbstractVideoBuffer.HandleType' + EGLImageHandle = ... # type: 'QAbstractVideoBuffer.HandleType' + UserHandle = ... # type: 'QAbstractVideoBuffer.HandleType' + + def __init__(self, type: 'QAbstractVideoBuffer.HandleType') -> None: ... + + def release(self) -> None: ... + def handle(self) -> typing.Any: ... + def unmap(self) -> None: ... + def map(self, mode: 'QAbstractVideoBuffer.MapMode') -> typing.Tuple[sip.voidptr, int, int]: ... + def mapMode(self) -> 'QAbstractVideoBuffer.MapMode': ... + def handleType(self) -> 'QAbstractVideoBuffer.HandleType': ... + + +class QVideoFilterRunnable(sip.simplewrapper): + + class RunFlag(int): ... + LastInChain = ... # type: 'QVideoFilterRunnable.RunFlag' + + class RunFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QVideoFilterRunnable.RunFlags', 'QVideoFilterRunnable.RunFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QVideoFilterRunnable.RunFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QVideoFilterRunnable.RunFlags': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QVideoFilterRunnable') -> None: ... + + def run(self, input: 'QVideoFrame', surfaceFormat: 'QVideoSurfaceFormat', flags: typing.Union['QVideoFilterRunnable.RunFlags', 'QVideoFilterRunnable.RunFlag']) -> 'QVideoFrame': ... + + +class QAbstractVideoFilter(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def activeChanged(self) -> None: ... + def createFilterRunnable(self) -> QVideoFilterRunnable: ... + def isActive(self) -> bool: ... + + +class QAbstractVideoSurface(QtCore.QObject): + + class Error(int): ... + NoError = ... # type: 'QAbstractVideoSurface.Error' + UnsupportedFormatError = ... # type: 'QAbstractVideoSurface.Error' + IncorrectFormatError = ... # type: 'QAbstractVideoSurface.Error' + StoppedError = ... # type: 'QAbstractVideoSurface.Error' + ResourceError = ... # type: 'QAbstractVideoSurface.Error' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def nativeResolutionChanged(self, a0: QtCore.QSize) -> None: ... + def setNativeResolution(self, resolution: QtCore.QSize) -> None: ... + def nativeResolution(self) -> QtCore.QSize: ... + def setError(self, error: 'QAbstractVideoSurface.Error') -> None: ... + def supportedFormatsChanged(self) -> None: ... + def surfaceFormatChanged(self, format: 'QVideoSurfaceFormat') -> None: ... + def activeChanged(self, active: bool) -> None: ... + def error(self) -> 'QAbstractVideoSurface.Error': ... + def present(self, frame: 'QVideoFrame') -> bool: ... + def isActive(self) -> bool: ... + def stop(self) -> None: ... + def start(self, format: 'QVideoSurfaceFormat') -> bool: ... + def surfaceFormat(self) -> 'QVideoSurfaceFormat': ... + def nearestFormat(self, format: 'QVideoSurfaceFormat') -> 'QVideoSurfaceFormat': ... + def isFormatSupported(self, format: 'QVideoSurfaceFormat') -> bool: ... + def supportedPixelFormats(self, type: QAbstractVideoBuffer.HandleType = ...) -> typing.List['QVideoFrame.PixelFormat']: ... + + +class QAudio(sip.simplewrapper): + + class VolumeScale(int): ... + LinearVolumeScale = ... # type: 'QAudio.VolumeScale' + CubicVolumeScale = ... # type: 'QAudio.VolumeScale' + LogarithmicVolumeScale = ... # type: 'QAudio.VolumeScale' + DecibelVolumeScale = ... # type: 'QAudio.VolumeScale' + + class Role(int): ... + UnknownRole = ... # type: 'QAudio.Role' + MusicRole = ... # type: 'QAudio.Role' + VideoRole = ... # type: 'QAudio.Role' + VoiceCommunicationRole = ... # type: 'QAudio.Role' + AlarmRole = ... # type: 'QAudio.Role' + NotificationRole = ... # type: 'QAudio.Role' + RingtoneRole = ... # type: 'QAudio.Role' + AccessibilityRole = ... # type: 'QAudio.Role' + SonificationRole = ... # type: 'QAudio.Role' + GameRole = ... # type: 'QAudio.Role' + CustomRole = ... # type: 'QAudio.Role' + + class Mode(int): ... + AudioInput = ... # type: 'QAudio.Mode' + AudioOutput = ... # type: 'QAudio.Mode' + + class State(int): ... + ActiveState = ... # type: 'QAudio.State' + SuspendedState = ... # type: 'QAudio.State' + StoppedState = ... # type: 'QAudio.State' + IdleState = ... # type: 'QAudio.State' + InterruptedState = ... # type: 'QAudio.State' + + class Error(int): ... + NoError = ... # type: 'QAudio.Error' + OpenError = ... # type: 'QAudio.Error' + IOError = ... # type: 'QAudio.Error' + UnderrunError = ... # type: 'QAudio.Error' + FatalError = ... # type: 'QAudio.Error' + + def convertVolume(self, volume: float, from_: 'QAudio.VolumeScale', to: 'QAudio.VolumeScale') -> float: ... + + +class QAudioBuffer(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], format: 'QAudioFormat', startTime: int = ...) -> None: ... + @typing.overload + def __init__(self, numFrames: int, format: 'QAudioFormat', startTime: int = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QAudioBuffer') -> None: ... + + def data(self) -> sip.voidptr: ... + def constData(self) -> sip.voidptr: ... + def startTime(self) -> int: ... + def duration(self) -> int: ... + def byteCount(self) -> int: ... + def sampleCount(self) -> int: ... + def frameCount(self) -> int: ... + def format(self) -> 'QAudioFormat': ... + def isValid(self) -> bool: ... + + +class QMediaObject(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject, service: 'QMediaService') -> None: ... + + def removePropertyWatch(self, name: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def addPropertyWatch(self, name: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + @typing.overload + def availabilityChanged(self, availability: 'QMultimedia.AvailabilityStatus') -> None: ... + @typing.overload + def availabilityChanged(self, available: bool) -> None: ... + @typing.overload + def metaDataChanged(self) -> None: ... + @typing.overload + def metaDataChanged(self, key: str, value: typing.Any) -> None: ... + def metaDataAvailableChanged(self, available: bool) -> None: ... + def notifyIntervalChanged(self, milliSeconds: int) -> None: ... + def availableMetaData(self) -> typing.List[str]: ... + def metaData(self, key: str) -> typing.Any: ... + def isMetaDataAvailable(self) -> bool: ... + def unbind(self, a0: QtCore.QObject) -> None: ... + def bind(self, a0: QtCore.QObject) -> bool: ... + def setNotifyInterval(self, milliSeconds: int) -> None: ... + def notifyInterval(self) -> int: ... + def service(self) -> 'QMediaService': ... + def availability(self) -> 'QMultimedia.AvailabilityStatus': ... + def isAvailable(self) -> bool: ... + + +class QAudioDecoder(QMediaObject): + + class Error(int): ... + NoError = ... # type: 'QAudioDecoder.Error' + ResourceError = ... # type: 'QAudioDecoder.Error' + FormatError = ... # type: 'QAudioDecoder.Error' + AccessDeniedError = ... # type: 'QAudioDecoder.Error' + ServiceMissingError = ... # type: 'QAudioDecoder.Error' + + class State(int): ... + StoppedState = ... # type: 'QAudioDecoder.State' + DecodingState = ... # type: 'QAudioDecoder.State' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def unbind(self, a0: QtCore.QObject) -> None: ... + def bind(self, a0: QtCore.QObject) -> bool: ... + def durationChanged(self, duration: int) -> None: ... + def positionChanged(self, position: int) -> None: ... + def sourceChanged(self) -> None: ... + def formatChanged(self, format: 'QAudioFormat') -> None: ... + def stateChanged(self, newState: 'QAudioDecoder.State') -> None: ... + def finished(self) -> None: ... + def bufferReady(self) -> None: ... + def bufferAvailableChanged(self, a0: bool) -> None: ... + def stop(self) -> None: ... + def start(self) -> None: ... + def duration(self) -> int: ... + def position(self) -> int: ... + def bufferAvailable(self) -> bool: ... + def read(self) -> QAudioBuffer: ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> 'QAudioDecoder.Error': ... + @typing.overload + def error(self, error: 'QAudioDecoder.Error') -> None: ... + def setAudioFormat(self, format: 'QAudioFormat') -> None: ... + def audioFormat(self) -> 'QAudioFormat': ... + def setSourceDevice(self, device: QtCore.QIODevice) -> None: ... + def sourceDevice(self) -> QtCore.QIODevice: ... + def setSourceFilename(self, fileName: str) -> None: ... + def sourceFilename(self) -> str: ... + def state(self) -> 'QAudioDecoder.State': ... + @staticmethod + def hasSupport(mimeType: str, codecs: typing.Iterable[str] = ...) -> 'QMultimedia.SupportEstimate': ... + + +class QAudioDeviceInfo(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QAudioDeviceInfo') -> None: ... + + def realm(self) -> str: ... + def supportedChannelCounts(self) -> typing.List[int]: ... + def supportedSampleRates(self) -> typing.List[int]: ... + @staticmethod + def availableDevices(mode: QAudio.Mode) -> typing.List['QAudioDeviceInfo']: ... + @staticmethod + def defaultOutputDevice() -> 'QAudioDeviceInfo': ... + @staticmethod + def defaultInputDevice() -> 'QAudioDeviceInfo': ... + def supportedSampleTypes(self) -> typing.List['QAudioFormat.SampleType']: ... + def supportedByteOrders(self) -> typing.List['QAudioFormat.Endian']: ... + def supportedSampleSizes(self) -> typing.List[int]: ... + def supportedCodecs(self) -> typing.List[str]: ... + def nearestFormat(self, format: 'QAudioFormat') -> 'QAudioFormat': ... + def preferredFormat(self) -> 'QAudioFormat': ... + def isFormatSupported(self, format: 'QAudioFormat') -> bool: ... + def deviceName(self) -> str: ... + def isNull(self) -> bool: ... + + +class QAudioFormat(sip.simplewrapper): + + class Endian(int): ... + BigEndian = ... # type: 'QAudioFormat.Endian' + LittleEndian = ... # type: 'QAudioFormat.Endian' + + class SampleType(int): ... + Unknown = ... # type: 'QAudioFormat.SampleType' + SignedInt = ... # type: 'QAudioFormat.SampleType' + UnSignedInt = ... # type: 'QAudioFormat.SampleType' + Float = ... # type: 'QAudioFormat.SampleType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QAudioFormat') -> None: ... + + def bytesPerFrame(self) -> int: ... + def durationForFrames(self, frameCount: int) -> int: ... + def framesForDuration(self, duration: int) -> int: ... + def framesForBytes(self, byteCount: int) -> int: ... + def bytesForFrames(self, frameCount: int) -> int: ... + def durationForBytes(self, byteCount: int) -> int: ... + def bytesForDuration(self, duration: int) -> int: ... + def channelCount(self) -> int: ... + def setChannelCount(self, channelCount: int) -> None: ... + def sampleRate(self) -> int: ... + def setSampleRate(self, sampleRate: int) -> None: ... + def sampleType(self) -> 'QAudioFormat.SampleType': ... + def setSampleType(self, sampleType: 'QAudioFormat.SampleType') -> None: ... + def byteOrder(self) -> 'QAudioFormat.Endian': ... + def setByteOrder(self, byteOrder: 'QAudioFormat.Endian') -> None: ... + def codec(self) -> str: ... + def setCodec(self, codec: str) -> None: ... + def sampleSize(self) -> int: ... + def setSampleSize(self, sampleSize: int) -> None: ... + def isValid(self) -> bool: ... + + +class QAudioInput(QtCore.QObject): + + @typing.overload + def __init__(self, format: QAudioFormat = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, audioDevice: QAudioDeviceInfo, format: QAudioFormat = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def volume(self) -> float: ... + def setVolume(self, volume: float) -> None: ... + def notify(self) -> None: ... + def stateChanged(self, a0: QAudio.State) -> None: ... + def state(self) -> QAudio.State: ... + def error(self) -> QAudio.Error: ... + def elapsedUSecs(self) -> int: ... + def processedUSecs(self) -> int: ... + def notifyInterval(self) -> int: ... + def setNotifyInterval(self, milliSeconds: int) -> None: ... + def periodSize(self) -> int: ... + def bytesReady(self) -> int: ... + def bufferSize(self) -> int: ... + def setBufferSize(self, bytes: int) -> None: ... + def resume(self) -> None: ... + def suspend(self) -> None: ... + def reset(self) -> None: ... + def stop(self) -> None: ... + @typing.overload + def start(self, device: QtCore.QIODevice) -> None: ... + @typing.overload + def start(self) -> QtCore.QIODevice: ... + def format(self) -> QAudioFormat: ... + + +class QAudioOutput(QtCore.QObject): + + @typing.overload + def __init__(self, format: QAudioFormat = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, audioDevice: QAudioDeviceInfo, format: QAudioFormat = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setCategory(self, category: str) -> None: ... + def category(self) -> str: ... + def volume(self) -> float: ... + def setVolume(self, a0: float) -> None: ... + def notify(self) -> None: ... + def stateChanged(self, a0: QAudio.State) -> None: ... + def state(self) -> QAudio.State: ... + def error(self) -> QAudio.Error: ... + def elapsedUSecs(self) -> int: ... + def processedUSecs(self) -> int: ... + def notifyInterval(self) -> int: ... + def setNotifyInterval(self, milliSeconds: int) -> None: ... + def periodSize(self) -> int: ... + def bytesFree(self) -> int: ... + def bufferSize(self) -> int: ... + def setBufferSize(self, bytes: int) -> None: ... + def resume(self) -> None: ... + def suspend(self) -> None: ... + def reset(self) -> None: ... + def stop(self) -> None: ... + @typing.overload + def start(self, device: QtCore.QIODevice) -> None: ... + @typing.overload + def start(self) -> QtCore.QIODevice: ... + def format(self) -> QAudioFormat: ... + + +class QAudioProbe(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def flush(self) -> None: ... + def audioBufferProbed(self, audioBuffer: QAudioBuffer) -> None: ... + def isActive(self) -> bool: ... + @typing.overload + def setSource(self, source: QMediaObject) -> bool: ... + @typing.overload + def setSource(self, source: 'QMediaRecorder') -> bool: ... + + +class QMediaBindableInterface(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QMediaBindableInterface') -> None: ... + + def setMediaObject(self, object: QMediaObject) -> bool: ... + def mediaObject(self) -> QMediaObject: ... + + +class QMediaRecorder(QtCore.QObject, QMediaBindableInterface): + + class Error(int): ... + NoError = ... # type: 'QMediaRecorder.Error' + ResourceError = ... # type: 'QMediaRecorder.Error' + FormatError = ... # type: 'QMediaRecorder.Error' + OutOfSpaceError = ... # type: 'QMediaRecorder.Error' + + class Status(int): ... + UnavailableStatus = ... # type: 'QMediaRecorder.Status' + UnloadedStatus = ... # type: 'QMediaRecorder.Status' + LoadingStatus = ... # type: 'QMediaRecorder.Status' + LoadedStatus = ... # type: 'QMediaRecorder.Status' + StartingStatus = ... # type: 'QMediaRecorder.Status' + RecordingStatus = ... # type: 'QMediaRecorder.Status' + PausedStatus = ... # type: 'QMediaRecorder.Status' + FinalizingStatus = ... # type: 'QMediaRecorder.Status' + + class State(int): ... + StoppedState = ... # type: 'QMediaRecorder.State' + RecordingState = ... # type: 'QMediaRecorder.State' + PausedState = ... # type: 'QMediaRecorder.State' + + def __init__(self, mediaObject: QMediaObject, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setMediaObject(self, object: QMediaObject) -> bool: ... + @typing.overload + def availabilityChanged(self, availability: 'QMultimedia.AvailabilityStatus') -> None: ... + @typing.overload + def availabilityChanged(self, available: bool) -> None: ... + @typing.overload + def metaDataChanged(self, key: str, value: typing.Any) -> None: ... + @typing.overload + def metaDataChanged(self) -> None: ... + def metaDataWritableChanged(self, writable: bool) -> None: ... + def metaDataAvailableChanged(self, available: bool) -> None: ... + def actualLocationChanged(self, location: QtCore.QUrl) -> None: ... + def volumeChanged(self, volume: float) -> None: ... + def mutedChanged(self, muted: bool) -> None: ... + def durationChanged(self, duration: int) -> None: ... + def statusChanged(self, status: 'QMediaRecorder.Status') -> None: ... + def stateChanged(self, state: 'QMediaRecorder.State') -> None: ... + def setVolume(self, volume: float) -> None: ... + def setMuted(self, muted: bool) -> None: ... + def stop(self) -> None: ... + def pause(self) -> None: ... + def record(self) -> None: ... + def availableMetaData(self) -> typing.List[str]: ... + def setMetaData(self, key: str, value: typing.Any) -> None: ... + def metaData(self, key: str) -> typing.Any: ... + def isMetaDataWritable(self) -> bool: ... + def isMetaDataAvailable(self) -> bool: ... + def setEncodingSettings(self, audio: 'QAudioEncoderSettings', video: 'QVideoEncoderSettings' = ..., container: str = ...) -> None: ... + def setContainerFormat(self, container: str) -> None: ... + def setVideoSettings(self, videoSettings: 'QVideoEncoderSettings') -> None: ... + def setAudioSettings(self, audioSettings: 'QAudioEncoderSettings') -> None: ... + def containerFormat(self) -> str: ... + def videoSettings(self) -> 'QVideoEncoderSettings': ... + def audioSettings(self) -> 'QAudioEncoderSettings': ... + def supportedFrameRates(self, settings: 'QVideoEncoderSettings' = ...) -> typing.Tuple[typing.List[float], bool]: ... + def supportedResolutions(self, settings: 'QVideoEncoderSettings' = ...) -> typing.Tuple[typing.List[QtCore.QSize], bool]: ... + def videoCodecDescription(self, codecName: str) -> str: ... + def supportedVideoCodecs(self) -> typing.List[str]: ... + def supportedAudioSampleRates(self, settings: 'QAudioEncoderSettings' = ...) -> typing.Tuple[typing.List[int], bool]: ... + def audioCodecDescription(self, codecName: str) -> str: ... + def supportedAudioCodecs(self) -> typing.List[str]: ... + def containerDescription(self, format: str) -> str: ... + def supportedContainers(self) -> typing.List[str]: ... + def volume(self) -> float: ... + def isMuted(self) -> bool: ... + def duration(self) -> int: ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> 'QMediaRecorder.Error': ... + @typing.overload + def error(self, error: 'QMediaRecorder.Error') -> None: ... + def status(self) -> 'QMediaRecorder.Status': ... + def state(self) -> 'QMediaRecorder.State': ... + def actualLocation(self) -> QtCore.QUrl: ... + def setOutputLocation(self, location: QtCore.QUrl) -> bool: ... + def outputLocation(self) -> QtCore.QUrl: ... + def availability(self) -> 'QMultimedia.AvailabilityStatus': ... + def isAvailable(self) -> bool: ... + def mediaObject(self) -> QMediaObject: ... + + +class QAudioRecorder(QMediaRecorder): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def availableAudioInputsChanged(self) -> None: ... + def audioInputChanged(self, name: str) -> None: ... + def setAudioInput(self, name: str) -> None: ... + def audioInput(self) -> str: ... + def audioInputDescription(self, name: str) -> str: ... + def defaultAudioInput(self) -> str: ... + def audioInputs(self) -> typing.List[str]: ... + + +class QCamera(QMediaObject): + + class Position(int): ... + UnspecifiedPosition = ... # type: 'QCamera.Position' + BackFace = ... # type: 'QCamera.Position' + FrontFace = ... # type: 'QCamera.Position' + + class LockType(int): ... + NoLock = ... # type: 'QCamera.LockType' + LockExposure = ... # type: 'QCamera.LockType' + LockWhiteBalance = ... # type: 'QCamera.LockType' + LockFocus = ... # type: 'QCamera.LockType' + + class LockChangeReason(int): ... + UserRequest = ... # type: 'QCamera.LockChangeReason' + LockAcquired = ... # type: 'QCamera.LockChangeReason' + LockFailed = ... # type: 'QCamera.LockChangeReason' + LockLost = ... # type: 'QCamera.LockChangeReason' + LockTemporaryLost = ... # type: 'QCamera.LockChangeReason' + + class LockStatus(int): ... + Unlocked = ... # type: 'QCamera.LockStatus' + Searching = ... # type: 'QCamera.LockStatus' + Locked = ... # type: 'QCamera.LockStatus' + + class Error(int): ... + NoError = ... # type: 'QCamera.Error' + CameraError = ... # type: 'QCamera.Error' + InvalidRequestError = ... # type: 'QCamera.Error' + ServiceMissingError = ... # type: 'QCamera.Error' + NotSupportedFeatureError = ... # type: 'QCamera.Error' + + class CaptureMode(int): ... + CaptureViewfinder = ... # type: 'QCamera.CaptureMode' + CaptureStillImage = ... # type: 'QCamera.CaptureMode' + CaptureVideo = ... # type: 'QCamera.CaptureMode' + + class State(int): ... + UnloadedState = ... # type: 'QCamera.State' + LoadedState = ... # type: 'QCamera.State' + ActiveState = ... # type: 'QCamera.State' + + class Status(int): ... + UnavailableStatus = ... # type: 'QCamera.Status' + UnloadedStatus = ... # type: 'QCamera.Status' + LoadingStatus = ... # type: 'QCamera.Status' + UnloadingStatus = ... # type: 'QCamera.Status' + LoadedStatus = ... # type: 'QCamera.Status' + StandbyStatus = ... # type: 'QCamera.Status' + StartingStatus = ... # type: 'QCamera.Status' + StoppingStatus = ... # type: 'QCamera.Status' + ActiveStatus = ... # type: 'QCamera.Status' + + class CaptureModes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QCamera.CaptureModes', 'QCamera.CaptureMode']) -> None: ... + @typing.overload + def __init__(self, a0: 'QCamera.CaptureModes') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QCamera.CaptureModes': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + class LockTypes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QCamera.LockTypes', 'QCamera.LockType']) -> None: ... + @typing.overload + def __init__(self, a0: 'QCamera.LockTypes') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QCamera.LockTypes': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + class FrameRateRange(sip.simplewrapper): + + maximumFrameRate = ... # type: float + minimumFrameRate = ... # type: float + + @typing.overload + def __init__(self, minimum: float, maximum: float) -> None: ... + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QCamera.FrameRateRange') -> None: ... + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, device: typing.Union[QtCore.QByteArray, bytes, bytearray], parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, cameraInfo: 'QCameraInfo', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, position: 'QCamera.Position', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def supportedViewfinderPixelFormats(self, settings: 'QCameraViewfinderSettings' = ...) -> typing.List['QVideoFrame.PixelFormat']: ... + def supportedViewfinderFrameRateRanges(self, settings: 'QCameraViewfinderSettings' = ...) -> typing.List['QCamera.FrameRateRange']: ... + def supportedViewfinderResolutions(self, settings: 'QCameraViewfinderSettings' = ...) -> typing.List[QtCore.QSize]: ... + def supportedViewfinderSettings(self, settings: 'QCameraViewfinderSettings' = ...) -> typing.List['QCameraViewfinderSettings']: ... + def setViewfinderSettings(self, settings: 'QCameraViewfinderSettings') -> None: ... + def viewfinderSettings(self) -> 'QCameraViewfinderSettings': ... + @typing.overload + def lockStatusChanged(self, a0: 'QCamera.LockStatus', a1: 'QCamera.LockChangeReason') -> None: ... + @typing.overload + def lockStatusChanged(self, a0: 'QCamera.LockType', a1: 'QCamera.LockStatus', a2: 'QCamera.LockChangeReason') -> None: ... + def lockFailed(self) -> None: ... + def locked(self) -> None: ... + def statusChanged(self, a0: 'QCamera.Status') -> None: ... + def captureModeChanged(self, a0: typing.Union['QCamera.CaptureModes', 'QCamera.CaptureMode']) -> None: ... + def stateChanged(self, a0: 'QCamera.State') -> None: ... + @typing.overload + def unlock(self) -> None: ... + @typing.overload + def unlock(self, locks: typing.Union['QCamera.LockTypes', 'QCamera.LockType']) -> None: ... + @typing.overload + def searchAndLock(self) -> None: ... + @typing.overload + def searchAndLock(self, locks: typing.Union['QCamera.LockTypes', 'QCamera.LockType']) -> None: ... + def stop(self) -> None: ... + def start(self) -> None: ... + def unload(self) -> None: ... + def load(self) -> None: ... + def setCaptureMode(self, mode: typing.Union['QCamera.CaptureModes', 'QCamera.CaptureMode']) -> None: ... + @typing.overload + def lockStatus(self) -> 'QCamera.LockStatus': ... + @typing.overload + def lockStatus(self, lock: 'QCamera.LockType') -> 'QCamera.LockStatus': ... + def requestedLocks(self) -> 'QCamera.LockTypes': ... + def supportedLocks(self) -> 'QCamera.LockTypes': ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> 'QCamera.Error': ... + @typing.overload + def error(self, a0: 'QCamera.Error') -> None: ... + @typing.overload + def setViewfinder(self, viewfinder: QVideoWidget) -> None: ... + @typing.overload + def setViewfinder(self, viewfinder: QGraphicsVideoItem) -> None: ... + @typing.overload + def setViewfinder(self, surface: QAbstractVideoSurface) -> None: ... + def imageProcessing(self) -> 'QCameraImageProcessing': ... + def focus(self) -> 'QCameraFocus': ... + def exposure(self) -> 'QCameraExposure': ... + def isCaptureModeSupported(self, mode: typing.Union['QCamera.CaptureModes', 'QCamera.CaptureMode']) -> bool: ... + def captureMode(self) -> 'QCamera.CaptureModes': ... + def status(self) -> 'QCamera.Status': ... + def state(self) -> 'QCamera.State': ... + def availability(self) -> 'QMultimedia.AvailabilityStatus': ... + @staticmethod + def deviceDescription(device: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> str: ... + @staticmethod + def availableDevices() -> typing.List[QtCore.QByteArray]: ... + + +class QCameraExposure(QtCore.QObject): + + class MeteringMode(int): ... + MeteringMatrix = ... # type: 'QCameraExposure.MeteringMode' + MeteringAverage = ... # type: 'QCameraExposure.MeteringMode' + MeteringSpot = ... # type: 'QCameraExposure.MeteringMode' + + class ExposureMode(int): ... + ExposureAuto = ... # type: 'QCameraExposure.ExposureMode' + ExposureManual = ... # type: 'QCameraExposure.ExposureMode' + ExposurePortrait = ... # type: 'QCameraExposure.ExposureMode' + ExposureNight = ... # type: 'QCameraExposure.ExposureMode' + ExposureBacklight = ... # type: 'QCameraExposure.ExposureMode' + ExposureSpotlight = ... # type: 'QCameraExposure.ExposureMode' + ExposureSports = ... # type: 'QCameraExposure.ExposureMode' + ExposureSnow = ... # type: 'QCameraExposure.ExposureMode' + ExposureBeach = ... # type: 'QCameraExposure.ExposureMode' + ExposureLargeAperture = ... # type: 'QCameraExposure.ExposureMode' + ExposureSmallAperture = ... # type: 'QCameraExposure.ExposureMode' + ExposureAction = ... # type: 'QCameraExposure.ExposureMode' + ExposureLandscape = ... # type: 'QCameraExposure.ExposureMode' + ExposureNightPortrait = ... # type: 'QCameraExposure.ExposureMode' + ExposureTheatre = ... # type: 'QCameraExposure.ExposureMode' + ExposureSunset = ... # type: 'QCameraExposure.ExposureMode' + ExposureSteadyPhoto = ... # type: 'QCameraExposure.ExposureMode' + ExposureFireworks = ... # type: 'QCameraExposure.ExposureMode' + ExposureParty = ... # type: 'QCameraExposure.ExposureMode' + ExposureCandlelight = ... # type: 'QCameraExposure.ExposureMode' + ExposureBarcode = ... # type: 'QCameraExposure.ExposureMode' + ExposureModeVendor = ... # type: 'QCameraExposure.ExposureMode' + + class FlashMode(int): ... + FlashAuto = ... # type: 'QCameraExposure.FlashMode' + FlashOff = ... # type: 'QCameraExposure.FlashMode' + FlashOn = ... # type: 'QCameraExposure.FlashMode' + FlashRedEyeReduction = ... # type: 'QCameraExposure.FlashMode' + FlashFill = ... # type: 'QCameraExposure.FlashMode' + FlashTorch = ... # type: 'QCameraExposure.FlashMode' + FlashVideoLight = ... # type: 'QCameraExposure.FlashMode' + FlashSlowSyncFrontCurtain = ... # type: 'QCameraExposure.FlashMode' + FlashSlowSyncRearCurtain = ... # type: 'QCameraExposure.FlashMode' + FlashManual = ... # type: 'QCameraExposure.FlashMode' + + class FlashModes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QCameraExposure.FlashModes', 'QCameraExposure.FlashMode']) -> None: ... + @typing.overload + def __init__(self, a0: 'QCameraExposure.FlashModes') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QCameraExposure.FlashModes': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + def exposureCompensationChanged(self, a0: float) -> None: ... + def isoSensitivityChanged(self, a0: int) -> None: ... + def shutterSpeedRangeChanged(self) -> None: ... + def shutterSpeedChanged(self, a0: float) -> None: ... + def apertureRangeChanged(self) -> None: ... + def apertureChanged(self, a0: float) -> None: ... + def flashReady(self, a0: bool) -> None: ... + def setAutoShutterSpeed(self) -> None: ... + def setManualShutterSpeed(self, seconds: float) -> None: ... + def setAutoAperture(self) -> None: ... + def setManualAperture(self, aperture: float) -> None: ... + def setAutoIsoSensitivity(self) -> None: ... + def setManualIsoSensitivity(self, iso: int) -> None: ... + def setExposureCompensation(self, ev: float) -> None: ... + def setMeteringMode(self, mode: 'QCameraExposure.MeteringMode') -> None: ... + def setExposureMode(self, mode: 'QCameraExposure.ExposureMode') -> None: ... + def setFlashMode(self, mode: typing.Union['QCameraExposure.FlashModes', 'QCameraExposure.FlashMode']) -> None: ... + def supportedShutterSpeeds(self) -> typing.Tuple[typing.List[float], bool]: ... + def supportedApertures(self) -> typing.Tuple[typing.List[float], bool]: ... + def supportedIsoSensitivities(self) -> typing.Tuple[typing.List[int], bool]: ... + def requestedShutterSpeed(self) -> float: ... + def requestedAperture(self) -> float: ... + def requestedIsoSensitivity(self) -> int: ... + def shutterSpeed(self) -> float: ... + def aperture(self) -> float: ... + def isoSensitivity(self) -> int: ... + def setSpotMeteringPoint(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def spotMeteringPoint(self) -> QtCore.QPointF: ... + def isMeteringModeSupported(self, mode: 'QCameraExposure.MeteringMode') -> bool: ... + def meteringMode(self) -> 'QCameraExposure.MeteringMode': ... + def exposureCompensation(self) -> float: ... + def isExposureModeSupported(self, mode: 'QCameraExposure.ExposureMode') -> bool: ... + def exposureMode(self) -> 'QCameraExposure.ExposureMode': ... + def isFlashReady(self) -> bool: ... + def isFlashModeSupported(self, mode: typing.Union['QCameraExposure.FlashModes', 'QCameraExposure.FlashMode']) -> bool: ... + def flashMode(self) -> 'QCameraExposure.FlashModes': ... + def isAvailable(self) -> bool: ... + + +class QCameraFocusZone(sip.simplewrapper): + + class FocusZoneStatus(int): ... + Invalid = ... # type: 'QCameraFocusZone.FocusZoneStatus' + Unused = ... # type: 'QCameraFocusZone.FocusZoneStatus' + Selected = ... # type: 'QCameraFocusZone.FocusZoneStatus' + Focused = ... # type: 'QCameraFocusZone.FocusZoneStatus' + + def __init__(self, other: 'QCameraFocusZone') -> None: ... + + def status(self) -> 'QCameraFocusZone.FocusZoneStatus': ... + def area(self) -> QtCore.QRectF: ... + def isValid(self) -> bool: ... + + +class QCameraFocus(QtCore.QObject): + + class FocusPointMode(int): ... + FocusPointAuto = ... # type: 'QCameraFocus.FocusPointMode' + FocusPointCenter = ... # type: 'QCameraFocus.FocusPointMode' + FocusPointFaceDetection = ... # type: 'QCameraFocus.FocusPointMode' + FocusPointCustom = ... # type: 'QCameraFocus.FocusPointMode' + + class FocusMode(int): ... + ManualFocus = ... # type: 'QCameraFocus.FocusMode' + HyperfocalFocus = ... # type: 'QCameraFocus.FocusMode' + InfinityFocus = ... # type: 'QCameraFocus.FocusMode' + AutoFocus = ... # type: 'QCameraFocus.FocusMode' + ContinuousFocus = ... # type: 'QCameraFocus.FocusMode' + MacroFocus = ... # type: 'QCameraFocus.FocusMode' + + class FocusModes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QCameraFocus.FocusModes', 'QCameraFocus.FocusMode']) -> None: ... + @typing.overload + def __init__(self, a0: 'QCameraFocus.FocusModes') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QCameraFocus.FocusModes': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + def maximumDigitalZoomChanged(self, a0: float) -> None: ... + def maximumOpticalZoomChanged(self, a0: float) -> None: ... + def focusZonesChanged(self) -> None: ... + def digitalZoomChanged(self, a0: float) -> None: ... + def opticalZoomChanged(self, a0: float) -> None: ... + def zoomTo(self, opticalZoom: float, digitalZoom: float) -> None: ... + def digitalZoom(self) -> float: ... + def opticalZoom(self) -> float: ... + def maximumDigitalZoom(self) -> float: ... + def maximumOpticalZoom(self) -> float: ... + def focusZones(self) -> typing.List[QCameraFocusZone]: ... + def setCustomFocusPoint(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def customFocusPoint(self) -> QtCore.QPointF: ... + def isFocusPointModeSupported(self, a0: 'QCameraFocus.FocusPointMode') -> bool: ... + def setFocusPointMode(self, mode: 'QCameraFocus.FocusPointMode') -> None: ... + def focusPointMode(self) -> 'QCameraFocus.FocusPointMode': ... + def isFocusModeSupported(self, mode: typing.Union['QCameraFocus.FocusModes', 'QCameraFocus.FocusMode']) -> bool: ... + def setFocusMode(self, mode: typing.Union['QCameraFocus.FocusModes', 'QCameraFocus.FocusMode']) -> None: ... + def focusMode(self) -> 'QCameraFocus.FocusModes': ... + def isAvailable(self) -> bool: ... + + +class QCameraImageCapture(QtCore.QObject, QMediaBindableInterface): + + class CaptureDestination(int): ... + CaptureToFile = ... # type: 'QCameraImageCapture.CaptureDestination' + CaptureToBuffer = ... # type: 'QCameraImageCapture.CaptureDestination' + + class DriveMode(int): ... + SingleImageCapture = ... # type: 'QCameraImageCapture.DriveMode' + + class Error(int): ... + NoError = ... # type: 'QCameraImageCapture.Error' + NotReadyError = ... # type: 'QCameraImageCapture.Error' + ResourceError = ... # type: 'QCameraImageCapture.Error' + OutOfSpaceError = ... # type: 'QCameraImageCapture.Error' + NotSupportedFeatureError = ... # type: 'QCameraImageCapture.Error' + FormatError = ... # type: 'QCameraImageCapture.Error' + + class CaptureDestinations(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QCameraImageCapture.CaptureDestinations', 'QCameraImageCapture.CaptureDestination']) -> None: ... + @typing.overload + def __init__(self, a0: 'QCameraImageCapture.CaptureDestinations') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QCameraImageCapture.CaptureDestinations': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + def __init__(self, mediaObject: QMediaObject, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setMediaObject(self, a0: QMediaObject) -> bool: ... + def imageSaved(self, id: int, fileName: str) -> None: ... + def imageAvailable(self, id: int, image: 'QVideoFrame') -> None: ... + def imageMetadataAvailable(self, id: int, key: str, value: typing.Any) -> None: ... + def imageCaptured(self, id: int, preview: QtGui.QImage) -> None: ... + def imageExposed(self, id: int) -> None: ... + def captureDestinationChanged(self, a0: typing.Union['QCameraImageCapture.CaptureDestinations', 'QCameraImageCapture.CaptureDestination']) -> None: ... + def bufferFormatChanged(self, a0: 'QVideoFrame.PixelFormat') -> None: ... + def readyForCaptureChanged(self, a0: bool) -> None: ... + def cancelCapture(self) -> None: ... + def capture(self, file: str = ...) -> int: ... + def setCaptureDestination(self, destination: typing.Union['QCameraImageCapture.CaptureDestinations', 'QCameraImageCapture.CaptureDestination']) -> None: ... + def captureDestination(self) -> 'QCameraImageCapture.CaptureDestinations': ... + def isCaptureDestinationSupported(self, destination: typing.Union['QCameraImageCapture.CaptureDestinations', 'QCameraImageCapture.CaptureDestination']) -> bool: ... + def setBufferFormat(self, format: 'QVideoFrame.PixelFormat') -> None: ... + def bufferFormat(self) -> 'QVideoFrame.PixelFormat': ... + def supportedBufferFormats(self) -> typing.List['QVideoFrame.PixelFormat']: ... + def setEncodingSettings(self, settings: 'QImageEncoderSettings') -> None: ... + def encodingSettings(self) -> 'QImageEncoderSettings': ... + def supportedResolutions(self, settings: 'QImageEncoderSettings' = ...) -> typing.Tuple[typing.List[QtCore.QSize], bool]: ... + def imageCodecDescription(self, codecName: str) -> str: ... + def supportedImageCodecs(self) -> typing.List[str]: ... + def isReadyForCapture(self) -> bool: ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> 'QCameraImageCapture.Error': ... + @typing.overload + def error(self, id: int, error: 'QCameraImageCapture.Error', errorString: str) -> None: ... + def mediaObject(self) -> QMediaObject: ... + def availability(self) -> 'QMultimedia.AvailabilityStatus': ... + def isAvailable(self) -> bool: ... + + +class QCameraImageProcessing(QtCore.QObject): + + class ColorFilter(int): ... + ColorFilterNone = ... # type: 'QCameraImageProcessing.ColorFilter' + ColorFilterGrayscale = ... # type: 'QCameraImageProcessing.ColorFilter' + ColorFilterNegative = ... # type: 'QCameraImageProcessing.ColorFilter' + ColorFilterSolarize = ... # type: 'QCameraImageProcessing.ColorFilter' + ColorFilterSepia = ... # type: 'QCameraImageProcessing.ColorFilter' + ColorFilterPosterize = ... # type: 'QCameraImageProcessing.ColorFilter' + ColorFilterWhiteboard = ... # type: 'QCameraImageProcessing.ColorFilter' + ColorFilterBlackboard = ... # type: 'QCameraImageProcessing.ColorFilter' + ColorFilterAqua = ... # type: 'QCameraImageProcessing.ColorFilter' + ColorFilterVendor = ... # type: 'QCameraImageProcessing.ColorFilter' + + class WhiteBalanceMode(int): ... + WhiteBalanceAuto = ... # type: 'QCameraImageProcessing.WhiteBalanceMode' + WhiteBalanceManual = ... # type: 'QCameraImageProcessing.WhiteBalanceMode' + WhiteBalanceSunlight = ... # type: 'QCameraImageProcessing.WhiteBalanceMode' + WhiteBalanceCloudy = ... # type: 'QCameraImageProcessing.WhiteBalanceMode' + WhiteBalanceShade = ... # type: 'QCameraImageProcessing.WhiteBalanceMode' + WhiteBalanceTungsten = ... # type: 'QCameraImageProcessing.WhiteBalanceMode' + WhiteBalanceFluorescent = ... # type: 'QCameraImageProcessing.WhiteBalanceMode' + WhiteBalanceFlash = ... # type: 'QCameraImageProcessing.WhiteBalanceMode' + WhiteBalanceSunset = ... # type: 'QCameraImageProcessing.WhiteBalanceMode' + WhiteBalanceVendor = ... # type: 'QCameraImageProcessing.WhiteBalanceMode' + + def setBrightness(self, value: float) -> None: ... + def brightness(self) -> float: ... + def isColorFilterSupported(self, filter: 'QCameraImageProcessing.ColorFilter') -> bool: ... + def setColorFilter(self, filter: 'QCameraImageProcessing.ColorFilter') -> None: ... + def colorFilter(self) -> 'QCameraImageProcessing.ColorFilter': ... + def setDenoisingLevel(self, value: float) -> None: ... + def denoisingLevel(self) -> float: ... + def setSharpeningLevel(self, value: float) -> None: ... + def sharpeningLevel(self) -> float: ... + def setSaturation(self, value: float) -> None: ... + def saturation(self) -> float: ... + def setContrast(self, value: float) -> None: ... + def contrast(self) -> float: ... + def setManualWhiteBalance(self, colorTemperature: float) -> None: ... + def manualWhiteBalance(self) -> float: ... + def isWhiteBalanceModeSupported(self, mode: 'QCameraImageProcessing.WhiteBalanceMode') -> bool: ... + def setWhiteBalanceMode(self, mode: 'QCameraImageProcessing.WhiteBalanceMode') -> None: ... + def whiteBalanceMode(self) -> 'QCameraImageProcessing.WhiteBalanceMode': ... + def isAvailable(self) -> bool: ... + + +class QCameraInfo(sip.simplewrapper): + + @typing.overload + def __init__(self, name: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> None: ... + @typing.overload + def __init__(self, camera: QCamera) -> None: ... + @typing.overload + def __init__(self, other: 'QCameraInfo') -> None: ... + + @staticmethod + def availableCameras(position: QCamera.Position = ...) -> typing.List['QCameraInfo']: ... + @staticmethod + def defaultCamera() -> 'QCameraInfo': ... + def orientation(self) -> int: ... + def position(self) -> QCamera.Position: ... + def description(self) -> str: ... + def deviceName(self) -> str: ... + def isNull(self) -> bool: ... + + +class QCameraViewfinderSettings(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QCameraViewfinderSettings') -> None: ... + + @typing.overload + def setPixelAspectRatio(self, ratio: QtCore.QSize) -> None: ... + @typing.overload + def setPixelAspectRatio(self, horizontal: int, vertical: int) -> None: ... + def pixelAspectRatio(self) -> QtCore.QSize: ... + def setPixelFormat(self, format: 'QVideoFrame.PixelFormat') -> None: ... + def pixelFormat(self) -> 'QVideoFrame.PixelFormat': ... + def setMaximumFrameRate(self, rate: float) -> None: ... + def maximumFrameRate(self) -> float: ... + def setMinimumFrameRate(self, rate: float) -> None: ... + def minimumFrameRate(self) -> float: ... + @typing.overload + def setResolution(self, a0: QtCore.QSize) -> None: ... + @typing.overload + def setResolution(self, width: int, height: int) -> None: ... + def resolution(self) -> QtCore.QSize: ... + def isNull(self) -> bool: ... + def swap(self, other: 'QCameraViewfinderSettings') -> None: ... + + +class QMediaContent(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, contentUrl: QtCore.QUrl) -> None: ... + @typing.overload + def __init__(self, contentRequest: QtNetwork.QNetworkRequest) -> None: ... + @typing.overload + def __init__(self, contentResource: 'QMediaResource') -> None: ... + @typing.overload + def __init__(self, resources: typing.Iterable['QMediaResource']) -> None: ... + @typing.overload + def __init__(self, other: 'QMediaContent') -> None: ... + @typing.overload + def __init__(self, playlist: 'QMediaPlaylist', contentUrl: QtCore.QUrl = ...) -> None: ... + + def request(self) -> QtNetwork.QNetworkRequest: ... + def playlist(self) -> 'QMediaPlaylist': ... + def resources(self) -> typing.List['QMediaResource']: ... + def canonicalResource(self) -> 'QMediaResource': ... + def canonicalRequest(self) -> QtNetwork.QNetworkRequest: ... + def canonicalUrl(self) -> QtCore.QUrl: ... + def isNull(self) -> bool: ... + + +class QMediaControl(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + +class QAudioEncoderSettings(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QAudioEncoderSettings') -> None: ... + + def setEncodingOptions(self, options: typing.Dict[str, typing.Any]) -> None: ... + def setEncodingOption(self, option: str, value: typing.Any) -> None: ... + def encodingOptions(self) -> typing.Dict[str, typing.Any]: ... + def encodingOption(self, option: str) -> typing.Any: ... + def setQuality(self, quality: 'QMultimedia.EncodingQuality') -> None: ... + def quality(self) -> 'QMultimedia.EncodingQuality': ... + def setSampleRate(self, rate: int) -> None: ... + def sampleRate(self) -> int: ... + def setChannelCount(self, channels: int) -> None: ... + def channelCount(self) -> int: ... + def setBitRate(self, bitrate: int) -> None: ... + def bitRate(self) -> int: ... + def setCodec(self, codec: str) -> None: ... + def codec(self) -> str: ... + def setEncodingMode(self, a0: 'QMultimedia.EncodingMode') -> None: ... + def encodingMode(self) -> 'QMultimedia.EncodingMode': ... + def isNull(self) -> bool: ... + + +class QVideoEncoderSettings(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QVideoEncoderSettings') -> None: ... + + def setEncodingOptions(self, options: typing.Dict[str, typing.Any]) -> None: ... + def setEncodingOption(self, option: str, value: typing.Any) -> None: ... + def encodingOptions(self) -> typing.Dict[str, typing.Any]: ... + def encodingOption(self, option: str) -> typing.Any: ... + def setQuality(self, quality: 'QMultimedia.EncodingQuality') -> None: ... + def quality(self) -> 'QMultimedia.EncodingQuality': ... + def setBitRate(self, bitrate: int) -> None: ... + def bitRate(self) -> int: ... + def setFrameRate(self, rate: float) -> None: ... + def frameRate(self) -> float: ... + @typing.overload + def setResolution(self, a0: QtCore.QSize) -> None: ... + @typing.overload + def setResolution(self, width: int, height: int) -> None: ... + def resolution(self) -> QtCore.QSize: ... + def setCodec(self, a0: str) -> None: ... + def codec(self) -> str: ... + def setEncodingMode(self, a0: 'QMultimedia.EncodingMode') -> None: ... + def encodingMode(self) -> 'QMultimedia.EncodingMode': ... + def isNull(self) -> bool: ... + + +class QImageEncoderSettings(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QImageEncoderSettings') -> None: ... + + def setEncodingOptions(self, options: typing.Dict[str, typing.Any]) -> None: ... + def setEncodingOption(self, option: str, value: typing.Any) -> None: ... + def encodingOptions(self) -> typing.Dict[str, typing.Any]: ... + def encodingOption(self, option: str) -> typing.Any: ... + def setQuality(self, quality: 'QMultimedia.EncodingQuality') -> None: ... + def quality(self) -> 'QMultimedia.EncodingQuality': ... + @typing.overload + def setResolution(self, a0: QtCore.QSize) -> None: ... + @typing.overload + def setResolution(self, width: int, height: int) -> None: ... + def resolution(self) -> QtCore.QSize: ... + def setCodec(self, a0: str) -> None: ... + def codec(self) -> str: ... + def isNull(self) -> bool: ... + + +class QMediaMetaData(sip.simplewrapper): + + AlbumArtist = ... # type: str + AlbumTitle = ... # type: str + AudioBitRate = ... # type: str + AudioCodec = ... # type: str + Author = ... # type: str + AverageLevel = ... # type: str + CameraManufacturer = ... # type: str + CameraModel = ... # type: str + Category = ... # type: str + ChannelCount = ... # type: str + ChapterNumber = ... # type: str + Comment = ... # type: str + Composer = ... # type: str + Conductor = ... # type: str + Contrast = ... # type: str + ContributingArtist = ... # type: str + Copyright = ... # type: str + CoverArtImage = ... # type: str + CoverArtUrlLarge = ... # type: str + CoverArtUrlSmall = ... # type: str + Date = ... # type: str + DateTimeDigitized = ... # type: str + DateTimeOriginal = ... # type: str + Description = ... # type: str + DeviceSettingDescription = ... # type: str + DigitalZoomRatio = ... # type: str + Director = ... # type: str + Duration = ... # type: str + Event = ... # type: str + ExposureBiasValue = ... # type: str + ExposureMode = ... # type: str + ExposureProgram = ... # type: str + ExposureTime = ... # type: str + FNumber = ... # type: str + Flash = ... # type: str + FocalLength = ... # type: str + FocalLengthIn35mmFilm = ... # type: str + GPSAltitude = ... # type: str + GPSAreaInformation = ... # type: str + GPSDOP = ... # type: str + GPSImgDirection = ... # type: str + GPSImgDirectionRef = ... # type: str + GPSLatitude = ... # type: str + GPSLongitude = ... # type: str + GPSMapDatum = ... # type: str + GPSProcessingMethod = ... # type: str + GPSSatellites = ... # type: str + GPSSpeed = ... # type: str + GPSStatus = ... # type: str + GPSTimeStamp = ... # type: str + GPSTrack = ... # type: str + GPSTrackRef = ... # type: str + GainControl = ... # type: str + Genre = ... # type: str + ISOSpeedRatings = ... # type: str + Keywords = ... # type: str + Language = ... # type: str + LeadPerformer = ... # type: str + LightSource = ... # type: str + Lyrics = ... # type: str + MediaType = ... # type: str + MeteringMode = ... # type: str + Mood = ... # type: str + Orientation = ... # type: str + ParentalRating = ... # type: str + PeakValue = ... # type: str + PixelAspectRatio = ... # type: str + PosterImage = ... # type: str + PosterUrl = ... # type: str + Publisher = ... # type: str + RatingOrganization = ... # type: str + Resolution = ... # type: str + SampleRate = ... # type: str + Saturation = ... # type: str + SceneCaptureType = ... # type: str + Sharpness = ... # type: str + Size = ... # type: str + SubTitle = ... # type: str + Subject = ... # type: str + SubjectDistance = ... # type: str + ThumbnailImage = ... # type: str + Title = ... # type: str + TrackCount = ... # type: str + TrackNumber = ... # type: str + UserRating = ... # type: str + VideoBitRate = ... # type: str + VideoCodec = ... # type: str + VideoFrameRate = ... # type: str + WhiteBalance = ... # type: str + Writer = ... # type: str + Year = ... # type: str + + +class QMediaPlayer(QMediaObject): + + class Error(int): ... + NoError = ... # type: 'QMediaPlayer.Error' + ResourceError = ... # type: 'QMediaPlayer.Error' + FormatError = ... # type: 'QMediaPlayer.Error' + NetworkError = ... # type: 'QMediaPlayer.Error' + AccessDeniedError = ... # type: 'QMediaPlayer.Error' + ServiceMissingError = ... # type: 'QMediaPlayer.Error' + + class Flag(int): ... + LowLatency = ... # type: 'QMediaPlayer.Flag' + StreamPlayback = ... # type: 'QMediaPlayer.Flag' + VideoSurface = ... # type: 'QMediaPlayer.Flag' + + class MediaStatus(int): ... + UnknownMediaStatus = ... # type: 'QMediaPlayer.MediaStatus' + NoMedia = ... # type: 'QMediaPlayer.MediaStatus' + LoadingMedia = ... # type: 'QMediaPlayer.MediaStatus' + LoadedMedia = ... # type: 'QMediaPlayer.MediaStatus' + StalledMedia = ... # type: 'QMediaPlayer.MediaStatus' + BufferingMedia = ... # type: 'QMediaPlayer.MediaStatus' + BufferedMedia = ... # type: 'QMediaPlayer.MediaStatus' + EndOfMedia = ... # type: 'QMediaPlayer.MediaStatus' + InvalidMedia = ... # type: 'QMediaPlayer.MediaStatus' + + class State(int): ... + StoppedState = ... # type: 'QMediaPlayer.State' + PlayingState = ... # type: 'QMediaPlayer.State' + PausedState = ... # type: 'QMediaPlayer.State' + + class Flags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QMediaPlayer.Flags', 'QMediaPlayer.Flag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QMediaPlayer.Flags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QMediaPlayer.Flags': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ..., flags: typing.Union['QMediaPlayer.Flags', 'QMediaPlayer.Flag'] = ...) -> None: ... + + def customAudioRoleChanged(self, role: str) -> None: ... + def supportedCustomAudioRoles(self) -> typing.List[str]: ... + def setCustomAudioRole(self, audioRole: str) -> None: ... + def customAudioRole(self) -> str: ... + def audioRoleChanged(self, role: QAudio.Role) -> None: ... + def supportedAudioRoles(self) -> typing.List[QAudio.Role]: ... + def setAudioRole(self, audioRole: QAudio.Role) -> None: ... + def audioRole(self) -> QAudio.Role: ... + def unbind(self, a0: QtCore.QObject) -> None: ... + def bind(self, a0: QtCore.QObject) -> bool: ... + def networkConfigurationChanged(self, configuration: QtNetwork.QNetworkConfiguration) -> None: ... + def playbackRateChanged(self, rate: float) -> None: ... + def seekableChanged(self, seekable: bool) -> None: ... + def bufferStatusChanged(self, percentFilled: int) -> None: ... + def videoAvailableChanged(self, videoAvailable: bool) -> None: ... + def audioAvailableChanged(self, available: bool) -> None: ... + def mutedChanged(self, muted: bool) -> None: ... + def volumeChanged(self, volume: int) -> None: ... + def positionChanged(self, position: int) -> None: ... + def durationChanged(self, duration: int) -> None: ... + def mediaStatusChanged(self, status: 'QMediaPlayer.MediaStatus') -> None: ... + def stateChanged(self, newState: 'QMediaPlayer.State') -> None: ... + def currentMediaChanged(self, media: QMediaContent) -> None: ... + def mediaChanged(self, media: QMediaContent) -> None: ... + def setNetworkConfigurations(self, configurations: typing.Iterable[QtNetwork.QNetworkConfiguration]) -> None: ... + def setPlaylist(self, playlist: 'QMediaPlaylist') -> None: ... + def setMedia(self, media: QMediaContent, stream: typing.Optional[QtCore.QIODevice] = ...) -> None: ... + def setPlaybackRate(self, rate: float) -> None: ... + def setMuted(self, muted: bool) -> None: ... + def setVolume(self, volume: int) -> None: ... + def setPosition(self, position: int) -> None: ... + def stop(self) -> None: ... + def pause(self) -> None: ... + def play(self) -> None: ... + def availability(self) -> 'QMultimedia.AvailabilityStatus': ... + def currentNetworkConfiguration(self) -> QtNetwork.QNetworkConfiguration: ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> 'QMediaPlayer.Error': ... + @typing.overload + def error(self, error: 'QMediaPlayer.Error') -> None: ... + def playbackRate(self) -> float: ... + def isSeekable(self) -> bool: ... + def bufferStatus(self) -> int: ... + def isVideoAvailable(self) -> bool: ... + def isAudioAvailable(self) -> bool: ... + def isMuted(self) -> bool: ... + def volume(self) -> int: ... + def position(self) -> int: ... + def duration(self) -> int: ... + def mediaStatus(self) -> 'QMediaPlayer.MediaStatus': ... + def state(self) -> 'QMediaPlayer.State': ... + def currentMedia(self) -> QMediaContent: ... + def playlist(self) -> 'QMediaPlaylist': ... + def mediaStream(self) -> QtCore.QIODevice: ... + def media(self) -> QMediaContent: ... + @typing.overload + def setVideoOutput(self, a0: QVideoWidget) -> None: ... + @typing.overload + def setVideoOutput(self, a0: QGraphicsVideoItem) -> None: ... + @typing.overload + def setVideoOutput(self, surface: QAbstractVideoSurface) -> None: ... + @staticmethod + def supportedMimeTypes(flags: typing.Union['QMediaPlayer.Flags', 'QMediaPlayer.Flag'] = ...) -> typing.List[str]: ... + @staticmethod + def hasSupport(mimeType: str, codecs: typing.Iterable[str] = ..., flags: typing.Union['QMediaPlayer.Flags', 'QMediaPlayer.Flag'] = ...) -> 'QMultimedia.SupportEstimate': ... + + +class QMediaPlaylist(QtCore.QObject, QMediaBindableInterface): + + class Error(int): ... + NoError = ... # type: 'QMediaPlaylist.Error' + FormatError = ... # type: 'QMediaPlaylist.Error' + FormatNotSupportedError = ... # type: 'QMediaPlaylist.Error' + NetworkError = ... # type: 'QMediaPlaylist.Error' + AccessDeniedError = ... # type: 'QMediaPlaylist.Error' + + class PlaybackMode(int): ... + CurrentItemOnce = ... # type: 'QMediaPlaylist.PlaybackMode' + CurrentItemInLoop = ... # type: 'QMediaPlaylist.PlaybackMode' + Sequential = ... # type: 'QMediaPlaylist.PlaybackMode' + Loop = ... # type: 'QMediaPlaylist.PlaybackMode' + Random = ... # type: 'QMediaPlaylist.PlaybackMode' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setMediaObject(self, object: QMediaObject) -> bool: ... + def loadFailed(self) -> None: ... + def loaded(self) -> None: ... + def mediaChanged(self, start: int, end: int) -> None: ... + def mediaRemoved(self, start: int, end: int) -> None: ... + def mediaAboutToBeRemoved(self, start: int, end: int) -> None: ... + def mediaInserted(self, start: int, end: int) -> None: ... + def mediaAboutToBeInserted(self, start: int, end: int) -> None: ... + def currentMediaChanged(self, a0: QMediaContent) -> None: ... + def playbackModeChanged(self, mode: 'QMediaPlaylist.PlaybackMode') -> None: ... + def currentIndexChanged(self, index: int) -> None: ... + def setCurrentIndex(self, index: int) -> None: ... + def previous(self) -> None: ... + def next(self) -> None: ... + def shuffle(self) -> None: ... + def moveMedia(self, from_: int, to: int) -> bool: ... + def errorString(self) -> str: ... + def error(self) -> 'QMediaPlaylist.Error': ... + @typing.overload + def save(self, location: QtCore.QUrl, format: typing.Optional[str] = ...) -> bool: ... + @typing.overload + def save(self, device: QtCore.QIODevice, format: str) -> bool: ... + @typing.overload + def load(self, request: QtNetwork.QNetworkRequest, format: typing.Optional[str] = ...) -> None: ... + @typing.overload + def load(self, location: QtCore.QUrl, format: typing.Optional[str] = ...) -> None: ... + @typing.overload + def load(self, device: QtCore.QIODevice, format: typing.Optional[str] = ...) -> None: ... + def clear(self) -> bool: ... + @typing.overload + def removeMedia(self, pos: int) -> bool: ... + @typing.overload + def removeMedia(self, start: int, end: int) -> bool: ... + @typing.overload + def insertMedia(self, index: int, content: QMediaContent) -> bool: ... + @typing.overload + def insertMedia(self, index: int, items: typing.Iterable[QMediaContent]) -> bool: ... + @typing.overload + def addMedia(self, content: QMediaContent) -> bool: ... + @typing.overload + def addMedia(self, items: typing.Iterable[QMediaContent]) -> bool: ... + def isReadOnly(self) -> bool: ... + def isEmpty(self) -> bool: ... + def mediaCount(self) -> int: ... + def media(self, index: int) -> QMediaContent: ... + def previousIndex(self, steps: int = ...) -> int: ... + def nextIndex(self, steps: int = ...) -> int: ... + def currentMedia(self) -> QMediaContent: ... + def currentIndex(self) -> int: ... + def setPlaybackMode(self, mode: 'QMediaPlaylist.PlaybackMode') -> None: ... + def playbackMode(self) -> 'QMediaPlaylist.PlaybackMode': ... + def mediaObject(self) -> QMediaObject: ... + + +class QMediaResource(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, url: QtCore.QUrl, mimeType: str = ...) -> None: ... + @typing.overload + def __init__(self, request: QtNetwork.QNetworkRequest, mimeType: str = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QMediaResource') -> None: ... + + @typing.overload + def setResolution(self, resolution: QtCore.QSize) -> None: ... + @typing.overload + def setResolution(self, width: int, height: int) -> None: ... + def resolution(self) -> QtCore.QSize: ... + def setVideoBitRate(self, rate: int) -> None: ... + def videoBitRate(self) -> int: ... + def setChannelCount(self, channels: int) -> None: ... + def channelCount(self) -> int: ... + def setSampleRate(self, frequency: int) -> None: ... + def sampleRate(self) -> int: ... + def setAudioBitRate(self, rate: int) -> None: ... + def audioBitRate(self) -> int: ... + def setDataSize(self, size: int) -> None: ... + def dataSize(self) -> int: ... + def setVideoCodec(self, codec: str) -> None: ... + def videoCodec(self) -> str: ... + def setAudioCodec(self, codec: str) -> None: ... + def audioCodec(self) -> str: ... + def setLanguage(self, language: str) -> None: ... + def language(self) -> str: ... + def mimeType(self) -> str: ... + def request(self) -> QtNetwork.QNetworkRequest: ... + def url(self) -> QtCore.QUrl: ... + def isNull(self) -> bool: ... + + +class QMediaService(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject) -> None: ... + + def releaseControl(self, control: QMediaControl) -> None: ... + def requestControl(self, name: str) -> QMediaControl: ... + + +class QMediaTimeInterval(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, start: int, end: int) -> None: ... + @typing.overload + def __init__(self, a0: 'QMediaTimeInterval') -> None: ... + + def translated(self, offset: int) -> 'QMediaTimeInterval': ... + def normalized(self) -> 'QMediaTimeInterval': ... + def isNormal(self) -> bool: ... + def contains(self, time: int) -> bool: ... + def end(self) -> int: ... + def start(self) -> int: ... + + +class QMediaTimeRange(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, start: int, end: int) -> None: ... + @typing.overload + def __init__(self, a0: QMediaTimeInterval) -> None: ... + @typing.overload + def __init__(self, range: 'QMediaTimeRange') -> None: ... + + def clear(self) -> None: ... + def removeTimeRange(self, a0: 'QMediaTimeRange') -> None: ... + @typing.overload + def removeInterval(self, start: int, end: int) -> None: ... + @typing.overload + def removeInterval(self, interval: QMediaTimeInterval) -> None: ... + def addTimeRange(self, a0: 'QMediaTimeRange') -> None: ... + @typing.overload + def addInterval(self, start: int, end: int) -> None: ... + @typing.overload + def addInterval(self, interval: QMediaTimeInterval) -> None: ... + def contains(self, time: int) -> bool: ... + def isContinuous(self) -> bool: ... + def isEmpty(self) -> bool: ... + def intervals(self) -> typing.List[QMediaTimeInterval]: ... + def latestTime(self) -> int: ... + def earliestTime(self) -> int: ... + + +class QMultimedia(sip.simplewrapper): + + class AvailabilityStatus(int): ... + Available = ... # type: 'QMultimedia.AvailabilityStatus' + ServiceMissing = ... # type: 'QMultimedia.AvailabilityStatus' + Busy = ... # type: 'QMultimedia.AvailabilityStatus' + ResourceError = ... # type: 'QMultimedia.AvailabilityStatus' + + class EncodingMode(int): ... + ConstantQualityEncoding = ... # type: 'QMultimedia.EncodingMode' + ConstantBitRateEncoding = ... # type: 'QMultimedia.EncodingMode' + AverageBitRateEncoding = ... # type: 'QMultimedia.EncodingMode' + TwoPassEncoding = ... # type: 'QMultimedia.EncodingMode' + + class EncodingQuality(int): ... + VeryLowQuality = ... # type: 'QMultimedia.EncodingQuality' + LowQuality = ... # type: 'QMultimedia.EncodingQuality' + NormalQuality = ... # type: 'QMultimedia.EncodingQuality' + HighQuality = ... # type: 'QMultimedia.EncodingQuality' + VeryHighQuality = ... # type: 'QMultimedia.EncodingQuality' + + class SupportEstimate(int): ... + NotSupported = ... # type: 'QMultimedia.SupportEstimate' + MaybeSupported = ... # type: 'QMultimedia.SupportEstimate' + ProbablySupported = ... # type: 'QMultimedia.SupportEstimate' + PreferredService = ... # type: 'QMultimedia.SupportEstimate' + + +class QRadioData(QtCore.QObject, QMediaBindableInterface): + + class ProgramType(int): ... + Undefined = ... # type: 'QRadioData.ProgramType' + News = ... # type: 'QRadioData.ProgramType' + CurrentAffairs = ... # type: 'QRadioData.ProgramType' + Information = ... # type: 'QRadioData.ProgramType' + Sport = ... # type: 'QRadioData.ProgramType' + Education = ... # type: 'QRadioData.ProgramType' + Drama = ... # type: 'QRadioData.ProgramType' + Culture = ... # type: 'QRadioData.ProgramType' + Science = ... # type: 'QRadioData.ProgramType' + Varied = ... # type: 'QRadioData.ProgramType' + PopMusic = ... # type: 'QRadioData.ProgramType' + RockMusic = ... # type: 'QRadioData.ProgramType' + EasyListening = ... # type: 'QRadioData.ProgramType' + LightClassical = ... # type: 'QRadioData.ProgramType' + SeriousClassical = ... # type: 'QRadioData.ProgramType' + OtherMusic = ... # type: 'QRadioData.ProgramType' + Weather = ... # type: 'QRadioData.ProgramType' + Finance = ... # type: 'QRadioData.ProgramType' + ChildrensProgrammes = ... # type: 'QRadioData.ProgramType' + SocialAffairs = ... # type: 'QRadioData.ProgramType' + Religion = ... # type: 'QRadioData.ProgramType' + PhoneIn = ... # type: 'QRadioData.ProgramType' + Travel = ... # type: 'QRadioData.ProgramType' + Leisure = ... # type: 'QRadioData.ProgramType' + JazzMusic = ... # type: 'QRadioData.ProgramType' + CountryMusic = ... # type: 'QRadioData.ProgramType' + NationalMusic = ... # type: 'QRadioData.ProgramType' + OldiesMusic = ... # type: 'QRadioData.ProgramType' + FolkMusic = ... # type: 'QRadioData.ProgramType' + Documentary = ... # type: 'QRadioData.ProgramType' + AlarmTest = ... # type: 'QRadioData.ProgramType' + Alarm = ... # type: 'QRadioData.ProgramType' + Talk = ... # type: 'QRadioData.ProgramType' + ClassicRock = ... # type: 'QRadioData.ProgramType' + AdultHits = ... # type: 'QRadioData.ProgramType' + SoftRock = ... # type: 'QRadioData.ProgramType' + Top40 = ... # type: 'QRadioData.ProgramType' + Soft = ... # type: 'QRadioData.ProgramType' + Nostalgia = ... # type: 'QRadioData.ProgramType' + Classical = ... # type: 'QRadioData.ProgramType' + RhythmAndBlues = ... # type: 'QRadioData.ProgramType' + SoftRhythmAndBlues = ... # type: 'QRadioData.ProgramType' + Language = ... # type: 'QRadioData.ProgramType' + ReligiousMusic = ... # type: 'QRadioData.ProgramType' + ReligiousTalk = ... # type: 'QRadioData.ProgramType' + Personality = ... # type: 'QRadioData.ProgramType' + Public = ... # type: 'QRadioData.ProgramType' + College = ... # type: 'QRadioData.ProgramType' + + class Error(int): ... + NoError = ... # type: 'QRadioData.Error' + ResourceError = ... # type: 'QRadioData.Error' + OpenError = ... # type: 'QRadioData.Error' + OutOfRangeError = ... # type: 'QRadioData.Error' + + def __init__(self, mediaObject: QMediaObject, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setMediaObject(self, a0: QMediaObject) -> bool: ... + def alternativeFrequenciesEnabledChanged(self, enabled: bool) -> None: ... + def radioTextChanged(self, radioText: str) -> None: ... + def stationNameChanged(self, stationName: str) -> None: ... + def programTypeNameChanged(self, programTypeName: str) -> None: ... + def programTypeChanged(self, programType: 'QRadioData.ProgramType') -> None: ... + def stationIdChanged(self, stationId: str) -> None: ... + def setAlternativeFrequenciesEnabled(self, enabled: bool) -> None: ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> 'QRadioData.Error': ... + @typing.overload + def error(self, error: 'QRadioData.Error') -> None: ... + def isAlternativeFrequenciesEnabled(self) -> bool: ... + def radioText(self) -> str: ... + def stationName(self) -> str: ... + def programTypeName(self) -> str: ... + def programType(self) -> 'QRadioData.ProgramType': ... + def stationId(self) -> str: ... + def availability(self) -> QMultimedia.AvailabilityStatus: ... + def mediaObject(self) -> QMediaObject: ... + + +class QRadioTuner(QMediaObject): + + class SearchMode(int): ... + SearchFast = ... # type: 'QRadioTuner.SearchMode' + SearchGetStationId = ... # type: 'QRadioTuner.SearchMode' + + class StereoMode(int): ... + ForceStereo = ... # type: 'QRadioTuner.StereoMode' + ForceMono = ... # type: 'QRadioTuner.StereoMode' + Auto = ... # type: 'QRadioTuner.StereoMode' + + class Error(int): ... + NoError = ... # type: 'QRadioTuner.Error' + ResourceError = ... # type: 'QRadioTuner.Error' + OpenError = ... # type: 'QRadioTuner.Error' + OutOfRangeError = ... # type: 'QRadioTuner.Error' + + class Band(int): ... + AM = ... # type: 'QRadioTuner.Band' + FM = ... # type: 'QRadioTuner.Band' + SW = ... # type: 'QRadioTuner.Band' + LW = ... # type: 'QRadioTuner.Band' + FM2 = ... # type: 'QRadioTuner.Band' + + class State(int): ... + ActiveState = ... # type: 'QRadioTuner.State' + StoppedState = ... # type: 'QRadioTuner.State' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def antennaConnectedChanged(self, connectionStatus: bool) -> None: ... + def stationFound(self, frequency: int, stationId: str) -> None: ... + def mutedChanged(self, muted: bool) -> None: ... + def volumeChanged(self, volume: int) -> None: ... + def signalStrengthChanged(self, signalStrength: int) -> None: ... + def searchingChanged(self, searching: bool) -> None: ... + def stereoStatusChanged(self, stereo: bool) -> None: ... + def frequencyChanged(self, frequency: int) -> None: ... + def bandChanged(self, band: 'QRadioTuner.Band') -> None: ... + def stateChanged(self, state: 'QRadioTuner.State') -> None: ... + def stop(self) -> None: ... + def start(self) -> None: ... + def setMuted(self, muted: bool) -> None: ... + def setVolume(self, volume: int) -> None: ... + def setFrequency(self, frequency: int) -> None: ... + def setBand(self, band: 'QRadioTuner.Band') -> None: ... + def cancelSearch(self) -> None: ... + def searchAllStations(self, searchMode: 'QRadioTuner.SearchMode' = ...) -> None: ... + def searchBackward(self) -> None: ... + def searchForward(self) -> None: ... + def radioData(self) -> QRadioData: ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> 'QRadioTuner.Error': ... + @typing.overload + def error(self, error: 'QRadioTuner.Error') -> None: ... + def isAntennaConnected(self) -> bool: ... + def isSearching(self) -> bool: ... + def isMuted(self) -> bool: ... + def volume(self) -> int: ... + def signalStrength(self) -> int: ... + def stereoMode(self) -> 'QRadioTuner.StereoMode': ... + def setStereoMode(self, mode: 'QRadioTuner.StereoMode') -> None: ... + def isStereo(self) -> bool: ... + def frequencyRange(self, band: 'QRadioTuner.Band') -> typing.Tuple[int, int]: ... + def frequencyStep(self, band: 'QRadioTuner.Band') -> int: ... + def frequency(self) -> int: ... + def isBandSupported(self, b: 'QRadioTuner.Band') -> bool: ... + def band(self) -> 'QRadioTuner.Band': ... + def state(self) -> 'QRadioTuner.State': ... + def availability(self) -> QMultimedia.AvailabilityStatus: ... + + +class QSound(QtCore.QObject): + + class Loop(int): ... + Infinite = ... # type: 'QSound.Loop' + + def __init__(self, filename: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def stop(self) -> None: ... + def isFinished(self) -> bool: ... + def fileName(self) -> str: ... + def setLoops(self, a0: int) -> None: ... + def loopsRemaining(self) -> int: ... + def loops(self) -> int: ... + @typing.overload + @staticmethod + def play(filename: str) -> None: ... + @typing.overload + def play(self) -> None: ... + + +class QSoundEffect(QtCore.QObject): + + class Status(int): ... + Null = ... # type: 'QSoundEffect.Status' + Loading = ... # type: 'QSoundEffect.Status' + Ready = ... # type: 'QSoundEffect.Status' + Error = ... # type: 'QSoundEffect.Status' + + class Loop(int): ... + Infinite = ... # type: 'QSoundEffect.Loop' + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, audioDevice: QAudioDeviceInfo, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def stop(self) -> None: ... + def play(self) -> None: ... + def categoryChanged(self) -> None: ... + def statusChanged(self) -> None: ... + def playingChanged(self) -> None: ... + def loadedChanged(self) -> None: ... + def mutedChanged(self) -> None: ... + def volumeChanged(self) -> None: ... + def loopsRemainingChanged(self) -> None: ... + def loopCountChanged(self) -> None: ... + def sourceChanged(self) -> None: ... + def setCategory(self, category: str) -> None: ... + def category(self) -> str: ... + def status(self) -> 'QSoundEffect.Status': ... + def isPlaying(self) -> bool: ... + def isLoaded(self) -> bool: ... + def setMuted(self, muted: bool) -> None: ... + def isMuted(self) -> bool: ... + def setVolume(self, volume: float) -> None: ... + def volume(self) -> float: ... + def setLoopCount(self, loopCount: int) -> None: ... + def loopsRemaining(self) -> int: ... + def loopCount(self) -> int: ... + def setSource(self, url: QtCore.QUrl) -> None: ... + def source(self) -> QtCore.QUrl: ... + @staticmethod + def supportedMimeTypes() -> typing.List[str]: ... + + +class QVideoFrame(sip.simplewrapper): + + class PixelFormat(int): ... + Format_Invalid = ... # type: 'QVideoFrame.PixelFormat' + Format_ARGB32 = ... # type: 'QVideoFrame.PixelFormat' + Format_ARGB32_Premultiplied = ... # type: 'QVideoFrame.PixelFormat' + Format_RGB32 = ... # type: 'QVideoFrame.PixelFormat' + Format_RGB24 = ... # type: 'QVideoFrame.PixelFormat' + Format_RGB565 = ... # type: 'QVideoFrame.PixelFormat' + Format_RGB555 = ... # type: 'QVideoFrame.PixelFormat' + Format_ARGB8565_Premultiplied = ... # type: 'QVideoFrame.PixelFormat' + Format_BGRA32 = ... # type: 'QVideoFrame.PixelFormat' + Format_BGRA32_Premultiplied = ... # type: 'QVideoFrame.PixelFormat' + Format_BGR32 = ... # type: 'QVideoFrame.PixelFormat' + Format_BGR24 = ... # type: 'QVideoFrame.PixelFormat' + Format_BGR565 = ... # type: 'QVideoFrame.PixelFormat' + Format_BGR555 = ... # type: 'QVideoFrame.PixelFormat' + Format_BGRA5658_Premultiplied = ... # type: 'QVideoFrame.PixelFormat' + Format_AYUV444 = ... # type: 'QVideoFrame.PixelFormat' + Format_AYUV444_Premultiplied = ... # type: 'QVideoFrame.PixelFormat' + Format_YUV444 = ... # type: 'QVideoFrame.PixelFormat' + Format_YUV420P = ... # type: 'QVideoFrame.PixelFormat' + Format_YV12 = ... # type: 'QVideoFrame.PixelFormat' + Format_UYVY = ... # type: 'QVideoFrame.PixelFormat' + Format_YUYV = ... # type: 'QVideoFrame.PixelFormat' + Format_NV12 = ... # type: 'QVideoFrame.PixelFormat' + Format_NV21 = ... # type: 'QVideoFrame.PixelFormat' + Format_IMC1 = ... # type: 'QVideoFrame.PixelFormat' + Format_IMC2 = ... # type: 'QVideoFrame.PixelFormat' + Format_IMC3 = ... # type: 'QVideoFrame.PixelFormat' + Format_IMC4 = ... # type: 'QVideoFrame.PixelFormat' + Format_Y8 = ... # type: 'QVideoFrame.PixelFormat' + Format_Y16 = ... # type: 'QVideoFrame.PixelFormat' + Format_Jpeg = ... # type: 'QVideoFrame.PixelFormat' + Format_CameraRaw = ... # type: 'QVideoFrame.PixelFormat' + Format_AdobeDng = ... # type: 'QVideoFrame.PixelFormat' + Format_ABGR32 = ... # type: 'QVideoFrame.PixelFormat' + Format_YUV422P = ... # type: 'QVideoFrame.PixelFormat' + Format_User = ... # type: 'QVideoFrame.PixelFormat' + + class FieldType(int): ... + ProgressiveFrame = ... # type: 'QVideoFrame.FieldType' + TopField = ... # type: 'QVideoFrame.FieldType' + BottomField = ... # type: 'QVideoFrame.FieldType' + InterlacedFrame = ... # type: 'QVideoFrame.FieldType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, buffer: QAbstractVideoBuffer, size: QtCore.QSize, format: 'QVideoFrame.PixelFormat') -> None: ... + @typing.overload + def __init__(self, bytes: int, size: QtCore.QSize, bytesPerLine: int, format: 'QVideoFrame.PixelFormat') -> None: ... + @typing.overload + def __init__(self, image: QtGui.QImage) -> None: ... + @typing.overload + def __init__(self, other: 'QVideoFrame') -> None: ... + + def buffer(self) -> QAbstractVideoBuffer: ... + def planeCount(self) -> int: ... + def setMetaData(self, key: str, value: typing.Any) -> None: ... + def metaData(self, key: str) -> typing.Any: ... + def availableMetaData(self) -> typing.Dict[str, typing.Any]: ... + @staticmethod + def imageFormatFromPixelFormat(format: 'QVideoFrame.PixelFormat') -> QtGui.QImage.Format: ... + @staticmethod + def pixelFormatFromImageFormat(format: QtGui.QImage.Format) -> 'QVideoFrame.PixelFormat': ... + def setEndTime(self, time: int) -> None: ... + def endTime(self) -> int: ... + def setStartTime(self, time: int) -> None: ... + def startTime(self) -> int: ... + def handle(self) -> typing.Any: ... + def mappedBytes(self) -> int: ... + @typing.overload + def bits(self) -> sip.voidptr: ... + @typing.overload + def bits(self, plane: int) -> sip.voidptr: ... + @typing.overload + def bytesPerLine(self) -> int: ... + @typing.overload + def bytesPerLine(self, plane: int) -> int: ... + def unmap(self) -> None: ... + def map(self, mode: QAbstractVideoBuffer.MapMode) -> bool: ... + def mapMode(self) -> QAbstractVideoBuffer.MapMode: ... + def isWritable(self) -> bool: ... + def isReadable(self) -> bool: ... + def isMapped(self) -> bool: ... + def setFieldType(self, a0: 'QVideoFrame.FieldType') -> None: ... + def fieldType(self) -> 'QVideoFrame.FieldType': ... + def height(self) -> int: ... + def width(self) -> int: ... + def size(self) -> QtCore.QSize: ... + def handleType(self) -> QAbstractVideoBuffer.HandleType: ... + def pixelFormat(self) -> 'QVideoFrame.PixelFormat': ... + def isValid(self) -> bool: ... + + +class QVideoProbe(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def flush(self) -> None: ... + def videoFrameProbed(self, videoFrame: QVideoFrame) -> None: ... + def isActive(self) -> bool: ... + @typing.overload + def setSource(self, source: QMediaObject) -> bool: ... + @typing.overload + def setSource(self, source: QMediaRecorder) -> bool: ... + + +class QVideoSurfaceFormat(sip.simplewrapper): + + class YCbCrColorSpace(int): ... + YCbCr_Undefined = ... # type: 'QVideoSurfaceFormat.YCbCrColorSpace' + YCbCr_BT601 = ... # type: 'QVideoSurfaceFormat.YCbCrColorSpace' + YCbCr_BT709 = ... # type: 'QVideoSurfaceFormat.YCbCrColorSpace' + YCbCr_xvYCC601 = ... # type: 'QVideoSurfaceFormat.YCbCrColorSpace' + YCbCr_xvYCC709 = ... # type: 'QVideoSurfaceFormat.YCbCrColorSpace' + YCbCr_JPEG = ... # type: 'QVideoSurfaceFormat.YCbCrColorSpace' + + class Direction(int): ... + TopToBottom = ... # type: 'QVideoSurfaceFormat.Direction' + BottomToTop = ... # type: 'QVideoSurfaceFormat.Direction' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, size: QtCore.QSize, format: QVideoFrame.PixelFormat, type: QAbstractVideoBuffer.HandleType = ...) -> None: ... + @typing.overload + def __init__(self, format: 'QVideoSurfaceFormat') -> None: ... + + def setMirrored(self, mirrored: bool) -> None: ... + def isMirrored(self) -> bool: ... + def setProperty(self, name: str, value: typing.Any) -> None: ... + def property(self, name: str) -> typing.Any: ... + def propertyNames(self) -> typing.List[QtCore.QByteArray]: ... + def sizeHint(self) -> QtCore.QSize: ... + def setYCbCrColorSpace(self, colorSpace: 'QVideoSurfaceFormat.YCbCrColorSpace') -> None: ... + def yCbCrColorSpace(self) -> 'QVideoSurfaceFormat.YCbCrColorSpace': ... + @typing.overload + def setPixelAspectRatio(self, ratio: QtCore.QSize) -> None: ... + @typing.overload + def setPixelAspectRatio(self, width: int, height: int) -> None: ... + def pixelAspectRatio(self) -> QtCore.QSize: ... + def setFrameRate(self, rate: float) -> None: ... + def frameRate(self) -> float: ... + def setScanLineDirection(self, direction: 'QVideoSurfaceFormat.Direction') -> None: ... + def scanLineDirection(self) -> 'QVideoSurfaceFormat.Direction': ... + def setViewport(self, viewport: QtCore.QRect) -> None: ... + def viewport(self) -> QtCore.QRect: ... + def frameHeight(self) -> int: ... + def frameWidth(self) -> int: ... + @typing.overload + def setFrameSize(self, size: QtCore.QSize) -> None: ... + @typing.overload + def setFrameSize(self, width: int, height: int) -> None: ... + def frameSize(self) -> QtCore.QSize: ... + def handleType(self) -> QAbstractVideoBuffer.HandleType: ... + def pixelFormat(self) -> QVideoFrame.PixelFormat: ... + def isValid(self) -> bool: ... diff --git a/PyQt5-stubs/QtMultimediaWidgets.pyi b/PyQt5-stubs/QtMultimediaWidgets.pyi new file mode 100644 index 00000000..f98e3b14 --- /dev/null +++ b/PyQt5-stubs/QtMultimediaWidgets.pyi @@ -0,0 +1,100 @@ +# The PEP 484 type hints stub file for the QtMultimediaWidgets module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2020 Riverbank Computing Limited +# +# 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 sip + +from PyQt5 import QtWidgets +from PyQt5 import QtMultimedia +from PyQt5 import QtCore + +# 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], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QVideoWidget(QtWidgets.QWidget, QtMultimedia.QMediaBindableInterface): + + def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + + def setMediaObject(self, object: QtMultimedia.QMediaObject) -> bool: ... + def paintEvent(self, event: QtGui.QPaintEvent) -> None: ... + def moveEvent(self, event: QtGui.QMoveEvent) -> None: ... + def resizeEvent(self, event: QtGui.QResizeEvent) -> None: ... + def hideEvent(self, event: QtGui.QHideEvent) -> None: ... + def showEvent(self, event: QtGui.QShowEvent) -> None: ... + def event(self, event: QtCore.QEvent) -> bool: ... + def saturationChanged(self, saturation: int) -> None: ... + def hueChanged(self, hue: int) -> None: ... + def contrastChanged(self, contrast: int) -> None: ... + def brightnessChanged(self, brightness: int) -> None: ... + def fullScreenChanged(self, fullScreen: bool) -> None: ... + def setSaturation(self, saturation: int) -> None: ... + def setHue(self, hue: int) -> None: ... + def setContrast(self, contrast: int) -> None: ... + def setBrightness(self, brightness: int) -> None: ... + def setAspectRatioMode(self, mode: QtCore.Qt.AspectRatioMode) -> None: ... + def setFullScreen(self, fullScreen: bool) -> None: ... + def sizeHint(self) -> QtCore.QSize: ... + def saturation(self) -> int: ... + def hue(self) -> int: ... + def contrast(self) -> int: ... + def brightness(self) -> int: ... + def aspectRatioMode(self) -> QtCore.Qt.AspectRatioMode: ... + def mediaObject(self) -> QtMultimedia.QMediaObject: ... + + +class QCameraViewfinder(QVideoWidget): + + def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + + def setMediaObject(self, object: QtMultimedia.QMediaObject) -> bool: ... + def mediaObject(self) -> QtMultimedia.QMediaObject: ... + + +class QGraphicsVideoItem(QtWidgets.QGraphicsObject, QtMultimedia.QMediaBindableInterface): + + def __init__(self, parent: typing.Optional[QtWidgets.QGraphicsItem] = ...) -> None: ... + + def setMediaObject(self, object: QtMultimedia.QMediaObject) -> bool: ... + def itemChange(self, change: QtWidgets.QGraphicsItem.GraphicsItemChange, value: typing.Any) -> typing.Any: ... + def timerEvent(self, event: QtCore.QTimerEvent) -> None: ... + def nativeSizeChanged(self, size: QtCore.QSizeF) -> None: ... + def paint(self, painter: QtGui.QPainter, option: QtWidgets.QStyleOptionGraphicsItem, widget: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + def boundingRect(self) -> QtCore.QRectF: ... + def nativeSize(self) -> QtCore.QSizeF: ... + def setSize(self, size: QtCore.QSizeF) -> None: ... + def size(self) -> QtCore.QSizeF: ... + def setOffset(self, offset: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def offset(self) -> QtCore.QPointF: ... + def setAspectRatioMode(self, mode: QtCore.Qt.AspectRatioMode) -> None: ... + def aspectRatioMode(self) -> QtCore.Qt.AspectRatioMode: ... + def mediaObject(self) -> QtMultimedia.QMediaObject: ... diff --git a/PyQt5-stubs/QtNfc.pyi b/PyQt5-stubs/QtNfc.pyi new file mode 100644 index 00000000..4c4a09c5 --- /dev/null +++ b/PyQt5-stubs/QtNfc.pyi @@ -0,0 +1,434 @@ +# The PEP 484 type hints stub file for the QtNfc module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2020 Riverbank Computing Limited +# +# 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 sip + +from PyQt5 import QtCore + +# 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] + + +class QNdefFilter(sip.simplewrapper): + + class Record(sip.simplewrapper): + + maximum = ... # type: int + minimum = ... # type: int + type = ... # type: typing.Union[QtCore.QByteArray, bytes, bytearray] + typeNameFormat = ... # type: 'QNdefRecord.TypeNameFormat' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QNdefFilter.Record') -> None: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QNdefFilter') -> None: ... + + def recordAt(self, i: int) -> 'QNdefFilter.Record': ... + def __len__(self) -> int: ... + def recordCount(self) -> int: ... + @typing.overload + def appendRecord(self, typeNameFormat: 'QNdefRecord.TypeNameFormat', type: typing.Union[QtCore.QByteArray, bytes, bytearray], min: int = ..., max: int = ...) -> None: ... + @typing.overload + def appendRecord(self, record: 'QNdefFilter.Record') -> None: ... + def orderMatch(self) -> bool: ... + def setOrderMatch(self, on: bool) -> None: ... + def clear(self) -> None: ... + + +class QNdefMessage(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, record: 'QNdefRecord') -> None: ... + @typing.overload + def __init__(self, message: 'QNdefMessage') -> None: ... + @typing.overload + def __init__(self, records: typing.Iterable['QNdefRecord']) -> None: ... + + @staticmethod + def fromByteArray(message: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> 'QNdefMessage': ... + def __delitem__(self, i: int) -> None: ... + def __setitem__(self, i: int, value: 'QNdefRecord') -> None: ... + def __getitem__(self, i: int) -> 'QNdefRecord': ... + def __len__(self) -> int: ... + def toByteArray(self) -> QtCore.QByteArray: ... + + +class QNdefRecord(sip.simplewrapper): + + class TypeNameFormat(int): ... + Empty = ... # type: 'QNdefRecord.TypeNameFormat' + NfcRtd = ... # type: 'QNdefRecord.TypeNameFormat' + Mime = ... # type: 'QNdefRecord.TypeNameFormat' + Uri = ... # type: 'QNdefRecord.TypeNameFormat' + ExternalRtd = ... # type: 'QNdefRecord.TypeNameFormat' + Unknown = ... # type: 'QNdefRecord.TypeNameFormat' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QNdefRecord') -> None: ... + + def __hash__(self) -> int: ... + def isEmpty(self) -> bool: ... + def payload(self) -> QtCore.QByteArray: ... + def setPayload(self, payload: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def id(self) -> QtCore.QByteArray: ... + def setId(self, id: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def type(self) -> QtCore.QByteArray: ... + def setType(self, type: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def typeNameFormat(self) -> 'QNdefRecord.TypeNameFormat': ... + def setTypeNameFormat(self, typeNameFormat: 'QNdefRecord.TypeNameFormat') -> None: ... + + +class QNdefNfcIconRecord(QNdefRecord): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: QNdefRecord) -> None: ... + @typing.overload + def __init__(self, a0: 'QNdefNfcIconRecord') -> None: ... + + def data(self) -> QtCore.QByteArray: ... + def setData(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + + +class QNdefNfcSmartPosterRecord(QNdefRecord): + + class Action(int): ... + UnspecifiedAction = ... # type: 'QNdefNfcSmartPosterRecord.Action' + DoAction = ... # type: 'QNdefNfcSmartPosterRecord.Action' + SaveAction = ... # type: 'QNdefNfcSmartPosterRecord.Action' + EditAction = ... # type: 'QNdefNfcSmartPosterRecord.Action' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QNdefNfcSmartPosterRecord') -> None: ... + @typing.overload + def __init__(self, other: QNdefRecord) -> None: ... + + def setTypeInfo(self, type: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def typeInfo(self) -> QtCore.QByteArray: ... + def setSize(self, size: int) -> None: ... + def size(self) -> int: ... + def setIcons(self, icons: typing.Iterable[QNdefNfcIconRecord]) -> None: ... + @typing.overload + def removeIcon(self, icon: QNdefNfcIconRecord) -> bool: ... + @typing.overload + def removeIcon(self, type: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ... + @typing.overload + def addIcon(self, icon: QNdefNfcIconRecord) -> None: ... + @typing.overload + def addIcon(self, type: typing.Union[QtCore.QByteArray, bytes, bytearray], data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def iconRecords(self) -> typing.List[QNdefNfcIconRecord]: ... + def iconRecord(self, index: int) -> QNdefNfcIconRecord: ... + def icon(self, mimetype: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> QtCore.QByteArray: ... + def iconCount(self) -> int: ... + def setAction(self, act: 'QNdefNfcSmartPosterRecord.Action') -> None: ... + def action(self) -> 'QNdefNfcSmartPosterRecord.Action': ... + @typing.overload + def setUri(self, url: 'QNdefNfcUriRecord') -> None: ... + @typing.overload + def setUri(self, url: QtCore.QUrl) -> None: ... + def uriRecord(self) -> 'QNdefNfcUriRecord': ... + def uri(self) -> QtCore.QUrl: ... + def setTitles(self, titles: typing.Iterable['QNdefNfcTextRecord']) -> None: ... + @typing.overload + def removeTitle(self, text: 'QNdefNfcTextRecord') -> bool: ... + @typing.overload + def removeTitle(self, locale: str) -> bool: ... + @typing.overload + def addTitle(self, text: 'QNdefNfcTextRecord') -> bool: ... + @typing.overload + def addTitle(self, text: str, locale: str, encoding: 'QNdefNfcTextRecord.Encoding') -> bool: ... + def titleRecords(self) -> typing.List['QNdefNfcTextRecord']: ... + def titleRecord(self, index: int) -> 'QNdefNfcTextRecord': ... + def title(self, locale: str = ...) -> str: ... + def titleCount(self) -> int: ... + def hasTypeInfo(self) -> bool: ... + def hasSize(self) -> bool: ... + def hasIcon(self, mimetype: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> bool: ... + def hasAction(self) -> bool: ... + def hasTitle(self, locale: str = ...) -> bool: ... + def setPayload(self, payload: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + + +class QNdefNfcTextRecord(QNdefRecord): + + class Encoding(int): ... + Utf8 = ... # type: 'QNdefNfcTextRecord.Encoding' + Utf16 = ... # type: 'QNdefNfcTextRecord.Encoding' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: QNdefRecord) -> None: ... + @typing.overload + def __init__(self, a0: 'QNdefNfcTextRecord') -> None: ... + + def setEncoding(self, encoding: 'QNdefNfcTextRecord.Encoding') -> None: ... + def encoding(self) -> 'QNdefNfcTextRecord.Encoding': ... + def setText(self, text: str) -> None: ... + def text(self) -> str: ... + def setLocale(self, locale: str) -> None: ... + def locale(self) -> str: ... + + +class QNdefNfcUriRecord(QNdefRecord): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: QNdefRecord) -> None: ... + @typing.overload + def __init__(self, a0: 'QNdefNfcUriRecord') -> None: ... + + def setUri(self, uri: QtCore.QUrl) -> None: ... + def uri(self) -> QtCore.QUrl: ... + + +class QNearFieldManager(QtCore.QObject): + + class AdapterState(int): ... + Offline = ... # type: 'QNearFieldManager.AdapterState' + TurningOn = ... # type: 'QNearFieldManager.AdapterState' + Online = ... # type: 'QNearFieldManager.AdapterState' + TurningOff = ... # type: 'QNearFieldManager.AdapterState' + + class TargetAccessMode(int): ... + NoTargetAccess = ... # type: 'QNearFieldManager.TargetAccessMode' + NdefReadTargetAccess = ... # type: 'QNearFieldManager.TargetAccessMode' + NdefWriteTargetAccess = ... # type: 'QNearFieldManager.TargetAccessMode' + TagTypeSpecificTargetAccess = ... # type: 'QNearFieldManager.TargetAccessMode' + + class TargetAccessModes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QNearFieldManager.TargetAccessModes', 'QNearFieldManager.TargetAccessMode']) -> None: ... + @typing.overload + def __init__(self, a0: 'QNearFieldManager.TargetAccessModes') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QNearFieldManager.TargetAccessModes': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def adapterStateChanged(self, state: 'QNearFieldManager.AdapterState') -> None: ... + def isSupported(self) -> bool: ... + def targetLost(self, target: 'QNearFieldTarget') -> None: ... + def targetDetected(self, target: 'QNearFieldTarget') -> None: ... + def unregisterNdefMessageHandler(self, handlerId: int) -> bool: ... + @typing.overload + def registerNdefMessageHandler(self, slot: PYQT_SLOT) -> int: ... + @typing.overload + def registerNdefMessageHandler(self, typeNameFormat: QNdefRecord.TypeNameFormat, type: typing.Union[QtCore.QByteArray, bytes, bytearray], slot: PYQT_SLOT) -> int: ... + @typing.overload + def registerNdefMessageHandler(self, filter: QNdefFilter, slot: PYQT_SLOT) -> int: ... + def stopTargetDetection(self) -> None: ... + def startTargetDetection(self) -> bool: ... + def targetAccessModes(self) -> 'QNearFieldManager.TargetAccessModes': ... + def setTargetAccessModes(self, accessModes: typing.Union['QNearFieldManager.TargetAccessModes', 'QNearFieldManager.TargetAccessMode']) -> None: ... + def isAvailable(self) -> bool: ... + + +class QNearFieldShareManager(QtCore.QObject): + + class ShareMode(int): ... + NoShare = ... # type: 'QNearFieldShareManager.ShareMode' + NdefShare = ... # type: 'QNearFieldShareManager.ShareMode' + FileShare = ... # type: 'QNearFieldShareManager.ShareMode' + + class ShareError(int): ... + NoError = ... # type: 'QNearFieldShareManager.ShareError' + UnknownError = ... # type: 'QNearFieldShareManager.ShareError' + InvalidShareContentError = ... # type: 'QNearFieldShareManager.ShareError' + ShareCanceledError = ... # type: 'QNearFieldShareManager.ShareError' + ShareInterruptedError = ... # type: 'QNearFieldShareManager.ShareError' + ShareRejectedError = ... # type: 'QNearFieldShareManager.ShareError' + UnsupportedShareModeError = ... # type: 'QNearFieldShareManager.ShareError' + ShareAlreadyInProgressError = ... # type: 'QNearFieldShareManager.ShareError' + SharePermissionDeniedError = ... # type: 'QNearFieldShareManager.ShareError' + + class ShareModes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QNearFieldShareManager.ShareModes', 'QNearFieldShareManager.ShareMode']) -> None: ... + @typing.overload + def __init__(self, a0: 'QNearFieldShareManager.ShareModes') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QNearFieldShareManager.ShareModes': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def error(self, error: 'QNearFieldShareManager.ShareError') -> None: ... + def shareModesChanged(self, modes: typing.Union['QNearFieldShareManager.ShareModes', 'QNearFieldShareManager.ShareMode']) -> None: ... + def targetDetected(self, shareTarget: 'QNearFieldShareTarget') -> None: ... + def shareError(self) -> 'QNearFieldShareManager.ShareError': ... + def shareModes(self) -> 'QNearFieldShareManager.ShareModes': ... + def setShareModes(self, modes: typing.Union['QNearFieldShareManager.ShareModes', 'QNearFieldShareManager.ShareMode']) -> None: ... + @staticmethod + def supportedShareModes() -> 'QNearFieldShareManager.ShareModes': ... + + +class QNearFieldShareTarget(QtCore.QObject): + + def shareFinished(self) -> None: ... + def error(self, error: QNearFieldShareManager.ShareError) -> None: ... + def shareError(self) -> QNearFieldShareManager.ShareError: ... + def isShareInProgress(self) -> bool: ... + def cancel(self) -> None: ... + @typing.overload + def share(self, message: QNdefMessage) -> bool: ... + @typing.overload + def share(self, files: typing.Iterable[QtCore.QFileInfo]) -> bool: ... + def shareModes(self) -> QNearFieldShareManager.ShareModes: ... + + +class QNearFieldTarget(QtCore.QObject): + + class Error(int): ... + NoError = ... # type: 'QNearFieldTarget.Error' + UnknownError = ... # type: 'QNearFieldTarget.Error' + UnsupportedError = ... # type: 'QNearFieldTarget.Error' + TargetOutOfRangeError = ... # type: 'QNearFieldTarget.Error' + NoResponseError = ... # type: 'QNearFieldTarget.Error' + ChecksumMismatchError = ... # type: 'QNearFieldTarget.Error' + InvalidParametersError = ... # type: 'QNearFieldTarget.Error' + NdefReadError = ... # type: 'QNearFieldTarget.Error' + NdefWriteError = ... # type: 'QNearFieldTarget.Error' + CommandError = ... # type: 'QNearFieldTarget.Error' + + class AccessMethod(int): ... + UnknownAccess = ... # type: 'QNearFieldTarget.AccessMethod' + NdefAccess = ... # type: 'QNearFieldTarget.AccessMethod' + TagTypeSpecificAccess = ... # type: 'QNearFieldTarget.AccessMethod' + LlcpAccess = ... # type: 'QNearFieldTarget.AccessMethod' + + class Type(int): ... + ProprietaryTag = ... # type: 'QNearFieldTarget.Type' + NfcTagType1 = ... # type: 'QNearFieldTarget.Type' + NfcTagType2 = ... # type: 'QNearFieldTarget.Type' + NfcTagType3 = ... # type: 'QNearFieldTarget.Type' + NfcTagType4 = ... # type: 'QNearFieldTarget.Type' + MifareTag = ... # type: 'QNearFieldTarget.Type' + + class AccessMethods(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QNearFieldTarget.AccessMethods', 'QNearFieldTarget.AccessMethod']) -> None: ... + @typing.overload + def __init__(self, a0: 'QNearFieldTarget.AccessMethods') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QNearFieldTarget.AccessMethods': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + class RequestId(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QNearFieldTarget.RequestId') -> None: ... + + def refCount(self) -> int: ... + def isValid(self) -> bool: ... + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def maxCommandLength(self) -> int: ... + def disconnect(self) -> bool: ... + def setKeepConnection(self, isPersistent: bool) -> bool: ... + def keepConnection(self) -> bool: ... + def error(self, error: 'QNearFieldTarget.Error', id: 'QNearFieldTarget.RequestId') -> None: ... + def requestCompleted(self, id: 'QNearFieldTarget.RequestId') -> None: ... + def ndefMessagesWritten(self) -> None: ... + def ndefMessageRead(self, message: QNdefMessage) -> None: ... + def disconnected(self) -> None: ... + def reportError(self, error: 'QNearFieldTarget.Error', id: 'QNearFieldTarget.RequestId') -> None: ... + def handleResponse(self, id: 'QNearFieldTarget.RequestId', response: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ... + def setResponseForRequest(self, id: 'QNearFieldTarget.RequestId', response: typing.Any, emitRequestCompleted: bool = ...) -> None: ... + def requestResponse(self, id: 'QNearFieldTarget.RequestId') -> typing.Any: ... + def waitForRequestCompleted(self, id: 'QNearFieldTarget.RequestId', msecs: int = ...) -> bool: ... + def sendCommands(self, commands: typing.Iterable[typing.Union[QtCore.QByteArray, bytes, bytearray]]) -> 'QNearFieldTarget.RequestId': ... + def sendCommand(self, command: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> 'QNearFieldTarget.RequestId': ... + def writeNdefMessages(self, messages: typing.Iterable[QNdefMessage]) -> 'QNearFieldTarget.RequestId': ... + def readNdefMessages(self) -> 'QNearFieldTarget.RequestId': ... + def hasNdefMessage(self) -> bool: ... + def isProcessingCommand(self) -> bool: ... + def accessMethods(self) -> 'QNearFieldTarget.AccessMethods': ... + def type(self) -> 'QNearFieldTarget.Type': ... + def url(self) -> QtCore.QUrl: ... + def uid(self) -> QtCore.QByteArray: ... + + +class QQmlNdefRecord(QtCore.QObject): + + class TypeNameFormat(int): ... + Empty = ... # type: 'QQmlNdefRecord.TypeNameFormat' + NfcRtd = ... # type: 'QQmlNdefRecord.TypeNameFormat' + Mime = ... # type: 'QQmlNdefRecord.TypeNameFormat' + Uri = ... # type: 'QQmlNdefRecord.TypeNameFormat' + ExternalRtd = ... # type: 'QQmlNdefRecord.TypeNameFormat' + Unknown = ... # type: 'QQmlNdefRecord.TypeNameFormat' + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, record: QNdefRecord, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def recordChanged(self) -> None: ... + def typeNameFormatChanged(self) -> None: ... + def typeChanged(self) -> None: ... + def setRecord(self, record: QNdefRecord) -> None: ... + def record(self) -> QNdefRecord: ... + def typeNameFormat(self) -> 'QQmlNdefRecord.TypeNameFormat': ... + def setTypeNameFormat(self, typeNameFormat: 'QQmlNdefRecord.TypeNameFormat') -> None: ... + def setType(self, t: str) -> None: ... + def type(self) -> str: ... diff --git a/PyQt5-stubs/QtPositioning.pyi b/PyQt5-stubs/QtPositioning.pyi new file mode 100644 index 00000000..737018ee --- /dev/null +++ b/PyQt5-stubs/QtPositioning.pyi @@ -0,0 +1,537 @@ +# The PEP 484 type hints stub file for the QtPositioning module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2020 Riverbank Computing Limited +# +# 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 sip + +from PyQt5 import QtCore + +# 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] + + +class QGeoAddress(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoAddress') -> None: ... + + def isTextGenerated(self) -> bool: ... + def clear(self) -> None: ... + def isEmpty(self) -> bool: ... + def setStreet(self, street: str) -> None: ... + def street(self) -> str: ... + def setPostalCode(self, postalCode: str) -> None: ... + def postalCode(self) -> str: ... + def setDistrict(self, district: str) -> None: ... + def district(self) -> str: ... + def setCity(self, city: str) -> None: ... + def city(self) -> str: ... + def setCounty(self, county: str) -> None: ... + def county(self) -> str: ... + def setState(self, state: str) -> None: ... + def state(self) -> str: ... + def setCountryCode(self, countryCode: str) -> None: ... + def countryCode(self) -> str: ... + def setCountry(self, country: str) -> None: ... + def country(self) -> str: ... + def setText(self, text: str) -> None: ... + def text(self) -> str: ... + + +class QGeoAreaMonitorInfo(sip.wrapper): + + @typing.overload + def __init__(self, name: str = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoAreaMonitorInfo') -> None: ... + + def setNotificationParameters(self, parameters: typing.Dict[str, typing.Any]) -> None: ... + def notificationParameters(self) -> typing.Dict[str, typing.Any]: ... + def setPersistent(self, isPersistent: bool) -> None: ... + def isPersistent(self) -> bool: ... + def setExpiration(self, expiry: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ... + def expiration(self) -> QtCore.QDateTime: ... + def setArea(self, newShape: 'QGeoShape') -> None: ... + def area(self) -> 'QGeoShape': ... + def isValid(self) -> bool: ... + def identifier(self) -> str: ... + def setName(self, name: str) -> None: ... + def name(self) -> str: ... + + +class QGeoAreaMonitorSource(QtCore.QObject): + + class AreaMonitorFeature(int): ... + PersistentAreaMonitorFeature = ... # type: 'QGeoAreaMonitorSource.AreaMonitorFeature' + AnyAreaMonitorFeature = ... # type: 'QGeoAreaMonitorSource.AreaMonitorFeature' + + class Error(int): ... + AccessError = ... # type: 'QGeoAreaMonitorSource.Error' + InsufficientPositionInfo = ... # type: 'QGeoAreaMonitorSource.Error' + UnknownSourceError = ... # type: 'QGeoAreaMonitorSource.Error' + NoError = ... # type: 'QGeoAreaMonitorSource.Error' + + class AreaMonitorFeatures(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoAreaMonitorSource.AreaMonitorFeatures', 'QGeoAreaMonitorSource.AreaMonitorFeature']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoAreaMonitorSource.AreaMonitorFeatures') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoAreaMonitorSource.AreaMonitorFeatures': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + def __init__(self, parent: QtCore.QObject) -> None: ... + + def monitorExpired(self, monitor: QGeoAreaMonitorInfo) -> None: ... + def areaExited(self, monitor: QGeoAreaMonitorInfo, update: 'QGeoPositionInfo') -> None: ... + def areaEntered(self, monitor: QGeoAreaMonitorInfo, update: 'QGeoPositionInfo') -> None: ... + @typing.overload + def activeMonitors(self) -> typing.List[QGeoAreaMonitorInfo]: ... + @typing.overload + def activeMonitors(self, lookupArea: 'QGeoShape') -> typing.List[QGeoAreaMonitorInfo]: ... + def requestUpdate(self, monitor: QGeoAreaMonitorInfo, signal: str) -> bool: ... + def stopMonitoring(self, monitor: QGeoAreaMonitorInfo) -> bool: ... + def startMonitoring(self, monitor: QGeoAreaMonitorInfo) -> bool: ... + def supportedAreaMonitorFeatures(self) -> 'QGeoAreaMonitorSource.AreaMonitorFeatures': ... + @typing.overload + def error(self) -> 'QGeoAreaMonitorSource.Error': ... + @typing.overload + def error(self, error: 'QGeoAreaMonitorSource.Error') -> None: ... + def sourceName(self) -> str: ... + def positionInfoSource(self) -> 'QGeoPositionInfoSource': ... + def setPositionInfoSource(self, source: 'QGeoPositionInfoSource') -> None: ... + @staticmethod + def availableSources() -> typing.List[str]: ... + @staticmethod + def createSource(sourceName: str, parent: QtCore.QObject) -> 'QGeoAreaMonitorSource': ... + @staticmethod + def createDefaultSource(parent: QtCore.QObject) -> 'QGeoAreaMonitorSource': ... + + +class QGeoShape(sip.wrapper): + + class ShapeType(int): ... + UnknownType = ... # type: 'QGeoShape.ShapeType' + RectangleType = ... # type: 'QGeoShape.ShapeType' + CircleType = ... # type: 'QGeoShape.ShapeType' + PathType = ... # type: 'QGeoShape.ShapeType' + PolygonType = ... # type: 'QGeoShape.ShapeType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoShape') -> None: ... + + def boundingGeoRectangle(self) -> 'QGeoRectangle': ... + def toString(self) -> str: ... + def center(self) -> 'QGeoCoordinate': ... + def extendShape(self, coordinate: 'QGeoCoordinate') -> None: ... + def contains(self, coordinate: 'QGeoCoordinate') -> bool: ... + def isEmpty(self) -> bool: ... + def isValid(self) -> bool: ... + def type(self) -> 'QGeoShape.ShapeType': ... + + +class QGeoCircle(QGeoShape): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, center: 'QGeoCoordinate', radius: float = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoCircle') -> None: ... + @typing.overload + def __init__(self, other: QGeoShape) -> None: ... + + def extendCircle(self, coordinate: 'QGeoCoordinate') -> None: ... + def toString(self) -> str: ... + def translated(self, degreesLatitude: float, degreesLongitude: float) -> 'QGeoCircle': ... + def translate(self, degreesLatitude: float, degreesLongitude: float) -> None: ... + def radius(self) -> float: ... + def setRadius(self, radius: float) -> None: ... + def center(self) -> 'QGeoCoordinate': ... + def setCenter(self, center: 'QGeoCoordinate') -> None: ... + + +class QGeoCoordinate(sip.wrapper): + + class CoordinateFormat(int): ... + Degrees = ... # type: 'QGeoCoordinate.CoordinateFormat' + DegreesWithHemisphere = ... # type: 'QGeoCoordinate.CoordinateFormat' + DegreesMinutes = ... # type: 'QGeoCoordinate.CoordinateFormat' + DegreesMinutesWithHemisphere = ... # type: 'QGeoCoordinate.CoordinateFormat' + DegreesMinutesSeconds = ... # type: 'QGeoCoordinate.CoordinateFormat' + DegreesMinutesSecondsWithHemisphere = ... # type: 'QGeoCoordinate.CoordinateFormat' + + class CoordinateType(int): ... + InvalidCoordinate = ... # type: 'QGeoCoordinate.CoordinateType' + Coordinate2D = ... # type: 'QGeoCoordinate.CoordinateType' + Coordinate3D = ... # type: 'QGeoCoordinate.CoordinateType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, latitude: float, longitude: float) -> None: ... + @typing.overload + def __init__(self, latitude: float, longitude: float, altitude: float) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoCoordinate') -> None: ... + + def __hash__(self) -> int: ... + def toString(self, format: 'QGeoCoordinate.CoordinateFormat' = ...) -> str: ... + def atDistanceAndAzimuth(self, distance: float, azimuth: float, distanceUp: float = ...) -> 'QGeoCoordinate': ... + def azimuthTo(self, other: 'QGeoCoordinate') -> float: ... + def distanceTo(self, other: 'QGeoCoordinate') -> float: ... + def altitude(self) -> float: ... + def setAltitude(self, altitude: float) -> None: ... + def longitude(self) -> float: ... + def setLongitude(self, longitude: float) -> None: ... + def latitude(self) -> float: ... + def setLatitude(self, latitude: float) -> None: ... + def type(self) -> 'QGeoCoordinate.CoordinateType': ... + def isValid(self) -> bool: ... + + +class QGeoLocation(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoLocation') -> None: ... + + def setExtendedAttributes(self, data: typing.Dict[str, typing.Any]) -> None: ... + def extendedAttributes(self) -> typing.Dict[str, typing.Any]: ... + def isEmpty(self) -> bool: ... + def setBoundingBox(self, box: 'QGeoRectangle') -> None: ... + def boundingBox(self) -> 'QGeoRectangle': ... + def setCoordinate(self, position: QGeoCoordinate) -> None: ... + def coordinate(self) -> QGeoCoordinate: ... + def setAddress(self, address: QGeoAddress) -> None: ... + def address(self) -> QGeoAddress: ... + + +class QGeoPath(QGeoShape): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, path: typing.Iterable[QGeoCoordinate], width: float = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoPath') -> None: ... + @typing.overload + def __init__(self, other: QGeoShape) -> None: ... + + def clearPath(self) -> None: ... + def size(self) -> int: ... + def toString(self) -> str: ... + @typing.overload + def removeCoordinate(self, coordinate: QGeoCoordinate) -> None: ... + @typing.overload + def removeCoordinate(self, index: int) -> None: ... + def containsCoordinate(self, coordinate: QGeoCoordinate) -> bool: ... + def coordinateAt(self, index: int) -> QGeoCoordinate: ... + def replaceCoordinate(self, index: int, coordinate: QGeoCoordinate) -> None: ... + def insertCoordinate(self, index: int, coordinate: QGeoCoordinate) -> None: ... + def addCoordinate(self, coordinate: QGeoCoordinate) -> None: ... + def length(self, indexFrom: int = ..., indexTo: int = ...) -> float: ... + def translated(self, degreesLatitude: float, degreesLongitude: float) -> 'QGeoPath': ... + def translate(self, degreesLatitude: float, degreesLongitude: float) -> None: ... + def width(self) -> float: ... + def setWidth(self, width: float) -> None: ... + def path(self) -> typing.List[QGeoCoordinate]: ... + def setPath(self, path: typing.Iterable[QGeoCoordinate]) -> None: ... + + +class QGeoPolygon(QGeoShape): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, path: typing.Iterable[QGeoCoordinate]) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoPolygon') -> None: ... + @typing.overload + def __init__(self, other: QGeoShape) -> None: ... + + def perimeter(self) -> typing.List[typing.Any]: ... + def setPerimeter(self, path: typing.Iterable[typing.Any]) -> None: ... + def holesCount(self) -> int: ... + def removeHole(self, index: int) -> None: ... + def holePath(self, index: int) -> typing.List[QGeoCoordinate]: ... + def hole(self, index: int) -> typing.List[typing.Any]: ... + @typing.overload + def addHole(self, holePath: typing.Iterable[QGeoCoordinate]) -> None: ... + @typing.overload + def addHole(self, holePath: typing.Any) -> None: ... + def toString(self) -> str: ... + @typing.overload + def removeCoordinate(self, coordinate: QGeoCoordinate) -> None: ... + @typing.overload + def removeCoordinate(self, index: int) -> None: ... + def containsCoordinate(self, coordinate: QGeoCoordinate) -> bool: ... + def coordinateAt(self, index: int) -> QGeoCoordinate: ... + def replaceCoordinate(self, index: int, coordinate: QGeoCoordinate) -> None: ... + def insertCoordinate(self, index: int, coordinate: QGeoCoordinate) -> None: ... + def addCoordinate(self, coordinate: QGeoCoordinate) -> None: ... + def size(self) -> int: ... + def length(self, indexFrom: int = ..., indexTo: int = ...) -> float: ... + def translated(self, degreesLatitude: float, degreesLongitude: float) -> 'QGeoPolygon': ... + def translate(self, degreesLatitude: float, degreesLongitude: float) -> None: ... + def path(self) -> typing.List[QGeoCoordinate]: ... + def setPath(self, path: typing.Iterable[QGeoCoordinate]) -> None: ... + + +class QGeoPositionInfo(sip.wrapper): + + class Attribute(int): ... + Direction = ... # type: 'QGeoPositionInfo.Attribute' + GroundSpeed = ... # type: 'QGeoPositionInfo.Attribute' + VerticalSpeed = ... # type: 'QGeoPositionInfo.Attribute' + MagneticVariation = ... # type: 'QGeoPositionInfo.Attribute' + HorizontalAccuracy = ... # type: 'QGeoPositionInfo.Attribute' + VerticalAccuracy = ... # type: 'QGeoPositionInfo.Attribute' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, coordinate: QGeoCoordinate, updateTime: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoPositionInfo') -> None: ... + + def hasAttribute(self, attribute: 'QGeoPositionInfo.Attribute') -> bool: ... + def removeAttribute(self, attribute: 'QGeoPositionInfo.Attribute') -> None: ... + def attribute(self, attribute: 'QGeoPositionInfo.Attribute') -> float: ... + def setAttribute(self, attribute: 'QGeoPositionInfo.Attribute', value: float) -> None: ... + def coordinate(self) -> QGeoCoordinate: ... + def setCoordinate(self, coordinate: QGeoCoordinate) -> None: ... + def timestamp(self) -> QtCore.QDateTime: ... + def setTimestamp(self, timestamp: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ... + def isValid(self) -> bool: ... + + +class QGeoPositionInfoSource(QtCore.QObject): + + class PositioningMethod(int): ... + NoPositioningMethods = ... # type: 'QGeoPositionInfoSource.PositioningMethod' + SatellitePositioningMethods = ... # type: 'QGeoPositionInfoSource.PositioningMethod' + NonSatellitePositioningMethods = ... # type: 'QGeoPositionInfoSource.PositioningMethod' + AllPositioningMethods = ... # type: 'QGeoPositionInfoSource.PositioningMethod' + + class Error(int): ... + AccessError = ... # type: 'QGeoPositionInfoSource.Error' + ClosedError = ... # type: 'QGeoPositionInfoSource.Error' + UnknownSourceError = ... # type: 'QGeoPositionInfoSource.Error' + NoError = ... # type: 'QGeoPositionInfoSource.Error' + + class PositioningMethods(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoPositionInfoSource.PositioningMethods', 'QGeoPositionInfoSource.PositioningMethod']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoPositionInfoSource.PositioningMethods') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoPositionInfoSource.PositioningMethods': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + def __init__(self, parent: QtCore.QObject) -> None: ... + + def backendProperty(self, name: str) -> typing.Any: ... + def setBackendProperty(self, name: str, value: typing.Any) -> bool: ... + def supportedPositioningMethodsChanged(self) -> None: ... + def updateTimeout(self) -> None: ... + def positionUpdated(self, update: QGeoPositionInfo) -> None: ... + def requestUpdate(self, timeout: int = ...) -> None: ... + def stopUpdates(self) -> None: ... + def startUpdates(self) -> None: ... + @typing.overload + def error(self) -> 'QGeoPositionInfoSource.Error': ... + @typing.overload + def error(self, a0: 'QGeoPositionInfoSource.Error') -> None: ... + @staticmethod + def availableSources() -> typing.List[str]: ... + @typing.overload + @staticmethod + def createSource(sourceName: str, parent: QtCore.QObject) -> 'QGeoPositionInfoSource': ... + @typing.overload + @staticmethod + def createSource(sourceName: str, parameters: typing.Dict[str, typing.Any], parent: QtCore.QObject) -> 'QGeoPositionInfoSource': ... + @typing.overload + @staticmethod + def createDefaultSource(parent: QtCore.QObject) -> 'QGeoPositionInfoSource': ... + @typing.overload + @staticmethod + def createDefaultSource(parameters: typing.Dict[str, typing.Any], parent: QtCore.QObject) -> 'QGeoPositionInfoSource': ... + def sourceName(self) -> str: ... + def minimumUpdateInterval(self) -> int: ... + def supportedPositioningMethods(self) -> 'QGeoPositionInfoSource.PositioningMethods': ... + def lastKnownPosition(self, fromSatellitePositioningMethodsOnly: bool = ...) -> QGeoPositionInfo: ... + def preferredPositioningMethods(self) -> 'QGeoPositionInfoSource.PositioningMethods': ... + def setPreferredPositioningMethods(self, methods: typing.Union['QGeoPositionInfoSource.PositioningMethods', 'QGeoPositionInfoSource.PositioningMethod']) -> None: ... + def updateInterval(self) -> int: ... + def setUpdateInterval(self, msec: int) -> None: ... + + +class QGeoRectangle(QGeoShape): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, center: QGeoCoordinate, degreesWidth: float, degreesHeight: float) -> None: ... + @typing.overload + def __init__(self, topLeft: QGeoCoordinate, bottomRight: QGeoCoordinate) -> None: ... + @typing.overload + def __init__(self, coordinates: typing.Iterable[QGeoCoordinate]) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoRectangle') -> None: ... + @typing.overload + def __init__(self, other: QGeoShape) -> None: ... + + def extendRectangle(self, coordinate: QGeoCoordinate) -> None: ... + def toString(self) -> str: ... + def united(self, rectangle: 'QGeoRectangle') -> 'QGeoRectangle': ... + def translated(self, degreesLatitude: float, degreesLongitude: float) -> 'QGeoRectangle': ... + def translate(self, degreesLatitude: float, degreesLongitude: float) -> None: ... + def intersects(self, rectangle: 'QGeoRectangle') -> bool: ... + def contains(self, rectangle: 'QGeoRectangle') -> bool: ... + def height(self) -> float: ... + def setHeight(self, degreesHeight: float) -> None: ... + def width(self) -> float: ... + def setWidth(self, degreesWidth: float) -> None: ... + def center(self) -> QGeoCoordinate: ... + def setCenter(self, center: QGeoCoordinate) -> None: ... + def bottomRight(self) -> QGeoCoordinate: ... + def setBottomRight(self, bottomRight: QGeoCoordinate) -> None: ... + def bottomLeft(self) -> QGeoCoordinate: ... + def setBottomLeft(self, bottomLeft: QGeoCoordinate) -> None: ... + def topRight(self) -> QGeoCoordinate: ... + def setTopRight(self, topRight: QGeoCoordinate) -> None: ... + def topLeft(self) -> QGeoCoordinate: ... + def setTopLeft(self, topLeft: QGeoCoordinate) -> None: ... + + +class QGeoSatelliteInfo(sip.wrapper): + + class SatelliteSystem(int): ... + Undefined = ... # type: 'QGeoSatelliteInfo.SatelliteSystem' + GPS = ... # type: 'QGeoSatelliteInfo.SatelliteSystem' + GLONASS = ... # type: 'QGeoSatelliteInfo.SatelliteSystem' + + class Attribute(int): ... + Elevation = ... # type: 'QGeoSatelliteInfo.Attribute' + Azimuth = ... # type: 'QGeoSatelliteInfo.Attribute' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoSatelliteInfo') -> None: ... + + def hasAttribute(self, attribute: 'QGeoSatelliteInfo.Attribute') -> bool: ... + def removeAttribute(self, attribute: 'QGeoSatelliteInfo.Attribute') -> None: ... + def attribute(self, attribute: 'QGeoSatelliteInfo.Attribute') -> float: ... + def setAttribute(self, attribute: 'QGeoSatelliteInfo.Attribute', value: float) -> None: ... + def signalStrength(self) -> int: ... + def setSignalStrength(self, signalStrength: int) -> None: ... + def satelliteIdentifier(self) -> int: ... + def setSatelliteIdentifier(self, satId: int) -> None: ... + def satelliteSystem(self) -> 'QGeoSatelliteInfo.SatelliteSystem': ... + def setSatelliteSystem(self, system: 'QGeoSatelliteInfo.SatelliteSystem') -> None: ... + + +class QGeoSatelliteInfoSource(QtCore.QObject): + + class Error(int): ... + AccessError = ... # type: 'QGeoSatelliteInfoSource.Error' + ClosedError = ... # type: 'QGeoSatelliteInfoSource.Error' + NoError = ... # type: 'QGeoSatelliteInfoSource.Error' + UnknownSourceError = ... # type: 'QGeoSatelliteInfoSource.Error' + + def __init__(self, parent: QtCore.QObject) -> None: ... + + def requestTimeout(self) -> None: ... + def satellitesInUseUpdated(self, satellites: typing.Iterable[QGeoSatelliteInfo]) -> None: ... + def satellitesInViewUpdated(self, satellites: typing.Iterable[QGeoSatelliteInfo]) -> None: ... + def requestUpdate(self, timeout: int = ...) -> None: ... + def stopUpdates(self) -> None: ... + def startUpdates(self) -> None: ... + @typing.overload + def error(self) -> 'QGeoSatelliteInfoSource.Error': ... + @typing.overload + def error(self, a0: 'QGeoSatelliteInfoSource.Error') -> None: ... + def minimumUpdateInterval(self) -> int: ... + def updateInterval(self) -> int: ... + def setUpdateInterval(self, msec: int) -> None: ... + def sourceName(self) -> str: ... + @staticmethod + def availableSources() -> typing.List[str]: ... + @typing.overload + @staticmethod + def createSource(sourceName: str, parent: QtCore.QObject) -> 'QGeoSatelliteInfoSource': ... + @typing.overload + @staticmethod + def createSource(sourceName: str, parameters: typing.Dict[str, typing.Any], parent: QtCore.QObject) -> 'QGeoSatelliteInfoSource': ... + @typing.overload + @staticmethod + def createDefaultSource(parent: QtCore.QObject) -> 'QGeoSatelliteInfoSource': ... + @typing.overload + @staticmethod + def createDefaultSource(parameters: typing.Dict[str, typing.Any], parent: QtCore.QObject) -> 'QGeoSatelliteInfoSource': ... + + +class QNmeaPositionInfoSource(QGeoPositionInfoSource): + + class UpdateMode(int): ... + RealTimeMode = ... # type: 'QNmeaPositionInfoSource.UpdateMode' + SimulationMode = ... # type: 'QNmeaPositionInfoSource.UpdateMode' + + def __init__(self, updateMode: 'QNmeaPositionInfoSource.UpdateMode', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def userEquivalentRangeError(self) -> float: ... + def setUserEquivalentRangeError(self, uere: float) -> None: ... + def parsePosInfoFromNmeaData(self, data: str, size: int, posInfo: QGeoPositionInfo) -> typing.Tuple[bool, bool]: ... + def requestUpdate(self, timeout: int = ...) -> None: ... + def stopUpdates(self) -> None: ... + def startUpdates(self) -> None: ... + def error(self) -> QGeoPositionInfoSource.Error: ... + def minimumUpdateInterval(self) -> int: ... + def supportedPositioningMethods(self) -> QGeoPositionInfoSource.PositioningMethods: ... + def lastKnownPosition(self, fromSatellitePositioningMethodsOnly: bool = ...) -> QGeoPositionInfo: ... + def setUpdateInterval(self, msec: int) -> None: ... + def device(self) -> QtCore.QIODevice: ... + def setDevice(self, source: QtCore.QIODevice) -> None: ... + def updateMode(self) -> 'QNmeaPositionInfoSource.UpdateMode': ... diff --git a/PyQt5-stubs/QtPurchasing.pyi b/PyQt5-stubs/QtPurchasing.pyi new file mode 100644 index 00000000..9c3a8991 --- /dev/null +++ b/PyQt5-stubs/QtPurchasing.pyi @@ -0,0 +1,89 @@ +# The PEP 484 type hints stub file for the QtPurchasing module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQtPurchasing. +# +# 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 sip + +from PyQt5 import QtCore + +# 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] + + +class QInAppProduct(QtCore.QObject): + + class ProductType(int): ... + Consumable = ... # type: 'QInAppProduct.ProductType' + Unlockable = ... # type: 'QInAppProduct.ProductType' + + def purchase(self) -> None: ... + def description(self) -> str: ... + def title(self) -> str: ... + def price(self) -> str: ... + def productType(self) -> 'QInAppProduct.ProductType': ... + def identifier(self) -> str: ... + + +class QInAppStore(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def transactionReady(self, transaction: 'QInAppTransaction') -> None: ... + def productUnknown(self, productType: QInAppProduct.ProductType, identifier: str) -> None: ... + def productRegistered(self, product: QInAppProduct) -> None: ... + def setPlatformProperty(self, propertyName: str, value: str) -> None: ... + def registeredProduct(self, identifier: str) -> QInAppProduct: ... + def registerProduct(self, productType: QInAppProduct.ProductType, identifier: str) -> None: ... + def restorePurchases(self) -> None: ... + + +class QInAppTransaction(QtCore.QObject): + + class FailureReason(int): ... + NoFailure = ... # type: 'QInAppTransaction.FailureReason' + CanceledByUser = ... # type: 'QInAppTransaction.FailureReason' + ErrorOccurred = ... # type: 'QInAppTransaction.FailureReason' + + class TransactionStatus(int): ... + Unknown = ... # type: 'QInAppTransaction.TransactionStatus' + PurchaseApproved = ... # type: 'QInAppTransaction.TransactionStatus' + PurchaseFailed = ... # type: 'QInAppTransaction.TransactionStatus' + PurchaseRestored = ... # type: 'QInAppTransaction.TransactionStatus' + + def status(self) -> 'QInAppTransaction.TransactionStatus': ... + def platformProperty(self, propertyName: str) -> str: ... + def finalize(self) -> None: ... + def timestamp(self) -> QtCore.QDateTime: ... + def errorString(self) -> str: ... + def failureReason(self) -> 'QInAppTransaction.FailureReason': ... + def orderId(self) -> str: ... + def product(self) -> QInAppProduct: ... + + +PYQT_PURCHASING_VERSION = ... # type: int +PYQT_PURCHASING_VERSION_STR = ... # type: str +QTPURCHASING_VERSION = ... # type: int +QTPURCHASING_VERSION_STR = ... # type: str diff --git a/PyQt5-stubs/QtQml.pyi b/PyQt5-stubs/QtQml.pyi new file mode 100644 index 00000000..47093ce7 --- /dev/null +++ b/PyQt5-stubs/QtQml.pyi @@ -0,0 +1,653 @@ +# The PEP 484 type hints stub file for the QtQml module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2020 Riverbank Computing Limited +# +# 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 sip + +from PyQt5 import QtNetwork +from PyQt5 import QtCore + +# 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] + + +class QJSEngine(QtCore.QObject): + + class Extension(int): ... + TranslationExtension = ... # type: 'QJSEngine.Extension' + ConsoleExtension = ... # type: 'QJSEngine.Extension' + GarbageCollectionExtension = ... # type: 'QJSEngine.Extension' + AllExtensions = ... # type: 'QJSEngine.Extension' + + class Extensions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QJSEngine.Extensions', 'QJSEngine.Extension']) -> None: ... + @typing.overload + def __init__(self, a0: 'QJSEngine.Extensions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QJSEngine.Extensions': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, parent: QtCore.QObject) -> None: ... + + def isInterrupted(self) -> bool: ... + def setInterrupted(self, interrupted: bool) -> None: ... + @typing.overload + def throwError(self, message: str) -> None: ... + @typing.overload + def throwError(self, errorType: 'QJSValue.ErrorType', message: str = ...) -> None: ... + def newErrorObject(self, errorType: 'QJSValue.ErrorType', message: str = ...) -> 'QJSValue': ... + def importModule(self, fileName: str) -> 'QJSValue': ... + def newQMetaObject(self, metaObject: QtCore.QMetaObject) -> 'QJSValue': ... + def installExtensions(self, extensions: typing.Union['QJSEngine.Extensions', 'QJSEngine.Extension'], object: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str] = ...) -> None: ... + def installTranslatorFunctions(self, object: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str] = ...) -> None: ... + def collectGarbage(self) -> None: ... + def newQObject(self, object: QtCore.QObject) -> 'QJSValue': ... + def newArray(self, length: int = ...) -> 'QJSValue': ... + def newObject(self) -> 'QJSValue': ... + def evaluate(self, program: str, fileName: str = ..., lineNumber: int = ...) -> 'QJSValue': ... + def globalObject(self) -> 'QJSValue': ... + + +class QJSValue(sip.simplewrapper): + + class ErrorType(int): ... + GenericError = ... # type: 'QJSValue.ErrorType' + EvalError = ... # type: 'QJSValue.ErrorType' + RangeError = ... # type: 'QJSValue.ErrorType' + ReferenceError = ... # type: 'QJSValue.ErrorType' + SyntaxError = ... # type: 'QJSValue.ErrorType' + TypeError = ... # type: 'QJSValue.ErrorType' + URIError = ... # type: 'QJSValue.ErrorType' + + class SpecialValue(int): ... + NullValue = ... # type: 'QJSValue.SpecialValue' + UndefinedValue = ... # type: 'QJSValue.SpecialValue' + + @typing.overload + def __init__(self, value: 'QJSValue.SpecialValue' = ...) -> None: ... + @typing.overload + def __init__(self, other: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]) -> None: ... + + def errorType(self) -> 'QJSValue.ErrorType': ... + def callAsConstructor(self, args: typing.Iterable[typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]] = ...) -> 'QJSValue': ... + def callWithInstance(self, instance: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str], args: typing.Iterable[typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]] = ...) -> 'QJSValue': ... + def call(self, args: typing.Iterable[typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]] = ...) -> 'QJSValue': ... + def isCallable(self) -> bool: ... + def deleteProperty(self, name: str) -> bool: ... + def hasOwnProperty(self, name: str) -> bool: ... + def hasProperty(self, name: str) -> bool: ... + @typing.overload + def setProperty(self, name: str, value: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]) -> None: ... + @typing.overload + def setProperty(self, arrayIndex: int, value: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]) -> None: ... + @typing.overload + def property(self, name: str) -> 'QJSValue': ... + @typing.overload + def property(self, arrayIndex: int) -> 'QJSValue': ... + def setPrototype(self, prototype: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]) -> None: ... + def prototype(self) -> 'QJSValue': ... + def strictlyEquals(self, other: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]) -> bool: ... + def equals(self, other: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]) -> bool: ... + def toDateTime(self) -> QtCore.QDateTime: ... + def toQObject(self) -> QtCore.QObject: ... + def toVariant(self) -> typing.Any: ... + def toBool(self) -> bool: ... + def toUInt(self) -> int: ... + def toInt(self) -> int: ... + def toNumber(self) -> float: ... + def toString(self) -> str: ... + def isError(self) -> bool: ... + def isArray(self) -> bool: ... + def isRegExp(self) -> bool: ... + def isDate(self) -> bool: ... + def isObject(self) -> bool: ... + def isQObject(self) -> bool: ... + def isVariant(self) -> bool: ... + def isUndefined(self) -> bool: ... + def isString(self) -> bool: ... + def isNull(self) -> bool: ... + def isNumber(self) -> bool: ... + def isBool(self) -> bool: ... + + +class QJSValueIterator(sip.simplewrapper): + + def __init__(self, value: typing.Union[QJSValue, QJSValue.SpecialValue, bool, int, float, str]) -> None: ... + + def value(self) -> QJSValue: ... + def name(self) -> str: ... + def next(self) -> bool: ... + def hasNext(self) -> bool: ... + + +class QQmlAbstractUrlInterceptor(sip.simplewrapper): + + class DataType(int): ... + QmlFile = ... # type: 'QQmlAbstractUrlInterceptor.DataType' + JavaScriptFile = ... # type: 'QQmlAbstractUrlInterceptor.DataType' + QmldirFile = ... # type: 'QQmlAbstractUrlInterceptor.DataType' + UrlString = ... # type: 'QQmlAbstractUrlInterceptor.DataType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlAbstractUrlInterceptor') -> None: ... + + def intercept(self, path: QtCore.QUrl, type: 'QQmlAbstractUrlInterceptor.DataType') -> QtCore.QUrl: ... + + +class QQmlEngine(QJSEngine): + + class ObjectOwnership(int): ... + CppOwnership = ... # type: 'QQmlEngine.ObjectOwnership' + JavaScriptOwnership = ... # type: 'QQmlEngine.ObjectOwnership' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def singletonInstance(self, qmlTypeId: int) -> QtCore.QObject: ... + def retranslate(self) -> None: ... + def offlineStorageDatabaseFilePath(self, databaseName: str) -> str: ... + def exit(self, retCode: int) -> None: ... + def warnings(self, warnings: typing.Iterable['QQmlError']) -> None: ... + def quit(self) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + @staticmethod + def objectOwnership(a0: QtCore.QObject) -> 'QQmlEngine.ObjectOwnership': ... + @staticmethod + def setObjectOwnership(a0: QtCore.QObject, a1: 'QQmlEngine.ObjectOwnership') -> None: ... + @staticmethod + def setContextForObject(a0: QtCore.QObject, a1: 'QQmlContext') -> None: ... + @staticmethod + def contextForObject(a0: QtCore.QObject) -> 'QQmlContext': ... + def setOutputWarningsToStandardError(self, a0: bool) -> None: ... + def outputWarningsToStandardError(self) -> bool: ... + def setBaseUrl(self, a0: QtCore.QUrl) -> None: ... + def baseUrl(self) -> QtCore.QUrl: ... + def offlineStoragePath(self) -> str: ... + def setOfflineStoragePath(self, dir: str) -> None: ... + def incubationController(self) -> 'QQmlIncubationController': ... + def setIncubationController(self, a0: 'QQmlIncubationController') -> None: ... + def removeImageProvider(self, id: str) -> None: ... + def imageProvider(self, id: str) -> 'QQmlImageProviderBase': ... + def addImageProvider(self, id: str, a1: 'QQmlImageProviderBase') -> None: ... + def networkAccessManager(self) -> QtNetwork.QNetworkAccessManager: ... + def networkAccessManagerFactory(self) -> 'QQmlNetworkAccessManagerFactory': ... + def setNetworkAccessManagerFactory(self, a0: 'QQmlNetworkAccessManagerFactory') -> None: ... + def importPlugin(self, filePath: str, uri: str, errors: typing.Iterable['QQmlError']) -> bool: ... + def addNamedBundle(self, name: str, fileName: str) -> bool: ... + def addPluginPath(self, dir: str) -> None: ... + def setPluginPathList(self, paths: typing.Iterable[str]) -> None: ... + def pluginPathList(self) -> typing.List[str]: ... + def addImportPath(self, dir: str) -> None: ... + def setImportPathList(self, paths: typing.Iterable[str]) -> None: ... + def importPathList(self) -> typing.List[str]: ... + def trimComponentCache(self) -> None: ... + def clearComponentCache(self) -> None: ... + def rootContext(self) -> 'QQmlContext': ... + + +class QQmlApplicationEngine(QQmlEngine): + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, url: QtCore.QUrl, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, filePath: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def objectCreated(self, object: QtCore.QObject, url: QtCore.QUrl) -> None: ... + def setInitialProperties(self, initialProperties: typing.Dict[str, typing.Any]) -> None: ... + def loadData(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], url: QtCore.QUrl = ...) -> None: ... + @typing.overload + def load(self, url: QtCore.QUrl) -> None: ... + @typing.overload + def load(self, filePath: str) -> None: ... + def rootObjects(self) -> typing.List[QtCore.QObject]: ... + + +class QQmlComponent(QtCore.QObject): + + class Status(int): ... + Null = ... # type: 'QQmlComponent.Status' + Ready = ... # type: 'QQmlComponent.Status' + Loading = ... # type: 'QQmlComponent.Status' + Error = ... # type: 'QQmlComponent.Status' + + class CompilationMode(int): ... + PreferSynchronous = ... # type: 'QQmlComponent.CompilationMode' + Asynchronous = ... # type: 'QQmlComponent.CompilationMode' + + @typing.overload + def __init__(self, a0: QQmlEngine, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, a0: QQmlEngine, fileName: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, a0: QQmlEngine, fileName: str, mode: 'QQmlComponent.CompilationMode', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, a0: QQmlEngine, url: QtCore.QUrl, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, a0: QQmlEngine, url: QtCore.QUrl, mode: 'QQmlComponent.CompilationMode', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setInitialProperties(self, component: QtCore.QObject, properties: typing.Dict[str, typing.Any]) -> None: ... + def engine(self) -> QQmlEngine: ... + def progressChanged(self, a0: float) -> None: ... + def statusChanged(self, a0: 'QQmlComponent.Status') -> None: ... + def setData(self, a0: typing.Union[QtCore.QByteArray, bytes, bytearray], baseUrl: QtCore.QUrl) -> None: ... + @typing.overload + def loadUrl(self, url: QtCore.QUrl) -> None: ... + @typing.overload + def loadUrl(self, url: QtCore.QUrl, mode: 'QQmlComponent.CompilationMode') -> None: ... + def creationContext(self) -> 'QQmlContext': ... + def completeCreate(self) -> None: ... + def beginCreate(self, a0: 'QQmlContext') -> QtCore.QObject: ... + def createWithInitialProperties(self, initialProperties: typing.Dict[str, typing.Any], context: typing.Optional['QQmlContext'] = ...) -> QtCore.QObject: ... + @typing.overload + def create(self, context: typing.Optional['QQmlContext'] = ...) -> QtCore.QObject: ... + @typing.overload + def create(self, a0: 'QQmlIncubator', context: typing.Optional['QQmlContext'] = ..., forContext: typing.Optional['QQmlContext'] = ...) -> None: ... + def url(self) -> QtCore.QUrl: ... + def progress(self) -> float: ... + def errors(self) -> typing.List['QQmlError']: ... + def isLoading(self) -> bool: ... + def isError(self) -> bool: ... + def isReady(self) -> bool: ... + def isNull(self) -> bool: ... + def status(self) -> 'QQmlComponent.Status': ... + + +class QQmlContext(QtCore.QObject): + + class PropertyPair(sip.simplewrapper): + + name = ... # type: str + value = ... # type: typing.Any + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlContext.PropertyPair') -> None: ... + + @typing.overload + def __init__(self, engine: QQmlEngine, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, parentContext: 'QQmlContext', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setContextProperties(self, properties: typing.Iterable['QQmlContext.PropertyPair']) -> None: ... + def baseUrl(self) -> QtCore.QUrl: ... + def setBaseUrl(self, a0: QtCore.QUrl) -> None: ... + def resolvedUrl(self, a0: QtCore.QUrl) -> QtCore.QUrl: ... + def nameForObject(self, a0: QtCore.QObject) -> str: ... + @typing.overload + def setContextProperty(self, a0: str, a1: QtCore.QObject) -> None: ... + @typing.overload + def setContextProperty(self, a0: str, a1: typing.Any) -> None: ... + def contextProperty(self, a0: str) -> typing.Any: ... + def setContextObject(self, a0: QtCore.QObject) -> None: ... + def contextObject(self) -> QtCore.QObject: ... + def parentContext(self) -> 'QQmlContext': ... + def engine(self) -> QQmlEngine: ... + def isValid(self) -> bool: ... + + +class QQmlImageProviderBase(sip.wrapper): + + class Flag(int): ... + ForceAsynchronousImageLoading = ... # type: 'QQmlImageProviderBase.Flag' + + class ImageType(int): ... + Image = ... # type: 'QQmlImageProviderBase.ImageType' + Pixmap = ... # type: 'QQmlImageProviderBase.ImageType' + Texture = ... # type: 'QQmlImageProviderBase.ImageType' + ImageResponse = ... # type: 'QQmlImageProviderBase.ImageType' + + class Flags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QQmlImageProviderBase.Flags', 'QQmlImageProviderBase.Flag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlImageProviderBase.Flags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QQmlImageProviderBase.Flags': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + def __init__(self, a0: 'QQmlImageProviderBase') -> None: ... + + def flags(self) -> 'QQmlImageProviderBase.Flags': ... + def imageType(self) -> 'QQmlImageProviderBase.ImageType': ... + + +class QQmlError(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlError') -> None: ... + + def setMessageType(self, messageType: QtCore.QtMsgType) -> None: ... + def messageType(self) -> QtCore.QtMsgType: ... + def setObject(self, a0: QtCore.QObject) -> None: ... + def object(self) -> QtCore.QObject: ... + def toString(self) -> str: ... + def setColumn(self, a0: int) -> None: ... + def column(self) -> int: ... + def setLine(self, a0: int) -> None: ... + def line(self) -> int: ... + def setDescription(self, a0: str) -> None: ... + def description(self) -> str: ... + def setUrl(self, a0: QtCore.QUrl) -> None: ... + def url(self) -> QtCore.QUrl: ... + def isValid(self) -> bool: ... + + +class QQmlExpression(QtCore.QObject): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: QQmlContext, a1: QtCore.QObject, a2: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlScriptString', context: typing.Optional[QQmlContext] = ..., scope: typing.Optional[QtCore.QObject] = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def valueChanged(self) -> None: ... + def evaluate(self) -> typing.Tuple[typing.Any, bool]: ... + def error(self) -> QQmlError: ... + def clearError(self) -> None: ... + def hasError(self) -> bool: ... + def scopeObject(self) -> QtCore.QObject: ... + def setSourceLocation(self, fileName: str, line: int, column: int = ...) -> None: ... + def columnNumber(self) -> int: ... + def lineNumber(self) -> int: ... + def sourceFile(self) -> str: ... + def setNotifyOnValueChanged(self, a0: bool) -> None: ... + def notifyOnValueChanged(self) -> bool: ... + def setExpression(self, a0: str) -> None: ... + def expression(self) -> str: ... + def context(self) -> QQmlContext: ... + def engine(self) -> QQmlEngine: ... + + +class QQmlExtensionPlugin(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def baseUrl(self) -> QtCore.QUrl: ... + def initializeEngine(self, engine: QQmlEngine, uri: str) -> None: ... + def registerTypes(self, uri: str) -> None: ... + + +class QQmlFileSelector(QtCore.QObject): + + def __init__(self, engine: QQmlEngine, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def selector(self) -> QtCore.QFileSelector: ... + @staticmethod + def get(a0: QQmlEngine) -> 'QQmlFileSelector': ... + def setExtraSelectors(self, strings: typing.Iterable[str]) -> None: ... + def setSelector(self, selector: QtCore.QFileSelector) -> None: ... + + +class QQmlIncubator(sip.simplewrapper): + + class Status(int): ... + Null = ... # type: 'QQmlIncubator.Status' + Ready = ... # type: 'QQmlIncubator.Status' + Loading = ... # type: 'QQmlIncubator.Status' + Error = ... # type: 'QQmlIncubator.Status' + + class IncubationMode(int): ... + Asynchronous = ... # type: 'QQmlIncubator.IncubationMode' + AsynchronousIfNested = ... # type: 'QQmlIncubator.IncubationMode' + Synchronous = ... # type: 'QQmlIncubator.IncubationMode' + + def __init__(self, mode: 'QQmlIncubator.IncubationMode' = ...) -> None: ... + + def setInitialState(self, a0: QtCore.QObject) -> None: ... + def statusChanged(self, a0: 'QQmlIncubator.Status') -> None: ... + def object(self) -> QtCore.QObject: ... + def status(self) -> 'QQmlIncubator.Status': ... + def incubationMode(self) -> 'QQmlIncubator.IncubationMode': ... + def errors(self) -> typing.List[QQmlError]: ... + def isLoading(self) -> bool: ... + def isError(self) -> bool: ... + def isReady(self) -> bool: ... + def isNull(self) -> bool: ... + def forceCompletion(self) -> None: ... + def clear(self) -> None: ... + + +class QQmlIncubationController(sip.simplewrapper): + + def __init__(self) -> None: ... + + def incubatingObjectCountChanged(self, a0: int) -> None: ... + def incubateFor(self, msecs: int) -> None: ... + def incubatingObjectCount(self) -> int: ... + def engine(self) -> QQmlEngine: ... + + +class QQmlListReference(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.QObject, property: str, engine: typing.Optional[QQmlEngine] = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlListReference') -> None: ... + + def count(self) -> int: ... + def clear(self) -> bool: ... + def at(self, a0: int) -> QtCore.QObject: ... + def append(self, a0: QtCore.QObject) -> bool: ... + def isReadable(self) -> bool: ... + def isManipulable(self) -> bool: ... + def canCount(self) -> bool: ... + def canClear(self) -> bool: ... + def canAt(self) -> bool: ... + def canAppend(self) -> bool: ... + def listElementType(self) -> QtCore.QMetaObject: ... + def object(self) -> QtCore.QObject: ... + def isValid(self) -> bool: ... + + +class QQmlNetworkAccessManagerFactory(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlNetworkAccessManagerFactory') -> None: ... + + def create(self, parent: QtCore.QObject) -> QtNetwork.QNetworkAccessManager: ... + + +class QQmlParserStatus(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlParserStatus') -> None: ... + + def componentComplete(self) -> None: ... + def classBegin(self) -> None: ... + + +class QQmlProperty(sip.simplewrapper): + + class Type(int): ... + Invalid = ... # type: 'QQmlProperty.Type' + Property = ... # type: 'QQmlProperty.Type' + SignalProperty = ... # type: 'QQmlProperty.Type' + + class PropertyTypeCategory(int): ... + InvalidCategory = ... # type: 'QQmlProperty.PropertyTypeCategory' + List = ... # type: 'QQmlProperty.PropertyTypeCategory' + Object = ... # type: 'QQmlProperty.PropertyTypeCategory' + Normal = ... # type: 'QQmlProperty.PropertyTypeCategory' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.QObject) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.QObject, a1: QQmlContext) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.QObject, a1: QQmlEngine) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.QObject, a1: str) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.QObject, a1: str, a2: QQmlContext) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.QObject, a1: str, a2: QQmlEngine) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlProperty') -> None: ... + + def method(self) -> QtCore.QMetaMethod: ... + def property(self) -> QtCore.QMetaProperty: ... + def index(self) -> int: ... + def object(self) -> QtCore.QObject: ... + def isResettable(self) -> bool: ... + def isDesignable(self) -> bool: ... + def isWritable(self) -> bool: ... + @typing.overload + def connectNotifySignal(self, slot: PYQT_SLOT) -> bool: ... + @typing.overload + def connectNotifySignal(self, dest: QtCore.QObject, method: int) -> bool: ... + def needsNotifySignal(self) -> bool: ... + def hasNotifySignal(self) -> bool: ... + def reset(self) -> bool: ... + @typing.overload + def write(self, a0: typing.Any) -> bool: ... + @typing.overload + @staticmethod + def write(a0: QtCore.QObject, a1: str, a2: typing.Any) -> bool: ... + @typing.overload + @staticmethod + def write(a0: QtCore.QObject, a1: str, a2: typing.Any, a3: QQmlContext) -> bool: ... + @typing.overload + @staticmethod + def write(a0: QtCore.QObject, a1: str, a2: typing.Any, a3: QQmlEngine) -> bool: ... + @typing.overload + def read(self) -> typing.Any: ... + @typing.overload + @staticmethod + def read(a0: QtCore.QObject, a1: str) -> typing.Any: ... + @typing.overload + @staticmethod + def read(a0: QtCore.QObject, a1: str, a2: QQmlContext) -> typing.Any: ... + @typing.overload + @staticmethod + def read(a0: QtCore.QObject, a1: str, a2: QQmlEngine) -> typing.Any: ... + def name(self) -> str: ... + def propertyTypeName(self) -> str: ... + def propertyTypeCategory(self) -> 'QQmlProperty.PropertyTypeCategory': ... + def propertyType(self) -> int: ... + def isSignalProperty(self) -> bool: ... + def isProperty(self) -> bool: ... + def isValid(self) -> bool: ... + def type(self) -> 'QQmlProperty.Type': ... + def __hash__(self) -> int: ... + + +class QQmlPropertyMap(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def updateValue(self, key: str, input: typing.Any) -> typing.Any: ... + def valueChanged(self, key: str, value: typing.Any) -> None: ... + def __getitem__(self, key: str) -> typing.Any: ... + def contains(self, key: str) -> bool: ... + def isEmpty(self) -> bool: ... + def __len__(self) -> int: ... + def size(self) -> int: ... + def count(self) -> int: ... + def keys(self) -> typing.List[str]: ... + def clear(self, key: str) -> None: ... + def insert(self, key: str, value: typing.Any) -> None: ... + def value(self, key: str) -> typing.Any: ... + + +class QQmlPropertyValueSource(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlPropertyValueSource') -> None: ... + + def setTarget(self, a0: QQmlProperty) -> None: ... + + +class QQmlScriptString(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlScriptString') -> None: ... + + def booleanLiteral(self) -> typing.Tuple[bool, bool]: ... + def numberLiteral(self) -> typing.Tuple[float, bool]: ... + def stringLiteral(self) -> str: ... + def isNullLiteral(self) -> bool: ... + def isUndefinedLiteral(self) -> bool: ... + def isEmpty(self) -> bool: ... + + +@typing.overload +def qmlRegisterUncreatableType(a0: type, uri: str, major: int, minor: int, qmlName: str, reason: str) -> int: ... +@typing.overload +def qmlRegisterUncreatableType(a0: type, revision: int, uri: str, major: int, minor: int, qmlName: str, reason: str) -> int: ... +@typing.overload +def qmlRegisterType(url: QtCore.QUrl, uri: str, major: int, minor: int, qmlName: str) -> int: ... +@typing.overload +def qmlRegisterType(a0: type, attachedProperties: type = ...) -> int: ... +@typing.overload +def qmlRegisterType(a0: type, uri: str, major: int, minor: int, qmlName: str, attachedProperties: type = ...) -> int: ... +@typing.overload +def qmlRegisterType(a0: type, revision: int, uri: str, major: int, minor: int, qmlName: str, attachedProperties: type = ...) -> int: ... +@typing.overload +def qmlRegisterSingletonType(url: QtCore.QUrl, uri: str, major: int, minor: int, qmlName: str) -> int: ... +@typing.overload +def qmlRegisterSingletonType(a0: type, uri: str, major: int, minor: int, typeName: str, factory: typing.Callable[[QQmlEngine, QJSEngine], typing.Any]) -> int: ... +def qmlRegisterRevision(a0: type, revision: int, uri: str, major: int, minor: int, attachedProperties: type = ...) -> int: ... +def qmlAttachedPropertiesObject(a0: type, object: QtCore.QObject, create: bool = ...) -> QtCore.QObject: ... +def qjsEngine(a0: QtCore.QObject) -> QJSEngine: ... +def qmlTypeId(uri: str, versionMajor: int, versionMinor: int, qmlName: str) -> int: ... +def qmlClearTypeRegistrations() -> None: ... diff --git a/PyQt5-stubs/QtQuick.pyi b/PyQt5-stubs/QtQuick.pyi new file mode 100644 index 00000000..0d554318 --- /dev/null +++ b/PyQt5-stubs/QtQuick.pyi @@ -0,0 +1,1467 @@ +# The PEP 484 type hints stub file for the QtQuick module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2020 Riverbank Computing Limited +# +# 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 sip + +from PyQt5 import QtQml +from PyQt5 import QtGui +from PyQt5 import QtCore + +# 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], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QQuickItem(QtCore.QObject, QtQml.QQmlParserStatus): + + class TransformOrigin(int): ... + TopLeft = ... # type: 'QQuickItem.TransformOrigin' + Top = ... # type: 'QQuickItem.TransformOrigin' + TopRight = ... # type: 'QQuickItem.TransformOrigin' + Left = ... # type: 'QQuickItem.TransformOrigin' + Center = ... # type: 'QQuickItem.TransformOrigin' + Right = ... # type: 'QQuickItem.TransformOrigin' + BottomLeft = ... # type: 'QQuickItem.TransformOrigin' + Bottom = ... # type: 'QQuickItem.TransformOrigin' + BottomRight = ... # type: 'QQuickItem.TransformOrigin' + + class ItemChange(int): ... + ItemChildAddedChange = ... # type: 'QQuickItem.ItemChange' + ItemChildRemovedChange = ... # type: 'QQuickItem.ItemChange' + ItemSceneChange = ... # type: 'QQuickItem.ItemChange' + ItemVisibleHasChanged = ... # type: 'QQuickItem.ItemChange' + ItemParentHasChanged = ... # type: 'QQuickItem.ItemChange' + ItemOpacityHasChanged = ... # type: 'QQuickItem.ItemChange' + ItemActiveFocusHasChanged = ... # type: 'QQuickItem.ItemChange' + ItemRotationHasChanged = ... # type: 'QQuickItem.ItemChange' + ItemAntialiasingHasChanged = ... # type: 'QQuickItem.ItemChange' + ItemDevicePixelRatioHasChanged = ... # type: 'QQuickItem.ItemChange' + ItemEnabledHasChanged = ... # type: 'QQuickItem.ItemChange' + + class Flag(int): ... + ItemClipsChildrenToShape = ... # type: 'QQuickItem.Flag' + ItemAcceptsInputMethod = ... # type: 'QQuickItem.Flag' + ItemIsFocusScope = ... # type: 'QQuickItem.Flag' + ItemHasContents = ... # type: 'QQuickItem.Flag' + ItemAcceptsDrops = ... # type: 'QQuickItem.Flag' + + class Flags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QQuickItem.Flags', 'QQuickItem.Flag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QQuickItem.Flags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QQuickItem.Flags': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + class ItemChangeData(sip.simplewrapper): + + boolValue = ... # type: bool + item = ... # type: 'QQuickItem' + realValue = ... # type: float + window = ... # type: 'QQuickWindow' + + @typing.overload + def __init__(self, v: 'QQuickItem') -> None: ... + @typing.overload + def __init__(self, v: 'QQuickWindow') -> None: ... + @typing.overload + def __init__(self, v: float) -> None: ... + @typing.overload + def __init__(self, v: bool) -> None: ... + @typing.overload + def __init__(self, a0: 'QQuickItem.ItemChangeData') -> None: ... + + class UpdatePaintNodeData(sip.simplewrapper): + + transformNode = ... # type: 'QSGTransformNode' + + def __init__(self, a0: 'QQuickItem.UpdatePaintNodeData') -> None: ... + + def __init__(self, parent: typing.Optional['QQuickItem'] = ...) -> None: ... + + def containmentMaskChanged(self) -> None: ... + def setContainmentMask(self, mask: QtCore.QObject) -> None: ... + def containmentMask(self) -> QtCore.QObject: ... + def setAcceptTouchEvents(self, accept: bool) -> None: ... + def acceptTouchEvents(self) -> bool: ... + def size(self) -> QtCore.QSizeF: ... + def mapFromGlobal(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> QtCore.QPointF: ... + def mapToGlobal(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> QtCore.QPointF: ... + def isAncestorOf(self, child: 'QQuickItem') -> bool: ... + def grabToImage(self, targetSize: QtCore.QSize = ...) -> 'QQuickItemGrabResult': ... + def resetAntialiasing(self) -> None: ... + def windowChanged(self, window: 'QQuickWindow') -> None: ... + def nextItemInFocusChain(self, forward: bool = ...) -> 'QQuickItem': ... + def setActiveFocusOnTab(self, a0: bool) -> None: ... + def activeFocusOnTab(self) -> bool: ... + def updatePolish(self) -> None: ... + def releaseResources(self) -> None: ... + def updatePaintNode(self, a0: 'QSGNode', a1: 'QQuickItem.UpdatePaintNodeData') -> 'QSGNode': ... + def geometryChanged(self, newGeometry: QtCore.QRectF, oldGeometry: QtCore.QRectF) -> None: ... + def childMouseEventFilter(self, a0: 'QQuickItem', a1: QtCore.QEvent) -> bool: ... + def dropEvent(self, a0: QtGui.QDropEvent) -> None: ... + def dragLeaveEvent(self, a0: QtGui.QDragLeaveEvent) -> None: ... + def dragMoveEvent(self, a0: QtGui.QDragMoveEvent) -> None: ... + def dragEnterEvent(self, a0: QtGui.QDragEnterEvent) -> None: ... + def hoverLeaveEvent(self, event: QtGui.QHoverEvent) -> None: ... + def hoverMoveEvent(self, event: QtGui.QHoverEvent) -> None: ... + def hoverEnterEvent(self, event: QtGui.QHoverEvent) -> None: ... + def touchEvent(self, event: QtGui.QTouchEvent) -> None: ... + def wheelEvent(self, event: QtGui.QWheelEvent) -> None: ... + def touchUngrabEvent(self) -> None: ... + def mouseUngrabEvent(self) -> None: ... + def mouseDoubleClickEvent(self, event: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, event: QtGui.QMouseEvent) -> None: ... + def mouseMoveEvent(self, event: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, event: QtGui.QMouseEvent) -> None: ... + def focusOutEvent(self, a0: QtGui.QFocusEvent) -> None: ... + def focusInEvent(self, a0: QtGui.QFocusEvent) -> None: ... + def inputMethodEvent(self, a0: QtGui.QInputMethodEvent) -> None: ... + def keyReleaseEvent(self, event: QtGui.QKeyEvent) -> None: ... + def keyPressEvent(self, event: QtGui.QKeyEvent) -> None: ... + def componentComplete(self) -> None: ... + def classBegin(self) -> None: ... + def heightValid(self) -> bool: ... + def widthValid(self) -> bool: ... + def updateInputMethod(self, queries: typing.Union[QtCore.Qt.InputMethodQueries, QtCore.Qt.InputMethodQuery] = ...) -> None: ... + def itemChange(self, a0: 'QQuickItem.ItemChange', a1: 'QQuickItem.ItemChangeData') -> None: ... + def isComponentComplete(self) -> bool: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def update(self) -> None: ... + def textureProvider(self) -> 'QSGTextureProvider': ... + def isTextureProvider(self) -> bool: ... + def inputMethodQuery(self, query: QtCore.Qt.InputMethodQuery) -> typing.Any: ... + def childAt(self, x: float, y: float) -> 'QQuickItem': ... + @typing.overload + def forceActiveFocus(self) -> None: ... + @typing.overload + def forceActiveFocus(self, reason: QtCore.Qt.FocusReason) -> None: ... + def polish(self) -> None: ... + def mapRectFromScene(self, rect: QtCore.QRectF) -> QtCore.QRectF: ... + def mapRectFromItem(self, item: 'QQuickItem', rect: QtCore.QRectF) -> QtCore.QRectF: ... + def mapFromScene(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> QtCore.QPointF: ... + def mapFromItem(self, item: 'QQuickItem', point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> QtCore.QPointF: ... + def mapRectToScene(self, rect: QtCore.QRectF) -> QtCore.QRectF: ... + def mapRectToItem(self, item: 'QQuickItem', rect: QtCore.QRectF) -> QtCore.QRectF: ... + def mapToScene(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> QtCore.QPointF: ... + def mapToItem(self, item: 'QQuickItem', point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> QtCore.QPointF: ... + def contains(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> bool: ... + def setKeepTouchGrab(self, a0: bool) -> None: ... + def keepTouchGrab(self) -> bool: ... + def ungrabTouchPoints(self) -> None: ... + def grabTouchPoints(self, ids: typing.Iterable[int]) -> None: ... + def setFiltersChildMouseEvents(self, filter: bool) -> None: ... + def filtersChildMouseEvents(self) -> bool: ... + def setKeepMouseGrab(self, a0: bool) -> None: ... + def keepMouseGrab(self) -> bool: ... + def ungrabMouse(self) -> None: ... + def grabMouse(self) -> None: ... + def unsetCursor(self) -> None: ... + def setCursor(self, cursor: typing.Union[QtGui.QCursor, QtCore.Qt.CursorShape]) -> None: ... + def cursor(self) -> QtGui.QCursor: ... + def setAcceptHoverEvents(self, enabled: bool) -> None: ... + def acceptHoverEvents(self) -> bool: ... + def setAcceptedMouseButtons(self, buttons: typing.Union[QtCore.Qt.MouseButtons, QtCore.Qt.MouseButton]) -> None: ... + def acceptedMouseButtons(self) -> QtCore.Qt.MouseButtons: ... + def scopedFocusItem(self) -> 'QQuickItem': ... + def isFocusScope(self) -> bool: ... + @typing.overload + def setFocus(self, a0: bool) -> None: ... + @typing.overload + def setFocus(self, focus: bool, reason: QtCore.Qt.FocusReason) -> None: ... + def hasFocus(self) -> bool: ... + def hasActiveFocus(self) -> bool: ... + def setFlags(self, flags: typing.Union['QQuickItem.Flags', 'QQuickItem.Flag']) -> None: ... + def setFlag(self, flag: 'QQuickItem.Flag', enabled: bool = ...) -> None: ... + def flags(self) -> 'QQuickItem.Flags': ... + def setAntialiasing(self, a0: bool) -> None: ... + def antialiasing(self) -> bool: ... + def setSmooth(self, a0: bool) -> None: ... + def smooth(self) -> bool: ... + def setEnabled(self, a0: bool) -> None: ... + def isEnabled(self) -> bool: ... + def setVisible(self, a0: bool) -> None: ... + def isVisible(self) -> bool: ... + def setOpacity(self, a0: float) -> None: ... + def opacity(self) -> float: ... + def setScale(self, a0: float) -> None: ... + def scale(self) -> float: ... + def setRotation(self, a0: float) -> None: ... + def rotation(self) -> float: ... + def setZ(self, a0: float) -> None: ... + def z(self) -> float: ... + def setTransformOrigin(self, a0: 'QQuickItem.TransformOrigin') -> None: ... + def transformOrigin(self) -> 'QQuickItem.TransformOrigin': ... + def implicitHeight(self) -> float: ... + def setImplicitHeight(self, a0: float) -> None: ... + def resetHeight(self) -> None: ... + def setHeight(self, a0: float) -> None: ... + def height(self) -> float: ... + def implicitWidth(self) -> float: ... + def setImplicitWidth(self, a0: float) -> None: ... + def resetWidth(self) -> None: ... + def setWidth(self, a0: float) -> None: ... + def width(self) -> float: ... + def setY(self, a0: float) -> None: ... + def setX(self, a0: float) -> None: ... + def y(self) -> float: ... + def x(self) -> float: ... + def setBaselineOffset(self, a0: float) -> None: ... + def baselineOffset(self) -> float: ... + def setState(self, a0: str) -> None: ... + def state(self) -> str: ... + def setClip(self, a0: bool) -> None: ... + def clip(self) -> bool: ... + def childItems(self) -> typing.List['QQuickItem']: ... + def childrenRect(self) -> QtCore.QRectF: ... + def stackAfter(self, a0: 'QQuickItem') -> None: ... + def stackBefore(self, a0: 'QQuickItem') -> None: ... + def setParentItem(self, parent: 'QQuickItem') -> None: ... + def parentItem(self) -> 'QQuickItem': ... + def window(self) -> 'QQuickWindow': ... + + +class QQuickFramebufferObject(QQuickItem): + + class Renderer(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQuickFramebufferObject.Renderer') -> None: ... + + def invalidateFramebufferObject(self) -> None: ... + def update(self) -> None: ... + def framebufferObject(self) -> QtGui.QOpenGLFramebufferObject: ... + def synchronize(self, a0: 'QQuickFramebufferObject') -> None: ... + def createFramebufferObject(self, size: QtCore.QSize) -> QtGui.QOpenGLFramebufferObject: ... + def render(self) -> None: ... + + def __init__(self, parent: typing.Optional[QQuickItem] = ...) -> None: ... + + def mirrorVerticallyChanged(self, a0: bool) -> None: ... + def setMirrorVertically(self, enable: bool) -> None: ... + def mirrorVertically(self) -> bool: ... + def releaseResources(self) -> None: ... + def textureProvider(self) -> 'QSGTextureProvider': ... + def isTextureProvider(self) -> bool: ... + def textureFollowsItemSizeChanged(self, a0: bool) -> None: ... + def updatePaintNode(self, a0: 'QSGNode', a1: QQuickItem.UpdatePaintNodeData) -> 'QSGNode': ... + def geometryChanged(self, newGeometry: QtCore.QRectF, oldGeometry: QtCore.QRectF) -> None: ... + def createRenderer(self) -> 'QQuickFramebufferObject.Renderer': ... + def setTextureFollowsItemSize(self, follows: bool) -> None: ... + def textureFollowsItemSize(self) -> bool: ... + + +class QQuickTextureFactory(QtCore.QObject): + + def __init__(self) -> None: ... + + @staticmethod + def textureFactoryForImage(image: QtGui.QImage) -> 'QQuickTextureFactory': ... + def image(self) -> QtGui.QImage: ... + def textureByteCount(self) -> int: ... + def textureSize(self) -> QtCore.QSize: ... + def createTexture(self, window: 'QQuickWindow') -> 'QSGTexture': ... + + +class QQuickImageProvider(QtQml.QQmlImageProviderBase): + + @typing.overload + def __init__(self, type: QtQml.QQmlImageProviderBase.ImageType, flags: typing.Union[QtQml.QQmlImageProviderBase.Flags, QtQml.QQmlImageProviderBase.Flag] = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QQuickImageProvider') -> None: ... + + def requestTexture(self, id: str, requestedSize: QtCore.QSize) -> typing.Tuple[QQuickTextureFactory, QtCore.QSize]: ... + def requestPixmap(self, id: str, requestedSize: QtCore.QSize) -> typing.Tuple[QtGui.QPixmap, QtCore.QSize]: ... + def requestImage(self, id: str, requestedSize: QtCore.QSize) -> typing.Tuple[QtGui.QImage, QtCore.QSize]: ... + def flags(self) -> QtQml.QQmlImageProviderBase.Flags: ... + def imageType(self) -> QtQml.QQmlImageProviderBase.ImageType: ... + + +class QQuickImageResponse(QtCore.QObject): + + def __init__(self) -> None: ... + + def finished(self) -> None: ... + def cancel(self) -> None: ... + def errorString(self) -> str: ... + def textureFactory(self) -> QQuickTextureFactory: ... + + +class QQuickAsyncImageProvider(QQuickImageProvider): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQuickAsyncImageProvider') -> None: ... + + def requestImageResponse(self, id: str, requestedSize: QtCore.QSize) -> QQuickImageResponse: ... + + +class QQuickItemGrabResult(QtCore.QObject): + + def ready(self) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def saveToFile(self, fileName: str) -> bool: ... + def url(self) -> QtCore.QUrl: ... + def image(self) -> QtGui.QImage: ... + + +class QQuickPaintedItem(QQuickItem): + + class PerformanceHint(int): ... + FastFBOResizing = ... # type: 'QQuickPaintedItem.PerformanceHint' + + class RenderTarget(int): ... + Image = ... # type: 'QQuickPaintedItem.RenderTarget' + FramebufferObject = ... # type: 'QQuickPaintedItem.RenderTarget' + InvertedYFramebufferObject = ... # type: 'QQuickPaintedItem.RenderTarget' + + class PerformanceHints(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QQuickPaintedItem.PerformanceHints', 'QQuickPaintedItem.PerformanceHint']) -> None: ... + @typing.overload + def __init__(self, a0: 'QQuickPaintedItem.PerformanceHints') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QQuickPaintedItem.PerformanceHints': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QQuickItem] = ...) -> None: ... + + def textureSizeChanged(self) -> None: ... + def setTextureSize(self, size: QtCore.QSize) -> None: ... + def textureSize(self) -> QtCore.QSize: ... + def itemChange(self, a0: QQuickItem.ItemChange, a1: QQuickItem.ItemChangeData) -> None: ... + def releaseResources(self) -> None: ... + def textureProvider(self) -> 'QSGTextureProvider': ... + def isTextureProvider(self) -> bool: ... + def updatePaintNode(self, a0: 'QSGNode', a1: QQuickItem.UpdatePaintNodeData) -> 'QSGNode': ... + def renderTargetChanged(self) -> None: ... + def contentsScaleChanged(self) -> None: ... + def contentsSizeChanged(self) -> None: ... + def fillColorChanged(self) -> None: ... + def paint(self, painter: QtGui.QPainter) -> None: ... + def setRenderTarget(self, target: 'QQuickPaintedItem.RenderTarget') -> None: ... + def renderTarget(self) -> 'QQuickPaintedItem.RenderTarget': ... + def setFillColor(self, a0: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def fillColor(self) -> QtGui.QColor: ... + def setContentsScale(self, a0: float) -> None: ... + def contentsScale(self) -> float: ... + def resetContentsSize(self) -> None: ... + def setContentsSize(self, a0: QtCore.QSize) -> None: ... + def contentsSize(self) -> QtCore.QSize: ... + def contentsBoundingRect(self) -> QtCore.QRectF: ... + def setPerformanceHints(self, hints: typing.Union['QQuickPaintedItem.PerformanceHints', 'QQuickPaintedItem.PerformanceHint']) -> None: ... + def setPerformanceHint(self, hint: 'QQuickPaintedItem.PerformanceHint', enabled: bool = ...) -> None: ... + def performanceHints(self) -> 'QQuickPaintedItem.PerformanceHints': ... + def setMipmap(self, enable: bool) -> None: ... + def mipmap(self) -> bool: ... + def setAntialiasing(self, enable: bool) -> None: ... + def antialiasing(self) -> bool: ... + def setOpaquePainting(self, opaque: bool) -> None: ... + def opaquePainting(self) -> bool: ... + def update(self, rect: QtCore.QRect = ...) -> None: ... + + +class QQuickRenderControl(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def sceneChanged(self) -> None: ... + def renderRequested(self) -> None: ... + def prepareThread(self, targetThread: QtCore.QThread) -> None: ... + def renderWindow(self, offset: QtCore.QPoint) -> QtGui.QWindow: ... + @staticmethod + def renderWindowFor(win: 'QQuickWindow', offset: typing.Optional[QtCore.QPoint] = ...) -> QtGui.QWindow: ... + def grab(self) -> QtGui.QImage: ... + def sync(self) -> bool: ... + def render(self) -> None: ... + def polishItems(self) -> None: ... + def invalidate(self) -> None: ... + def initialize(self, gl: QtGui.QOpenGLContext) -> None: ... + + +class QQuickTextDocument(QtCore.QObject): + + def __init__(self, parent: QQuickItem) -> None: ... + + def textDocument(self) -> QtGui.QTextDocument: ... + + +class QQuickWindow(QtGui.QWindow): + + class NativeObjectType(int): ... + NativeObjectTexture = ... # type: 'QQuickWindow.NativeObjectType' + + class TextRenderType(int): ... + QtTextRendering = ... # type: 'QQuickWindow.TextRenderType' + NativeTextRendering = ... # type: 'QQuickWindow.TextRenderType' + + class RenderStage(int): ... + BeforeSynchronizingStage = ... # type: 'QQuickWindow.RenderStage' + AfterSynchronizingStage = ... # type: 'QQuickWindow.RenderStage' + BeforeRenderingStage = ... # type: 'QQuickWindow.RenderStage' + AfterRenderingStage = ... # type: 'QQuickWindow.RenderStage' + AfterSwapStage = ... # type: 'QQuickWindow.RenderStage' + NoStage = ... # type: 'QQuickWindow.RenderStage' + + class SceneGraphError(int): ... + ContextNotAvailable = ... # type: 'QQuickWindow.SceneGraphError' + + class CreateTextureOption(int): ... + TextureHasAlphaChannel = ... # type: 'QQuickWindow.CreateTextureOption' + TextureHasMipmaps = ... # type: 'QQuickWindow.CreateTextureOption' + TextureOwnsGLTexture = ... # type: 'QQuickWindow.CreateTextureOption' + TextureCanUseAtlas = ... # type: 'QQuickWindow.CreateTextureOption' + TextureIsOpaque = ... # type: 'QQuickWindow.CreateTextureOption' + + class CreateTextureOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QQuickWindow.CreateTextureOptions', 'QQuickWindow.CreateTextureOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QQuickWindow.CreateTextureOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QQuickWindow.CreateTextureOptions': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QtGui.QWindow] = ...) -> None: ... + + def afterRenderPassRecording(self) -> None: ... + def beforeRenderPassRecording(self) -> None: ... + def endExternalCommands(self) -> None: ... + def beginExternalCommands(self) -> None: ... + @staticmethod + def setTextRenderType(renderType: 'QQuickWindow.TextRenderType') -> None: ... + @staticmethod + def textRenderType() -> 'QQuickWindow.TextRenderType': ... + @staticmethod + def sceneGraphBackend() -> str: ... + def createImageNode(self) -> 'QSGImageNode': ... + def createRectangleNode(self) -> 'QSGRectangleNode': ... + @typing.overload + @staticmethod + def setSceneGraphBackend(api: 'QSGRendererInterface.GraphicsApi') -> None: ... + @typing.overload + @staticmethod + def setSceneGraphBackend(backend: str) -> None: ... + def rendererInterface(self) -> 'QSGRendererInterface': ... + def isSceneGraphInitialized(self) -> bool: ... + def effectiveDevicePixelRatio(self) -> float: ... + def scheduleRenderJob(self, job: QtCore.QRunnable, schedule: 'QQuickWindow.RenderStage') -> None: ... + def sceneGraphError(self, error: 'QQuickWindow.SceneGraphError', message: str) -> None: ... + def sceneGraphAboutToStop(self) -> None: ... + def afterAnimating(self) -> None: ... + def afterSynchronizing(self) -> None: ... + def openglContextCreated(self, context: QtGui.QOpenGLContext) -> None: ... + def resetOpenGLState(self) -> None: ... + def activeFocusItemChanged(self) -> None: ... + def closing(self, close: 'QQuickCloseEvent') -> None: ... + @staticmethod + def setDefaultAlphaBuffer(useAlpha: bool) -> None: ... + @staticmethod + def hasDefaultAlphaBuffer() -> bool: ... + def wheelEvent(self, a0: QtGui.QWheelEvent) -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mouseDoubleClickEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def keyReleaseEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def focusOutEvent(self, a0: QtGui.QFocusEvent) -> None: ... + def focusInEvent(self, a0: QtGui.QFocusEvent) -> None: ... + def hideEvent(self, a0: QtGui.QHideEvent) -> None: ... + def showEvent(self, a0: QtGui.QShowEvent) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... + def exposeEvent(self, a0: QtGui.QExposeEvent) -> None: ... + def releaseResources(self) -> None: ... + def update(self) -> None: ... + def colorChanged(self, a0: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def afterRendering(self) -> None: ... + def beforeRendering(self) -> None: ... + def beforeSynchronizing(self) -> None: ... + def sceneGraphInvalidated(self) -> None: ... + def sceneGraphInitialized(self) -> None: ... + def frameSwapped(self) -> None: ... + def openglContext(self) -> QtGui.QOpenGLContext: ... + def isPersistentSceneGraph(self) -> bool: ... + def setPersistentSceneGraph(self, persistent: bool) -> None: ... + def isPersistentOpenGLContext(self) -> bool: ... + def setPersistentOpenGLContext(self, persistent: bool) -> None: ... + def color(self) -> QtGui.QColor: ... + def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def clearBeforeRendering(self) -> bool: ... + def setClearBeforeRendering(self, enabled: bool) -> None: ... + def createTextureFromNativeObject(self, type: 'QQuickWindow.NativeObjectType', nativeObjectPtr: sip.voidptr, nativeLayout: int, size: QtCore.QSize, options: typing.Union['QQuickWindow.CreateTextureOptions', 'QQuickWindow.CreateTextureOption'] = ...) -> 'QSGTexture': ... + def createTextureFromId(self, id: int, size: QtCore.QSize, options: typing.Union['QQuickWindow.CreateTextureOptions', 'QQuickWindow.CreateTextureOption'] = ...) -> 'QSGTexture': ... + @typing.overload + def createTextureFromImage(self, image: QtGui.QImage) -> 'QSGTexture': ... + @typing.overload + def createTextureFromImage(self, image: QtGui.QImage, options: typing.Union['QQuickWindow.CreateTextureOptions', 'QQuickWindow.CreateTextureOption']) -> 'QSGTexture': ... + def incubationController(self) -> QtQml.QQmlIncubationController: ... + def renderTargetSize(self) -> QtCore.QSize: ... + def renderTargetId(self) -> int: ... + def renderTarget(self) -> QtGui.QOpenGLFramebufferObject: ... + @typing.overload + def setRenderTarget(self, fbo: QtGui.QOpenGLFramebufferObject) -> None: ... + @typing.overload + def setRenderTarget(self, fboId: int, size: QtCore.QSize) -> None: ... + def grabWindow(self) -> QtGui.QImage: ... + def sendEvent(self, a0: QQuickItem, a1: QtCore.QEvent) -> bool: ... + def mouseGrabberItem(self) -> QQuickItem: ... + def focusObject(self) -> QtCore.QObject: ... + def activeFocusItem(self) -> QQuickItem: ... + def contentItem(self) -> QQuickItem: ... + + +class QQuickView(QQuickWindow): + + class Status(int): ... + Null = ... # type: 'QQuickView.Status' + Ready = ... # type: 'QQuickView.Status' + Loading = ... # type: 'QQuickView.Status' + Error = ... # type: 'QQuickView.Status' + + class ResizeMode(int): ... + SizeViewToRootObject = ... # type: 'QQuickView.ResizeMode' + SizeRootObjectToView = ... # type: 'QQuickView.ResizeMode' + + @typing.overload + def __init__(self, parent: typing.Optional[QtGui.QWindow] = ...) -> None: ... + @typing.overload + def __init__(self, engine: QtQml.QQmlEngine, parent: QtGui.QWindow) -> None: ... + @typing.overload + def __init__(self, source: QtCore.QUrl, parent: typing.Optional[QtGui.QWindow] = ...) -> None: ... + + def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def keyReleaseEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def timerEvent(self, a0: QtCore.QTimerEvent) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... + def statusChanged(self, a0: 'QQuickView.Status') -> None: ... + def setInitialProperties(self, initialProperties: typing.Dict[str, typing.Any]) -> None: ... + def setSource(self, a0: QtCore.QUrl) -> None: ... + def initialSize(self) -> QtCore.QSize: ... + def errors(self) -> typing.List[QtQml.QQmlError]: ... + def status(self) -> 'QQuickView.Status': ... + def setResizeMode(self, a0: 'QQuickView.ResizeMode') -> None: ... + def resizeMode(self) -> 'QQuickView.ResizeMode': ... + def rootObject(self) -> QQuickItem: ... + def rootContext(self) -> QtQml.QQmlContext: ... + def engine(self) -> QtQml.QQmlEngine: ... + def source(self) -> QtCore.QUrl: ... + + +class QQuickCloseEvent(sip.simplewrapper): ... + + +class QSGAbstractRenderer(QtCore.QObject): + + class MatrixTransformFlag(int): ... + MatrixTransformFlipY = ... # type: 'QSGAbstractRenderer.MatrixTransformFlag' + + class ClearModeBit(int): ... + ClearColorBuffer = ... # type: 'QSGAbstractRenderer.ClearModeBit' + ClearDepthBuffer = ... # type: 'QSGAbstractRenderer.ClearModeBit' + ClearStencilBuffer = ... # type: 'QSGAbstractRenderer.ClearModeBit' + + class ClearMode(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGAbstractRenderer.ClearMode', 'QSGAbstractRenderer.ClearModeBit']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGAbstractRenderer.ClearMode') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGAbstractRenderer.ClearMode': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + class MatrixTransformFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGAbstractRenderer.MatrixTransformFlags', 'QSGAbstractRenderer.MatrixTransformFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGAbstractRenderer.MatrixTransformFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGAbstractRenderer.MatrixTransformFlags': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + def sceneGraphChanged(self) -> None: ... + def renderScene(self, fboId: int = ...) -> None: ... + def clearMode(self) -> 'QSGAbstractRenderer.ClearMode': ... + def setClearMode(self, mode: typing.Union['QSGAbstractRenderer.ClearMode', 'QSGAbstractRenderer.ClearModeBit']) -> None: ... + def clearColor(self) -> QtGui.QColor: ... + def setClearColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def projectionMatrix(self) -> QtGui.QMatrix4x4: ... + def setProjectionMatrix(self, matrix: QtGui.QMatrix4x4) -> None: ... + @typing.overload + def setProjectionMatrixToRect(self, rect: QtCore.QRectF) -> None: ... + @typing.overload + def setProjectionMatrixToRect(self, rect: QtCore.QRectF, flags: typing.Union['QSGAbstractRenderer.MatrixTransformFlags', 'QSGAbstractRenderer.MatrixTransformFlag']) -> None: ... + def viewportRect(self) -> QtCore.QRect: ... + @typing.overload + def setViewportRect(self, rect: QtCore.QRect) -> None: ... + @typing.overload + def setViewportRect(self, size: QtCore.QSize) -> None: ... + def deviceRect(self) -> QtCore.QRect: ... + @typing.overload + def setDeviceRect(self, rect: QtCore.QRect) -> None: ... + @typing.overload + def setDeviceRect(self, size: QtCore.QSize) -> None: ... + + +class QSGEngine(QtCore.QObject): + + class CreateTextureOption(int): ... + TextureHasAlphaChannel = ... # type: 'QSGEngine.CreateTextureOption' + TextureOwnsGLTexture = ... # type: 'QSGEngine.CreateTextureOption' + TextureCanUseAtlas = ... # type: 'QSGEngine.CreateTextureOption' + TextureIsOpaque = ... # type: 'QSGEngine.CreateTextureOption' + + class CreateTextureOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGEngine.CreateTextureOptions', 'QSGEngine.CreateTextureOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGEngine.CreateTextureOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGEngine.CreateTextureOptions': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def createImageNode(self) -> 'QSGImageNode': ... + def createRectangleNode(self) -> 'QSGRectangleNode': ... + def rendererInterface(self) -> 'QSGRendererInterface': ... + def createTextureFromId(self, id: int, size: QtCore.QSize, options: typing.Union['QSGEngine.CreateTextureOptions', 'QSGEngine.CreateTextureOption'] = ...) -> 'QSGTexture': ... + def createTextureFromImage(self, image: QtGui.QImage, options: typing.Union['QSGEngine.CreateTextureOptions', 'QSGEngine.CreateTextureOption'] = ...) -> 'QSGTexture': ... + def createRenderer(self) -> QSGAbstractRenderer: ... + def invalidate(self) -> None: ... + def initialize(self, context: QtGui.QOpenGLContext) -> None: ... + + +class QSGMaterial(sip.wrapper): + + class Flag(int): ... + Blending = ... # type: 'QSGMaterial.Flag' + RequiresDeterminant = ... # type: 'QSGMaterial.Flag' + RequiresFullMatrixExceptTranslate = ... # type: 'QSGMaterial.Flag' + RequiresFullMatrix = ... # type: 'QSGMaterial.Flag' + CustomCompileStep = ... # type: 'QSGMaterial.Flag' + SupportsRhiShader = ... # type: 'QSGMaterial.Flag' + RhiShaderWanted = ... # type: 'QSGMaterial.Flag' + + class Flags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGMaterial.Flags', 'QSGMaterial.Flag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGMaterial.Flags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGMaterial.Flags': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + def __init__(self) -> None: ... + + def setFlag(self, flags: typing.Union['QSGMaterial.Flags', 'QSGMaterial.Flag'], enabled: bool = ...) -> None: ... + def flags(self) -> 'QSGMaterial.Flags': ... + def compare(self, other: 'QSGMaterial') -> int: ... + def createShader(self) -> 'QSGMaterialShader': ... + def type(self) -> 'QSGMaterialType': ... + + +class QSGFlatColorMaterial(QSGMaterial): + + def __init__(self) -> None: ... + + def compare(self, other: QSGMaterial) -> int: ... + def color(self) -> QtGui.QColor: ... + def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def createShader(self) -> 'QSGMaterialShader': ... + def type(self) -> 'QSGMaterialType': ... + + +class QSGGeometry(sip.wrapper): + + class Type(int): ... + ByteType = ... # type: 'QSGGeometry.Type' + UnsignedByteType = ... # type: 'QSGGeometry.Type' + ShortType = ... # type: 'QSGGeometry.Type' + UnsignedShortType = ... # type: 'QSGGeometry.Type' + IntType = ... # type: 'QSGGeometry.Type' + UnsignedIntType = ... # type: 'QSGGeometry.Type' + FloatType = ... # type: 'QSGGeometry.Type' + Bytes2Type = ... # type: 'QSGGeometry.Type' + Bytes3Type = ... # type: 'QSGGeometry.Type' + Bytes4Type = ... # type: 'QSGGeometry.Type' + DoubleType = ... # type: 'QSGGeometry.Type' + + class DrawingMode(int): ... + DrawPoints = ... # type: 'QSGGeometry.DrawingMode' + DrawLines = ... # type: 'QSGGeometry.DrawingMode' + DrawLineLoop = ... # type: 'QSGGeometry.DrawingMode' + DrawLineStrip = ... # type: 'QSGGeometry.DrawingMode' + DrawTriangles = ... # type: 'QSGGeometry.DrawingMode' + DrawTriangleStrip = ... # type: 'QSGGeometry.DrawingMode' + DrawTriangleFan = ... # type: 'QSGGeometry.DrawingMode' + + class AttributeType(int): ... + UnknownAttribute = ... # type: 'QSGGeometry.AttributeType' + PositionAttribute = ... # type: 'QSGGeometry.AttributeType' + ColorAttribute = ... # type: 'QSGGeometry.AttributeType' + TexCoordAttribute = ... # type: 'QSGGeometry.AttributeType' + TexCoord1Attribute = ... # type: 'QSGGeometry.AttributeType' + TexCoord2Attribute = ... # type: 'QSGGeometry.AttributeType' + + class DataPattern(int): ... + AlwaysUploadPattern = ... # type: 'QSGGeometry.DataPattern' + StreamPattern = ... # type: 'QSGGeometry.DataPattern' + DynamicPattern = ... # type: 'QSGGeometry.DataPattern' + StaticPattern = ... # type: 'QSGGeometry.DataPattern' + + GL_POINTS = ... # type: int + GL_LINES = ... # type: int + GL_LINE_LOOP = ... # type: int + GL_LINE_STRIP = ... # type: int + GL_TRIANGLES = ... # type: int + GL_TRIANGLE_STRIP = ... # type: int + GL_TRIANGLE_FAN = ... # type: int + + GL_BYTE = ... # type: int + GL_DOUBLE = ... # type: int + GL_FLOAT = ... # type: int + GL_INT = ... # type: int + + class Attribute(sip.simplewrapper): + + attributeType = ... # type: 'QSGGeometry.AttributeType' + isVertexCoordinate = ... # type: int + position = ... # type: int + tupleSize = ... # type: int + type = ... # type: int + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGGeometry.Attribute') -> None: ... + + @staticmethod + def createWithAttributeType(pos: int, tupleSize: int, primitiveType: int, attributeType: 'QSGGeometry.AttributeType') -> 'QSGGeometry.Attribute': ... + @staticmethod + def create(pos: int, tupleSize: int, primitiveType: int, isPosition: bool = ...) -> 'QSGGeometry.Attribute': ... + + class AttributeSet(sip.simplewrapper): + + attributes = ... # type: sip.array[QSGGeometry.Attribute] + count = ... # type: int + stride = ... # type: int + + def __init__(self, attributes: typing.Iterable['QSGGeometry.Attribute'], stride: int = ...) -> None: ... + + class Point2D(sip.simplewrapper): + + x = ... # type: float + y = ... # type: float + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGGeometry.Point2D') -> None: ... + + def set(self, nx: float, ny: float) -> None: ... + + class TexturedPoint2D(sip.simplewrapper): + + tx = ... # type: float + ty = ... # type: float + x = ... # type: float + y = ... # type: float + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGGeometry.TexturedPoint2D') -> None: ... + + def set(self, nx: float, ny: float, ntx: float, nty: float) -> None: ... + + class ColoredPoint2D(sip.simplewrapper): + + a = ... # type: int + b = ... # type: int + g = ... # type: int + r = ... # type: int + x = ... # type: float + y = ... # type: float + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGGeometry.ColoredPoint2D') -> None: ... + + def set(self, nx: float, ny: float, nr: int, ng: int, nb: int, na: int) -> None: ... + + @typing.overload + def __init__(self, attribs: 'QSGGeometry.AttributeSet', vertexCount: int, indexCount: int = ..., indexType: int = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGGeometry') -> None: ... + + @staticmethod + def updateColoredRectGeometry(g: 'QSGGeometry', rect: QtCore.QRectF) -> None: ... + def sizeOfIndex(self) -> int: ... + def vertexDataAsColoredPoint2D(self) -> sip.array[QSGGeometry.ColoredPoint2D]: ... + def vertexDataAsTexturedPoint2D(self) -> sip.array[QSGGeometry.TexturedPoint2D]: ... + def vertexDataAsPoint2D(self) -> sip.array[QSGGeometry.Point2D]: ... + def indexDataAsUShort(self) -> sip.array[int]: ... + def indexDataAsUInt(self) -> sip.array[int]: ... + def setLineWidth(self, w: float) -> None: ... + def lineWidth(self) -> float: ... + def markVertexDataDirty(self) -> None: ... + def markIndexDataDirty(self) -> None: ... + def vertexDataPattern(self) -> 'QSGGeometry.DataPattern': ... + def setVertexDataPattern(self, p: 'QSGGeometry.DataPattern') -> None: ... + def indexDataPattern(self) -> 'QSGGeometry.DataPattern': ... + def setIndexDataPattern(self, p: 'QSGGeometry.DataPattern') -> None: ... + @staticmethod + def updateTexturedRectGeometry(g: 'QSGGeometry', rect: QtCore.QRectF, sourceRect: QtCore.QRectF) -> None: ... + @staticmethod + def updateRectGeometry(g: 'QSGGeometry', rect: QtCore.QRectF) -> None: ... + def sizeOfVertex(self) -> int: ... + def attributes(self) -> sip.array[QSGGeometry.Attribute]: ... + def attributeCount(self) -> int: ... + def indexData(self) -> sip.voidptr: ... + def indexCount(self) -> int: ... + def indexType(self) -> int: ... + def vertexData(self) -> sip.voidptr: ... + def vertexCount(self) -> int: ... + def allocate(self, vertexCount: int, indexCount: int = ...) -> None: ... + def drawingMode(self) -> int: ... + def setDrawingMode(self, mode: int) -> None: ... + @staticmethod + def defaultAttributes_ColoredPoint2D() -> 'QSGGeometry.AttributeSet': ... + @staticmethod + def defaultAttributes_TexturedPoint2D() -> 'QSGGeometry.AttributeSet': ... + @staticmethod + def defaultAttributes_Point2D() -> 'QSGGeometry.AttributeSet': ... + + +class QSGNode(sip.wrapper): + + class DirtyStateBit(int): ... + DirtyMatrix = ... # type: 'QSGNode.DirtyStateBit' + DirtyNodeAdded = ... # type: 'QSGNode.DirtyStateBit' + DirtyNodeRemoved = ... # type: 'QSGNode.DirtyStateBit' + DirtyGeometry = ... # type: 'QSGNode.DirtyStateBit' + DirtyMaterial = ... # type: 'QSGNode.DirtyStateBit' + DirtyOpacity = ... # type: 'QSGNode.DirtyStateBit' + + class Flag(int): ... + OwnedByParent = ... # type: 'QSGNode.Flag' + UsePreprocess = ... # type: 'QSGNode.Flag' + OwnsGeometry = ... # type: 'QSGNode.Flag' + OwnsMaterial = ... # type: 'QSGNode.Flag' + OwnsOpaqueMaterial = ... # type: 'QSGNode.Flag' + + class NodeType(int): ... + BasicNodeType = ... # type: 'QSGNode.NodeType' + GeometryNodeType = ... # type: 'QSGNode.NodeType' + TransformNodeType = ... # type: 'QSGNode.NodeType' + ClipNodeType = ... # type: 'QSGNode.NodeType' + OpacityNodeType = ... # type: 'QSGNode.NodeType' + + class Flags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGNode.Flags', 'QSGNode.Flag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGNode.Flags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGNode.Flags': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + class DirtyState(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGNode.DirtyState', 'QSGNode.DirtyStateBit']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGNode.DirtyState') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGNode.DirtyState': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + def __init__(self) -> None: ... + + def preprocess(self) -> None: ... + def setFlags(self, a0: typing.Union['QSGNode.Flags', 'QSGNode.Flag'], enabled: bool = ...) -> None: ... + def setFlag(self, a0: 'QSGNode.Flag', enabled: bool = ...) -> None: ... + def flags(self) -> 'QSGNode.Flags': ... + def isSubtreeBlocked(self) -> bool: ... + def markDirty(self, bits: typing.Union['QSGNode.DirtyState', 'QSGNode.DirtyStateBit']) -> None: ... + def type(self) -> 'QSGNode.NodeType': ... + def previousSibling(self) -> 'QSGNode': ... + def nextSibling(self) -> 'QSGNode': ... + def lastChild(self) -> 'QSGNode': ... + def firstChild(self) -> 'QSGNode': ... + def childAtIndex(self, i: int) -> 'QSGNode': ... + def __len__(self) -> int: ... + def childCount(self) -> int: ... + def insertChildNodeAfter(self, node: 'QSGNode', after: 'QSGNode') -> None: ... + def insertChildNodeBefore(self, node: 'QSGNode', before: 'QSGNode') -> None: ... + def appendChildNode(self, node: 'QSGNode') -> None: ... + def prependChildNode(self, node: 'QSGNode') -> None: ... + def removeAllChildNodes(self) -> None: ... + def removeChildNode(self, node: 'QSGNode') -> None: ... + def parent(self) -> 'QSGNode': ... + + +class QSGBasicGeometryNode(QSGNode): + + def geometry(self) -> QSGGeometry: ... + def setGeometry(self, geometry: QSGGeometry) -> None: ... + + +class QSGGeometryNode(QSGBasicGeometryNode): + + def __init__(self) -> None: ... + + def opaqueMaterial(self) -> QSGMaterial: ... + def setOpaqueMaterial(self, material: QSGMaterial) -> None: ... + def material(self) -> QSGMaterial: ... + def setMaterial(self, material: QSGMaterial) -> None: ... + + +class QSGImageNode(QSGGeometryNode): + + class TextureCoordinatesTransformFlag(int): ... + NoTransform = ... # type: 'QSGImageNode.TextureCoordinatesTransformFlag' + MirrorHorizontally = ... # type: 'QSGImageNode.TextureCoordinatesTransformFlag' + MirrorVertically = ... # type: 'QSGImageNode.TextureCoordinatesTransformFlag' + + class TextureCoordinatesTransformMode(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGImageNode.TextureCoordinatesTransformMode', 'QSGImageNode.TextureCoordinatesTransformFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGImageNode.TextureCoordinatesTransformMode') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGImageNode.TextureCoordinatesTransformMode': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + @staticmethod + def rebuildGeometry(g: QSGGeometry, texture: 'QSGTexture', rect: QtCore.QRectF, sourceRect: QtCore.QRectF, texCoordMode: typing.Union['QSGImageNode.TextureCoordinatesTransformMode', 'QSGImageNode.TextureCoordinatesTransformFlag']) -> None: ... + def ownsTexture(self) -> bool: ... + def setOwnsTexture(self, owns: bool) -> None: ... + def textureCoordinatesTransform(self) -> 'QSGImageNode.TextureCoordinatesTransformMode': ... + def setTextureCoordinatesTransform(self, mode: typing.Union['QSGImageNode.TextureCoordinatesTransformMode', 'QSGImageNode.TextureCoordinatesTransformFlag']) -> None: ... + def mipmapFiltering(self) -> 'QSGTexture.Filtering': ... + def setMipmapFiltering(self, filtering: 'QSGTexture.Filtering') -> None: ... + def filtering(self) -> 'QSGTexture.Filtering': ... + def setFiltering(self, filtering: 'QSGTexture.Filtering') -> None: ... + def texture(self) -> 'QSGTexture': ... + def setTexture(self, texture: 'QSGTexture') -> None: ... + def sourceRect(self) -> QtCore.QRectF: ... + @typing.overload + def setSourceRect(self, r: QtCore.QRectF) -> None: ... + @typing.overload + def setSourceRect(self, x: float, y: float, w: float, h: float) -> None: ... + def rect(self) -> QtCore.QRectF: ... + @typing.overload + def setRect(self, rect: QtCore.QRectF) -> None: ... + @typing.overload + def setRect(self, x: float, y: float, w: float, h: float) -> None: ... + + +class QSGMaterialShader(sip.wrapper): + + class RenderState(sip.simplewrapper): + + class DirtyState(int): ... + DirtyMatrix = ... # type: 'QSGMaterialShader.RenderState.DirtyState' + DirtyOpacity = ... # type: 'QSGMaterialShader.RenderState.DirtyState' + DirtyCachedMaterialData = ... # type: 'QSGMaterialShader.RenderState.DirtyState' + DirtyAll = ... # type: 'QSGMaterialShader.RenderState.DirtyState' + + class DirtyStates(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGMaterialShader.RenderState.DirtyStates', 'QSGMaterialShader.RenderState.DirtyState']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGMaterialShader.RenderState.DirtyStates') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGMaterialShader.RenderState.DirtyStates': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGMaterialShader.RenderState') -> None: ... + + def isCachedMaterialDataDirty(self) -> bool: ... + def devicePixelRatio(self) -> float: ... + def projectionMatrix(self) -> QtGui.QMatrix4x4: ... + def context(self) -> QtGui.QOpenGLContext: ... + def determinant(self) -> float: ... + def deviceRect(self) -> QtCore.QRect: ... + def viewportRect(self) -> QtCore.QRect: ... + def modelViewMatrix(self) -> QtGui.QMatrix4x4: ... + def combinedMatrix(self) -> QtGui.QMatrix4x4: ... + def opacity(self) -> float: ... + def isOpacityDirty(self) -> bool: ... + def isMatrixDirty(self) -> bool: ... + def dirtyStates(self) -> 'QSGMaterialShader.RenderState.DirtyStates': ... + + def __init__(self) -> None: ... + + def setShaderSourceFiles(self, type: typing.Union[QtGui.QOpenGLShader.ShaderType, QtGui.QOpenGLShader.ShaderTypeBit], sourceFiles: typing.Iterable[str]) -> None: ... + def setShaderSourceFile(self, type: typing.Union[QtGui.QOpenGLShader.ShaderType, QtGui.QOpenGLShader.ShaderTypeBit], sourceFile: str) -> None: ... + def fragmentShader(self) -> str: ... + def vertexShader(self) -> str: ... + def initialize(self) -> None: ... + def compile(self) -> None: ... + def program(self) -> QtGui.QOpenGLShaderProgram: ... + def attributeNames(self) -> typing.List[str]: ... + def updateState(self, state: 'QSGMaterialShader.RenderState', newMaterial: QSGMaterial, oldMaterial: QSGMaterial) -> None: ... + def deactivate(self) -> None: ... + def activate(self) -> None: ... + + +class QSGMaterialType(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGMaterialType') -> None: ... + + +class QSGClipNode(QSGBasicGeometryNode): + + def __init__(self) -> None: ... + + def clipRect(self) -> QtCore.QRectF: ... + def setClipRect(self, a0: QtCore.QRectF) -> None: ... + def isRectangular(self) -> bool: ... + def setIsRectangular(self, rectHint: bool) -> None: ... + + +class QSGTransformNode(QSGNode): + + def __init__(self) -> None: ... + + def matrix(self) -> QtGui.QMatrix4x4: ... + def setMatrix(self, matrix: QtGui.QMatrix4x4) -> None: ... + + +class QSGOpacityNode(QSGNode): + + def __init__(self) -> None: ... + + def opacity(self) -> float: ... + def setOpacity(self, opacity: float) -> None: ... + + +class QSGRectangleNode(QSGGeometryNode): + + def color(self) -> QtGui.QColor: ... + def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def rect(self) -> QtCore.QRectF: ... + @typing.overload + def setRect(self, rect: QtCore.QRectF) -> None: ... + @typing.overload + def setRect(self, x: float, y: float, w: float, h: float) -> None: ... + + +class QSGRendererInterface(sip.simplewrapper): + + class ShaderSourceType(int): ... + ShaderSourceString = ... # type: 'QSGRendererInterface.ShaderSourceType' + ShaderSourceFile = ... # type: 'QSGRendererInterface.ShaderSourceType' + ShaderByteCode = ... # type: 'QSGRendererInterface.ShaderSourceType' + + class ShaderCompilationType(int): ... + RuntimeCompilation = ... # type: 'QSGRendererInterface.ShaderCompilationType' + OfflineCompilation = ... # type: 'QSGRendererInterface.ShaderCompilationType' + + class ShaderType(int): ... + UnknownShadingLanguage = ... # type: 'QSGRendererInterface.ShaderType' + GLSL = ... # type: 'QSGRendererInterface.ShaderType' + HLSL = ... # type: 'QSGRendererInterface.ShaderType' + RhiShader = ... # type: 'QSGRendererInterface.ShaderType' + + class Resource(int): ... + DeviceResource = ... # type: 'QSGRendererInterface.Resource' + CommandQueueResource = ... # type: 'QSGRendererInterface.Resource' + CommandListResource = ... # type: 'QSGRendererInterface.Resource' + PainterResource = ... # type: 'QSGRendererInterface.Resource' + RhiResource = ... # type: 'QSGRendererInterface.Resource' + PhysicalDeviceResource = ... # type: 'QSGRendererInterface.Resource' + OpenGLContextResource = ... # type: 'QSGRendererInterface.Resource' + DeviceContextResource = ... # type: 'QSGRendererInterface.Resource' + CommandEncoderResource = ... # type: 'QSGRendererInterface.Resource' + VulkanInstanceResource = ... # type: 'QSGRendererInterface.Resource' + RenderPassResource = ... # type: 'QSGRendererInterface.Resource' + + class GraphicsApi(int): ... + Unknown = ... # type: 'QSGRendererInterface.GraphicsApi' + Software = ... # type: 'QSGRendererInterface.GraphicsApi' + OpenGL = ... # type: 'QSGRendererInterface.GraphicsApi' + Direct3D12 = ... # type: 'QSGRendererInterface.GraphicsApi' + OpenVG = ... # type: 'QSGRendererInterface.GraphicsApi' + OpenGLRhi = ... # type: 'QSGRendererInterface.GraphicsApi' + Direct3D11Rhi = ... # type: 'QSGRendererInterface.GraphicsApi' + VulkanRhi = ... # type: 'QSGRendererInterface.GraphicsApi' + MetalRhi = ... # type: 'QSGRendererInterface.GraphicsApi' + NullRhi = ... # type: 'QSGRendererInterface.GraphicsApi' + + class ShaderCompilationTypes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGRendererInterface.ShaderCompilationTypes', 'QSGRendererInterface.ShaderCompilationType']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGRendererInterface.ShaderCompilationTypes') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGRendererInterface.ShaderCompilationTypes': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + class ShaderSourceTypes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGRendererInterface.ShaderSourceTypes', 'QSGRendererInterface.ShaderSourceType']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGRendererInterface.ShaderSourceTypes') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGRendererInterface.ShaderSourceTypes': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + @staticmethod + def isApiRhiBased(api: 'QSGRendererInterface.GraphicsApi') -> bool: ... + def shaderSourceType(self) -> 'QSGRendererInterface.ShaderSourceTypes': ... + def shaderCompilationType(self) -> 'QSGRendererInterface.ShaderCompilationTypes': ... + def shaderType(self) -> 'QSGRendererInterface.ShaderType': ... + @typing.overload + def getResource(self, window: QQuickWindow, resource: 'QSGRendererInterface.Resource') -> sip.voidptr: ... + @typing.overload + def getResource(self, window: QQuickWindow, resource: str) -> sip.voidptr: ... + def graphicsApi(self) -> 'QSGRendererInterface.GraphicsApi': ... + + +class QSGRenderNode(QSGNode): + + class RenderingFlag(int): ... + BoundedRectRendering = ... # type: 'QSGRenderNode.RenderingFlag' + DepthAwareRendering = ... # type: 'QSGRenderNode.RenderingFlag' + OpaqueRendering = ... # type: 'QSGRenderNode.RenderingFlag' + + class StateFlag(int): ... + DepthState = ... # type: 'QSGRenderNode.StateFlag' + StencilState = ... # type: 'QSGRenderNode.StateFlag' + ScissorState = ... # type: 'QSGRenderNode.StateFlag' + ColorState = ... # type: 'QSGRenderNode.StateFlag' + BlendState = ... # type: 'QSGRenderNode.StateFlag' + CullState = ... # type: 'QSGRenderNode.StateFlag' + ViewportState = ... # type: 'QSGRenderNode.StateFlag' + RenderTargetState = ... # type: 'QSGRenderNode.StateFlag' + + class StateFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGRenderNode.StateFlags', 'QSGRenderNode.StateFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGRenderNode.StateFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGRenderNode.StateFlags': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + class RenderingFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGRenderNode.RenderingFlags', 'QSGRenderNode.RenderingFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGRenderNode.RenderingFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGRenderNode.RenderingFlags': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + class RenderState(sip.simplewrapper): + + def get(self, state: str) -> sip.voidptr: ... + def clipRegion(self) -> QtGui.QRegion: ... + def stencilEnabled(self) -> bool: ... + def stencilValue(self) -> int: ... + def scissorEnabled(self) -> bool: ... + def scissorRect(self) -> QtCore.QRect: ... + def projectionMatrix(self) -> QtGui.QMatrix4x4: ... + + def inheritedOpacity(self) -> float: ... + def clipList(self) -> QSGClipNode: ... + def matrix(self) -> QtGui.QMatrix4x4: ... + def rect(self) -> QtCore.QRectF: ... + def flags(self) -> 'QSGRenderNode.RenderingFlags': ... + def releaseResources(self) -> None: ... + def render(self, state: 'QSGRenderNode.RenderState') -> None: ... + def changedStates(self) -> 'QSGRenderNode.StateFlags': ... + + +class QSGSimpleRectNode(QSGGeometryNode): + + @typing.overload + def __init__(self, rect: QtCore.QRectF, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + @typing.overload + def __init__(self) -> None: ... + + def color(self) -> QtGui.QColor: ... + def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def rect(self) -> QtCore.QRectF: ... + @typing.overload + def setRect(self, rect: QtCore.QRectF) -> None: ... + @typing.overload + def setRect(self, x: float, y: float, w: float, h: float) -> None: ... + + +class QSGSimpleTextureNode(QSGGeometryNode): + + class TextureCoordinatesTransformFlag(int): ... + NoTransform = ... # type: 'QSGSimpleTextureNode.TextureCoordinatesTransformFlag' + MirrorHorizontally = ... # type: 'QSGSimpleTextureNode.TextureCoordinatesTransformFlag' + MirrorVertically = ... # type: 'QSGSimpleTextureNode.TextureCoordinatesTransformFlag' + + class TextureCoordinatesTransformMode(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGSimpleTextureNode.TextureCoordinatesTransformMode', 'QSGSimpleTextureNode.TextureCoordinatesTransformFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGSimpleTextureNode.TextureCoordinatesTransformMode') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGSimpleTextureNode.TextureCoordinatesTransformMode': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + def __init__(self) -> None: ... + + def sourceRect(self) -> QtCore.QRectF: ... + @typing.overload + def setSourceRect(self, r: QtCore.QRectF) -> None: ... + @typing.overload + def setSourceRect(self, x: float, y: float, w: float, h: float) -> None: ... + def ownsTexture(self) -> bool: ... + def setOwnsTexture(self, owns: bool) -> None: ... + def textureCoordinatesTransform(self) -> 'QSGSimpleTextureNode.TextureCoordinatesTransformMode': ... + def setTextureCoordinatesTransform(self, mode: typing.Union['QSGSimpleTextureNode.TextureCoordinatesTransformMode', 'QSGSimpleTextureNode.TextureCoordinatesTransformFlag']) -> None: ... + def filtering(self) -> 'QSGTexture.Filtering': ... + def setFiltering(self, filtering: 'QSGTexture.Filtering') -> None: ... + def texture(self) -> 'QSGTexture': ... + def setTexture(self, texture: 'QSGTexture') -> None: ... + def rect(self) -> QtCore.QRectF: ... + @typing.overload + def setRect(self, rect: QtCore.QRectF) -> None: ... + @typing.overload + def setRect(self, x: float, y: float, w: float, h: float) -> None: ... + + +class QSGTexture(QtCore.QObject): + + class AnisotropyLevel(int): ... + AnisotropyNone = ... # type: 'QSGTexture.AnisotropyLevel' + Anisotropy2x = ... # type: 'QSGTexture.AnisotropyLevel' + Anisotropy4x = ... # type: 'QSGTexture.AnisotropyLevel' + Anisotropy8x = ... # type: 'QSGTexture.AnisotropyLevel' + Anisotropy16x = ... # type: 'QSGTexture.AnisotropyLevel' + + class Filtering(int): ... + None = ... # type: 'QSGTexture.Filtering' + Nearest = ... # type: 'QSGTexture.Filtering' + Linear = ... # type: 'QSGTexture.Filtering' + + class WrapMode(int): ... + Repeat = ... # type: 'QSGTexture.WrapMode' + ClampToEdge = ... # type: 'QSGTexture.WrapMode' + MirroredRepeat = ... # type: 'QSGTexture.WrapMode' + + def __init__(self) -> None: ... + + def comparisonKey(self) -> int: ... + def anisotropyLevel(self) -> 'QSGTexture.AnisotropyLevel': ... + def setAnisotropyLevel(self, level: 'QSGTexture.AnisotropyLevel') -> None: ... + def convertToNormalizedSourceRect(self, rect: QtCore.QRectF) -> QtCore.QRectF: ... + def verticalWrapMode(self) -> 'QSGTexture.WrapMode': ... + def setVerticalWrapMode(self, vwrap: 'QSGTexture.WrapMode') -> None: ... + def horizontalWrapMode(self) -> 'QSGTexture.WrapMode': ... + def setHorizontalWrapMode(self, hwrap: 'QSGTexture.WrapMode') -> None: ... + def filtering(self) -> 'QSGTexture.Filtering': ... + def setFiltering(self, filter: 'QSGTexture.Filtering') -> None: ... + def mipmapFiltering(self) -> 'QSGTexture.Filtering': ... + def setMipmapFiltering(self, filter: 'QSGTexture.Filtering') -> None: ... + def updateBindOptions(self, force: bool = ...) -> None: ... + def bind(self) -> None: ... + def removedFromAtlas(self) -> 'QSGTexture': ... + def isAtlasTexture(self) -> bool: ... + def normalizedTextureSubRect(self) -> QtCore.QRectF: ... + def hasMipmaps(self) -> bool: ... + def hasAlphaChannel(self) -> bool: ... + def textureSize(self) -> QtCore.QSize: ... + def textureId(self) -> int: ... + + +class QSGDynamicTexture(QSGTexture): + + def __init__(self) -> None: ... + + def updateTexture(self) -> bool: ... + + +class QSGOpaqueTextureMaterial(QSGMaterial): + + def __init__(self) -> None: ... + + def anisotropyLevel(self) -> QSGTexture.AnisotropyLevel: ... + def setAnisotropyLevel(self, level: QSGTexture.AnisotropyLevel) -> None: ... + def verticalWrapMode(self) -> QSGTexture.WrapMode: ... + def setVerticalWrapMode(self, mode: QSGTexture.WrapMode) -> None: ... + def horizontalWrapMode(self) -> QSGTexture.WrapMode: ... + def setHorizontalWrapMode(self, mode: QSGTexture.WrapMode) -> None: ... + def filtering(self) -> QSGTexture.Filtering: ... + def setFiltering(self, filtering: QSGTexture.Filtering) -> None: ... + def mipmapFiltering(self) -> QSGTexture.Filtering: ... + def setMipmapFiltering(self, filtering: QSGTexture.Filtering) -> None: ... + def texture(self) -> QSGTexture: ... + def setTexture(self, texture: QSGTexture) -> None: ... + def compare(self, other: QSGMaterial) -> int: ... + def createShader(self) -> QSGMaterialShader: ... + def type(self) -> QSGMaterialType: ... + + +class QSGTextureMaterial(QSGOpaqueTextureMaterial): + + def __init__(self) -> None: ... + + def createShader(self) -> QSGMaterialShader: ... + def type(self) -> QSGMaterialType: ... + + +class QSGTextureProvider(QtCore.QObject): + + def __init__(self) -> None: ... + + def textureChanged(self) -> None: ... + def texture(self) -> QSGTexture: ... + + +class QSGVertexColorMaterial(QSGMaterial): + + def __init__(self) -> None: ... + + def createShader(self) -> QSGMaterialShader: ... + def type(self) -> QSGMaterialType: ... + def compare(self, other: QSGMaterial) -> int: ... diff --git a/PyQt5-stubs/QtQuickWidgets.pyi b/PyQt5-stubs/QtQuickWidgets.pyi new file mode 100644 index 00000000..26f7abaf --- /dev/null +++ b/PyQt5-stubs/QtQuickWidgets.pyi @@ -0,0 +1,102 @@ +# The PEP 484 type hints stub file for the QtQuickWidgets module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2020 Riverbank Computing Limited +# +# 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 sip + +from PyQt5 import QtWidgets +from PyQt5 import QtQuick +from PyQt5 import QtQml +from PyQt5 import QtGui +from PyQt5 import QtCore + +# 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], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QQuickWidget(QtWidgets.QWidget): + + class Status(int): ... + Null = ... # type: 'QQuickWidget.Status' + Ready = ... # type: 'QQuickWidget.Status' + Loading = ... # type: 'QQuickWidget.Status' + Error = ... # type: 'QQuickWidget.Status' + + class ResizeMode(int): ... + SizeViewToRootObject = ... # type: 'QQuickWidget.ResizeMode' + SizeRootObjectToView = ... # type: 'QQuickWidget.ResizeMode' + + @typing.overload + def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, engine: QtQml.QQmlEngine, parent: QtWidgets.QWidget) -> None: ... + @typing.overload + def __init__(self, source: QtCore.QUrl, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + + def focusNextPrevChild(self, next: bool) -> bool: ... + def quickWindow(self) -> QtQuick.QQuickWindow: ... + def setClearColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def grabFramebuffer(self) -> QtGui.QImage: ... + def paintEvent(self, event: QtGui.QPaintEvent) -> None: ... + def dropEvent(self, a0: QtGui.QDropEvent) -> None: ... + def dragLeaveEvent(self, a0: QtGui.QDragLeaveEvent) -> None: ... + def dragMoveEvent(self, a0: QtGui.QDragMoveEvent) -> None: ... + def dragEnterEvent(self, a0: QtGui.QDragEnterEvent) -> None: ... + def focusOutEvent(self, event: QtGui.QFocusEvent) -> None: ... + def focusInEvent(self, event: QtGui.QFocusEvent) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def wheelEvent(self, a0: QtGui.QWheelEvent) -> None: ... + def hideEvent(self, a0: QtGui.QHideEvent) -> None: ... + def showEvent(self, a0: QtGui.QShowEvent) -> None: ... + def mouseDoubleClickEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def keyReleaseEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def timerEvent(self, a0: QtCore.QTimerEvent) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... + def sceneGraphError(self, error: QtQuick.QQuickWindow.SceneGraphError, message: str) -> None: ... + def statusChanged(self, a0: 'QQuickWidget.Status') -> None: ... + def setSource(self, a0: QtCore.QUrl) -> None: ... + def format(self) -> QtGui.QSurfaceFormat: ... + def setFormat(self, format: QtGui.QSurfaceFormat) -> None: ... + def initialSize(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + def errors(self) -> typing.List[QtQml.QQmlError]: ... + def status(self) -> 'QQuickWidget.Status': ... + def setResizeMode(self, a0: 'QQuickWidget.ResizeMode') -> None: ... + def resizeMode(self) -> 'QQuickWidget.ResizeMode': ... + def rootObject(self) -> QtQuick.QQuickItem: ... + def rootContext(self) -> QtQml.QQmlContext: ... + def engine(self) -> QtQml.QQmlEngine: ... + def source(self) -> QtCore.QUrl: ... diff --git a/PyQt5-stubs/QtRemoteObjects.pyi b/PyQt5-stubs/QtRemoteObjects.pyi new file mode 100644 index 00000000..779c74ae --- /dev/null +++ b/PyQt5-stubs/QtRemoteObjects.pyi @@ -0,0 +1,191 @@ +# The PEP 484 type hints stub file for the QtRemoteObjects module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2020 Riverbank Computing Limited +# +# 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 sip + +from PyQt5 import QtCore + +# 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] + + +class QAbstractItemModelReplica(QtCore.QAbstractItemModel): + + def initialized(self) -> None: ... + def setRootCacheSize(self, rootCacheSize: int) -> None: ... + def rootCacheSize(self) -> int: ... + def hasData(self, index: QtCore.QModelIndex, role: int) -> bool: ... + def isInitialized(self) -> bool: ... + def roleNames(self) -> typing.Dict[int, QtCore.QByteArray]: ... + def availableRoles(self) -> typing.List[int]: ... + def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlags: ... + def headerData(self, section: int, orientation: QtCore.Qt.Orientation, role: int) -> typing.Any: ... + def columnCount(self, parent: QtCore.QModelIndex = ...) -> int: ... + def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ... + def hasChildren(self, parent: QtCore.QModelIndex = ...) -> bool: ... + def index(self, row: int, column: int, parent: QtCore.QModelIndex = ...) -> QtCore.QModelIndex: ... + def parent(self, index: QtCore.QModelIndex) -> QtCore.QModelIndex: ... + def setData(self, index: QtCore.QModelIndex, value: typing.Any, role: int = ...) -> bool: ... + def data(self, index: QtCore.QModelIndex, role: int = ...) -> typing.Any: ... + def selectionModel(self) -> QtCore.QItemSelectionModel: ... + + +class QRemoteObjectReplica(QtCore.QObject): + + class State(int): ... + Uninitialized = ... # type: 'QRemoteObjectReplica.State' + Default = ... # type: 'QRemoteObjectReplica.State' + Valid = ... # type: 'QRemoteObjectReplica.State' + Suspect = ... # type: 'QRemoteObjectReplica.State' + SignatureMismatch = ... # type: 'QRemoteObjectReplica.State' + + def stateChanged(self, state: 'QRemoteObjectReplica.State', oldState: 'QRemoteObjectReplica.State') -> None: ... + def initialized(self) -> None: ... + def setNode(self, node: 'QRemoteObjectNode') -> None: ... + def node(self) -> 'QRemoteObjectNode': ... + def state(self) -> 'QRemoteObjectReplica.State': ... + def isInitialized(self) -> bool: ... + def waitForSource(self, timeout: int = ...) -> bool: ... + def isReplicaValid(self) -> bool: ... + + +class QRemoteObjectDynamicReplica(QRemoteObjectReplica): ... + + +class QRemoteObjectAbstractPersistedStore(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def restoreProperties(self, repName: str, repSig: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> typing.List[typing.Any]: ... + def saveProperties(self, repName: str, repSig: typing.Union[QtCore.QByteArray, bytes, bytearray], values: typing.Iterable[typing.Any]) -> None: ... + + +class QRemoteObjectNode(QtCore.QObject): + + class ErrorCode(int): ... + NoError = ... # type: 'QRemoteObjectNode.ErrorCode' + RegistryNotAcquired = ... # type: 'QRemoteObjectNode.ErrorCode' + RegistryAlreadyHosted = ... # type: 'QRemoteObjectNode.ErrorCode' + NodeIsNoServer = ... # type: 'QRemoteObjectNode.ErrorCode' + ServerAlreadyCreated = ... # type: 'QRemoteObjectNode.ErrorCode' + UnintendedRegistryHosting = ... # type: 'QRemoteObjectNode.ErrorCode' + OperationNotValidOnClientNode = ... # type: 'QRemoteObjectNode.ErrorCode' + SourceNotRegistered = ... # type: 'QRemoteObjectNode.ErrorCode' + MissingObjectName = ... # type: 'QRemoteObjectNode.ErrorCode' + HostUrlInvalid = ... # type: 'QRemoteObjectNode.ErrorCode' + ProtocolMismatch = ... # type: 'QRemoteObjectNode.ErrorCode' + ListenFailed = ... # type: 'QRemoteObjectNode.ErrorCode' + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, registryAddress: QtCore.QUrl, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def timerEvent(self, a0: QtCore.QTimerEvent) -> None: ... + def heartbeatIntervalChanged(self, heartbeatInterval: int) -> None: ... + def error(self, errorCode: 'QRemoteObjectNode.ErrorCode') -> None: ... + def remoteObjectRemoved(self, a0: typing.Tuple[str, 'QRemoteObjectSourceLocationInfo']) -> None: ... + def remoteObjectAdded(self, a0: typing.Tuple[str, 'QRemoteObjectSourceLocationInfo']) -> None: ... + def setHeartbeatInterval(self, interval: int) -> None: ... + def heartbeatInterval(self) -> int: ... + def lastError(self) -> 'QRemoteObjectNode.ErrorCode': ... + def setPersistedStore(self, persistedStore: QRemoteObjectAbstractPersistedStore) -> None: ... + def persistedStore(self) -> QRemoteObjectAbstractPersistedStore: ... + def registry(self) -> 'QRemoteObjectRegistry': ... + def waitForRegistry(self, timeout: int = ...) -> bool: ... + def setRegistryUrl(self, registryAddress: QtCore.QUrl) -> bool: ... + def registryUrl(self) -> QtCore.QUrl: ... + def acquireModel(self, name: str, action: 'QtRemoteObjects.InitialAction' = ..., rolesHint: typing.Iterable[int] = ...) -> QAbstractItemModelReplica: ... + def acquireDynamic(self, name: str) -> QRemoteObjectDynamicReplica: ... + def instances(self, typeName: str) -> typing.List[str]: ... + def setName(self, name: str) -> None: ... + def addClientSideConnection(self, ioDevice: QtCore.QIODevice) -> None: ... + def connectToNode(self, address: QtCore.QUrl) -> bool: ... + + +class QRemoteObjectHostBase(QRemoteObjectNode): + + class AllowedSchemas(int): ... + BuiltInSchemasOnly = ... # type: 'QRemoteObjectHostBase.AllowedSchemas' + AllowExternalRegistration = ... # type: 'QRemoteObjectHostBase.AllowedSchemas' + + def reverseProxy(self) -> bool: ... + def proxy(self, registryUrl: QtCore.QUrl, hostUrl: QtCore.QUrl = ...) -> bool: ... + def addHostSideConnection(self, ioDevice: QtCore.QIODevice) -> None: ... + def disableRemoting(self, remoteObject: QtCore.QObject) -> bool: ... + @typing.overload + def enableRemoting(self, object: QtCore.QObject, name: str = ...) -> bool: ... + @typing.overload + def enableRemoting(self, model: QtCore.QAbstractItemModel, name: str, roles: typing.Iterable[int], selectionModel: typing.Optional[QtCore.QItemSelectionModel] = ...) -> bool: ... + def setName(self, name: str) -> None: ... + + +class QRemoteObjectHost(QRemoteObjectHostBase): + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, address: QtCore.QUrl, registryAddress: QtCore.QUrl = ..., allowedSchemas: QRemoteObjectHostBase.AllowedSchemas = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, address: QtCore.QUrl, parent: QtCore.QObject) -> None: ... + + def setHostUrl(self, hostAddress: QtCore.QUrl, allowedSchemas: QRemoteObjectHostBase.AllowedSchemas = ...) -> bool: ... + def hostUrl(self) -> QtCore.QUrl: ... + + +class QRemoteObjectRegistryHost(QRemoteObjectHostBase): + + def __init__(self, registryAddress: QtCore.QUrl = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setRegistryUrl(self, registryUrl: QtCore.QUrl) -> bool: ... + + +class QRemoteObjectRegistry(QRemoteObjectReplica): + + def remoteObjectRemoved(self, entry: typing.Tuple[str, 'QRemoteObjectSourceLocationInfo']) -> None: ... + def remoteObjectAdded(self, entry: typing.Tuple[str, 'QRemoteObjectSourceLocationInfo']) -> None: ... + def sourceLocations(self) -> typing.Dict[str, 'QRemoteObjectSourceLocationInfo']: ... + + +class QRemoteObjectSourceLocationInfo(sip.simplewrapper): + + hostUrl = ... # type: QtCore.QUrl + typeName = ... # type: str + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, typeName_: str, hostUrl_: QtCore.QUrl) -> None: ... + @typing.overload + def __init__(self, a0: 'QRemoteObjectSourceLocationInfo') -> None: ... + + +class QtRemoteObjects(sip.simplewrapper): + + class InitialAction(int): ... + FetchRootSize = ... # type: 'QtRemoteObjects.InitialAction' + PrefetchData = ... # type: 'QtRemoteObjects.InitialAction' diff --git a/PyQt5-stubs/QtSensors.pyi b/PyQt5-stubs/QtSensors.pyi new file mode 100644 index 00000000..ebec888c --- /dev/null +++ b/PyQt5-stubs/QtSensors.pyi @@ -0,0 +1,663 @@ +# The PEP 484 type hints stub file for the QtSensors module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2020 Riverbank Computing Limited +# +# 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 sip + +from PyQt5 import QtCore + +# 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] + + +class QSensorReading(QtCore.QObject): + + def value(self, index: int) -> typing.Any: ... + def valueCount(self) -> int: ... + def setTimestamp(self, timestamp: int) -> None: ... + def timestamp(self) -> int: ... + + +class QAccelerometerReading(QSensorReading): + + def setZ(self, z: float) -> None: ... + def z(self) -> float: ... + def setY(self, y: float) -> None: ... + def y(self) -> float: ... + def setX(self, x: float) -> None: ... + def x(self) -> float: ... + + +class QSensorFilter(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QSensorFilter') -> None: ... + + def filter(self, reading: QSensorReading) -> bool: ... + + +class QAccelerometerFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QAccelerometerFilter') -> None: ... + + def filter(self, reading: QAccelerometerReading) -> bool: ... + + +class QSensor(QtCore.QObject): + + class AxesOrientationMode(int): ... + FixedOrientation = ... # type: 'QSensor.AxesOrientationMode' + AutomaticOrientation = ... # type: 'QSensor.AxesOrientationMode' + UserOrientation = ... # type: 'QSensor.AxesOrientationMode' + + class Feature(int): ... + Buffering = ... # type: 'QSensor.Feature' + AlwaysOn = ... # type: 'QSensor.Feature' + GeoValues = ... # type: 'QSensor.Feature' + FieldOfView = ... # type: 'QSensor.Feature' + AccelerationMode = ... # type: 'QSensor.Feature' + SkipDuplicates = ... # type: 'QSensor.Feature' + AxesOrientation = ... # type: 'QSensor.Feature' + PressureSensorTemperature = ... # type: 'QSensor.Feature' + + def __init__(self, type: typing.Union[QtCore.QByteArray, bytes, bytearray], parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def bufferSizeChanged(self, bufferSize: int) -> None: ... + def efficientBufferSizeChanged(self, efficientBufferSize: int) -> None: ... + def maxBufferSizeChanged(self, maxBufferSize: int) -> None: ... + def userOrientationChanged(self, userOrientation: int) -> None: ... + def currentOrientationChanged(self, currentOrientation: int) -> None: ... + def axesOrientationModeChanged(self, axesOrientationMode: 'QSensor.AxesOrientationMode') -> None: ... + def skipDuplicatesChanged(self, skipDuplicates: bool) -> None: ... + def dataRateChanged(self) -> None: ... + def alwaysOnChanged(self) -> None: ... + def availableSensorsChanged(self) -> None: ... + def sensorError(self, error: int) -> None: ... + def readingChanged(self) -> None: ... + def activeChanged(self) -> None: ... + def busyChanged(self) -> None: ... + def stop(self) -> None: ... + def start(self) -> bool: ... + def setBufferSize(self, bufferSize: int) -> None: ... + def bufferSize(self) -> int: ... + def setEfficientBufferSize(self, efficientBufferSize: int) -> None: ... + def efficientBufferSize(self) -> int: ... + def setMaxBufferSize(self, maxBufferSize: int) -> None: ... + def maxBufferSize(self) -> int: ... + def setUserOrientation(self, userOrientation: int) -> None: ... + def userOrientation(self) -> int: ... + def setCurrentOrientation(self, currentOrientation: int) -> None: ... + def currentOrientation(self) -> int: ... + def setAxesOrientationMode(self, axesOrientationMode: 'QSensor.AxesOrientationMode') -> None: ... + def axesOrientationMode(self) -> 'QSensor.AxesOrientationMode': ... + def isFeatureSupported(self, feature: 'QSensor.Feature') -> bool: ... + @staticmethod + def defaultSensorForType(type: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> QtCore.QByteArray: ... + @staticmethod + def sensorsForType(type: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> typing.List[QtCore.QByteArray]: ... + @staticmethod + def sensorTypes() -> typing.List[QtCore.QByteArray]: ... + def reading(self) -> QSensorReading: ... + def filters(self) -> typing.List[QSensorFilter]: ... + def removeFilter(self, filter: QSensorFilter) -> None: ... + def addFilter(self, filter: QSensorFilter) -> None: ... + def error(self) -> int: ... + def description(self) -> str: ... + def setOutputRange(self, index: int) -> None: ... + def outputRange(self) -> int: ... + def outputRanges(self) -> typing.List['qoutputrange']: ... + def setDataRate(self, rate: int) -> None: ... + def dataRate(self) -> int: ... + def availableDataRates(self) -> typing.List[typing.Tuple[int, int]]: ... + def setSkipDuplicates(self, skipDuplicates: bool) -> None: ... + def skipDuplicates(self) -> bool: ... + def setAlwaysOn(self, alwaysOn: bool) -> None: ... + def isAlwaysOn(self) -> bool: ... + def isActive(self) -> bool: ... + def setActive(self, active: bool) -> None: ... + def isBusy(self) -> bool: ... + def isConnectedToBackend(self) -> bool: ... + def connectToBackend(self) -> bool: ... + def type(self) -> QtCore.QByteArray: ... + def setIdentifier(self, identifier: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def identifier(self) -> QtCore.QByteArray: ... + + +class QAccelerometer(QSensor): + + class AccelerationMode(int): ... + Combined = ... # type: 'QAccelerometer.AccelerationMode' + Gravity = ... # type: 'QAccelerometer.AccelerationMode' + User = ... # type: 'QAccelerometer.AccelerationMode' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def accelerationModeChanged(self, accelerationMode: 'QAccelerometer.AccelerationMode') -> None: ... + def reading(self) -> QAccelerometerReading: ... + def setAccelerationMode(self, accelerationMode: 'QAccelerometer.AccelerationMode') -> None: ... + def accelerationMode(self) -> 'QAccelerometer.AccelerationMode': ... + + +class QAltimeterReading(QSensorReading): + + def setAltitude(self, altitude: float) -> None: ... + def altitude(self) -> float: ... + + +class QAltimeterFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QAltimeterFilter') -> None: ... + + def filter(self, reading: QAltimeterReading) -> bool: ... + + +class QAltimeter(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QAltimeterReading: ... + + +class QAmbientLightReading(QSensorReading): + + class LightLevel(int): ... + Undefined = ... # type: 'QAmbientLightReading.LightLevel' + Dark = ... # type: 'QAmbientLightReading.LightLevel' + Twilight = ... # type: 'QAmbientLightReading.LightLevel' + Light = ... # type: 'QAmbientLightReading.LightLevel' + Bright = ... # type: 'QAmbientLightReading.LightLevel' + Sunny = ... # type: 'QAmbientLightReading.LightLevel' + + def setLightLevel(self, lightLevel: 'QAmbientLightReading.LightLevel') -> None: ... + def lightLevel(self) -> 'QAmbientLightReading.LightLevel': ... + + +class QAmbientLightFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QAmbientLightFilter') -> None: ... + + def filter(self, reading: QAmbientLightReading) -> bool: ... + + +class QAmbientLightSensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QAmbientLightReading: ... + + +class QAmbientTemperatureReading(QSensorReading): + + def setTemperature(self, temperature: float) -> None: ... + def temperature(self) -> float: ... + + +class QAmbientTemperatureFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QAmbientTemperatureFilter') -> None: ... + + def filter(self, reading: QAmbientTemperatureReading) -> bool: ... + + +class QAmbientTemperatureSensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QAmbientTemperatureReading: ... + + +class QCompassReading(QSensorReading): + + def setCalibrationLevel(self, calibrationLevel: float) -> None: ... + def calibrationLevel(self) -> float: ... + def setAzimuth(self, azimuth: float) -> None: ... + def azimuth(self) -> float: ... + + +class QCompassFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QCompassFilter') -> None: ... + + def filter(self, reading: QCompassReading) -> bool: ... + + +class QCompass(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QCompassReading: ... + + +class QDistanceReading(QSensorReading): + + def setDistance(self, distance: float) -> None: ... + def distance(self) -> float: ... + + +class QDistanceFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDistanceFilter') -> None: ... + + def filter(self, reading: QDistanceReading) -> bool: ... + + +class QDistanceSensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QDistanceReading: ... + + +class QGyroscopeReading(QSensorReading): + + def setZ(self, z: float) -> None: ... + def z(self) -> float: ... + def setY(self, y: float) -> None: ... + def y(self) -> float: ... + def setX(self, x: float) -> None: ... + def x(self) -> float: ... + + +class QGyroscopeFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QGyroscopeFilter') -> None: ... + + def filter(self, reading: QGyroscopeReading) -> bool: ... + + +class QGyroscope(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QGyroscopeReading: ... + + +class QHolsterReading(QSensorReading): + + def setHolstered(self, holstered: bool) -> None: ... + def holstered(self) -> bool: ... + + +class QHolsterFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QHolsterFilter') -> None: ... + + def filter(self, reading: QHolsterReading) -> bool: ... + + +class QHolsterSensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QHolsterReading: ... + + +class QHumidityReading(QSensorReading): + + def setAbsoluteHumidity(self, value: float) -> None: ... + def absoluteHumidity(self) -> float: ... + def setRelativeHumidity(self, percent: float) -> None: ... + def relativeHumidity(self) -> float: ... + + +class QHumidityFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QHumidityFilter') -> None: ... + + def filter(self, reading: QHumidityReading) -> bool: ... + + +class QHumiditySensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QHumidityReading: ... + + +class QIRProximityReading(QSensorReading): + + def setReflectance(self, reflectance: float) -> None: ... + def reflectance(self) -> float: ... + + +class QIRProximityFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QIRProximityFilter') -> None: ... + + def filter(self, reading: QIRProximityReading) -> bool: ... + + +class QIRProximitySensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QIRProximityReading: ... + + +class QLidReading(QSensorReading): + + def frontLidChanged(self, closed: bool) -> None: ... + def backLidChanged(self, closed: bool) -> None: ... + def setFrontLidClosed(self, closed: bool) -> None: ... + def frontLidClosed(self) -> bool: ... + def setBackLidClosed(self, closed: bool) -> None: ... + def backLidClosed(self) -> bool: ... + + +class QLidFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QLidFilter') -> None: ... + + def filter(self, reading: QLidReading) -> bool: ... + + +class QLidSensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QLidReading: ... + + +class QLightReading(QSensorReading): + + def setLux(self, lux: float) -> None: ... + def lux(self) -> float: ... + + +class QLightFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QLightFilter') -> None: ... + + def filter(self, reading: QLightReading) -> bool: ... + + +class QLightSensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def fieldOfViewChanged(self, fieldOfView: float) -> None: ... + def setFieldOfView(self, fieldOfView: float) -> None: ... + def fieldOfView(self) -> float: ... + def reading(self) -> QLightReading: ... + + +class QMagnetometerReading(QSensorReading): + + def setCalibrationLevel(self, calibrationLevel: float) -> None: ... + def calibrationLevel(self) -> float: ... + def setZ(self, z: float) -> None: ... + def z(self) -> float: ... + def setY(self, y: float) -> None: ... + def y(self) -> float: ... + def setX(self, x: float) -> None: ... + def x(self) -> float: ... + + +class QMagnetometerFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QMagnetometerFilter') -> None: ... + + def filter(self, reading: QMagnetometerReading) -> bool: ... + + +class QMagnetometer(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def returnGeoValuesChanged(self, returnGeoValues: bool) -> None: ... + def setReturnGeoValues(self, returnGeoValues: bool) -> None: ... + def returnGeoValues(self) -> bool: ... + def reading(self) -> QMagnetometerReading: ... + + +class QOrientationReading(QSensorReading): + + class Orientation(int): ... + Undefined = ... # type: 'QOrientationReading.Orientation' + TopUp = ... # type: 'QOrientationReading.Orientation' + TopDown = ... # type: 'QOrientationReading.Orientation' + LeftUp = ... # type: 'QOrientationReading.Orientation' + RightUp = ... # type: 'QOrientationReading.Orientation' + FaceUp = ... # type: 'QOrientationReading.Orientation' + FaceDown = ... # type: 'QOrientationReading.Orientation' + + def setOrientation(self, orientation: 'QOrientationReading.Orientation') -> None: ... + def orientation(self) -> 'QOrientationReading.Orientation': ... + + +class QOrientationFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QOrientationFilter') -> None: ... + + def filter(self, reading: QOrientationReading) -> bool: ... + + +class QOrientationSensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QOrientationReading: ... + + +class QPressureReading(QSensorReading): + + def setTemperature(self, temperature: float) -> None: ... + def temperature(self) -> float: ... + def setPressure(self, pressure: float) -> None: ... + def pressure(self) -> float: ... + + +class QPressureFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QPressureFilter') -> None: ... + + def filter(self, reading: QPressureReading) -> bool: ... + + +class QPressureSensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QPressureReading: ... + + +class QProximityReading(QSensorReading): + + def setClose(self, close: bool) -> None: ... + def close(self) -> bool: ... + + +class QProximityFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QProximityFilter') -> None: ... + + def filter(self, reading: QProximityReading) -> bool: ... + + +class QProximitySensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QProximityReading: ... + + +class qoutputrange(sip.simplewrapper): + + accuracy = ... # type: float + maximum = ... # type: float + minimum = ... # type: float + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'qoutputrange') -> None: ... + + +class QTapReading(QSensorReading): + + class TapDirection(int): ... + Undefined = ... # type: 'QTapReading.TapDirection' + X = ... # type: 'QTapReading.TapDirection' + Y = ... # type: 'QTapReading.TapDirection' + Z = ... # type: 'QTapReading.TapDirection' + X_Pos = ... # type: 'QTapReading.TapDirection' + Y_Pos = ... # type: 'QTapReading.TapDirection' + Z_Pos = ... # type: 'QTapReading.TapDirection' + X_Neg = ... # type: 'QTapReading.TapDirection' + Y_Neg = ... # type: 'QTapReading.TapDirection' + Z_Neg = ... # type: 'QTapReading.TapDirection' + X_Both = ... # type: 'QTapReading.TapDirection' + Y_Both = ... # type: 'QTapReading.TapDirection' + Z_Both = ... # type: 'QTapReading.TapDirection' + + def setDoubleTap(self, doubleTap: bool) -> None: ... + def isDoubleTap(self) -> bool: ... + def setTapDirection(self, tapDirection: 'QTapReading.TapDirection') -> None: ... + def tapDirection(self) -> 'QTapReading.TapDirection': ... + + +class QTapFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTapFilter') -> None: ... + + def filter(self, reading: QTapReading) -> bool: ... + + +class QTapSensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def returnDoubleTapEventsChanged(self, returnDoubleTapEvents: bool) -> None: ... + def setReturnDoubleTapEvents(self, returnDoubleTapEvents: bool) -> None: ... + def returnDoubleTapEvents(self) -> bool: ... + def reading(self) -> QTapReading: ... + + +class QTiltReading(QSensorReading): + + def setXRotation(self, x: float) -> None: ... + def xRotation(self) -> float: ... + def setYRotation(self, y: float) -> None: ... + def yRotation(self) -> float: ... + + +class QTiltFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTiltFilter') -> None: ... + + def filter(self, reading: QTiltReading) -> bool: ... + + +class QTiltSensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def calibrate(self) -> None: ... + def reading(self) -> QTiltReading: ... + + +class QRotationReading(QSensorReading): + + def setFromEuler(self, x: float, y: float, z: float) -> None: ... + def z(self) -> float: ... + def y(self) -> float: ... + def x(self) -> float: ... + + +class QRotationFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QRotationFilter') -> None: ... + + def filter(self, reading: QRotationReading) -> bool: ... + + +class QRotationSensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def hasZChanged(self, hasZ: bool) -> None: ... + def setHasZ(self, hasZ: bool) -> None: ... + def hasZ(self) -> bool: ... + def reading(self) -> QRotationReading: ... diff --git a/PyQt5-stubs/QtSerialPort.pyi b/PyQt5-stubs/QtSerialPort.pyi new file mode 100644 index 00000000..8cb70f1b --- /dev/null +++ b/PyQt5-stubs/QtSerialPort.pyi @@ -0,0 +1,241 @@ +# The PEP 484 type hints stub file for the QtSerialPort module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2020 Riverbank Computing Limited +# +# 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 sip + +from PyQt5 import QtCore + +# 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] + + +class QSerialPort(QtCore.QIODevice): + + class SerialPortError(int): ... + NoError = ... # type: 'QSerialPort.SerialPortError' + DeviceNotFoundError = ... # type: 'QSerialPort.SerialPortError' + PermissionError = ... # type: 'QSerialPort.SerialPortError' + OpenError = ... # type: 'QSerialPort.SerialPortError' + ParityError = ... # type: 'QSerialPort.SerialPortError' + FramingError = ... # type: 'QSerialPort.SerialPortError' + BreakConditionError = ... # type: 'QSerialPort.SerialPortError' + WriteError = ... # type: 'QSerialPort.SerialPortError' + ReadError = ... # type: 'QSerialPort.SerialPortError' + ResourceError = ... # type: 'QSerialPort.SerialPortError' + UnsupportedOperationError = ... # type: 'QSerialPort.SerialPortError' + TimeoutError = ... # type: 'QSerialPort.SerialPortError' + NotOpenError = ... # type: 'QSerialPort.SerialPortError' + UnknownError = ... # type: 'QSerialPort.SerialPortError' + + class DataErrorPolicy(int): ... + SkipPolicy = ... # type: 'QSerialPort.DataErrorPolicy' + PassZeroPolicy = ... # type: 'QSerialPort.DataErrorPolicy' + IgnorePolicy = ... # type: 'QSerialPort.DataErrorPolicy' + StopReceivingPolicy = ... # type: 'QSerialPort.DataErrorPolicy' + UnknownPolicy = ... # type: 'QSerialPort.DataErrorPolicy' + + class PinoutSignal(int): ... + NoSignal = ... # type: 'QSerialPort.PinoutSignal' + TransmittedDataSignal = ... # type: 'QSerialPort.PinoutSignal' + ReceivedDataSignal = ... # type: 'QSerialPort.PinoutSignal' + DataTerminalReadySignal = ... # type: 'QSerialPort.PinoutSignal' + DataCarrierDetectSignal = ... # type: 'QSerialPort.PinoutSignal' + DataSetReadySignal = ... # type: 'QSerialPort.PinoutSignal' + RingIndicatorSignal = ... # type: 'QSerialPort.PinoutSignal' + RequestToSendSignal = ... # type: 'QSerialPort.PinoutSignal' + ClearToSendSignal = ... # type: 'QSerialPort.PinoutSignal' + SecondaryTransmittedDataSignal = ... # type: 'QSerialPort.PinoutSignal' + SecondaryReceivedDataSignal = ... # type: 'QSerialPort.PinoutSignal' + + class FlowControl(int): ... + NoFlowControl = ... # type: 'QSerialPort.FlowControl' + HardwareControl = ... # type: 'QSerialPort.FlowControl' + SoftwareControl = ... # type: 'QSerialPort.FlowControl' + UnknownFlowControl = ... # type: 'QSerialPort.FlowControl' + + class StopBits(int): ... + OneStop = ... # type: 'QSerialPort.StopBits' + OneAndHalfStop = ... # type: 'QSerialPort.StopBits' + TwoStop = ... # type: 'QSerialPort.StopBits' + UnknownStopBits = ... # type: 'QSerialPort.StopBits' + + class Parity(int): ... + NoParity = ... # type: 'QSerialPort.Parity' + EvenParity = ... # type: 'QSerialPort.Parity' + OddParity = ... # type: 'QSerialPort.Parity' + SpaceParity = ... # type: 'QSerialPort.Parity' + MarkParity = ... # type: 'QSerialPort.Parity' + UnknownParity = ... # type: 'QSerialPort.Parity' + + class DataBits(int): ... + Data5 = ... # type: 'QSerialPort.DataBits' + Data6 = ... # type: 'QSerialPort.DataBits' + Data7 = ... # type: 'QSerialPort.DataBits' + Data8 = ... # type: 'QSerialPort.DataBits' + UnknownDataBits = ... # type: 'QSerialPort.DataBits' + + class BaudRate(int): ... + Baud1200 = ... # type: 'QSerialPort.BaudRate' + Baud2400 = ... # type: 'QSerialPort.BaudRate' + Baud4800 = ... # type: 'QSerialPort.BaudRate' + Baud9600 = ... # type: 'QSerialPort.BaudRate' + Baud19200 = ... # type: 'QSerialPort.BaudRate' + Baud38400 = ... # type: 'QSerialPort.BaudRate' + Baud57600 = ... # type: 'QSerialPort.BaudRate' + Baud115200 = ... # type: 'QSerialPort.BaudRate' + UnknownBaud = ... # type: 'QSerialPort.BaudRate' + + class Direction(int): ... + Input = ... # type: 'QSerialPort.Direction' + Output = ... # type: 'QSerialPort.Direction' + AllDirections = ... # type: 'QSerialPort.Direction' + + class Directions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSerialPort.Directions', 'QSerialPort.Direction']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSerialPort.Directions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSerialPort.Directions': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + class PinoutSignals(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSerialPort.PinoutSignals', 'QSerialPort.PinoutSignal']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSerialPort.PinoutSignals') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSerialPort.PinoutSignals': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, name: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, info: 'QSerialPortInfo', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def errorOccurred(self, error: 'QSerialPort.SerialPortError') -> None: ... + def breakEnabledChanged(self, set: bool) -> None: ... + def isBreakEnabled(self) -> bool: ... + def handle(self) -> int: ... + def writeData(self, data: bytes) -> int: ... + def readLineData(self, maxlen: int) -> bytes: ... + def readData(self, maxlen: int) -> bytes: ... + def settingsRestoredOnCloseChanged(self, restore: bool) -> None: ... + def requestToSendChanged(self, set: bool) -> None: ... + def dataTerminalReadyChanged(self, set: bool) -> None: ... + def dataErrorPolicyChanged(self, policy: 'QSerialPort.DataErrorPolicy') -> None: ... + def flowControlChanged(self, flow: 'QSerialPort.FlowControl') -> None: ... + def stopBitsChanged(self, stopBits: 'QSerialPort.StopBits') -> None: ... + def parityChanged(self, parity: 'QSerialPort.Parity') -> None: ... + def dataBitsChanged(self, dataBits: 'QSerialPort.DataBits') -> None: ... + def baudRateChanged(self, baudRate: int, directions: typing.Union['QSerialPort.Directions', 'QSerialPort.Direction']) -> None: ... + def setBreakEnabled(self, enabled: bool = ...) -> bool: ... + def sendBreak(self, duration: int = ...) -> bool: ... + def waitForBytesWritten(self, msecs: int = ...) -> bool: ... + def waitForReadyRead(self, msecs: int = ...) -> bool: ... + def canReadLine(self) -> bool: ... + def bytesToWrite(self) -> int: ... + def bytesAvailable(self) -> int: ... + def isSequential(self) -> bool: ... + def setReadBufferSize(self, size: int) -> None: ... + def readBufferSize(self) -> int: ... + def clearError(self) -> None: ... + @typing.overload + def error(self) -> 'QSerialPort.SerialPortError': ... + @typing.overload + def error(self, serialPortError: 'QSerialPort.SerialPortError') -> None: ... + def dataErrorPolicy(self) -> 'QSerialPort.DataErrorPolicy': ... + def setDataErrorPolicy(self, policy: 'QSerialPort.DataErrorPolicy' = ...) -> bool: ... + def atEnd(self) -> bool: ... + def clear(self, dir: typing.Union['QSerialPort.Directions', 'QSerialPort.Direction'] = ...) -> bool: ... + def flush(self) -> bool: ... + def pinoutSignals(self) -> 'QSerialPort.PinoutSignals': ... + def isRequestToSend(self) -> bool: ... + def setRequestToSend(self, set: bool) -> bool: ... + def isDataTerminalReady(self) -> bool: ... + def setDataTerminalReady(self, set: bool) -> bool: ... + def flowControl(self) -> 'QSerialPort.FlowControl': ... + def setFlowControl(self, flow: 'QSerialPort.FlowControl') -> bool: ... + def stopBits(self) -> 'QSerialPort.StopBits': ... + def setStopBits(self, stopBits: 'QSerialPort.StopBits') -> bool: ... + def parity(self) -> 'QSerialPort.Parity': ... + def setParity(self, parity: 'QSerialPort.Parity') -> bool: ... + def dataBits(self) -> 'QSerialPort.DataBits': ... + def setDataBits(self, dataBits: 'QSerialPort.DataBits') -> bool: ... + def baudRate(self, dir: typing.Union['QSerialPort.Directions', 'QSerialPort.Direction'] = ...) -> int: ... + def setBaudRate(self, baudRate: int, dir: typing.Union['QSerialPort.Directions', 'QSerialPort.Direction'] = ...) -> bool: ... + def settingsRestoredOnClose(self) -> bool: ... + def setSettingsRestoredOnClose(self, restore: bool) -> None: ... + def close(self) -> None: ... + def open(self, mode: typing.Union[QtCore.QIODevice.OpenMode, QtCore.QIODevice.OpenModeFlag]) -> bool: ... + def setPort(self, info: 'QSerialPortInfo') -> None: ... + def portName(self) -> str: ... + def setPortName(self, name: str) -> None: ... + + +class QSerialPortInfo(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, port: QSerialPort) -> None: ... + @typing.overload + def __init__(self, name: str) -> None: ... + @typing.overload + def __init__(self, other: 'QSerialPortInfo') -> None: ... + + def serialNumber(self) -> str: ... + def isNull(self) -> bool: ... + @staticmethod + def availablePorts() -> typing.List['QSerialPortInfo']: ... + @staticmethod + def standardBaudRates() -> typing.List[int]: ... + def isValid(self) -> bool: ... + def isBusy(self) -> bool: ... + def hasProductIdentifier(self) -> bool: ... + def hasVendorIdentifier(self) -> bool: ... + def productIdentifier(self) -> int: ... + def vendorIdentifier(self) -> int: ... + def manufacturer(self) -> str: ... + def description(self) -> str: ... + def systemLocation(self) -> str: ... + def portName(self) -> str: ... + def swap(self, other: 'QSerialPortInfo') -> None: ... diff --git a/PyQt5-stubs/QtSvg.pyi b/PyQt5-stubs/QtSvg.pyi new file mode 100644 index 00000000..145f9b11 --- /dev/null +++ b/PyQt5-stubs/QtSvg.pyi @@ -0,0 +1,143 @@ +# The PEP 484 type hints stub file for the QtSvg module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2020 Riverbank Computing Limited +# +# 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 sip + +from PyQt5 import QtWidgets +from PyQt5 import QtGui +from PyQt5 import QtCore + +# 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], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QGraphicsSvgItem(QtWidgets.QGraphicsObject): + + @typing.overload + def __init__(self, parent: typing.Optional[QtWidgets.QGraphicsItem] = ...) -> None: ... + @typing.overload + def __init__(self, fileName: str, parent: typing.Optional[QtWidgets.QGraphicsItem] = ...) -> None: ... + + def type(self) -> int: ... + def paint(self, painter: QtGui.QPainter, option: QtWidgets.QStyleOptionGraphicsItem, widget: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + def boundingRect(self) -> QtCore.QRectF: ... + def maximumCacheSize(self) -> QtCore.QSize: ... + def setMaximumCacheSize(self, size: QtCore.QSize) -> None: ... + def elementId(self) -> str: ... + def setElementId(self, id: str) -> None: ... + def renderer(self) -> 'QSvgRenderer': ... + def setSharedRenderer(self, renderer: 'QSvgRenderer') -> None: ... + + +class QSvgGenerator(QtGui.QPaintDevice): + + def __init__(self) -> None: ... + + def metric(self, metric: QtGui.QPaintDevice.PaintDeviceMetric) -> int: ... + def paintEngine(self) -> QtGui.QPaintEngine: ... + @typing.overload + def setViewBox(self, viewBox: QtCore.QRect) -> None: ... + @typing.overload + def setViewBox(self, viewBox: QtCore.QRectF) -> None: ... + def viewBoxF(self) -> QtCore.QRectF: ... + def viewBox(self) -> QtCore.QRect: ... + def setDescription(self, description: str) -> None: ... + def description(self) -> str: ... + def setTitle(self, title: str) -> None: ... + def title(self) -> str: ... + def setResolution(self, resolution: int) -> None: ... + def resolution(self) -> int: ... + def setOutputDevice(self, outputDevice: QtCore.QIODevice) -> None: ... + def outputDevice(self) -> QtCore.QIODevice: ... + def setFileName(self, fileName: str) -> None: ... + def fileName(self) -> str: ... + def setSize(self, size: QtCore.QSize) -> None: ... + def size(self) -> QtCore.QSize: ... + + +class QSvgRenderer(QtCore.QObject): + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, filename: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, contents: typing.Union[QtCore.QByteArray, bytes, bytearray], parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, contents: QtCore.QXmlStreamReader, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def repaintNeeded(self) -> None: ... + @typing.overload + def render(self, p: QtGui.QPainter) -> None: ... + @typing.overload + def render(self, p: QtGui.QPainter, bounds: QtCore.QRectF) -> None: ... + @typing.overload + def render(self, painter: QtGui.QPainter, elementId: str, bounds: QtCore.QRectF = ...) -> None: ... + @typing.overload + def load(self, filename: str) -> bool: ... + @typing.overload + def load(self, contents: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ... + @typing.overload + def load(self, contents: QtCore.QXmlStreamReader) -> bool: ... + def animationDuration(self) -> int: ... + def setCurrentFrame(self, a0: int) -> None: ... + def currentFrame(self) -> int: ... + def setFramesPerSecond(self, num: int) -> None: ... + def framesPerSecond(self) -> int: ... + def boundsOnElement(self, id: str) -> QtCore.QRectF: ... + def animated(self) -> bool: ... + @typing.overload + def setViewBox(self, viewbox: QtCore.QRect) -> None: ... + @typing.overload + def setViewBox(self, viewbox: QtCore.QRectF) -> None: ... + def viewBoxF(self) -> QtCore.QRectF: ... + def viewBox(self) -> QtCore.QRect: ... + def elementExists(self, id: str) -> bool: ... + def defaultSize(self) -> QtCore.QSize: ... + def isValid(self) -> bool: ... + + +class QSvgWidget(QtWidgets.QWidget): + + @typing.overload + def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, file: str, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + + def paintEvent(self, event: QtGui.QPaintEvent) -> None: ... + @typing.overload + def load(self, file: str) -> None: ... + @typing.overload + def load(self, contents: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def sizeHint(self) -> QtCore.QSize: ... + def renderer(self) -> QSvgRenderer: ... diff --git a/PyQt5-stubs/QtX11Extras.pyi b/PyQt5-stubs/QtX11Extras.pyi new file mode 100644 index 00000000..4977d287 --- /dev/null +++ b/PyQt5-stubs/QtX11Extras.pyi @@ -0,0 +1,73 @@ +# The PEP 484 type hints stub file for the QtX11Extras module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2020 Riverbank Computing Limited +# +# 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 sip + +from PyQt5 import QtCore + +# 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] + + +class Display(sip.simplewrapper): ... + + +class xcb_connection_t(sip.simplewrapper): ... + + +class QX11Info(sip.simplewrapper): + + def __init__(self, a0: 'QX11Info') -> None: ... + + @staticmethod + def connection() -> xcb_connection_t: ... + @staticmethod + def display() -> Display: ... + @staticmethod + def setNextStartupId(id: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + @staticmethod + def nextStartupId() -> QtCore.QByteArray: ... + @staticmethod + def getTimestamp() -> int: ... + @staticmethod + def setAppUserTime(time: int) -> None: ... + @staticmethod + def setAppTime(time: int) -> None: ... + @staticmethod + def appUserTime() -> int: ... + @staticmethod + def appTime() -> int: ... + @staticmethod + def appScreen() -> int: ... + @staticmethod + def appRootWindow(screen: int = ...) -> int: ... + @staticmethod + def appDpiY(screen: int = ...) -> int: ... + @staticmethod + def appDpiX(screen: int = ...) -> int: ... + @staticmethod + def isPlatformX11() -> bool: ... diff --git a/PyQt5-stubs/QtXmlPatterns.pyi b/PyQt5-stubs/QtXmlPatterns.pyi new file mode 100644 index 00000000..2fc7d35f --- /dev/null +++ b/PyQt5-stubs/QtXmlPatterns.pyi @@ -0,0 +1,368 @@ +# The PEP 484 type hints stub file for the QtXmlPatterns module. +# +# Generated by SIP 5.2.0 +# +# Copyright (c) 2020 Riverbank Computing Limited +# +# 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 sip + +from PyQt5 import QtNetwork +from PyQt5 import QtCore + +# 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] + + +class QAbstractMessageHandler(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def handleMessage(self, type: QtCore.QtMsgType, description: str, identifier: QtCore.QUrl, sourceLocation: 'QSourceLocation') -> None: ... + def message(self, type: QtCore.QtMsgType, description: str, identifier: QtCore.QUrl = ..., sourceLocation: 'QSourceLocation' = ...) -> None: ... + + +class QAbstractUriResolver(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def resolve(self, relative: QtCore.QUrl, baseURI: QtCore.QUrl) -> QtCore.QUrl: ... + + +class QXmlNodeModelIndex(sip.simplewrapper): + + class DocumentOrder(int): ... + Precedes = ... # type: 'QXmlNodeModelIndex.DocumentOrder' + Is = ... # type: 'QXmlNodeModelIndex.DocumentOrder' + Follows = ... # type: 'QXmlNodeModelIndex.DocumentOrder' + + class NodeKind(int): ... + Attribute = ... # type: 'QXmlNodeModelIndex.NodeKind' + Comment = ... # type: 'QXmlNodeModelIndex.NodeKind' + Document = ... # type: 'QXmlNodeModelIndex.NodeKind' + Element = ... # type: 'QXmlNodeModelIndex.NodeKind' + Namespace = ... # type: 'QXmlNodeModelIndex.NodeKind' + ProcessingInstruction = ... # type: 'QXmlNodeModelIndex.NodeKind' + Text = ... # type: 'QXmlNodeModelIndex.NodeKind' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QXmlNodeModelIndex') -> None: ... + + def __hash__(self) -> int: ... + def isNull(self) -> bool: ... + def additionalData(self) -> int: ... + def model(self) -> 'QAbstractXmlNodeModel': ... + def internalPointer(self) -> typing.Any: ... + def data(self) -> int: ... + + +class QAbstractXmlNodeModel(sip.simplewrapper): + + class SimpleAxis(int): ... + Parent = ... # type: 'QAbstractXmlNodeModel.SimpleAxis' + FirstChild = ... # type: 'QAbstractXmlNodeModel.SimpleAxis' + PreviousSibling = ... # type: 'QAbstractXmlNodeModel.SimpleAxis' + NextSibling = ... # type: 'QAbstractXmlNodeModel.SimpleAxis' + + def __init__(self) -> None: ... + + @typing.overload + def createIndex(self, data: int) -> QXmlNodeModelIndex: ... + @typing.overload + def createIndex(self, data: int, additionalData: int) -> QXmlNodeModelIndex: ... + @typing.overload + def createIndex(self, pointer: typing.Any, additionalData: int = ...) -> QXmlNodeModelIndex: ... + def attributes(self, element: QXmlNodeModelIndex) -> typing.List[QXmlNodeModelIndex]: ... + def nextFromSimpleAxis(self, axis: 'QAbstractXmlNodeModel.SimpleAxis', origin: QXmlNodeModelIndex) -> QXmlNodeModelIndex: ... + def sourceLocation(self, index: QXmlNodeModelIndex) -> 'QSourceLocation': ... + def nodesByIdref(self, NCName: 'QXmlName') -> typing.List[QXmlNodeModelIndex]: ... + def elementById(self, NCName: 'QXmlName') -> QXmlNodeModelIndex: ... + def namespaceBindings(self, n: QXmlNodeModelIndex) -> typing.List['QXmlName']: ... + def typedValue(self, n: QXmlNodeModelIndex) -> typing.Any: ... + def stringValue(self, n: QXmlNodeModelIndex) -> str: ... + def name(self, ni: QXmlNodeModelIndex) -> 'QXmlName': ... + def root(self, n: QXmlNodeModelIndex) -> QXmlNodeModelIndex: ... + def compareOrder(self, ni1: QXmlNodeModelIndex, ni2: QXmlNodeModelIndex) -> QXmlNodeModelIndex.DocumentOrder: ... + def kind(self, ni: QXmlNodeModelIndex) -> QXmlNodeModelIndex.NodeKind: ... + def documentUri(self, ni: QXmlNodeModelIndex) -> QtCore.QUrl: ... + def baseUri(self, ni: QXmlNodeModelIndex) -> QtCore.QUrl: ... + + +class QXmlItem(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QXmlItem') -> None: ... + @typing.overload + def __init__(self, node: QXmlNodeModelIndex) -> None: ... + @typing.overload + def __init__(self, atomicValue: typing.Any) -> None: ... + + def toNodeModelIndex(self) -> QXmlNodeModelIndex: ... + def toAtomicValue(self) -> typing.Any: ... + def isAtomicValue(self) -> bool: ... + def isNode(self) -> bool: ... + def isNull(self) -> bool: ... + + +class QAbstractXmlReceiver(sip.simplewrapper): + + def __init__(self) -> None: ... + + def endOfSequence(self) -> None: ... + def startOfSequence(self) -> None: ... + def namespaceBinding(self, name: 'QXmlName') -> None: ... + def atomicValue(self, value: typing.Any) -> None: ... + def processingInstruction(self, target: 'QXmlName', value: str) -> None: ... + def endDocument(self) -> None: ... + def startDocument(self) -> None: ... + def characters(self, value: str) -> None: ... + def comment(self, value: str) -> None: ... + def attribute(self, name: 'QXmlName', value: str) -> None: ... + def endElement(self) -> None: ... + def startElement(self, name: 'QXmlName') -> None: ... + + +class QSimpleXmlNodeModel(QAbstractXmlNodeModel): + + def __init__(self, namePool: 'QXmlNamePool') -> None: ... + + def nodesByIdref(self, idref: 'QXmlName') -> typing.List[QXmlNodeModelIndex]: ... + def elementById(self, id: 'QXmlName') -> QXmlNodeModelIndex: ... + def stringValue(self, node: QXmlNodeModelIndex) -> str: ... + def namespaceBindings(self, a0: QXmlNodeModelIndex) -> typing.List['QXmlName']: ... + def namePool(self) -> 'QXmlNamePool': ... + def baseUri(self, node: QXmlNodeModelIndex) -> QtCore.QUrl: ... + + +class QSourceLocation(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QSourceLocation') -> None: ... + @typing.overload + def __init__(self, u: QtCore.QUrl, line: int = ..., column: int = ...) -> None: ... + + def __hash__(self) -> int: ... + def isNull(self) -> bool: ... + def setUri(self, newUri: QtCore.QUrl) -> None: ... + def uri(self) -> QtCore.QUrl: ... + def setLine(self, newLine: int) -> None: ... + def line(self) -> int: ... + def setColumn(self, newColumn: int) -> None: ... + def column(self) -> int: ... + + +class QXmlSerializer(QAbstractXmlReceiver): + + def __init__(self, query: 'QXmlQuery', outputDevice: QtCore.QIODevice) -> None: ... + + def codec(self) -> QtCore.QTextCodec: ... + def setCodec(self, codec: QtCore.QTextCodec) -> None: ... + def outputDevice(self) -> QtCore.QIODevice: ... + def endOfSequence(self) -> None: ... + def startOfSequence(self) -> None: ... + def endDocument(self) -> None: ... + def startDocument(self) -> None: ... + def atomicValue(self, value: typing.Any) -> None: ... + def processingInstruction(self, name: 'QXmlName', value: str) -> None: ... + def attribute(self, name: 'QXmlName', value: str) -> None: ... + def endElement(self) -> None: ... + def startElement(self, name: 'QXmlName') -> None: ... + def comment(self, value: str) -> None: ... + def characters(self, value: str) -> None: ... + def namespaceBinding(self, nb: 'QXmlName') -> None: ... + + +class QXmlFormatter(QXmlSerializer): + + def __init__(self, query: 'QXmlQuery', outputDevice: QtCore.QIODevice) -> None: ... + + def setIndentationDepth(self, depth: int) -> None: ... + def indentationDepth(self) -> int: ... + def endOfSequence(self) -> None: ... + def startOfSequence(self) -> None: ... + def endDocument(self) -> None: ... + def startDocument(self) -> None: ... + def atomicValue(self, value: typing.Any) -> None: ... + def processingInstruction(self, name: 'QXmlName', value: str) -> None: ... + def attribute(self, name: 'QXmlName', value: str) -> None: ... + def endElement(self) -> None: ... + def startElement(self, name: 'QXmlName') -> None: ... + def comment(self, value: str) -> None: ... + def characters(self, value: str) -> None: ... + + +class QXmlName(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, namePool: 'QXmlNamePool', localName: str, namespaceUri: str = ..., prefix: str = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QXmlName') -> None: ... + + def __hash__(self) -> int: ... + @staticmethod + def fromClarkName(clarkName: str, namePool: 'QXmlNamePool') -> 'QXmlName': ... + @staticmethod + def isNCName(candidate: str) -> bool: ... + def isNull(self) -> bool: ... + def toClarkName(self, query: 'QXmlNamePool') -> str: ... + def localName(self, query: 'QXmlNamePool') -> str: ... + def prefix(self, query: 'QXmlNamePool') -> str: ... + def namespaceUri(self, query: 'QXmlNamePool') -> str: ... + + +class QXmlNamePool(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QXmlNamePool') -> None: ... + + +class QXmlQuery(sip.simplewrapper): + + class QueryLanguage(int): ... + XQuery10 = ... # type: 'QXmlQuery.QueryLanguage' + XSLT20 = ... # type: 'QXmlQuery.QueryLanguage' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QXmlQuery') -> None: ... + @typing.overload + def __init__(self, np: QXmlNamePool) -> None: ... + @typing.overload + def __init__(self, queryLanguage: 'QXmlQuery.QueryLanguage', pool: QXmlNamePool = ...) -> None: ... + + def queryLanguage(self) -> 'QXmlQuery.QueryLanguage': ... + def networkAccessManager(self) -> QtNetwork.QNetworkAccessManager: ... + def setNetworkAccessManager(self, newManager: QtNetwork.QNetworkAccessManager) -> None: ... + def initialTemplateName(self) -> QXmlName: ... + @typing.overload + def setInitialTemplateName(self, name: QXmlName) -> None: ... + @typing.overload + def setInitialTemplateName(self, name: str) -> None: ... + @typing.overload + def setFocus(self, item: QXmlItem) -> None: ... + @typing.overload + def setFocus(self, documentURI: QtCore.QUrl) -> bool: ... + @typing.overload + def setFocus(self, document: QtCore.QIODevice) -> bool: ... + @typing.overload + def setFocus(self, focus: str) -> bool: ... + def uriResolver(self) -> QAbstractUriResolver: ... + def setUriResolver(self, resolver: QAbstractUriResolver) -> None: ... + def evaluateToString(self) -> str: ... + def evaluateToStringList(self) -> typing.List[str]: ... + @typing.overload + def evaluateTo(self, result: 'QXmlResultItems') -> None: ... + @typing.overload + def evaluateTo(self, callback: QAbstractXmlReceiver) -> bool: ... + @typing.overload + def evaluateTo(self, target: QtCore.QIODevice) -> bool: ... + def isValid(self) -> bool: ... + @typing.overload + def bindVariable(self, name: QXmlName, value: QXmlItem) -> None: ... + @typing.overload + def bindVariable(self, name: QXmlName, a1: QtCore.QIODevice) -> None: ... + @typing.overload + def bindVariable(self, name: QXmlName, query: 'QXmlQuery') -> None: ... + @typing.overload + def bindVariable(self, localName: str, value: QXmlItem) -> None: ... + @typing.overload + def bindVariable(self, localName: str, a1: QtCore.QIODevice) -> None: ... + @typing.overload + def bindVariable(self, localName: str, query: 'QXmlQuery') -> None: ... + def namePool(self) -> QXmlNamePool: ... + @typing.overload + def setQuery(self, sourceCode: str, documentUri: QtCore.QUrl = ...) -> None: ... + @typing.overload + def setQuery(self, sourceCode: QtCore.QIODevice, documentUri: QtCore.QUrl = ...) -> None: ... + @typing.overload + def setQuery(self, queryURI: QtCore.QUrl, baseUri: QtCore.QUrl = ...) -> None: ... + def messageHandler(self) -> QAbstractMessageHandler: ... + def setMessageHandler(self, messageHandler: QAbstractMessageHandler) -> None: ... + + +class QXmlResultItems(sip.simplewrapper): + + def __init__(self) -> None: ... + + def current(self) -> QXmlItem: ... + def next(self) -> QXmlItem: ... + def hasError(self) -> bool: ... + + +class QXmlSchema(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QXmlSchema') -> None: ... + + def networkAccessManager(self) -> QtNetwork.QNetworkAccessManager: ... + def setNetworkAccessManager(self, networkmanager: QtNetwork.QNetworkAccessManager) -> None: ... + def uriResolver(self) -> QAbstractUriResolver: ... + def setUriResolver(self, resolver: QAbstractUriResolver) -> None: ... + def messageHandler(self) -> QAbstractMessageHandler: ... + def setMessageHandler(self, handler: QAbstractMessageHandler) -> None: ... + def documentUri(self) -> QtCore.QUrl: ... + def namePool(self) -> QXmlNamePool: ... + def isValid(self) -> bool: ... + @typing.overload + def load(self, source: QtCore.QUrl) -> bool: ... + @typing.overload + def load(self, source: QtCore.QIODevice, documentUri: QtCore.QUrl = ...) -> bool: ... + @typing.overload + def load(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], documentUri: QtCore.QUrl = ...) -> bool: ... + + +class QXmlSchemaValidator(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, schema: QXmlSchema) -> None: ... + + def networkAccessManager(self) -> QtNetwork.QNetworkAccessManager: ... + def setNetworkAccessManager(self, networkmanager: QtNetwork.QNetworkAccessManager) -> None: ... + def uriResolver(self) -> QAbstractUriResolver: ... + def setUriResolver(self, resolver: QAbstractUriResolver) -> None: ... + def messageHandler(self) -> QAbstractMessageHandler: ... + def setMessageHandler(self, handler: QAbstractMessageHandler) -> None: ... + def schema(self) -> QXmlSchema: ... + def namePool(self) -> QXmlNamePool: ... + @typing.overload + def validate(self, source: QtCore.QUrl) -> bool: ... + @typing.overload + def validate(self, source: QtCore.QIODevice, documentUri: QtCore.QUrl = ...) -> bool: ... + @typing.overload + def validate(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], documentUri: QtCore.QUrl = ...) -> bool: ... + def setSchema(self, schema: QXmlSchema) -> None: ...