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>
60 bool newPage()
override;
61 bool abort()
override;
69 void releaseDC(HDC)
const;
72 void setGlobalDevMode(HGLOBAL globalDevNames, HGLOBAL globalDevMode);
73 HGLOBAL *createGlobalDevNames();
74 HGLOBAL globalDevMode();
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.
PrintEnginePropertyKey
This enum is used to communicate properties between the print engine and QPrinter.
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()
static void initializeDevMode(DEVMODE *)
void setPageSize(const QPageSize &pageSize)
void fillPath(const QPainterPath &path, const QColor &color)
QPaintEngine::Type type() const override
Reimplement this function to return the paint engine \l{Type}.
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLfixed GLfixed GLint GLint GLfixed points
GLsizei const GLchar *const * path
QtPrivate::QRegularExpressionMatchIteratorRangeBasedForIterator begin(const QRegularExpressionMatchIterator &iterator)
args<< 1<< 2;QJSValue threeAgain=fun.call(args);QString fileName="helloworld.qs";QFile scriptFile(fileName);if(!scriptFile.open(QIODevice::ReadOnly)) QTextStream stream(&scriptFile);QString contents=stream.readAll();scriptFile.close();myEngine.evaluate(contents, fileName);myEngine.globalObject().setProperty("myNumber", 123);...QJSValue myNumberPlusOne=myEngine.evaluate("myNumber + 1");QJSValue result=myEngine.evaluate(...);if(result.isError()) qDebug()<< "Uncaught exception at line"<< result.property("lineNumber").toInt()<< ":"<< result.toString();QPushButton *button=new QPushButton;QJSValue scriptButton=myEngine.newQObject(button);myEngine.globalObject().setProperty("button", scriptButton);myEngine.evaluate("button.checkable = true");qDebug()<< scriptButton.property("checkable").toBool();scriptButton.property("show").call();QJSEngine engine;QObject *myQObject=new QObject();myQObject- setProperty)("dynamicProperty", 3)