Qt 4.8
|
#include <qpaintengine_alpha_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 | drawImage (const QRectF &r, const QImage &image, const QRectF &sr) |
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 | 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 | 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 | updateState (const QPaintEngineState &state) |
Reimplement this function to update the state of a paint engine. More... | |
~QAlphaPaintEngine () | |
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... | |
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 | 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 | 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 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... | |
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 Type | type () const =0 |
Reimplement this function to return the paint engine Type. More... | |
virtual | ~QPaintEngine () |
Destroys the paint engine. More... | |
Protected Functions | |
QRegion | alphaClipping () const |
void | cleanUp () |
bool | continueCall () const |
void | flushAndInit (bool init=true) |
QAlphaPaintEngine (QAlphaPaintEnginePrivate &data, PaintEngineFeatures devcaps=0) | |
Protected Functions inherited from QPaintEngine | |
QPaintEngine (QPaintEnginePrivate &data, PaintEngineFeatures devcaps=0) | |
Definition at line 63 of file qpaintengine_alpha_p.h.
QAlphaPaintEngine::~QAlphaPaintEngine | ( | ) |
Definition at line 60 of file qpaintengine_alpha.cpp.
|
protected |
Definition at line 54 of file qpaintengine_alpha.cpp.
|
protected |
Definition at line 283 of file qpaintengine_alpha.cpp.
Referenced by QWin32PrintEngine::updateClipPath(), and QPdfBaseEngine::updateClipPath().
|
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.
Reimplemented in QPdfBaseEngine, QPdfEngine, QPSPrintEngine, and QWin32PrintEngine.
Definition at line 65 of file qpaintengine_alpha.cpp.
Referenced by QWin32PrintEngine::begin(), and QPSPrintEngine::begin().
|
protected |
Definition at line 370 of file qpaintengine_alpha.cpp.
Referenced by QWin32PrintEngine::begin(), QWin32PrintEngine::end(), and flushAndInit().
|
protected |
Definition at line 289 of file qpaintengine_alpha.cpp.
Referenced by QWin32PrintEngine::begin(), QPSPrintEngine::begin(), QPSPrintEngine::drawImage(), QWin32PrintEngine::drawPath(), QPdfBaseEngine::drawPath(), QPSPrintEngine::drawPixmap(), QWin32PrintEngine::drawPixmap(), QWin32PrintEngine::drawPolygon(), QPdfBaseEngine::drawPolygon(), QPdfBaseEngine::drawRects(), QWin32PrintEngine::drawTextItem(), QPdfBaseEngine::drawTextItem(), QPSPrintEngine::drawTiledPixmap(), QWin32PrintEngine::drawTiledPixmap(), QWin32PrintEngine::end(), QPSPrintEngine::end(), QWin32PrintEngine::updateState(), and QPdfBaseEngine::updateState().
|
virtual |
Definition at line 226 of file qpaintengine_alpha.cpp.
Referenced by QPSPrintEngine::drawImage().
|
virtual |
The default implementation ignores the path and does nothing.
Reimplemented from QPaintEngine.
Reimplemented in QPdfBaseEngine, and QWin32PrintEngine.
Definition at line 160 of file qpaintengine_alpha.cpp.
Referenced by QWin32PrintEngine::drawPath(), and QPdfBaseEngine::drawPath().
|
virtual |
Reimplement this function to draw the part of the pm specified by the sr rectangle in the given r.
Implements QPaintEngine.
Reimplemented in QPdfEngine, QWin32PrintEngine, and QPSPrintEngine.
Definition at line 207 of file qpaintengine_alpha.cpp.
Referenced by QPSPrintEngine::drawPixmap(), and QWin32PrintEngine::drawPixmap().
|
virtual |
Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode.
Reimplemented from QPaintEngine.
Reimplemented in QPdfBaseEngine, and QWin32PrintEngine.
Definition at line 180 of file qpaintengine_alpha.cpp.
Referenced by QWin32PrintEngine::drawPolygon(), and QPdfBaseEngine::drawPolygon().
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.
Reimplemented in QPdfBaseEngine, and QWin32PrintEngine.
Definition at line 245 of file qpaintengine_alpha.cpp.
Referenced by QWin32PrintEngine::drawTextItem(), and QPdfBaseEngine::drawTextItem().
|
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 QPaintEngine.
Reimplemented in QPdfEngine, QWin32PrintEngine, and QPSPrintEngine.
Definition at line 265 of file qpaintengine_alpha.cpp.
Referenced by QPSPrintEngine::drawTiledPixmap(), and QWin32PrintEngine::drawTiledPixmap().
|
virtual |
Reimplement this function to finish painting on the current paint device.
Return true if painting was finished successfully; otherwise return false.
Implements QPaintEngine.
Reimplemented in QPdfBaseEngine, QPdfEngine, QPSPrintEngine, and QWin32PrintEngine.
Definition at line 97 of file qpaintengine_alpha.cpp.
Referenced by QWin32PrintEngine::end(), and QPSPrintEngine::end().
|
protected |
Definition at line 295 of file qpaintengine_alpha.cpp.
Referenced by begin(), end(), QPSPrintEngine::newPage(), and QWin32PrintEngine::newPage().
|
virtual |
Reimplement this function to update the state of a paint engine.
When implemented, this function is responsible for checking the paint engine's current state and update the properties that are changed. Use the QPaintEngineState::state() function to find out which properties that must be updated, then use the corresponding GetFunction{get function} to retrieve the current values for the given properties.
Implements QPaintEngine.
Reimplemented in QPdfBaseEngine, and QWin32PrintEngine.
Definition at line 110 of file qpaintengine_alpha.cpp.
Referenced by QWin32PrintEngine::updateState(), and QPdfBaseEngine::updateState().