PythonQt.QtGui.QPaintEngine · declarations 002
Back to PythonQt.QtGui.QPaintEngine
PainterPaths
instance-attribute
PainterPaths: Any
PatternBrush
instance-attribute
PatternBrush: Any
PatternTransform
instance-attribute
PatternTransform: Any
Pdf
instance-attribute
Pdf: Any
PerspectiveTransform
instance-attribute
PerspectiveTransform: Any
Picture
instance-attribute
Picture: Any
PixmapTransform
instance-attribute
PixmapTransform: Any
PolygonDrawMode
instance-attribute
PolygonDrawMode: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
PolylineMode
instance-attribute
PolylineMode: Any
PorterDuff
instance-attribute
PorterDuff: Any
PostScript
instance-attribute
PostScript: Any
PrimitiveTransform
instance-attribute
PrimitiveTransform: Any
QWindowSystem
instance-attribute
QWindowSystem: Any
QuickDraw
instance-attribute
QuickDraw: Any
RadialGradientFill
instance-attribute
RadialGradientFill: Any
Raster
instance-attribute
Raster: Any
RasterOpModes
instance-attribute
RasterOpModes: Any
SVG
instance-attribute
SVG: Any
WindingMode
instance-attribute
WindingMode: Any
Windows
instance-attribute
Windows: Any
X11
instance-attribute
X11: Any
begin
begin(pdev: Any) -> bool
X.begin(pdev) -> bool
Supplemental documentation: Qt 5 reference:
[pure virtual] bool QPaintEngine::begin(QPaintDevice *pdev)
Reimplement this function to initialise your paint engine when painting is to start on the paint device pdev. Return true if the initialization was successful; otherwise return false.
See also end() and isActive().
Upstream PySide2 reference signatures (binding differences may apply):
begin(self, pdev: PySide2.QtGui.QPaintDevice) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qpaintengine.html#begin
clearDirty
clearDirty(df: Any) -> None
X.clearDirty(df)
Upstream PySide2 reference signatures (binding differences may apply):
clearDirty(self, df: PySide2.QtGui.QPaintEngine.DirtyFlags) -> None
Source: https://doc.qt.io/archives/qt-5.15/qpaintengine.html#clearDirty
coordinateOffset
coordinateOffset() -> Any
X.coordinateOffset() -> PythonQt.QtCore.QPoint
Upstream PySide2 reference signatures (binding differences may apply):
coordinateOffset(self) -> PySide2.QtCore.QPoint
Source: https://doc.qt.io/archives/qt-5.15/qpaintengine.html#coordinateOffset
drawEllipse
drawEllipse(r: Any) -> None
X.drawEllipse(r)
Supplemental documentation: Qt 5 reference:
[virtual] void QPaintEngine::drawEllipse(const QRectF \&rect)
Reimplement this function to draw the largest ellipse that can be contained within rectangle rect.
The default implementation calls drawPolygon().
[virtual] void QPaintEngine::drawEllipse(const QRect \&rect)
The default implementation of this function calls the floating point version of this function
Upstream PySide2 reference signatures (binding differences may apply):
drawEllipse(self, r: PySide2.QtCore.QRect) -> None
drawEllipse(self, r: PySide2.QtCore.QRectF) -> None
Source: https://doc.qt.io/archives/qt-5.15/qpaintengine.html#drawEllipse
drawImage
drawImage(r: Any, pm: Any, sr: Any, arg3: flags) -> None
X.drawImage(r, pm, sr, flags)
Supplemental documentation: Qt 5 reference:
[virtual] void QPaintEngine::drawImage(const QRectF \&rectangle, const QImage \&image, const QRectF \&sr, Qt::ImageConversionFlags flags \= Qt::AutoColor)
Reimplement this function to draw the part of the image specified by the sr rectangle in the given rectangle using the given conversion flags flags, to convert it to a pixmap.
Upstream PySide2 reference signatures (binding differences may apply):
drawImage(self, r: PySide2.QtCore.QRectF, pm: PySide2.QtGui.QImage, sr: PySide2.QtCore.QRectF, flags: PySide2.QtCore.Qt.ImageConversionFlags=...) -> None
Source: https://doc.qt.io/archives/qt-5.15/qpaintengine.html#drawImage
drawLines
drawLines(lines: Any, lineCount: int) -> None
X.drawLines(lines, lineCount)
Supplemental documentation: Qt 5 reference:
[virtual] void QPaintEngine::drawLines(const QLineF *lines, int lineCount)
The default implementation splits the list of lines in lines into lineCount separate calls to drawPath() or drawPolygon() depending on the feature set of the paint engine.
[virtual] void QPaintEngine::drawLines(const QLine *lines, int lineCount)
This is an overloaded function.
The default implementation converts the first lineCount lines in lines to a QLineF and calls the floating point version of this function.
Upstream PySide2 reference signatures (binding differences may apply):
drawLines(self, lines: PySide2.QtCore.QLine, lineCount: int) -> None
drawLines(self, lines: PySide2.QtCore.QLineF, lineCount: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qpaintengine.html#drawLines
drawPath
drawPath(path: Any) -> None
X.drawPath(path)
Supplemental documentation: Qt 5 reference:
[virtual] void QPaintEngine::drawPath(const QPainterPath \&path)
The default implementation ignores the path and does nothing.
Upstream PySide2 reference signatures (binding differences may apply):
drawPath(self, path: PySide2.QtGui.QPainterPath) -> None
Source: https://doc.qt.io/archives/qt-5.15/qpaintengine.html#drawPath
drawPixmap
drawPixmap(r: Any, pm: Any, sr: Any) -> None
X.drawPixmap(r, pm, sr)
Supplemental documentation: Qt 5 reference:
[pure virtual] void QPaintEngine::drawPixmap(const QRectF \&r, const QPixmap \&pm, const QRectF \&sr)
Reimplement this function to draw the part of the pm specified by the sr rectangle in the given r.
Upstream PySide2 reference signatures (binding differences may apply):
drawPixmap(self, r: PySide2.QtCore.QRectF, pm: PySide2.QtGui.QPixmap, sr: PySide2.QtCore.QRectF) -> None
Source: https://doc.qt.io/archives/qt-5.15/qpaintengine.html#drawPixmap
drawPoints
drawPoints(points: Any, pointCount: int) -> None
X.drawPoints(points, pointCount)
Supplemental documentation: Qt 5 reference:
[virtual] void QPaintEngine::drawPoints(const QPointF *points, int pointCount)
Draws the first pointCount points in the buffer points
[virtual] void QPaintEngine::drawPoints(const QPoint *points, int pointCount)
Draws the first pointCount points in the buffer points
The default implementation converts the first pointCount QPoints in points to QPointFs and calls the floating point version of drawPoints.
Upstream PySide2 reference signatures (binding differences may apply):
drawPoints(self, points: PySide2.QtCore.QPoint, pointCount: int) -> None
drawPoints(self, points: PySide2.QtCore.QPointF, pointCount: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qpaintengine.html#drawPoints
drawPolygon
drawPolygon(points: Any, pointCount: int, mode: Any) -> None
X.drawPolygon(points, pointCount, mode)
Supplemental documentation: Qt 5 reference:
[virtual] void QPaintEngine::drawPolygon(const QPointF *points, int pointCount, QPaintEngine::PolygonDrawMode mode)
Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode.
Note: At least one of the drawPolygon() functions must be reimplemented.
[virtual] void QPaintEngine::drawPolygon(const QPoint *points, int pointCount, QPaintEngine::PolygonDrawMode mode)
This is an overloaded function.
Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode.
Note: At least one of the drawPolygon() functions must be reimplemented.
Upstream PySide2 reference signatures (binding differences may apply):
drawPolygon(self, points: PySide2.QtCore.QPoint, pointCount: int, mode: PySide2.QtGui.QPaintEngine.PolygonDrawMode) -> None
drawPolygon(self, points: PySide2.QtCore.QPointF, pointCount: int, mode: PySide2.QtGui.QPaintEngine.PolygonDrawMode) -> None
Source: https://doc.qt.io/archives/qt-5.15/qpaintengine.html#drawPolygon
drawRects
drawRects(rects: Any, rectCount: int) -> None
X.drawRects(rects, rectCount)
Supplemental documentation: Qt 5 reference:
[virtual] void QPaintEngine::drawRects(const QRectF *rects, int rectCount)
Draws the first rectCount rectangles in the buffer rects. The default implementation of this function calls drawPath() or drawPolygon() depending on the feature set of the paint engine.
[virtual] void QPaintEngine::drawRects(const QRect *rects, int rectCount)
This is an overloaded function.
The default implementation converts the first rectCount rectangles in the buffer rects to a QRectF and calls the floating point version of this function.
Upstream PySide2 reference signatures (binding differences may apply):
drawRects(self, rects: PySide2.QtCore.QRect, rectCount: int) -> None
drawRects(self, rects: PySide2.QtCore.QRectF, rectCount: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qpaintengine.html#drawRects
drawTextItem
drawTextItem(p: Any, textItem: Any) -> None
X.drawTextItem(p, textItem)
Supplemental documentation: Qt 5 reference:
[virtual] void QPaintEngine::drawTextItem(const QPointF \&p, const QTextItem \&textItem)
This function draws the text item textItem at position p. The default implementation of this function converts the text to a QPainterPath and paints the resulting path.
Upstream PySide2 reference signatures (binding differences may apply):
drawTextItem(self, p: PySide2.QtCore.QPointF, textItem: PySide2.QtGui.QTextItem) -> None
Source: https://doc.qt.io/archives/qt-5.15/qpaintengine.html#drawTextItem
drawTiledPixmap
drawTiledPixmap(r: Any, pixmap: Any, s: Any) -> None
X.drawTiledPixmap(r, pixmap, s)
Supplemental documentation: Qt 5 reference:
[virtual] void QPaintEngine::drawTiledPixmap(const QRectF \&rect, const QPixmap \&pixmap, const QPointF \&p)
Reimplement this function to draw the pixmap in the given rect, starting at the given p. The pixmap will be drawn repeatedly until the rect is filled.
Upstream PySide2 reference signatures (binding differences may apply):
drawTiledPixmap(self, r: PySide2.QtCore.QRectF, pixmap: PySide2.QtGui.QPixmap, s: PySide2.QtCore.QPointF) -> None
Source: https://doc.qt.io/archives/qt-5.15/qpaintengine.html#drawTiledPixmap
end
end() -> bool
X.end() -> bool
Supplemental documentation: Qt 5 reference:
[pure virtual] bool QPaintEngine::end()
Reimplement this function to finish painting on the current paint device. Return true if painting was finished successfully; otherwise return false.
See also begin() and isActive().
Upstream PySide2 reference signatures (binding differences may apply):
end(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qpaintengine.html#end
hasFeature
hasFeature(feature: Any) -> bool
X.hasFeature(feature) -> bool
Supplemental documentation: Qt 5 reference:
bool QPaintEngine::hasFeature(QPaintEngine::PaintEngineFeatures feature) const
Returns true if the paint engine supports the specified feature; otherwise returns
false.
Upstream PySide2 reference signatures (binding differences may apply):
hasFeature(self, feature: PySide2.QtGui.QPaintEngine.PaintEngineFeatures) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qpaintengine.html#hasFeature
isActive
isActive() -> bool
X.isActive() -> bool
Supplemental documentation: Qt 5 reference:
bool QPaintEngine::isActive() const
Returns true if the paint engine is actively drawing; otherwise returns false.
See also setActive().
Upstream PySide2 reference signatures (binding differences may apply):
isActive(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qpaintengine.html#isActive
isExtended
isExtended() -> bool
X.isExtended() -> bool
Upstream PySide2 reference signatures (binding differences may apply):
isExtended(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qpaintengine.html#isExtended
paintDevice
paintDevice() -> Any
X.paintDevice() -> PythonQt.QtGui.QPaintDevice
Supplemental documentation: Qt 5 reference:
QPaintDevice *QPaintEngine::paintDevice() const
Returns the device that this engine is painting on, if painting is active; otherwise
returns nullptr.
Upstream PySide2 reference signatures (binding differences may apply):
paintDevice(self) -> PySide2.QtGui.QPaintDevice
Source: https://doc.qt.io/archives/qt-5.15/qpaintengine.html#paintDevice
painter
painter() -> Any
X.painter() -> PythonQt.QtGui.QPainter
Supplemental documentation: Qt 5 reference:
QPainter *QPaintEngine::painter() const
Returns the paint engine's painter.
Upstream PySide2 reference signatures (binding differences may apply):
painter(self) -> PySide2.QtGui.QPainter
Source: https://doc.qt.io/archives/qt-5.15/qpaintengine.html#painter