4#ifndef QPRINTENGINE_WIN_P_H
5#define QPRINTENGINE_WIN_P_H
18#include <QtPrintSupport/private/qtprintsupportglobal_p.h>
22#include <QtGui/qpaintengine.h>
23#include <QtGui/qpagelayout.h>
24#include <QtPrintSupport/QPrintEngine>
25#include <QtPrintSupport/QPrinter>
26#include <private/qpaintengine_alpha_p.h>
27#include <private/qprintdevice_p.h>
28#include <QtCore/qt_windows.h>
61 bool abort()
override;
69 void releaseDC(HDC)
const;
72 void setGlobalDevMode(HGLOBAL globalDevNames, HGLOBAL globalDevMode);
73 HGLOBAL *createGlobalDevNames();
74 HGLOBAL globalDevMode();
void drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr) override
Reimplement this function to draw the part of the pm specified by the sr rectangle in the given r.
bool end() override
Reimplement this function to finish painting on the current paint device.
void drawPolygon(const QPointF *points, int pointCount, PolygonDrawMode mode) override
Reimplement this virtual function to draw the polygon defined by the pointCount first points in point...
void drawTextItem(const QPointF &p, const QTextItem &textItem) override
This function draws the text item textItem at position p.
bool begin(QPaintDevice *pdev) override
Reimplement this function to initialise your paint engine when painting is to start on the paint devi...
void drawTiledPixmap(const QRectF &r, const QPixmap &pixmap, const QPointF &s) override
Reimplement this function to draw the pixmap in the given rect, starting at the given p.
void updateState(const QPaintEngineState &state) override
Reimplement this function to update the state of a paint engine.
void drawPath(const QPainterPath &path) override
The default implementation ignores the path and does nothing.
The QColor class provides colors based on RGB, HSV or CMYK values.
The QPageSetupDialog class provides a configuration dialog for the page-related options on a printer.
The QPaintEngineState class provides information about the active paint engine's current state....
PolygonDrawMode
\value OddEvenMode The polygon should be drawn using OddEven fill rule.
Type
\value X11 \value Windows \value MacPrinter \value CoreGraphics \macos's Quartz2D (CoreGraphics) \val...
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
\inmodule QtCore\reentrant
The QPrintDialog class provides a dialog for specifying the printer's configuration.
virtual QPrinter::PrinterState printerState() const =0
Returns the current state of the printer being used by the print engine.
PrintEnginePropertyKey
This enum is used to communicate properties between the print engine and QPrinter.
virtual bool newPage()=0
Instructs the print engine to start a new page.
virtual int metric(QPaintDevice::PaintDeviceMetric) const =0
Returns the metric for the given id.
virtual bool abort()=0
Instructs the print engine to abort the printing process.
PrinterMode
This enum describes the mode the printer should work in.
PrinterState
\value Idle \value Active \value Aborted \value Error
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
QPrinter::PrinterState state
void fillPath_dev(const QPainterPath &path, const QColor &color)
void strokePath_dev(const QPainterPath &path, const QColor &color, qreal width)
void composeGdiPath(const QPainterPath &path)
QPrintDevice m_printDevice
void debugMetrics() const
QWin32PrintEnginePrivate()
uint has_custom_paper_size
void strokePath(const QPainterPath &path, const QColor &color)
~QWin32PrintEnginePrivate()
void setPageSize(const QPageSize &pageSize)
void fillPath(const QPainterPath &path, const QColor &color)
QPrinter::PrinterMode mode
QPaintEngine::Type type() const override
Reimplement this function to return the paint engine \l{Type}.
object setProperty("down", true)
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLfixed GLfixed GLint GLint GLfixed points
GLsizei const GLchar *const * path