42 #ifndef QPREVIEWPAINTENGINE_P_H 43 #define QPREVIEWPAINTENGINE_P_H 57 #include <QtGui/qpaintengine.h> 58 #include <QtGui/qprintengine.h> 60 #ifndef QT_NO_PRINTPREVIEWWIDGET 104 #endif // QT_NO_PRINTPREVIEWWIDGET The QVariant class acts like a union for the most common Qt data types.
QList< const QPicture * > pages()
bool abort()
Instructs the print engine to abort the printing process.
#define QT_END_NAMESPACE
This macro expands to.
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
QPaintEngineState * state
The QPointF class defines a point in the plane using floating point precision.
void setProxyEngines(QPrintEngine *printEngine, QPaintEngine *paintEngine)
bool begin(QPaintDevice *dev)
Reimplement this function to initialise your paint engine when painting is to start on the paint devi...
void drawTiledPixmap(const QRectF &r, const QPixmap &pm, const QPointF &p)
Reimplement this function to draw the pixmap in the given rect, starting at the given p...
void drawPath(const QPainterPath &path)
The default implementation ignores the path and does nothing.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
void setProperty(PrintEnginePropertyKey key, const QVariant &value)
Sets the print engine's property specified by key to the given value.
void updateState(const QPaintEngineState &state)
Reimplement this function to update the state of a paint engine.
void drawPolygon(const QPointF *points, int pointCount, PolygonDrawMode mode)
Reimplement this virtual function to draw the polygon defined by the pointCount first points in point...
The QPrintEngine class defines an interface for how QPrinter interacts with a given printing subsyste...
bool newPage()
Instructs the print engine to start a new page.
QPrinter::PrinterState printerState() const
Returns the current state of the printer being used by the print engine.
The QPaintEngine class provides an abstract definition of how QPainter draws to a given device on a g...
bool end()
Reimplement this function to finish painting on the current paint device.
int metric(QPaintDevice::PaintDeviceMetric) const
Returns the metric for the given id.
QVariant property(PrintEnginePropertyKey key) const
Returns the print engine's property specified by key.
void drawTextItem(const QPointF &p, const QTextItem &textItem)
This function draws the text item textItem at position p.
The QPixmap class is an off-screen image representation that can be used as a paint device...
The QPaintEngineState class provides information about the active paint engine's current state...
#define Q_DECLARE_PRIVATE(Class)
The QTextItem class provides all the information required to draw text in a custom paint engine...
QPaintEngine::Type type() const
Reimplement this function to return the paint engine Type.
void drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr)
Reimplement this function to draw the part of the pm specified by the sr rectangle in the given r...
The QList class is a template class that provides lists.
PrintEnginePropertyKey
This enum is used to communicate properties between the print engine and QPrinter.