Qt 4.8
|
#include <qpaintengine_vg_p.h>
Public Functions | |
bool | begin (QPaintDevice *pdev) |
Reimplement this function to initialise your paint engine when painting is to start on the paint device pdev. More... | |
void | beginNativePainting () |
void | brushChanged () |
void | brushOriginChanged () |
void | clip (const QVectorPath &path, Qt::ClipOperation op) |
void | clip (const QRect &rect, Qt::ClipOperation op) |
void | clip (const QRegion ®ion, Qt::ClipOperation op) |
void | clip (const QPainterPath &path, Qt::ClipOperation op) |
void | clipEnabledChanged () |
void | compositionModeChanged () |
QPainterState * | createState (QPainterState *orig) const |
void | draw (const QVectorPath &path) |
bool | drawCachedGlyphs (int numGlyphs, const glyph_t *glyphs, const QFont &font, QFontEngine *fontEngine, const QPointF &p, const QFixedPoint *positions) |
void | drawEllipse (const QRectF &r) |
Reimplement this function to draw the largest ellipse that can be contained within rectangle rect. More... | |
void | drawEllipse (const QRect &r) |
The default implementation of this function calls the floating point version of this function. More... | |
void | drawImage (const QRectF &r, const QImage &pm, 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. More... | |
void | drawImage (const QPointF &pos, const QImage &image) |
void | drawLines (const QLine *lines, int lineCount) |
The default implementation converts the first lineCount lines in lines to a QLineF and calls the floating point version of this function. More... | |
void | 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. More... | |
void | drawPath (const QPainterPath &path) |
The default implementation ignores the path and does nothing. More... | |
void | 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. More... | |
void | drawPixmap (const QPointF &pos, const QPixmap &pm) |
void | drawPixmapFragments (const QPainter::PixmapFragment *drawingData, int dataCount, const QPixmap &pixmap, QFlags< QPainter::PixmapFragmentHint > hints) |
void | drawPoints (const QPointF *points, int pointCount) |
Draws the first pointCount points in the buffer points. More... | |
void | drawPoints (const QPoint *points, int pointCount) |
Draws the first pointCount points in the buffer points. More... | |
void | drawPolygon (const QPointF *points, int pointCount, PolygonDrawMode mode) |
Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode. More... | |
void | drawPolygon (const QPoint *points, int pointCount, PolygonDrawMode mode) |
Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode. More... | |
void | drawRects (const QRect *rects, int rectCount) |
The default implementation converts the first rectCount rectangles in the buffer rects to a QRectF and calls the floating point version of this function. More... | |
void | drawRects (const QRectF *rects, int rectCount) |
Draws the first rectCount rectangles in the buffer rects. More... | |
void | drawRoundedRect (const QRectF &rect, qreal xrad, qreal yrad, Qt::SizeMode mode) |
void | drawStaticTextItem (QStaticTextItem *staticTextItem) |
void | drawTextItem (const QPointF &p, const QTextItem &textItem) |
This function draws the text item textItem at position p. More... | |
void | drawTiledPixmap (const QRectF &r, const QPixmap &pixmap, const QPointF &s) |
Reimplement this function to draw the pixmap in the given rect, starting at the given p. More... | |
bool | end () |
Reimplement this function to finish painting on the current paint device. More... | |
void | endNativePainting () |
void | fill (const QVectorPath &path, const QBrush &brush) |
void | fillRect (const QRectF &rect, const QBrush &brush) |
void | fillRect (const QRectF &rect, const QColor &color) |
void | fillRegion (const QRegion ®ion, const QColor &color, const QSize &surfaceSize) |
void | opacityChanged () |
void | penChanged () |
QPixmapFilter * | pixmapFilter (int type, const QPixmapFilter *prototype) |
QVGPaintEngine () | |
void | renderHintsChanged () |
void | setState (QPainterState *s) |
QVGPainterState * | state () |
const QVGPainterState * | state () const |
void | stroke (const QVectorPath &path, const QPen &pen) |
bool | supportsTransformations (qreal, const QTransform &) const |
void | transformChanged () |
Type | type () const |
Reimplement this function to return the paint engine Type. More... | |
QVGPaintEnginePrivate * | vgPrivate () |
~QVGPaintEngine () | |
Public Functions inherited from QPaintEngineEx | |
virtual void | drawPixmapFragments (const QPainter::PixmapFragment *fragments, int fragmentCount, const QPixmap &pixmap, QPainter::PixmapFragmentHints hints) |
virtual void | drawPixmapFragments (const QRectF *targetRects, const QRectF *sourceRects, int fragmentCount, const QPixmap &pixmap, QPainter::PixmapFragmentHints hints) |
virtual uint | flags () const |
QPaintEngineEx () | |
QPainterState * | state () |
const QPainterState * | state () const |
virtual void | sync () |
virtual void | updateState (const QPaintEngineState &state) |
Reimplement this function to update the state of a paint engine. More... | |
Public Functions inherited from QPaintEngine | |
void | clearDirty (DirtyFlags df) |
virtual QPoint | coordinateOffset () const |
Returns the offset from the painters origo to the engines origo. More... | |
void | fix_neg_rect (int *x, int *y, int *w, int *h) |
virtual HDC | getDC () const |
Empty default implementation. More... | |
bool | hasFeature (PaintEngineFeatures feature) const |
Returns true if the paint engine supports the specified feature; otherwise returns false. More... | |
bool | isActive () const |
Returns true if the paint engine is actively drawing; otherwise returns false. More... | |
bool | isExtended () const |
Returns true if the paint engine is a QPaintEngineEx derivative. More... | |
QPaintDevice * | paintDevice () const |
Returns the device that this engine is painting on, if painting is active; otherwise returns 0. More... | |
QPainter * | painter () const |
Returns the paint engine's painter. More... | |
QPaintEngine (PaintEngineFeatures features=0) | |
Creates a paint engine with the featureset specified by caps. More... | |
virtual void | releaseDC (HDC hdc) const |
Empty default implementation. More... | |
void | setActive (bool newState) |
Sets the active state of the paint engine to state. More... | |
void | setDirty (DirtyFlags df) |
void | setPaintDevice (QPaintDevice *device) |
void | setSystemClip (const QRegion &baseClip) |
Sets the system clip for this engine. More... | |
void | setSystemRect (const QRect &rect) |
Sets the target rect for drawing within the backing store. More... | |
void | syncState () |
Updates all dirty states in this engine. More... | |
QRegion | systemClip () const |
Returns the system clip. More... | |
QRect | systemRect () const |
Retrieves the rect for drawing within the backing store. More... | |
bool | testDirty (DirtyFlags df) |
virtual | ~QPaintEngine () |
Destroys the paint engine. More... | |
Protected Functions | |
QVGPaintEngine (QVGPaintEnginePrivate &data) | |
Protected Functions inherited from QPaintEngineEx | |
QPaintEngineEx (QPaintEngineExPrivate &data) | |
Protected Functions inherited from QPaintEngine | |
QPaintEngine (QPaintEnginePrivate &data, PaintEngineFeatures devcaps=0) | |
Private Functions | |
bool | canVgWritePixels (const QImage &image) const |
bool | clearRect (const QRectF &rect, const QColor &color) |
QRegion | defaultClipRegion () |
bool | isDefaultClipRect (const QRect &rect) |
bool | isDefaultClipRegion (const QRegion ®ion) |
void | restoreState (QPaintEngine::DirtyFlags dirty) |
void | updateScissor () |
Definition at line 78 of file qpaintengine_vg_p.h.
QVGPaintEngine::QVGPaintEngine | ( | ) |
Definition at line 1470 of file qpaintengine_vg.cpp.
QVGPaintEngine::~QVGPaintEngine | ( | ) |
Definition at line 1480 of file qpaintengine_vg.cpp.
|
protected |
Definition at line 1475 of file qpaintengine_vg.cpp.
|
virtual |
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.
Implements QPaintEngine.
Definition at line 1539 of file qpaintengine_vg.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 3853 of file qpaintengine_vg.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 2418 of file qpaintengine_vg.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 2426 of file qpaintengine_vg.cpp.
|
private |
Definition at line 3303 of file qpaintengine_vg.cpp.
Referenced by drawImage().
Definition at line 2564 of file qpaintengine_vg.cpp.
Referenced by fillRect().
|
virtual |
Implements QPaintEngineEx.
Definition at line 1795 of file qpaintengine_vg.cpp.
Referenced by clip(), and clipTransformIsSimple().
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 1857 of file qpaintengine_vg.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 1970 of file qpaintengine_vg.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 2117 of file qpaintengine_vg.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 2380 of file qpaintengine_vg.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 2444 of file qpaintengine_vg.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 1484 of file qpaintengine_vg.cpp.
|
private |
Definition at line 2349 of file qpaintengine_vg.cpp.
Referenced by begin(), clipEnabledChanged(), and clipTransformIsSimple().
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 1566 of file qpaintengine_vg.cpp.
bool QVGPaintEngine::drawCachedGlyphs | ( | int | numGlyphs, |
const glyph_t * | glyphs, | ||
const QFont & | font, | ||
QFontEngine * | fontEngine, | ||
const QPointF & | p, | ||
const QFixedPoint * | positions | ||
) |
Definition at line 3743 of file qpaintengine_vg.cpp.
|
virtual |
Reimplement this function to draw the largest ellipse that can be contained within rectangle rect.
The default implementation calls drawPolygon().
Reimplemented from QPaintEngineEx.
Definition at line 2851 of file qpaintengine_vg.cpp.
Referenced by drawEllipse().
|
virtual |
The default implementation of this function calls the floating point version of this function.
Reimplemented from QPaintEngineEx.
Definition at line 2900 of file qpaintengine_vg.cpp.
|
virtual |
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.
Implements QPaintEngineEx.
Definition at line 3384 of file qpaintengine_vg.cpp.
Referenced by drawPixmap().
Reimplemented from QPaintEngineEx.
Definition at line 3435 of file qpaintengine_vg.cpp.
|
virtual |
The default implementation converts the first lineCount lines in lines to a QLineF and calls the floating point version of this function.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Reimplemented from QPaintEngineEx.
Definition at line 2787 of file qpaintengine_vg.cpp.
|
virtual |
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.
Reimplemented from QPaintEngineEx.
Definition at line 2819 of file qpaintengine_vg.cpp.
|
virtual |
The default implementation ignores the path and does nothing.
Reimplemented from QPaintEngineEx.
Definition at line 2905 of file qpaintengine_vg.cpp.
Reimplement this function to draw the part of the pm specified by the sr rectangle in the given r.
Implements QPaintEngineEx.
Definition at line 3331 of file qpaintengine_vg.cpp.
Reimplemented from QPaintEngineEx.
Definition at line 3357 of file qpaintengine_vg.cpp.
void QVGPaintEngine::drawPixmapFragments | ( | const QPainter::PixmapFragment * | drawingData, |
int | dataCount, | ||
const QPixmap & | pixmap, | ||
QFlags< QPainter::PixmapFragmentHint > | hints | ||
) |
Definition at line 3476 of file qpaintengine_vg.cpp.
|
virtual |
Draws the first pointCount points in the buffer points.
Reimplemented from QPaintEngineEx.
Definition at line 2923 of file qpaintengine_vg.cpp.
|
virtual |
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 QPaintEngineEx.
Definition at line 2962 of file qpaintengine_vg.cpp.
|
virtual |
Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode.
Reimplemented from QPaintEngineEx.
Definition at line 3001 of file qpaintengine_vg.cpp.
|
virtual |
Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Reimplemented from QPaintEngineEx.
Definition at line 3054 of file qpaintengine_vg.cpp.
|
virtual |
The default implementation converts the first rectCount rectangles in the buffer rects to a QRectF and calls the floating point version of this function.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Reimplemented from QPaintEngineEx.
Definition at line 2700 of file qpaintengine_vg.cpp.
|
virtual |
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.
Reimplemented from QPaintEngineEx.
Definition at line 2745 of file qpaintengine_vg.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 2681 of file qpaintengine_vg.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 3737 of file qpaintengine_vg.cpp.
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.
Reimplemented from QPaintEngine.
Definition at line 3704 of file qpaintengine_vg.cpp.
|
virtual |
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.
Reimplemented from QPaintEngineEx.
Definition at line 3464 of file qpaintengine_vg.cpp.
Referenced by drawImage().
|
virtual |
Reimplement this function to finish painting on the current paint device.
Return true if painting was finished successfully; otherwise return false.
Implements QPaintEngine.
Definition at line 1559 of file qpaintengine_vg.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 3872 of file qpaintengine_vg.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 1584 of file qpaintengine_vg.cpp.
Reimplemented from QPaintEngineEx.
Definition at line 2588 of file qpaintengine_vg.cpp.
Referenced by drawTiledPixmap().
Reimplemented from QPaintEngineEx.
Definition at line 2639 of file qpaintengine_vg.cpp.
void QVGPaintEngine::fillRegion | ( | const QRegion & | region, |
const QColor & | color, | ||
const QSize & | surfaceSize | ||
) |
Definition at line 3961 of file qpaintengine_vg.cpp.
Referenced by QVGWindowSurface::beginPaint(), and restoreState().
|
private |
Definition at line 2370 of file qpaintengine_vg.cpp.
Referenced by clip().
|
private |
Definition at line 2356 of file qpaintengine_vg.cpp.
Referenced by clip(), and updateScissor().
|
virtual |
Implements QPaintEngineEx.
Definition at line 2435 of file qpaintengine_vg.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 2409 of file qpaintengine_vg.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 3894 of file qpaintengine_vg.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 2532 of file qpaintengine_vg.cpp.
|
private |
Definition at line 3921 of file qpaintengine_vg.cpp.
Referenced by begin().
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 3836 of file qpaintengine_vg.cpp.
|
inline |
Definition at line 151 of file qpaintengine_vg_p.h.
Referenced by begin(), brushChanged(), brushOriginChanged(), clearRect(), clipEnabledChanged(), clipTransformIsSimple(), compositionModeChanged(), draw(), drawEllipse(), drawLines(), drawPath(), drawPoints(), drawPolygon(), drawRects(), drawRoundedRect(), drawTiledPixmap(), opacityChanged(), penChanged(), renderHintsChanged(), transformChanged(), and updateScissor().
|
inline |
Definition at line 152 of file qpaintengine_vg_p.h.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 1603 of file qpaintengine_vg.cpp.
|
inlinevirtual |
Reimplemented from QPaintEngineEx.
Definition at line 162 of file qpaintengine_vg_p.h.
|
virtual |
Implements QPaintEngineEx.
Definition at line 2552 of file qpaintengine_vg.cpp.
|
inlinevirtual |
Reimplement this function to return the paint engine Type.
Implements QPaintEngine.
Definition at line 85 of file qpaintengine_vg_p.h.
Referenced by clipTransformIsSimple().
|
private |
Definition at line 2242 of file qpaintengine_vg.cpp.
Referenced by clip(), clipEnabledChanged(), clipTransformIsSimple(), and QVGPaintEnginePrivate::ensureMask().
|
inline |
Definition at line 159 of file qpaintengine_vg_p.h.
Referenced by qt_vg_drawVGImage(), qt_vg_drawVGImageStencil(), and QVGCompositionHelper::QVGCompositionHelper().