Qt 4.8
|
#include <qemulationpaintengine_p.h>
Public Functions | |
virtual bool | begin (QPaintDevice *pdev) |
Reimplement this function to initialise your paint engine when painting is to start on the paint device pdev. More... | |
virtual void | beginNativePainting () |
virtual void | brushChanged () |
virtual void | brushOriginChanged () |
virtual void | clip (const QVectorPath &path, Qt::ClipOperation op) |
virtual void | clipEnabledChanged () |
virtual void | compositionModeChanged () |
virtual QPainterState * | createState (QPainterState *orig) const |
virtual void | drawImage (const QRectF &r, const QImage &pm, const QRectF &sr, Qt::ImageConversionFlags flags) |
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... | |
virtual 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... | |
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 void | drawStaticTextItem (QStaticTextItem *item) |
virtual void | drawTextItem (const QPointF &p, const QTextItem &textItem) |
This function draws the text item textItem at position p. More... | |
virtual 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... | |
virtual bool | end () |
Reimplement this function to finish painting on the current paint device. More... | |
virtual void | endNativePainting () |
virtual void | fill (const QVectorPath &path, const QBrush &brush) |
virtual uint | flags () const |
virtual void | opacityChanged () |
virtual void | penChanged () |
QEmulationPaintEngine (QPaintEngineEx *engine) | |
virtual void | renderHintsChanged () |
virtual void | setState (QPainterState *s) |
QPainterState * | state () |
const QPainterState * | state () const |
virtual void | stroke (const QVectorPath &path, const QPen &pen) |
virtual void | transformChanged () |
virtual Type | type () const |
Reimplement this function to return the paint engine Type. More... | |
Public Functions inherited from QPaintEngineEx | |
virtual void | clip (const QRect &rect, Qt::ClipOperation op) |
virtual void | clip (const QRegion ®ion, Qt::ClipOperation op) |
virtual void | clip (const QPainterPath &path, Qt::ClipOperation op) |
virtual void | draw (const QVectorPath &path) |
virtual void | drawEllipse (const QRectF &r) |
Reimplement this function to draw the largest ellipse that can be contained within rectangle rect. More... | |
virtual void | drawEllipse (const QRect &r) |
The default implementation of this function calls the floating point version of this function. More... | |
virtual void | drawImage (const QPointF &pos, const QImage &image) |
virtual 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... | |
virtual 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... | |
virtual void | drawPath (const QPainterPath &path) |
The default implementation ignores the path and does nothing. More... | |
virtual void | drawPixmap (const QPointF &pos, const QPixmap &pm) |
virtual void | drawPoints (const QPointF *points, int pointCount) |
Draws the first pointCount points in the buffer points. More... | |
virtual void | drawPoints (const QPoint *points, int pointCount) |
Draws the first pointCount points in the buffer points. More... | |
virtual 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... | |
virtual 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... | |
virtual 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... | |
virtual void | drawRects (const QRectF *rects, int rectCount) |
Draws the first rectCount rectangles in the buffer rects. More... | |
virtual void | drawRoundedRect (const QRectF &rect, qreal xrad, qreal yrad, Qt::SizeMode mode) |
virtual void | fillRect (const QRectF &rect, const QBrush &brush) |
virtual void | fillRect (const QRectF &rect, const QColor &color) |
virtual QPixmapFilter * | pixmapFilter (int, const QPixmapFilter *) |
QPaintEngineEx () | |
QPainterState * | state () |
const QPainterState * | state () const |
virtual bool | supportsTransformations (qreal pixelSize, const QTransform &m) 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... | |
Public Variables | |
QPaintEngineEx * | real_engine |
Private Functions | |
void | fillBGRect (const QRectF &r) |
Definition at line 64 of file qemulationpaintengine_p.h.
QEmulationPaintEngine::QEmulationPaintEngine | ( | QPaintEngineEx * | engine | ) |
Definition at line 49 of file qemulationpaintengine.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 61 of file qemulationpaintengine.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 312 of file qemulationpaintengine.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 276 of file qemulationpaintengine.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 281 of file qemulationpaintengine.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 156 of file qemulationpaintengine.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 266 of file qemulationpaintengine.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 291 of file qemulationpaintengine.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 72 of file qemulationpaintengine.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 220 of file qemulationpaintengine.cpp.
|
virtual |
Reimplement this function to draw the part of the pm specified by the sr rectangle in the given r.
Implements QPaintEngineEx.
Definition at line 161 of file qemulationpaintengine.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 225 of file qemulationpaintengine.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 255 of file qemulationpaintengine.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 208 of file qemulationpaintengine.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 168 of file qemulationpaintengine.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 213 of file qemulationpaintengine.cpp.
|
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 66 of file qemulationpaintengine.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 317 of file qemulationpaintengine.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 77 of file qemulationpaintengine.cpp.
|
private |
Definition at line 322 of file qemulationpaintengine.cpp.
Referenced by drawPixmap(), drawPixmapFragments(), drawTextItem(), and drawTiledPixmap().
|
inlinevirtual |
|
virtual |
Implements QPaintEngineEx.
Definition at line 286 of file qemulationpaintengine.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 271 of file qemulationpaintengine.cpp.
Referenced by drawTextItem().
|
virtual |
Implements QPaintEngineEx.
Definition at line 296 of file qemulationpaintengine.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 306 of file qemulationpaintengine.cpp.
|
inline |
Definition at line 106 of file qemulationpaintengine_p.h.
Referenced by drawPixmap(), drawPixmapFragments(), drawTextItem(), drawTiledPixmap(), fill(), fillBGRect(), and stroke().
|
inline |
Definition at line 107 of file qemulationpaintengine_p.h.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 115 of file qemulationpaintengine.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 301 of file qemulationpaintengine.cpp.
|
virtual |
Reimplement this function to return the paint engine Type.
Implements QPaintEngine.
Definition at line 56 of file qemulationpaintengine.cpp.
QPaintEngineEx* QEmulationPaintEngine::real_engine |
Definition at line 109 of file qemulationpaintengine_p.h.
Referenced by beginNativePainting(), brushChanged(), brushOriginChanged(), QPainterPrivate::checkEmulation(), clip(), clipEnabledChanged(), compositionModeChanged(), createState(), QPainterPrivate::detachPainterPrivate(), drawImage(), drawPixmap(), drawPixmapFragments(), drawStaticTextItem(), drawTextItem(), drawTiledPixmap(), endNativePainting(), fill(), fillBGRect(), opacityChanged(), penChanged(), QEmulationPaintEngine(), renderHintsChanged(), setState(), stroke(), transformChanged(), and type().