Represents the attributes of a paint operation between QPainter and QPaintDevice.
More...
#include <qwt_painter_command.h>
Represents the attributes of a paint operation between QPainter and QPaintDevice.
QwtPainterCommand encapsulates different types of paint operations including drawing paths, pixmaps, images, and state changes. It is used by QwtGraphic to record and replay paint operations.
- See also
- QwtGraphic::commands()
◆ Type
Type of the paint command.
| Enumerator |
|---|
| Invalid | Invalid command.
|
| Path | Draw a QPainterPath.
|
| Pixmap | Draw a QPixmap.
|
| Image | Draw a QImage.
|
| State | QPainter state change.
|
◆ QwtPainterCommand() [1/6]
Copy constructor.
- Parameters
-
| [in] | other | Command to be copied |
◆ QwtPainterCommand() [2/6]
Move constructor.
- Parameters
-
| [in] | other | Command to be moved from |
◆ QwtPainterCommand() [3/6]
| QwtPainterCommand::QwtPainterCommand |
( |
const QPainterPath & |
path | ) |
|
|
explicit |
Construct a path command.
- Parameters
-
| [in] | path | QPainterPath to be painted |
◆ QwtPainterCommand() [4/6]
| QwtPainterCommand::QwtPainterCommand |
( |
const QRectF & |
rect, |
|
|
const QPixmap & |
pixmap, |
|
|
const QRectF & |
subRect |
|
) |
| |
Constructor for Pixmap paint operation.
- Parameters
-
| [in] | rect | Target rectangle |
| [in] | pixmap | Pixmap to draw |
| [in] | subRect | Rectangle inside the pixmap |
- See also
- QPainter::drawPixmap()
◆ QwtPainterCommand() [5/6]
| QwtPainterCommand::QwtPainterCommand |
( |
const QRectF & |
rect, |
|
|
const QImage & |
image, |
|
|
const QRectF & |
subRect, |
|
|
Qt::ImageConversionFlags |
flags |
|
) |
| |
Constructor for Image paint operation.
- Parameters
-
| [in] | rect | Target rectangle |
| [in] | image | Image to draw |
| [in] | subRect | Rectangle inside the image |
| [in] | flags | Conversion flags |
- See also
- QPainter::drawImage()
◆ QwtPainterCommand() [6/6]
| QwtPainterCommand::QwtPainterCommand |
( |
const QPaintEngineState & |
state | ) |
|
|
explicit |
Constructor for State paint operation.
- Parameters
-
| [in] | state | Paint engine state |
◆ imageData() [1/2]
- Returns
- Attributes how to paint a QImage
◆ imageData() [2/2]
- Returns
- Attributes how to paint a QImage
◆ operator=() [1/2]
Assignment operator.
- Parameters
-
| [in] | other | Command to be copied |
- Returns
- Modified command
◆ operator=() [2/2]
Move assignment operator.
- Parameters
-
| [in] | other | Command to be moved from |
- Returns
- Reference to this command
◆ path() [1/2]
| QPainterPath * QwtPainterCommand::path |
( |
| ) |
|
- Returns
- Painter path to be painted
◆ path() [2/2]
| const QPainterPath * QwtPainterCommand::path |
( |
| ) |
const |
|
inline |
- Returns
- Painter path to be painted
◆ pixmapData() [1/2]
- Returns
- Attributes how to paint a QPixmap
◆ pixmapData() [2/2]
- Returns
- Attributes how to paint a QPixmap
◆ stateData() [1/2]
- Returns
- Attributes of a state change
◆ stateData() [2/2]
- Returns
- Attributes of a state change
◆ type()
- Returns
- Type of the command
The documentation for this class was generated from the following files:
- /home/runner/work/QWT/QWT/src/plot/qwt_painter_command.h
- /home/runner/work/QWT/QWT/src/plot/qwt_painter_command.cpp