Qt 4.8
|
#include <qpaintbuffer_p.h>
Public Functions | |
virtual void | backgroundModeChanged () |
virtual bool | begin (QPaintDevice *device) |
Reimplement this function to initialise your paint engine when painting is to start on the paint device pdev. More... | |
virtual void | brushChanged () |
virtual void | brushOriginChanged () |
virtual void | clip (const QVectorPath &path, Qt::ClipOperation op) |
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 | clipEnabledChanged () |
virtual void | compositionModeChanged () |
virtual QPainterState * | createState (QPainterState *orig) const |
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 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... | |
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 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 | 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 | drawStaticTextItem (QStaticTextItem *staticTextItem) |
virtual void | drawTextItem (const QPointF &pos, const QTextItem &ti) |
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 | fill (const QVectorPath &path, const QBrush &brush) |
virtual void | fillRect (const QRectF &rect, const QBrush &brush) |
virtual void | fillRect (const QRectF &rect, const QColor &color) |
virtual uint | flags () const |
virtual void | opacityChanged () |
virtual void | penChanged () |
QPaintBufferEngine (QPaintBufferPrivate *buffer) | |
virtual void | renderHintsChanged () |
virtual void | setState (QPainterState *s) |
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 | beginNativePainting () |
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 | drawRoundedRect (const QRectF &rect, qreal xrad, qreal yrad, Qt::SizeMode mode) |
virtual void | endNativePainting () |
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 | |
QPaintBufferPrivate * | buffer |
int | m_begin_detected: 1 |
QPainterState * | m_created_state |
int | m_save_detected: 1 |
int | m_stream_raw_text_items: 1 |
int | m_unused: 29 |
Definition at line 347 of file qpaintbuffer_p.h.
QPaintBufferEngine::QPaintBufferEngine | ( | QPaintBufferPrivate * | buffer | ) |
Definition at line 589 of file qpaintbuffer.cpp.
|
virtual |
Definition at line 808 of file qpaintbuffer.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 598 of file qpaintbuffer.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 709 of file qpaintbuffer.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 728 of file qpaintbuffer.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 631 of file qpaintbuffer.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 641 of file qpaintbuffer.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 651 of file qpaintbuffer.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 661 of file qpaintbuffer.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 670 of file qpaintbuffer.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 744 of file qpaintbuffer.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 613 of file qpaintbuffer.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 817 of file qpaintbuffer.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 1042 of file qpaintbuffer.cpp.
|
virtual |
The default implementation of this function calls the floating point version of this function.
Reimplemented from QPaintEngineEx.
Definition at line 1052 of file qpaintbuffer.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 1218 of file qpaintbuffer.cpp.
Reimplemented from QPaintEngineEx.
Definition at line 1234 of file qpaintbuffer.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 958 of file qpaintbuffer.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 1000 of file qpaintbuffer.cpp.
|
virtual |
The default implementation ignores the path and does nothing.
Reimplemented from QPaintEngineEx.
Definition at line 1062 of file qpaintbuffer.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 1187 of file qpaintbuffer.cpp.
Reimplemented from QPaintEngineEx.
Definition at line 1200 of file qpaintbuffer.cpp.
|
virtual |
Draws the first pointCount points in the buffer points.
Reimplemented from QPaintEngineEx.
Definition at line 1099 of file qpaintbuffer.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 1075 of file qpaintbuffer.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 1155 of file qpaintbuffer.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 1123 of file qpaintbuffer.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 892 of file qpaintbuffer.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 925 of file qpaintbuffer.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 1260 of file qpaintbuffer.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 1273 of file qpaintbuffer.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 1247 of file qpaintbuffer.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 606 of file qpaintbuffer.cpp.
Referenced by QPainterReplayer::processCommands().
|
virtual |
Implements QPaintEngineEx.
Definition at line 840 of file qpaintbuffer.cpp.
Referenced by QPainterReplayer::process().
Reimplemented from QPaintEngineEx.
Definition at line 868 of file qpaintbuffer.cpp.
Reimplemented from QPaintEngineEx.
Definition at line 880 of file qpaintbuffer.cpp.
|
inlinevirtual |
Reimplemented from QPaintEngineEx.
Definition at line 412 of file qpaintbuffer_p.h.
Referenced by QPainterReplayer::process().
|
virtual |
Implements QPaintEngineEx.
Definition at line 736 of file qpaintbuffer.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 679 of file qpaintbuffer.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 754 of file qpaintbuffer.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 1310 of file qpaintbuffer.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 854 of file qpaintbuffer.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 764 of file qpaintbuffer.cpp.
|
inlinevirtual |
Reimplement this function to return the paint engine Type.
Implements QPaintEngine.
Definition at line 356 of file qpaintbuffer_p.h.
QPaintBufferPrivate* QPaintBufferEngine::buffer |
Definition at line 414 of file qpaintbuffer_p.h.
Referenced by backgroundModeChanged(), brushChanged(), brushOriginChanged(), clip(), clipEnabledChanged(), compositionModeChanged(), draw(), drawEllipse(), drawImage(), drawLines(), drawPixmap(), drawPoints(), drawPolygon(), drawRects(), drawStaticTextItem(), drawTextItem(), drawTiledPixmap(), fill(), fillRect(), opacityChanged(), penChanged(), renderHintsChanged(), setState(), stroke(), and transformChanged().
|
mutable |
Definition at line 416 of file qpaintbuffer_p.h.
Referenced by createState(), and setState().
|
mutable |
Definition at line 421 of file qpaintbuffer_p.h.
Referenced by end().
|
mutable |
Definition at line 417 of file qpaintbuffer_p.h.
Referenced by createState(), and setState().
|
mutable |
Definition at line 418 of file qpaintbuffer_p.h.
Referenced by drawTextItem().
|
mutable |
Definition at line 419 of file qpaintbuffer_p.h.