Qt 4.8
|
#include <qpaintengine_opengl_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 | brushChanged () |
void | brushOriginChanged () |
void | clip (const QVectorPath &path, Qt::ClipOperation op) |
void | clipEnabledChanged () |
void | compositionModeChanged () |
QPainterState * | createState (QPainterState *orig) const |
void | drawEllipse (const QRectF &rect) |
Reimplement this function to draw the largest ellipse that can be contained within rectangle rect. More... | |
void | drawImage (const QRectF &r, const QImage &image, const QRectF &sr, Qt::ImageConversionFlags conversionFlags) |
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 | 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 | 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 | 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 | drawPoints (const QPointF *p, int pointCount) |
Draws the first pointCount points in the buffer points. More... | |
void | drawPoints (const QPoint *p, 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 QRectF *r, int rectCount) |
Draws the first rectCount rectangles in the buffer rects. More... | |
void | drawRects (const QRect *r, 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 | drawStaticTextItem (QStaticTextItem *staticTextItem) |
void | drawTextItem (const QPointF &p, const QTextItem &ti) |
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 | fill (const QVectorPath &path, const QBrush &brush) |
HDC | handle () const |
void | opacityChanged () |
void | penChanged () |
QOpenGLPaintEngine () | |
void | renderHintsChanged () |
void | setState (QPainterState *s) |
QOpenGLPaintEngineState * | state () |
const QOpenGLPaintEngineState * | state () const |
bool | supportsTransformations (qreal, const QTransform &) const |
void | transformChanged () |
Type | type () const |
Reimplement this function to return the paint engine Type. More... | |
void | updateBrush (const QBrush &brush, const QPointF &pt) |
void | updateClipRegion (const QRegion ®ion, Qt::ClipOperation op) |
void | updateCompositionMode (QPainter::CompositionMode composition_mode) |
void | updateFont (const QFont &font) |
void | updateMatrix (const QTransform &matrix) |
void | updatePen (const QPen &pen) |
void | updateRenderHints (QPainter::RenderHints hints) |
void | updateState (const QPaintEngineState &state) |
Reimplement this function to update the state of a paint engine. More... | |
~QOpenGLPaintEngine () | |
Public Functions inherited from QPaintEngineEx | |
virtual void | beginNativePainting () |
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 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 | drawPixmap (const QPointF &pos, const QPixmap &pm) |
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 void | fillRect (const QRectF &rect, const QBrush &brush) |
virtual void | fillRect (const QRectF &rect, const QColor &color) |
virtual uint | flags () const |
virtual QPixmapFilter * | pixmapFilter (int, const QPixmapFilter *) |
QPaintEngineEx () | |
QPainterState * | state () |
const QPainterState * | state () const |
virtual void | stroke (const QVectorPath &path, const QPen &pen) |
virtual void | sync () |
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... | |
Private Functions | |
void | drawPolyInternal (const QPolygonF &pa, bool close=true) |
void | drawTextureRect (int tx_width, int tx_height, const QRectF &r, const QRectF &sr, GLenum target, QGLTexture *tex) |
Definition at line 76 of file qpaintengine_opengl_p.h.
QOpenGLPaintEngine::QOpenGLPaintEngine | ( | ) |
Definition at line 1235 of file qpaintengine_opengl.cpp.
QOpenGLPaintEngine::~QOpenGLPaintEngine | ( | ) |
Definition at line 1240 of file qpaintengine_opengl.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 1244 of file qpaintengine_opengl.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 5419 of file qpaintengine_opengl.cpp.
Referenced by begin().
|
virtual |
Implements QPaintEngineEx.
Definition at line 5424 of file qpaintengine_opengl.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 5501 of file qpaintengine_opengl.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 5407 of file qpaintengine_opengl.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 5438 of file qpaintengine_opengl.cpp.
Referenced by begin().
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 5578 of file qpaintengine_opengl.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 5025 of file qpaintengine_opengl.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 4427 of file qpaintengine_opengl.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 3697 of file qpaintengine_opengl.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 3669 of file qpaintengine_opengl.cpp.
|
virtual |
The default implementation ignores the path and does nothing.
Reimplemented from QPaintEngineEx.
Definition at line 4166 of file qpaintengine_opengl.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 4289 of file qpaintengine_opengl.cpp.
|
virtual |
Draws the first pointCount points in the buffer points.
Reimplemented from QPaintEngineEx.
Definition at line 3596 of file qpaintengine_opengl.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 3579 of file qpaintengine_opengl.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 3837 of file qpaintengine_opengl.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 3826 of file qpaintengine_opengl.cpp.
|
private |
|
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 3513 of file qpaintengine_opengl.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 3488 of file qpaintengine_opengl.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 4922 of file qpaintengine_opengl.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 4991 of file qpaintengine_opengl.cpp.
|
private |
Definition at line 4461 of file qpaintengine_opengl.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 4333 of file qpaintengine_opengl.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 1432 of file qpaintengine_opengl.cpp.
Referenced by QGLMaskTextureCache::maintainCache().
|
virtual |
Implements QPaintEngineEx.
Definition at line 5455 of file qpaintengine_opengl.cpp.
HDC QOpenGLPaintEngine::handle | ( | ) | const |
Definition at line 4517 of file qpaintengine_opengl.cpp.
|
virtual |
Implements QPaintEngineEx.
Definition at line 5429 of file qpaintengine_opengl.cpp.
Referenced by begin().
|
virtual |
Implements QPaintEngineEx.
Definition at line 5414 of file qpaintengine_opengl.cpp.
Referenced by begin().
|
virtual |
Implements QPaintEngineEx.
Definition at line 5443 of file qpaintengine_opengl.cpp.
Referenced by begin().
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 5552 of file qpaintengine_opengl.cpp.
|
inline |
|
inline |
Definition at line 104 of file qpaintengine_opengl_p.h.
|
inlinevirtual |
Reimplemented from QPaintEngineEx.
Definition at line 146 of file qpaintengine_opengl_p.h.
|
virtual |
Implements QPaintEngineEx.
Definition at line 5448 of file qpaintengine_opengl.cpp.
Referenced by begin().
|
inlinevirtual |
Reimplement this function to return the paint engine Type.
Implements QPaintEngine.
Definition at line 145 of file qpaintengine_opengl_p.h.
Definition at line 2166 of file qpaintengine_opengl.cpp.
Referenced by updateState().
void QOpenGLPaintEngine::updateClipRegion | ( | const QRegion & | region, |
Qt::ClipOperation | op | ||
) |
Definition at line 2347 of file qpaintengine_opengl.cpp.
Referenced by begin(), and updateState().
void QOpenGLPaintEngine::updateCompositionMode | ( | QPainter::CompositionMode | composition_mode | ) |
Definition at line 2489 of file qpaintengine_opengl.cpp.
Referenced by updateState().
void QOpenGLPaintEngine::updateFont | ( | const QFont & | font | ) |
void QOpenGLPaintEngine::updateMatrix | ( | const QTransform & | matrix | ) |
Definition at line 2180 of file qpaintengine_opengl.cpp.
Referenced by updateState().
void QOpenGLPaintEngine::updatePen | ( | const QPen & | pen | ) |
Definition at line 2140 of file qpaintengine_opengl.cpp.
Referenced by updateState().
void QOpenGLPaintEngine::updateRenderHints | ( | QPainter::RenderHints | hints | ) |
Definition at line 2440 of file qpaintengine_opengl.cpp.
Referenced by updateState().
|
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.
Reimplemented from QPaintEngineEx.
Definition at line 1465 of file qpaintengine_opengl.cpp.