QRasterPaintEngine 類

The QRasterPaintEngine class enables hardware acceleration of painting operations in Qt for Embedded Linux. 更多...

頭: #include <QRasterPaintEngine>
qmake: QT += gui
Since: Qt 4.2
繼承: QPaintEngineEx

該類在開發且可能改變。

公共函數

QRasterPaintEngine (QPaintDevice * device )
~QRasterPaintEngine ()

重實現公共函數

virtual bool begin (QPaintDevice * device )
virtual void drawEllipse (const QRectF & rect )
virtual void drawImage (const QRectF & r , const QImage & img , const QRectF & sr , Qt::ImageConversionFlags flags = 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 bool shouldDrawCachedGlyphs (QFontEngine * fontEngine , const QTransform & m ) const
virtual Type type () const
typedef QSpan

詳細描述

The QRasterPaintEngine class enables hardware acceleration of painting operations in Qt for Embedded Linux.

注意:此功能僅用於 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 and a custom window surface must be implemented to make Qt for Embedded Linux aware of the accelerated driver.

注意: 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 .

另請參閱 QPaintEngine .

成員函數文檔編製

QRasterPaintEngine:: QRasterPaintEngine ( QPaintDevice * device )

Creates a raster based paint engine for operating on the given device , with the complete set of paint engine features and capabilities .

該函數在 Qt 4.5 引入。

QRasterPaintEngine:: ~QRasterPaintEngine ()

銷毀此描繪引擎。

[虛擬] bool QRasterPaintEngine:: begin ( QPaintDevice * device )

重實現自 QPaintEngine::begin ().

[虛擬] void QRasterPaintEngine:: drawEllipse (const QRectF & rect )

重實現自 QPaintEngine::drawEllipse ().

[虛擬] void QRasterPaintEngine:: drawImage (const QRectF & r , const QImage & img , const QRectF & sr , Qt::ImageConversionFlags flags = Qt::AutoColor)

重實現自 QPaintEngine::drawImage ().

[虛擬] void QRasterPaintEngine:: drawLines (const QLine * lines , int lineCount )

重實現自 QPaintEngine::drawLines ().

[虛擬] void QRasterPaintEngine:: drawLines (const QLineF * lines , int lineCount )

重實現自 QPaintEngine::drawLines ().

[虛擬] void QRasterPaintEngine:: drawPixmap (const QRectF & r , const QPixmap & pixmap , const QRectF & sr )

重實現自 QPaintEngine::drawPixmap ().

[虛擬] void QRasterPaintEngine:: drawPoints (const QPointF * points , int pointCount )

重實現自 QPaintEngine::drawPoints ().

[虛擬] void QRasterPaintEngine:: drawPoints (const QPoint * points , int pointCount )

重實現自 QPaintEngine::drawPoints ().

這是重載函數。

[虛擬] void QRasterPaintEngine:: drawPolygon (const QPointF * points , int pointCount , PolygonDrawMode mode )

重實現自 QPaintEngine::drawPolygon ().

[虛擬] void QRasterPaintEngine:: drawPolygon (const QPoint * points , int pointCount , PolygonDrawMode mode )

重實現自 QPaintEngine::drawPolygon ().

[虛擬] void QRasterPaintEngine:: drawRects (const QRect * rects , int rectCount )

重實現自 QPaintEngine::drawRects ().

[虛擬] void QRasterPaintEngine:: drawRects (const QRectF * rects , int rectCount )

重實現自 QPaintEngine::drawRects ().

[虛擬] void QRasterPaintEngine:: drawStaticTextItem ( QStaticTextItem * textItem )

[虛擬] void QRasterPaintEngine:: drawTextItem (const QPointF & p , const QTextItem & textItem )

重實現自 QPaintEngine::drawTextItem ().

[虛擬] void QRasterPaintEngine:: drawTiledPixmap (const QRectF & r , const QPixmap & pixmap , const QPointF & sr )

重實現自 QPaintEngine::drawTiledPixmap ().

[虛擬] bool QRasterPaintEngine:: end ()

重實現自 QPaintEngine::end ().

[虛擬] void QRasterPaintEngine:: fillRect (const QRectF & r , const QBrush & brush )

[虛擬] void QRasterPaintEngine:: fillRect (const QRectF & r , const QColor & color )

[虛擬] bool QRasterPaintEngine:: shouldDrawCachedGlyphs ( QFontEngine * fontEngine , const QTransform & m ) const

Indicates whether glyph caching is supported by the font engine fontEngine with the given transform m applied.

[虛擬] Type QRasterPaintEngine:: type () const

重實現自 QPaintEngine::type ().

相關非成員

typedef QSpan

A struct equivalent to QT_FT_Span, containing a position (x, y), the span's length in pixels and its color/coverage (a value ranging from 0 to 255).