Qt 4.8
|
#include <qpaintengineex_opengl2_p.h>
Public Functions | |
bool | begin (QPaintDevice *device) |
Reimplement this function to initialise your paint engine when painting is to start on the paint device pdev. More... | |
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=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 | 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 *textItem) |
virtual void | drawTextItem (const QPointF &p, const QTextItem &textItem) |
This function draws the text item textItem at position p. More... | |
bool | drawTexture (const QRectF &r, GLuint textureId, const QSize &size, const QRectF &sr) |
bool | end () |
Reimplement this function to finish painting on the current paint device. More... | |
void | endNativePainting () |
void | ensureActive () |
virtual void | fill (const QVectorPath &path, const QBrush &brush) |
void | invalidateState () |
bool | isNativePaintingActive () const |
virtual void | opacityChanged () |
virtual void | penChanged () |
QPixmapFilter * | pixmapFilter (int type, const QPixmapFilter *prototype) |
QGL2PaintEngineEx () | |
virtual void | renderHintsChanged () |
void | setRenderTextActive (bool) |
virtual void | setState (QPainterState *s) |
QOpenGL2PaintEngineState * | state () |
const QOpenGL2PaintEngineState * | state () const |
virtual void | stroke (const QVectorPath &path, const QPen &pen) |
bool | supportsTransformations (qreal, const QTransform &) const |
virtual void | transformChanged () |
Type | type () const |
Reimplement this function to return the paint engine Type. More... | |
~QGL2PaintEngineEx () | |
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 | 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 void | fillRect (const QRectF &rect, const QBrush &brush) |
virtual void | fillRect (const QRectF &rect, const QColor &color) |
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... | |
Definition at line 107 of file qpaintengineex_opengl2_p.h.
QGL2PaintEngineEx::QGL2PaintEngineEx | ( | ) |
Definition at line 1198 of file qpaintengineex_opengl2.cpp.
QGL2PaintEngineEx::~QGL2PaintEngineEx | ( | ) |
Definition at line 1203 of file qpaintengineex_opengl2.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 2099 of file qpaintengineex_opengl2.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 553 of file qpaintengineex_opengl2.cpp.
|
virtual |
|
virtual |
|
virtual |
Implements QPaintEngineEx.
Definition at line 2403 of file qpaintengineex_opengl2.cpp.
Referenced by QGL2PaintEngineExPrivate::stroke().
|
virtual |
Implements QPaintEngineEx.
Definition at line 2305 of file qpaintengineex_opengl2.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 1335 of file qpaintengineex_opengl2.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 2597 of file qpaintengineex_opengl2.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 1411 of file qpaintengineex_opengl2.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 1374 of file qpaintengineex_opengl2.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 1895 of file qpaintengineex_opengl2.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 1917 of file qpaintengineex_opengl2.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 1441 of file qpaintengineex_opengl2.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 1496 of file qpaintengineex_opengl2.cpp.
bool QGL2PaintEngineEx::drawTexture | ( | const QRectF & | r, |
GLuint | textureId, | ||
const QSize & | size, | ||
const QRectF & | sr | ||
) |
Definition at line 1473 of file qpaintengineex_opengl2.cpp.
Referenced by QGLPixmapDropShadowFilter::processGL().
|
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 2188 of file qpaintengineex_opengl2.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 632 of file qpaintengineex_opengl2.cpp.
void QGL2PaintEngineEx::ensureActive | ( | ) |
Definition at line 2227 of file qpaintengineex_opengl2.cpp.
Referenced by clip(), createState(), drawImage(), drawPixmap(), drawPixmapFragments(), drawStaticTextItem(), drawTextItem(), drawTexture(), fill(), and stroke().
|
virtual |
Implements QPaintEngineEx.
Definition at line 1207 of file qpaintengineex_opengl2.cpp.
void QGL2PaintEngineEx::invalidateState | ( | ) |
Definition at line 639 of file qpaintengineex_opengl2.cpp.
bool QGL2PaintEngineEx::isNativePaintingActive | ( | ) | const |
Definition at line 645 of file qpaintengineex_opengl2.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 1324 of file qpaintengineex_opengl2.cpp.
|
virtual |
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 130 of file qglpixmapfilter.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 1343 of file qpaintengineex_opengl2.cpp.
Referenced by setState().
void QGL2PaintEngineEx::setRenderTextActive | ( | bool | ) |
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 2554 of file qpaintengineex_opengl2.cpp.
Referenced by ensureActive().
|
inline |
Definition at line 147 of file qpaintengineex_opengl2_p.h.
Referenced by clip(), clipEnabledChanged(), compositionModeChanged(), drawImage(), drawPixmap(), drawPixmapFragments(), drawStaticTextItem(), drawTextItem(), drawTexture(), QGL2PaintEngineExPrivate::drawTexture(), ensureActive(), QGL2PaintEngineExPrivate::fill(), QGL2PaintEngineExPrivate::fillStencilWithVertexArray(), opacityChanged(), QGL2PaintEngineExPrivate::prepareForDraw(), renderHintsChanged(), QGL2PaintEngineExPrivate::resetClipIfNeeded(), setState(), stroke(), transformChanged(), QGL2PaintEngineExPrivate::updateBrushTexture(), QGL2PaintEngineExPrivate::updateBrushUniforms(), QGL2PaintEngineExPrivate::updateCompositionMode(), and QGL2PaintEngineExPrivate::updateMatrix().
|
inline |
Definition at line 150 of file qpaintengineex_opengl2_p.h.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 1221 of file qpaintengineex_opengl2.cpp.
|
inlinevirtual |
Reimplemented from QPaintEngineEx.
Definition at line 164 of file qpaintengineex_opengl2_p.h.
|
virtual |
Implements QPaintEngineEx.
Definition at line 1361 of file qpaintengineex_opengl2.cpp.
|
inlinevirtual |
Reimplement this function to return the paint engine Type.
Implements QPaintEngine.
Definition at line 143 of file qpaintengineex_opengl2_p.h.