1
1
# The PEP 484 type hints stub file for the QtGui module.
2
2
#
3
- # Generated by SIP 4.19.18
3
+ # Generated by SIP 5.1.2
4
4
#
5
- # Copyright (c) 2019 Riverbank Computing Limited <[email protected] >
5
+ # Copyright (c) 2020 Riverbank Computing Limited <[email protected] >
6
6
#
7
7
# This file is part of PyQt5.
8
8
#
@@ -219,13 +219,13 @@ class QPixmap(QPaintDevice):
219
219
def scaled (self , width : int , height : int , aspectRatioMode : QtCore .Qt .AspectRatioMode = ..., transformMode : QtCore .Qt .TransformationMode = ...) -> 'QPixmap' : ...
220
220
@typing .overload
221
221
def scaled (self , size : QtCore .QSize , aspectRatioMode : QtCore .Qt .AspectRatioMode = ..., transformMode : QtCore .Qt .TransformationMode = ...) -> 'QPixmap' : ...
222
- def createMaskFromColor (self , maskColor : typing .Union ['QColor' , QtCore .Qt .GlobalColor , 'QGradient' ], mode : QtCore .Qt .MaskMode = ...) -> 'QBitmap' : ...
222
+ def createMaskFromColor (self , maskColor : typing .Union ['QColor' , QtCore .Qt .GlobalColor ], mode : QtCore .Qt .MaskMode = ...) -> 'QBitmap' : ...
223
223
def createHeuristicMask (self , clipTight : bool = ...) -> 'QBitmap' : ...
224
224
def hasAlphaChannel (self ) -> bool : ...
225
225
def hasAlpha (self ) -> bool : ...
226
226
def setMask (self , a0 : 'QBitmap' ) -> None : ...
227
227
def mask (self ) -> 'QBitmap' : ...
228
- def fill (self , color : typing .Union ['QColor' , QtCore .Qt .GlobalColor , 'QGradient' ] = ...) -> None : ...
228
+ def fill (self , color : typing .Union ['QColor' , QtCore .Qt .GlobalColor ] = ...) -> None : ...
229
229
@staticmethod
230
230
def defaultDepth () -> int : ...
231
231
def depth (self ) -> int : ...
@@ -291,7 +291,7 @@ class QColor(sip.simplewrapper):
291
291
@typing .overload
292
292
def __init__ (self , aname : str ) -> None : ...
293
293
@typing .overload
294
- def __init__ (self , acolor : typing .Union ['QColor' , QtCore .Qt .GlobalColor , 'QGradient' ]) -> None : ...
294
+ def __init__ (self , acolor : typing .Union ['QColor' , QtCore .Qt .GlobalColor ]) -> None : ...
295
295
296
296
@typing .overload
297
297
@staticmethod
@@ -412,9 +412,9 @@ class QBrush(sip.simplewrapper):
412
412
@typing .overload
413
413
def __init__ (self , bs : QtCore .Qt .BrushStyle ) -> None : ...
414
414
@typing .overload
415
- def __init__ (self , color : typing .Union [QColor , QtCore .Qt .GlobalColor , 'QGradient' ], style : QtCore .Qt .BrushStyle = ...) -> None : ...
415
+ def __init__ (self , color : typing .Union [QColor , QtCore .Qt .GlobalColor ], style : QtCore .Qt .BrushStyle = ...) -> None : ...
416
416
@typing .overload
417
- def __init__ (self , color : typing .Union [QColor , QtCore .Qt .GlobalColor , 'QGradient' ], pixmap : QPixmap ) -> None : ...
417
+ def __init__ (self , color : typing .Union [QColor , QtCore .Qt .GlobalColor ], pixmap : QPixmap ) -> None : ...
418
418
@typing .overload
419
419
def __init__ (self , pixmap : QPixmap ) -> None : ...
420
420
@typing .overload
@@ -605,8 +605,18 @@ class QCursor(sip.simplewrapper):
605
605
@typing .overload
606
606
@staticmethod
607
607
def setPos (p : QtCore .QPoint ) -> None : ...
608
+ @typing .overload
609
+ @staticmethod
610
+ def setPos (screen : 'QScreen' , x : int , y : int ) -> None : ...
611
+ @typing .overload
612
+ @staticmethod
613
+ def setPos (screen : 'QScreen' , p : QtCore .QPoint ) -> None : ...
614
+ @typing .overload
608
615
@staticmethod
609
616
def pos () -> QtCore .QPoint : ...
617
+ @typing .overload
618
+ @staticmethod
619
+ def pos (screen : 'QScreen' ) -> QtCore .QPoint : ...
610
620
def hotSpot (self ) -> QtCore .QPoint : ...
611
621
def pixmap (self ) -> QPixmap : ...
612
622
def mask (self ) -> QBitmap : ...
@@ -1109,6 +1119,7 @@ class QTouchEvent(QInputEvent):
1109
1119
def __hash__ (self ) -> int : ...
1110
1120
def __bool__ (self ) -> int : ...
1111
1121
def __invert__ (self ) -> 'QTouchEvent.TouchPoint.InfoFlags' : ...
1122
+ def __index__ (self ) -> int : ...
1112
1123
def __int__ (self ) -> int : ...
1113
1124
1114
1125
def ellipseDiameters (self ) -> QtCore .QSizeF : ...
@@ -1803,6 +1814,7 @@ class QGlyphRun(sip.simplewrapper):
1803
1814
def __hash__ (self ) -> int : ...
1804
1815
def __bool__ (self ) -> int : ...
1805
1816
def __invert__ (self ) -> 'QGlyphRun.GlyphRunFlags' : ...
1817
+ def __index__ (self ) -> int : ...
1806
1818
def __int__ (self ) -> int : ...
1807
1819
1808
1820
@typing .overload
@@ -2289,6 +2301,7 @@ class QImageIOHandler(sip.simplewrapper):
2289
2301
def __hash__ (self ) -> int : ...
2290
2302
def __bool__ (self ) -> int : ...
2291
2303
def __invert__ (self ) -> 'QImageIOHandler.Transformations' : ...
2304
+ def __index__ (self ) -> int : ...
2292
2305
def __int__ (self ) -> int : ...
2293
2306
2294
2307
def __init__ (self ) -> None : ...
@@ -2816,6 +2829,7 @@ class QOpenGLBuffer(sip.simplewrapper):
2816
2829
def __hash__ (self ) -> int : ...
2817
2830
def __bool__ (self ) -> int : ...
2818
2831
def __invert__ (self ) -> 'QOpenGLBuffer.RangeAccessFlags' : ...
2832
+ def __index__ (self ) -> int : ...
2819
2833
def __int__ (self ) -> int : ...
2820
2834
2821
2835
@typing .overload
@@ -2965,6 +2979,7 @@ class QOpenGLDebugMessage(sip.simplewrapper):
2965
2979
def __hash__ (self ) -> int : ...
2966
2980
def __bool__ (self ) -> int : ...
2967
2981
def __invert__ (self ) -> 'QOpenGLDebugMessage.Sources' : ...
2982
+ def __index__ (self ) -> int : ...
2968
2983
def __int__ (self ) -> int : ...
2969
2984
2970
2985
class Types (sip .simplewrapper ):
@@ -2979,6 +2994,7 @@ class QOpenGLDebugMessage(sip.simplewrapper):
2979
2994
def __hash__ (self ) -> int : ...
2980
2995
def __bool__ (self ) -> int : ...
2981
2996
def __invert__ (self ) -> 'QOpenGLDebugMessage.Types' : ...
2997
+ def __index__ (self ) -> int : ...
2982
2998
def __int__ (self ) -> int : ...
2983
2999
2984
3000
class Severities (sip .simplewrapper ):
@@ -2993,6 +3009,7 @@ class QOpenGLDebugMessage(sip.simplewrapper):
2993
3009
def __hash__ (self ) -> int : ...
2994
3010
def __bool__ (self ) -> int : ...
2995
3011
def __invert__ (self ) -> 'QOpenGLDebugMessage.Severities' : ...
3012
+ def __index__ (self ) -> int : ...
2996
3013
def __int__ (self ) -> int : ...
2997
3014
2998
3015
@typing .overload
@@ -3205,6 +3222,7 @@ class QOpenGLShader(QtCore.QObject):
3205
3222
def __hash__ (self ) -> int : ...
3206
3223
def __bool__ (self ) -> int : ...
3207
3224
def __invert__ (self ) -> 'QOpenGLShader.ShaderType' : ...
3225
+ def __index__ (self ) -> int : ...
3208
3226
def __int__ (self ) -> int : ...
3209
3227
3210
3228
def __init__ (self , type : typing .Union ['QOpenGLShader.ShaderType' , 'QOpenGLShader.ShaderTypeBit' ], parent : typing .Optional [QtCore .QObject ] = ...) -> None : ...
@@ -3717,6 +3735,7 @@ class QOpenGLTexture(sip.simplewrapper):
3717
3735
def __hash__ (self ) -> int : ...
3718
3736
def __bool__ (self ) -> int : ...
3719
3737
def __invert__ (self ) -> 'QOpenGLTexture.Features' : ...
3738
+ def __index__ (self ) -> int : ...
3720
3739
def __int__ (self ) -> int : ...
3721
3740
3722
3741
@typing .overload
@@ -4644,6 +4663,7 @@ class QPainter(sip.simplewrapper):
4644
4663
def __hash__ (self ) -> int : ...
4645
4664
def __bool__ (self ) -> int : ...
4646
4665
def __invert__ (self ) -> 'QPainter.RenderHints' : ...
4666
+ def __index__ (self ) -> int : ...
4647
4667
def __int__ (self ) -> int : ...
4648
4668
4649
4669
class PixmapFragment (sip .simplewrapper ):
@@ -4679,6 +4699,7 @@ class QPainter(sip.simplewrapper):
4679
4699
def __hash__ (self ) -> int : ...
4680
4700
def __bool__ (self ) -> int : ...
4681
4701
def __invert__ (self ) -> 'QPainter.PixmapFragmentHints' : ...
4702
+ def __index__ (self ) -> int : ...
4682
4703
def __int__ (self ) -> int : ...
4683
4704
4684
4705
@typing .overload
@@ -5026,6 +5047,7 @@ class QTextItem(sip.simplewrapper):
5026
5047
def __hash__ (self ) -> int : ...
5027
5048
def __bool__ (self ) -> int : ...
5028
5049
def __invert__ (self ) -> 'QTextItem.RenderFlags' : ...
5050
+ def __index__ (self ) -> int : ...
5029
5051
def __int__ (self ) -> int : ...
5030
5052
5031
5053
@typing .overload
@@ -5121,6 +5143,7 @@ class QPaintEngine(sip.simplewrapper):
5121
5143
def __hash__ (self ) -> int : ...
5122
5144
def __bool__ (self ) -> int : ...
5123
5145
def __invert__ (self ) -> 'QPaintEngine.PaintEngineFeatures' : ...
5146
+ def __index__ (self ) -> int : ...
5124
5147
def __int__ (self ) -> int : ...
5125
5148
5126
5149
class DirtyFlags (sip .simplewrapper ):
@@ -5135,6 +5158,7 @@ class QPaintEngine(sip.simplewrapper):
5135
5158
def __hash__ (self ) -> int : ...
5136
5159
def __bool__ (self ) -> int : ...
5137
5160
def __invert__ (self ) -> 'QPaintEngine.DirtyFlags' : ...
5161
+ def __index__ (self ) -> int : ...
5138
5162
def __int__ (self ) -> int : ...
5139
5163
5140
5164
def __init__ (self , features : typing .Union ['QPaintEngine.PaintEngineFeatures' , 'QPaintEngine.PaintEngineFeature' ] = ...) -> None : ...
@@ -5989,6 +6013,7 @@ class QRawFont(sip.simplewrapper):
5989
6013
def __hash__ (self ) -> int : ...
5990
6014
def __bool__ (self ) -> int : ...
5991
6015
def __invert__ (self ) -> 'QRawFont.LayoutFlags' : ...
6016
+ def __index__ (self ) -> int : ...
5992
6017
def __int__ (self ) -> int : ...
5993
6018
5994
6019
@typing .overload
@@ -6108,7 +6133,7 @@ class QRgba64(sip.simplewrapper):
6108
6133
@typing .overload
6109
6134
def __init__ (self , a0 : 'QRgba64' ) -> None : ...
6110
6135
6111
- def __long__ (self ) -> int : ...
6136
+ def __int__ (self ) -> int : ...
6112
6137
def unpremultiplied (self ) -> 'QRgba64' : ...
6113
6138
def premultiplied (self ) -> 'QRgba64' : ...
6114
6139
def toRgb16 (self ) -> int : ...
@@ -6501,6 +6526,7 @@ class QSurfaceFormat(sip.simplewrapper):
6501
6526
def __hash__ (self ) -> int : ...
6502
6527
def __bool__ (self ) -> int : ...
6503
6528
def __invert__ (self ) -> 'QSurfaceFormat.FormatOptions' : ...
6529
+ def __index__ (self ) -> int : ...
6504
6530
def __int__ (self ) -> int : ...
6505
6531
6506
6532
@typing .overload
@@ -6758,6 +6784,7 @@ class QTextDocument(QtCore.QObject):
6758
6784
def __hash__ (self ) -> int : ...
6759
6785
def __bool__ (self ) -> int : ...
6760
6786
def __invert__ (self ) -> 'QTextDocument.FindFlags' : ...
6787
+ def __index__ (self ) -> int : ...
6761
6788
def __int__ (self ) -> int : ...
6762
6789
6763
6790
@typing .overload
@@ -7057,6 +7084,7 @@ class QTextFormat(sip.simplewrapper):
7057
7084
def __hash__ (self ) -> int : ...
7058
7085
def __bool__ (self ) -> int : ...
7059
7086
def __invert__ (self ) -> 'QTextFormat.PageBreakFlags' : ...
7087
+ def __index__ (self ) -> int : ...
7060
7088
def __int__ (self ) -> int : ...
7061
7089
7062
7090
@typing .overload
@@ -7712,6 +7740,7 @@ class QTextOption(sip.simplewrapper):
7712
7740
def __hash__ (self ) -> int : ...
7713
7741
def __bool__ (self ) -> int : ...
7714
7742
def __invert__ (self ) -> 'QTextOption.Flags' : ...
7743
+ def __index__ (self ) -> int : ...
7715
7744
def __int__ (self ) -> int : ...
7716
7745
7717
7746
class Tab (sip .simplewrapper ):
@@ -7828,6 +7857,7 @@ class QTouchDevice(sip.simplewrapper):
7828
7857
def __hash__ (self ) -> int : ...
7829
7858
def __bool__ (self ) -> int : ...
7830
7859
def __invert__ (self ) -> 'QTouchDevice.Capabilities' : ...
7860
+ def __index__ (self ) -> int : ...
7831
7861
def __int__ (self ) -> int : ...
7832
7862
7833
7863
@typing .overload
0 commit comments