QwtPainterCommand(3) Qwt User's Guide QwtPainterCommand(3)

QwtPainterCommand

#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.


enum Type { Invalid = -1, Path, Pixmap, Image, State }
Type of the paint command.


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

See also:

QwtGraphic::commands()

Type of the paint command.

Enumerator

Invalid command.
Draw a QPainterPath.
Draw a QPixmap.
Draw a QImage.
QPainter state change.

Copy constructor

Parameters:

other Command to be copied

Constructor for Pixmap paint operation

Parameters:

rect Target rectangle
pixmap Pixmap
subRect Rectangle inside the pixmap

See also:

QPainter::drawPixmap()

Constructor for Image paint operation

Parameters:

rect Target rectangle
image Image
subRect Rectangle inside the image
flags Conversion flags

See also:

QPainter::drawImage()

Constructor for State paint operation

Parameters:

state Paint engine state

Returns:

Attributes how to paint a QImage

Returns:

Attributes how to paint a QImage

QwtPainterCommand & QwtPainterCommand::operator= (const QwtPainterCommand & other)

Assignment operator

Parameters:

other Command to be copied

Returns:

Modified command

Returns:

Painter path to be painted

Returns:

Painter path to be painted

Returns:

Attributes how to paint a QPixmap

Returns:

Attributes how to paint a QPixmap

Returns:

Attributes of a state change

Returns:

Attributes of a state change

QwtPainterCommand::Type QwtPainterCommand::type () const [inline]

Returns:

Type of the command

Generated automatically by Doxygen for Qwt User's Guide from the source code.

Wed Jan 2 2019 Version 6.1.4