QwtPainterCommand(3)
πΈ NAME
Bestie, welcome to QwtPainterCommand(3) from the Library Functions Manual β specifically the Qwt User's Guide one. The name is literally QwtPainterCommand, and we are about to vibe through every last detail. π
β¨ SYNOPSIS
#include <qwt_painter_command.h>
π Classes
struct PixmapDataβ Attributes how to paint aQPixmap.struct ImageDataβ Attributes how to paint aQImage.struct StateDataβ Attributes of a state change.
π Public Types
enum Type { Invalid = -1, Path, Pixmap, Image, State }
Type of the paint command. π
π¦ Public Member Functions
QwtPainterCommand ()β Construct an invalid command.QwtPainterCommand (const QwtPainterCommand &)QwtPainterCommand (const QPainterPath &)β Copy constructor.QwtPainterCommand (const QRectF &rect, const QPixmap &, const QRectF &subRect)QwtPainterCommand (const QRectF &rect, const QImage &, const QRectF &subRect, Qt::ImageConversionFlags)QwtPainterCommand (const QPaintEngineState &)~QwtPainterCommand ()β Destructor.QwtPainterCommand & operator= (const QwtPainterCommand &)Type type () constQPainterPath * path ()const QPainterPath * path () constPixmapData * pixmapData ()const PixmapData * pixmapData () constImageData * imageData ()const ImageData * imageData () constStateData * stateData ()const StateData * stateData () const
π Detailed Description
QwtPainterCommand represents the attributes of a paint operation β how it is used between QPainter and QPaintDevice. It is used by QwtGraphic to record and replay paint operations.
See also: QwtGraphic::commands().
Definition at line 32 of file qwt_painter_command.h.
π Member Enumeration Documentation
π enum QwtPainterCommand::Type
Type of the paint command.
Enumerator:
Invalidβ Invalid command.Pathβ Draw aQPainterPath.Pixmapβ Draw aQPixmap.Imageβ Draw aQImage.StateβQPainterstate change.
Definition at line 36 of file qwt_painter_command.h.
π§ Constructor & Destructor Documentation
π QwtPainterCommand::QwtPainterCommand ()
Construct an invalid command.
Definition at line 13 of file qwt_painter_command.cpp.
π QwtPainterCommand::QwtPainterCommand (const QwtPainterCommand & other)
Copy constructor.
Parameters:
otherβ Command to be copied.
Definition at line 128 of file qwt_painter_command.cpp.
π QwtPainterCommand::QwtPainterCommand (const QPainterPath & path) [explicit]
Copy constructor.
Definition at line 19 of file qwt_painter_command.cpp.
π QwtPainterCommand::QwtPainterCommand (const QRectF & rect, const QPixmap & pixmap, const QRectF & subRect)
Constructor for Pixmap paint operation.
Parameters:
rectβ Target rectangle.pixmapβ Pixmap.subRectβ Rectangle inside the pixmap.
See also: QPainter::drawPixmap().
Definition at line 34 of file qwt_painter_command.cpp.
π QwtPainterCommand::QwtPainterCommand (const QRectF & rect, const QImage & image, const QRectF & subRect, Qt::ImageConversionFlags flags)
Constructor for Image paint operation.
Parameters:
rectβ Target rectangle.imageβ Image.subRectβ Rectangle inside the image.flagsβ Conversion flags.
See also: QPainter::drawImage().
Definition at line 54 of file qwt_painter_command.cpp.
π QwtPainterCommand::QwtPainterCommand (const QPaintEngineState & state) [explicit]
Constructor for State paint operation.
Parameters:
stateβ Paint engine state.
Definition at line 70 of file qwt_painter_command.cpp.
π QwtPainterCommand::~QwtPainterCommand ()
Destructor.
Definition at line 134 of file qwt_painter_command.cpp.
π₯ Member Function Documentation
π¦ QwtPainterCommand::ImageData * QwtPainterCommand::imageData ()
Returns: Attributes how to paint a QImage.
Definition at line 228 of file qwt_painter_command.cpp.
π¦ const QwtPainterCommand::ImageData * QwtPainterCommand::imageData () const [inline]
Returns: Attributes how to paint a QImage.
Definition at line 162 of file qwt_painter_command.h.
π¦ QwtPainterCommand & QwtPainterCommand::operator= (const QwtPainterCommand & other)
Assignment operator.
Parameters:
otherβ Command to be copied.
Returns: Modified command.
Definition at line 145 of file qwt_painter_command.cpp.
π¦ QPainterPath * QwtPainterCommand::path ()
Returns: Painter path to be painted.
Definition at line 216 of file qwt_painter_command.cpp.
π¦ const QPainterPath * QwtPainterCommand::path () const [inline]
Returns: Painter path to be painted.
Definition at line 148 of file qwt_painter_command.h.
π¦ QwtPainterCommand::PixmapData * QwtPainterCommand::pixmapData ()
Returns: Attributes how to paint a QPixmap.
Definition at line 222 of file qwt_painter_command.cpp.
π¦ const QwtPainterCommand::PixmapData * QwtPainterCommand::pixmapData () const [inline]
Returns: Attributes how to paint a QPixmap.
Definition at line 155 of file qwt_painter_command.h.
π¦ QwtPainterCommand::StateData * QwtPainterCommand::stateData ()
Returns: Attributes of a state change.
Definition at line 234 of file qwt_painter_command.cpp.
π¦ const QwtPainterCommand::StateData * QwtPainterCommand::stateData () const [inline]
Returns: Attributes of a state change.
Definition at line 169 of file qwt_painter_command.h.
π¦ QwtPainterCommand::Type QwtPainterCommand::type () const [inline]
Returns: Type of the command.
Definition at line 142 of file qwt_painter_command.h.
π Member Data Documentation
ImageData* QwtPainterCommand::m_imageDataβ Definition at line136of fileqwt_painter_command.h.QPainterPath* QwtPainterCommand::m_pathβ Definition at line134of fileqwt_painter_command.h.PixmapData* QwtPainterCommand::m_pixmapDataβ Definition at line135of fileqwt_painter_command.h.StateData* QwtPainterCommand::m_stateDataβ Definition at line137of fileqwt_painter_command.h.
π Author
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Cute sign-off, bestie: source/version is the Qwt User's Guide, page QwtPainterCommand(3), and the footer has no date on it β so no invented timestamp, periodt. πβ¨
π¦ where this page comes from
- alpine 3.24: qwt-doc 6.3.0-r0 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms