Qwt User's Guide 6.3.0
|
A null paint device doing nothing. More...
#include <qwt_null_paintdevice.h>
Public Types | |
enum | Mode { NormalMode , PolygonPathMode , PathMode } |
Render mode. More... | |
Public Member Functions | |
QwtNullPaintDevice () | |
Constructor. | |
virtual | ~QwtNullPaintDevice () |
Destructor. | |
void | setMode (Mode) |
Mode | mode () const |
virtual QPaintEngine * | paintEngine () const override |
See QPaintDevice::paintEngine() | |
virtual int | metric (PaintDeviceMetric) const override |
virtual void | drawRects (const QRect *, int) |
See QPaintEngine::drawRects() | |
virtual void | drawRects (const QRectF *, int) |
See QPaintEngine::drawRects() | |
virtual void | drawLines (const QLine *, int) |
See QPaintEngine::drawLines() | |
virtual void | drawLines (const QLineF *, int) |
See QPaintEngine::drawLines() | |
virtual void | drawEllipse (const QRectF &) |
See QPaintEngine::drawEllipse() | |
virtual void | drawEllipse (const QRect &) |
See QPaintEngine::drawEllipse() | |
virtual void | drawPath (const QPainterPath &) |
See QPaintEngine::drawPath() | |
virtual void | drawPoints (const QPointF *, int) |
See QPaintEngine::drawPoints() | |
virtual void | drawPoints (const QPoint *, int) |
See QPaintEngine::drawPoints() | |
virtual void | drawPolygon (const QPointF *, int, QPaintEngine::PolygonDrawMode) |
See QPaintEngine::drawPolygon() | |
virtual void | drawPolygon (const QPoint *, int, QPaintEngine::PolygonDrawMode) |
See QPaintEngine::drawPolygon() | |
virtual void | drawPixmap (const QRectF &, const QPixmap &, const QRectF &) |
See QPaintEngine::drawPixmap() | |
virtual void | drawTextItem (const QPointF &, const QTextItem &) |
See QPaintEngine::drawTextItem() | |
virtual void | drawTiledPixmap (const QRectF &, const QPixmap &, const QPointF &) |
See QPaintEngine::drawTiledPixmap() | |
virtual void | drawImage (const QRectF &, const QImage &, const QRectF &, Qt::ImageConversionFlags) |
See QPaintEngine::drawImage() | |
virtual void | updateState (const QPaintEngineState &) |
See QPaintEngine::updateState() | |
Protected Member Functions | |
virtual QSize | sizeMetrics () const =0 |
A null paint device doing nothing.
Sometimes important layout/rendering geometries are not available or changeable from the public Qt class interface. ( f.e hidden in the style implementation ).
QwtNullPaintDevice can be used to manipulate or filter out this information by analyzing the stream of paint primitives.
F.e. QwtNullPaintDevice is used by QwtPlotCanvas to identify styled backgrounds with rounded corners.
Definition at line 32 of file qwt_null_paintdevice.h.
Render mode.
Definition at line 40 of file qwt_null_paintdevice.h.
QwtNullPaintDevice::QwtNullPaintDevice | ( | ) |
Constructor.
Definition at line 367 of file qwt_null_paintdevice.cpp.
|
virtual |
Destructor.
Definition at line 374 of file qwt_null_paintdevice.cpp.
|
virtual |
See QPaintEngine::drawEllipse()
Definition at line 521 of file qwt_null_paintdevice.cpp.
|
virtual |
See QPaintEngine::drawEllipse()
Definition at line 515 of file qwt_null_paintdevice.cpp.
|
virtual |
See QPaintEngine::drawImage()
Reimplemented in QwtGraphic.
Definition at line 596 of file qwt_null_paintdevice.cpp.
|
virtual |
See QPaintEngine::drawLines()
Definition at line 499 of file qwt_null_paintdevice.cpp.
|
virtual |
See QPaintEngine::drawLines()
Definition at line 507 of file qwt_null_paintdevice.cpp.
|
virtual |
See QPaintEngine::drawPath()
Reimplemented in QwtGraphic.
Definition at line 527 of file qwt_null_paintdevice.cpp.
|
virtual |
See QPaintEngine::drawPixmap()
Reimplemented in QwtGraphic.
Definition at line 569 of file qwt_null_paintdevice.cpp.
|
virtual |
See QPaintEngine::drawPoints()
Definition at line 541 of file qwt_null_paintdevice.cpp.
|
virtual |
See QPaintEngine::drawPoints()
Definition at line 533 of file qwt_null_paintdevice.cpp.
|
virtual |
See QPaintEngine::drawPolygon()
Definition at line 559 of file qwt_null_paintdevice.cpp.
|
virtual |
See QPaintEngine::drawPolygon()
Definition at line 549 of file qwt_null_paintdevice.cpp.
|
virtual |
See QPaintEngine::drawRects()
Definition at line 483 of file qwt_null_paintdevice.cpp.
|
virtual |
See QPaintEngine::drawRects()
Definition at line 491 of file qwt_null_paintdevice.cpp.
|
virtual |
See QPaintEngine::drawTextItem()
Definition at line 578 of file qwt_null_paintdevice.cpp.
|
virtual |
See QPaintEngine::drawTiledPixmap()
Definition at line 586 of file qwt_null_paintdevice.cpp.
|
overridevirtual |
See QPaintDevice::metric()
deviceMetric | Type of metric |
Definition at line 422 of file qwt_null_paintdevice.cpp.
QwtNullPaintDevice::Mode QwtNullPaintDevice::mode | ( | ) | const |
|
overridevirtual |
See QPaintDevice::paintEngine()
Definition at line 401 of file qwt_null_paintdevice.cpp.
void QwtNullPaintDevice::setMode | ( | Mode | mode | ) |
Set the render mode
mode | New mode |
Definition at line 386 of file qwt_null_paintdevice.cpp.
|
protectedpure virtual |
Implemented in QwtGraphic.
|
virtual |
See QPaintEngine::updateState()
Reimplemented in QwtGraphic.
Definition at line 607 of file qwt_null_paintdevice.cpp.