![]() ![]() The transform is dirty and needs to be updated. The background mode is dirty and needs to be updated. The background is dirty and needs to be updated. The font is dirty and needs to be updated. The brush origin is dirty and needs to updated. The brush is dirty and needs to be updated. The pen is dirty and needs to be updated. See also QPainter, QPaintDevice::paintEngine(), and Paint System. QPaintEngine is created and owned by the QPaintDevice that created it. The QPaintEngine implementation is then made available by subclassing QPaintDevice and reimplementing the virtual function QPaintDevice::paintEngine(). If one wants to use QPainter to draw to a different backend, one must subclass QPaintEngine and reimplement all its virtual functions. In addition we provide QPaintEngine implementations for OpenGL (accessible through QOpenGLWidget) and printing (which allows using QPainter to draw on a QPrinter object). on Windows, X11 and macOS, it is the backend for painting on QImage and it is used as a fallback for paint engines that do not support a certain capability. This is the default for painting on QWidget-based classes in e.g. The primary paint engine provided is the raster paint engine, which contains a software rasterizer which supports the full feature set on all supported platforms. Qt provides several premade implementations of QPaintEngine for the different painter backends we support. UpdateState(const QPaintEngineState & state) = 0 HasFeature(QPaintEngine::PaintEngineFeatures feature) const QPaintEngine(QPaintEngine::PaintEngineFeatures caps = PaintEngineFeatures())ĭrawImage(const QRectF & rectangle, const QImage & image, const QRectF & sr, Qt::ImageConversionFlags flags = Qt::AutoColor)ĭrawLines(const QLineF * lines, int lineCount)ĭrawLines(const QLine * lines, int lineCount)ĭrawPixmap(const QRectF & r, const QPixmap & pm, const QRectF & sr) = 0ĭrawPoints(const QPointF * points, int pointCount)ĭrawPoints(const QPoint * points, int pointCount)ĭrawPolygon(const QPointF * points, int pointCount, QPaintEngine::PolygonDrawMode mode)ĭrawPolygon(const QPoint * points, int pointCount, QPaintEngine::PolygonDrawMode mode)ĭrawRects(const QRectF * rects, int rectCount)ĭrawRects(const QRect * rects, int rectCount)ĭrawTextItem(const QPointF & p, const QTextItem & textItem)ĭrawTiledPixmap(const QRectF & rect, const QPixmap & pixmap, const QPointF & p) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |