Qwt User's Guide
|
#include <qwt_painter_command.h>
Classes | |
struct | ImageData |
Attributes how to paint a QImage. | |
struct | PixmapData |
Attributes how to paint a QPixmap. | |
struct | StateData |
Attributes of a state change. | |
Public Types | |
enum | Type { Invalid = -1, Path, Pixmap, Image, State } |
Type of the paint command. More... | |
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 () 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 |
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
QwtPainterCommand::QwtPainterCommand | ( | const QwtPainterCommand & | other | ) |
Copy constructor
other | Command to be copied |
QwtPainterCommand::QwtPainterCommand | ( | const QRectF & | rect, |
const QPixmap & | pixmap, | ||
const QRectF & | subRect | ||
) |
Constructor for Pixmap paint operation
rect | Target rectangle |
pixmap | Pixmap |
subRect | Rectangle inside the pixmap |
QwtPainterCommand::QwtPainterCommand | ( | const QRectF & | rect, |
const QImage & | image, | ||
const QRectF & | subRect, | ||
Qt::ImageConversionFlags | flags | ||
) |
Constructor for Image paint operation
rect | Target rectangle |
image | Image |
subRect | Rectangle inside the image |
flags | Conversion flags |
QwtPainterCommand::QwtPainterCommand | ( | const QPaintEngineState & | state | ) |
Constructor for State paint operation
state | Paint engine state |
QwtPainterCommand::ImageData * QwtPainterCommand::imageData | ( | ) |
const QwtPainterCommand::ImageData * QwtPainterCommand::imageData | ( | ) | const [inline] |
QwtPainterCommand & QwtPainterCommand::operator= | ( | const QwtPainterCommand & | other | ) |
Assignment operator
other | Command to be copied |
QPainterPath * QwtPainterCommand::path | ( | ) |
const QPainterPath * QwtPainterCommand::path | ( | ) | const [inline] |
QwtPainterCommand::PixmapData * QwtPainterCommand::pixmapData | ( | ) |
const QwtPainterCommand::PixmapData * QwtPainterCommand::pixmapData | ( | ) | const [inline] |
QwtPainterCommand::StateData * QwtPainterCommand::stateData | ( | ) |
const QwtPainterCommand::StateData * QwtPainterCommand::stateData | ( | ) | const [inline] |
QwtPainterCommand::Type QwtPainterCommand::type | ( | ) | const [inline] |