QwtNullPaintDevice(3)

πŸŽ€ NAME πŸŽ€

okay so this is the manual page for QwtNullPaintDevice(3), coming at you from the Library Functions Manual (Qwt User's Guide), and the NAME is literally: A null paint device doing nothing. No cap, bestie β€” it's a null paint device, and it is doing nothing. πŸ’…


✨ SYNOPSIS ✨

#include <qwt_null_paintdevice.h>
  • Inherits QPaintDevice.
  • Inherited by QwtGraphic.

🌸 Public Types 🌸

  • enum Mode { NormalMode, PolygonPathMode, PathMode } β€” render mode. 🎨

🫢 Public Member Functions 🫢

  • QwtNullPaintDevice () β€” constructor.
  • virtual ~QwtNullPaintDevice () β€” destructor.
  • void setMode (Mode) β€” sets the render mode.
  • Mode mode () const β€” returns the render mode.
  • virtual QPaintEngine * paintEngine () const override β€” see QPaintDevice::paintEngine().
  • virtual int metric (PaintDeviceMetric) const override β€” it does the metric thing; see QPaintDevice::metric().
  • 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 β€” pure virtual, protected, and it returns the size needed to implement metric(). Iconic. πŸ’…

πŸ’– Detailed Description πŸ’–

It's a null paint device doing nothing. Yes, that's the whole vibe. ✨

Sometimes the 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.


πŸ¦‹ Member Enumeration Documentation πŸ¦‹

enum QwtNullPaintDevice::Mode

Render mode. See also setMode(), mode().

Enumerator:

  • NormalMode β€” all vector graphic primitives are painted by the corresponding draw methods.
  • PolygonPathMode β€” vector graphic primitives ( beside polygons ) are mapped to a QPainterPath and are painted by drawPath. In PathMode mode only a few draw methods are called:
    • drawPath()
    • drawPixmap()
    • drawImage()
    • drawPolygon()
  • PathMode β€” vector graphic primitives are mapped to a QPainterPath and are painted by drawPath. In PathMode mode only a few draw methods are called:
    • drawPath()
    • drawPixmap()
    • drawImage()

Definition at line 40 of file qwt_null_paintdevice.h.


🧚 Constructor & Destructor Documentation 🧚

QwtNullPaintDevice::QwtNullPaintDevice ()

Constructor.

Definition at line 367 of file qwt_null_paintdevice.cpp.

QwtNullPaintDevice::~QwtNullPaintDevice () [virtual]

Destructor.

Definition at line 374 of file qwt_null_paintdevice.cpp.


πŸ‘‘ Member Function Documentation πŸ‘‘

void QwtNullPaintDevice::drawEllipse (const QRect & rect) [virtual]

See QPaintEngine::drawEllipse().

Definition at line 521 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawEllipse (const QRectF & rect) [virtual]

See QPaintEngine::drawEllipse().

Definition at line 515 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawImage (const QRectF & rect, const QImage & image, const QRectF & subRect, Qt::ImageConversionFlags flags) [virtual]

See QPaintEngine::drawImage().

Reimplemented in QwtGraphic.

Definition at line 596 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawLines (const QLine * lines, int lineCount) [virtual]

See QPaintEngine::drawLines().

Definition at line 499 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawLines (const QLineF * lines, int lineCount) [virtual]

See QPaintEngine::drawLines().

Definition at line 507 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawPath (const QPainterPath & path) [virtual]

See QPaintEngine::drawPath().

Reimplemented in QwtGraphic.

Definition at line 527 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawPixmap (const QRectF & rect, const QPixmap & pm, const QRectF & subRect) [virtual]

See QPaintEngine::drawPixmap().

Reimplemented in QwtGraphic.

Definition at line 569 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawPoints (const QPoint * points, int pointCount) [virtual]

See QPaintEngine::drawPoints().

Definition at line 541 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawPoints (const QPointF * points, int pointCount) [virtual]

See QPaintEngine::drawPoints().

Definition at line 533 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawPolygon (const QPoint * points, int pointCount, QPaintEngine::PolygonDrawMode mode) [virtual]

See QPaintEngine::drawPolygon().

Definition at line 559 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawPolygon (const QPointF * points, int pointCount, QPaintEngine::PolygonDrawMode mode) [virtual]

See QPaintEngine::drawPolygon().

Definition at line 549 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawRects (const QRect * rects, int rectCount) [virtual]

See QPaintEngine::drawRects().

Definition at line 483 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawRects (const QRectF * rects, int rectCount) [virtual]

See QPaintEngine::drawRects().

Definition at line 491 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawTextItem (const QPointF & pos, const QTextItem & textItem) [virtual]

See QPaintEngine::drawTextItem().

Definition at line 578 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::drawTiledPixmap (const QRectF & rect, const QPixmap & pixmap, const QPointF & subRect) [virtual]

See QPaintEngine::drawTiledPixmap().

Definition at line 586 of file qwt_null_paintdevice.cpp.

int QwtNullPaintDevice::metric (PaintDeviceMetric deviceMetric) const [override], [virtual]

See QPaintDevice::metric().

Parameters:

  • deviceMetric β€” type of metric.

Returns: metric information for the given paint device metric.

See also sizeMetrics().

Definition at line 422 of file qwt_null_paintdevice.cpp.

QwtNullPaintDevice::Mode QwtNullPaintDevice::mode () const

Returns: render mode.

See also setMode().

Definition at line 395 of file qwt_null_paintdevice.cpp.

QPaintEngine * QwtNullPaintDevice::paintEngine () const [override], [virtual]

See QPaintDevice::paintEngine().

Definition at line 401 of file qwt_null_paintdevice.cpp.

void QwtNullPaintDevice::setMode (Mode mode)

Set the render mode.

Parameters:

  • mode β€” new mode.

See also mode().

Definition at line 386 of file qwt_null_paintdevice.cpp.

virtual QSize QwtNullPaintDevice::sizeMetrics () const [protected], [pure virtual]

Returns: size needed to implement metric().

Implemented in QwtGraphic.

void QwtNullPaintDevice::updateState (const QPaintEngineState & state) [virtual]

See QPaintEngine::updateState().

Reimplemented in QwtGraphic.

Definition at line 607 of file qwt_null_paintdevice.cpp.


🌈 Author 🌈

Generated automatically by Doxygen for Qwt User's Guide from the source code. πŸ’–


πŸ’– That's the whole page, bestie β€” source/version: Qwt User's Guide; page: QwtNullPaintDevice(3); date: not printed in the footer, so I'm not inventing one. πŸŽ€

πŸ“¦ where this page comes from