|
QWT API (English) 7.3.0
Qt Widget Library for Technical Applications - English API Documentation
|
A null paint device that does nothing. More...
#include <qwt_null_paintdevice.h>
Classes | |
| class | PaintEngine |
| class | PrivateData |
Public Types | |
| enum | Mode { NormalMode , PolygonPathMode , PathMode } |
| Render mode for the paint device. More... | |
Public Member Functions | |
| QwtNullPaintDevice () | |
| Constructor. | |
| ~QwtNullPaintDevice () override | |
| Destructor. | |
| void | setMode (Mode) |
| Set the render mode. | |
| Mode | mode () const |
| Get the render mode. | |
| virtual QPaintEngine * | paintEngine () const override |
| Return the paint engine. | |
| virtual int | metric (PaintDeviceMetric) const override |
| Return metric information for the paint device. | |
| virtual void | drawRects (const QRect *, int) |
| Draw rectangles (integer version) | |
| virtual void | drawRects (const QRectF *, int) |
| Draw rectangles (floating point version) | |
| virtual void | drawLines (const QLine *, int) |
| Draw lines (integer version) | |
| virtual void | drawLines (const QLineF *, int) |
| Draw lines (floating point version) | |
| virtual void | drawEllipse (const QRectF &) |
| Draw ellipse (floating point version) | |
| virtual void | drawEllipse (const QRect &) |
| Draw ellipse (integer version) | |
| virtual void | drawPath (const QPainterPath &) |
| Draw a painter path. | |
| virtual void | drawPoints (const QPointF *, int) |
| Draw points (floating point version) | |
| virtual void | drawPoints (const QPoint *, int) |
| Draw points (integer version) | |
| virtual void | drawPolygon (const QPointF *, int, QPaintEngine::PolygonDrawMode) |
| Draw polygon (floating point version) | |
| virtual void | drawPolygon (const QPoint *, int, QPaintEngine::PolygonDrawMode) |
| Draw polygon (integer version) | |
| virtual void | drawPixmap (const QRectF &, const QPixmap &, const QRectF &) |
| Draw a pixmap. | |
| virtual void | drawTextItem (const QPointF &, const QTextItem &) |
| Draw a text item. | |
| virtual void | drawTiledPixmap (const QRectF &, const QPixmap &, const QPointF &) |
| Draw a tiled pixmap. | |
| virtual void | drawImage (const QRectF &, const QImage &, const QRectF &, Qt::ImageConversionFlags) |
| Draw an image. | |
| virtual void | updateState (const QPaintEngineState &) |
| Update the paint engine state. | |
Protected Member Functions | |
| virtual QSize | sizeMetrics () const =0 |
A null paint device that does nothing.
Sometimes important layout/rendering geometries are not available or changeable from the public Qt class interface (e.g., hidden in the style implementation). QwtNullPaintDevice can be used to manipulate or filter out this information by analyzing the stream of paint primitives. For example, QwtNullPaintDevice is used by QwtPlotCanvas to identify styled backgrounds with rounded corners.
Render mode for the paint device.
Controls how vector graphic primitives are processed.
|
virtual |
Draw ellipse (integer version)
See QPaintEngine::drawEllipse()
|
virtual |
Draw ellipse (floating point version)
See QPaintEngine::drawEllipse()
|
virtual |
|
virtual |
Draw lines (integer version)
See QPaintEngine::drawLines()
|
virtual |
Draw lines (floating point version)
See QPaintEngine::drawLines()
|
virtual |
Draw a painter path.
See QPaintEngine::drawPath()
Reimplemented in QwtGraphic, and QwtStyleSheetRecorder.
|
virtual |
|
virtual |
Draw points (integer version)
See QPaintEngine::drawPoints()
|
virtual |
Draw points (floating point version)
See QPaintEngine::drawPoints()
|
virtual |
Draw polygon (integer version)
See QPaintEngine::drawPolygon()
|
virtual |
Draw polygon (floating point version)
See QPaintEngine::drawPolygon()
|
virtual |
Draw rectangles (integer version)
See QPaintEngine::drawRects()
Reimplemented in QwtStyleSheetRecorder.
|
virtual |
Draw rectangles (floating point version)
See QPaintEngine::drawRects()
Reimplemented in QwtStyleSheetRecorder.
|
virtual |
Draw a text item.
See QPaintEngine::drawTextItem()
|
virtual |
Draw a tiled pixmap.
See QPaintEngine::drawTiledPixmap()
|
overridevirtual |
Return metric information for the paint device.
Returns information about the device metrics like width, height, DPI, etc. The actual size is determined by sizeMetrics().
| [in] | deviceMetric | Type of metric to query |
| QwtNullPaintDevice::Mode QwtNullPaintDevice::mode | ( | ) | const |
Get the render mode.
|
overridevirtual |
Return the paint engine.
Return the paint engine for this device.
| void QwtNullPaintDevice::setMode | ( | Mode | mode | ) |
Set the render mode.
| [in] | mode | New mode for the paint device |
|
protectedpure virtual |
Implemented in QwtGraphic, and QwtStyleSheetRecorder.
|
virtual |
Update the paint engine state.
See QPaintEngine::updateState()
Reimplemented in QwtGraphic, and QwtStyleSheetRecorder.