|
QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
|
Represents the attributes of a paint operation between QPainter and QPaintDevice 更多...
#include <qwt_painter_command.h>
类 | |
| struct | ImageData |
| Attributes how to paint a QImage 更多... | |
| struct | PixmapData |
| Attributes how to paint a QPixmap 更多... | |
| struct | StateData |
| Attributes of a state change 更多... | |
Public 类型 | |
| enum | Type { Invalid = -1 , Path , Pixmap , Image , State } |
| Type of the paint command 更多... | |
Public 成员函数 | |
| QwtPainterCommand () | |
| Construct an invalid command | |
| QwtPainterCommand (const QwtPainterCommand &) | |
| Copy constructor | |
| QwtPainterCommand (QwtPainterCommand &&) noexcept | |
| Move constructor | |
| QwtPainterCommand (const QPainterPath &) | |
| Construct a path command | |
| QwtPainterCommand (const QRectF &rect, const QPixmap &, const QRectF &subRect) | |
| Constructor for Pixmap paint operation | |
| QwtPainterCommand (const QRectF &rect, const QImage &, const QRectF &subRect, Qt::ImageConversionFlags) | |
| Constructor for Image paint operation | |
| QwtPainterCommand (const QPaintEngineState &) | |
| Constructor for State paint operation | |
| ~QwtPainterCommand () | |
| Destructor | |
| QwtPainterCommand & | operator= (const QwtPainterCommand &) |
| Assignment operator | |
| QwtPainterCommand & | operator= (QwtPainterCommand &&) noexcept |
| Move assignment operator | |
| Type | type () const |
| QPainterPath * | path () |
| const QPainterPath * | path () const |
| PixmapData * | pixmapData () |
| const PixmapData * | pixmapData () const |
| ImageData * | imageData () |
| const ImageData * | imageData () const |
| StateData * | stateData () |
| const StateData * | stateData () const |
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.
| QwtPainterCommand::QwtPainterCommand | ( | const QwtPainterCommand & | other | ) |
Copy constructor
| [in] | other | Command to be copied |
|
noexcept |
Move constructor
| [in] | other | Command to be moved from |
|
explicit |
Construct a path command
| [in] | path | QPainterPath to be painted |
| QwtPainterCommand::QwtPainterCommand | ( | const QRectF & | rect, |
| const QPixmap & | pixmap, | ||
| const QRectF & | subRect | ||
| ) |
Constructor for Pixmap paint operation
| [in] | rect | Target rectangle |
| [in] | pixmap | Pixmap to draw |
| [in] | subRect | Rectangle inside the pixmap |
| QwtPainterCommand::QwtPainterCommand | ( | const QRectF & | rect, |
| const QImage & | image, | ||
| const QRectF & | subRect, | ||
| Qt::ImageConversionFlags | flags | ||
| ) |
Constructor for Image paint operation
| [in] | rect | Target rectangle |
| [in] | image | Image to draw |
| [in] | subRect | Rectangle inside the image |
| [in] | flags | Conversion flags |
|
explicit |
Constructor for State paint operation
| [in] | state | Paint engine state |
| QwtPainterCommand::ImageData * QwtPainterCommand::imageData | ( | ) |
|
inline |
| QwtPainterCommand & QwtPainterCommand::operator= | ( | const QwtPainterCommand & | other | ) |
Assignment operator
| [in] | other | Command to be copied |
|
noexcept |
Move assignment operator
| [in] | other | Command to be moved from |
| QPainterPath * QwtPainterCommand::path | ( | ) |
|
inline |
| QwtPainterCommand::PixmapData * QwtPainterCommand::pixmapData | ( | ) |
|
inline |
| QwtPainterCommand::StateData * QwtPainterCommand::stateData | ( | ) |
|
inline |
|
inline |