The QRasterPaintEngine class enables hardware acceleration of painting operations in Qt for Embedded Linux. More...
#include <QRasterPaintEngine>
This class is under development and is subject to change.
Inherits: QPaintEngine.
This class was introduced in Qt 4.2.
QRasterPaintEngine ( QPaintDevice * device ) | |
~QRasterPaintEngine () | |
virtual void | drawBufferSpan ( const uint * buffer, int size, int x, int y, int length, uint alpha ) |
virtual void | drawColorSpans ( const QSpan * spans, int count, uint color ) |
virtual bool | begin ( QPaintDevice * device ) |
virtual void | drawEllipse ( const QRectF & rect ) |
virtual void | drawEllipse ( const QRect & rect ) |
virtual void | drawImage ( const QRectF & r, const QImage & img, const QRectF & sr, Qt::ImageConversionFlags falgs = Qt::AutoColor ) |
virtual void | drawLines ( const QLine * lines, int lineCount ) |
virtual void | drawLines ( const QLineF * lines, int lineCount ) |
virtual void | drawPixmap ( const QRectF & r, const QPixmap & pixmap, const QRectF & sr ) |
virtual void | drawPoints ( const QPointF * points, int pointCount ) |
virtual void | drawPoints ( const QPoint * points, int pointCount ) |
virtual void | drawPolygon ( const QPointF * points, int pointCount, PolygonDrawMode mode ) |
virtual void | drawPolygon ( const QPoint * points, int pointCount, PolygonDrawMode mode ) |
virtual void | drawRects ( const QRect * rects, int rectCount ) |
virtual void | drawRects ( const QRectF * rects, int rectCount ) |
virtual void | drawStaticTextItem ( QStaticTextItem * textItem ) |
virtual void | drawTextItem ( const QPointF & p, const QTextItem & textItem ) |
virtual void | drawTiledPixmap ( const QRectF & r, const QPixmap & pixmap, const QPointF & sr ) |
virtual bool | end () |
virtual void | fillRect ( const QRectF & r, const QBrush & brush ) |
virtual void | fillRect ( const QRectF & r, const QColor & color ) |
virtual Type | type () const |
typedef | QSpan |
The QRasterPaintEngine class enables hardware acceleration of painting operations in Qt for Embedded Linux.
Note that this functionality is only available in Qt for Embedded Linux.
In Qt for Embedded Linux, painting is a pure software implementation. But starting with Qt 4.2, it is possible to add an accelerated graphics driver to take advantage of available hardware resources.
Hardware acceleration is accomplished by creating a custom screen driver, accelerating the copying from memory to the screen, and implementing a custom paint engine accelerating the various painting operations. Then a custom paint device (derived from the QCustomRasterPaintDevice class) and a custom window surface (derived from QWSWindowSurface) must be implemented to make Qt for Embedded Linux aware of the accelerated driver.
Note: The QRasterPaintEngine class does not support 8-bit images. Instead, they need to be converted to a supported format, such as QImage::Format_ARGB32_Premultiplied.
See the Adding an Accelerated Graphics Driver to Qt for Embedded Linux documentation for details.
See also QCustomRasterPaintDevice and QPaintEngine.
Creates a raster based paint engine for operating on the given device, with the complete set of paint engine features and capabilities.
This function was introduced in Qt 4.5.
Destroys this paint engine.
Reimplemented from QPaintEngine::begin().
Draws the given buffer.
The default implementation does nothing; reimplement this function to draw a buffer that contains more than one color. Note that this function must be reimplemented if the framebuffer is not memory-mapped.
The size parameter specifies the total size of the given buffer, while the length parameter specifies the number of pixels to draw. The buffer's position is given by (x, y). The provided alpha value is added to each pixel in the buffer when drawing.
See also drawColorSpans().
Draws the given color spans with the specified color. The count parameter specifies the number of spans.
The default implementation does nothing; reimplement this function to draw the given color spans with the specified color. Note that this function must be reimplemented if the framebuffer is not memory-mapped.
See also drawBufferSpan().
Reimplemented from QPaintEngine::drawEllipse().
Reimplemented from QPaintEngine::drawEllipse().
This is an overloaded function.
Reimplement this function to draw the largest ellipse that can be contained within rectangle rect.
Reimplemented from QPaintEngine::drawImage().
Reimplemented from QPaintEngine::drawLines().
Reimplemented from QPaintEngine::drawLines().
Reimplemented from QPaintEngine::drawPixmap().
Reimplemented from QPaintEngine::drawPoints().
Reimplemented from QPaintEngine::drawPoints().
This is an overloaded function.
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.
Reimplemented from QPaintEngine::drawPolygon().
Reimplemented from QPaintEngine::drawPolygon().
Reimplemented from QPaintEngine::drawRects().
Reimplemented from QPaintEngine::drawRects().
Reimplemented from QPaintEngine::drawTextItem().
Reimplemented from QPaintEngine::drawTiledPixmap().
Reimplemented from QPaintEngine::end().
Reimplemented from QPaintEngine::type().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.