![]() |
Qt 6.x
The Qt SDK
|
#include <qprintengine_win_p.h>
Public Member Functions | |
QWin32PrintEngine (QPrinter::PrinterMode mode, const QString &deviceId) | |
bool | begin (QPaintDevice *dev) override |
Reimplement this function to initialise your paint engine when painting is to start on the paint device pdev. | |
bool | end () override |
Reimplement this function to finish painting on the current paint device. | |
void | updateState (const QPaintEngineState &state) override |
Reimplement this function to update the state of a paint engine. | |
void | updateMatrix (const QTransform &matrix) |
void | updateClipPath (const QPainterPath &clip, Qt::ClipOperation op) |
void | drawPath (const QPainterPath &path) override |
The default implementation ignores the path and does nothing. | |
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 points, using mode mode. | |
void | drawTextItem (const QPointF &p, const QTextItem &textItem) override |
This function draws the text item textItem at position p. | |
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. | |
void | drawTiledPixmap (const QRectF &r, const QPixmap &pm, const QPointF &p) override |
Reimplement this function to draw the pixmap in the given rect, starting at the given p. | |
void | setProperty (PrintEnginePropertyKey key, const QVariant &value) override |
Sets the print engine's property specified by key to the given value. | |
QVariant | property (PrintEnginePropertyKey key) const override |
Returns the print engine's property specified by key. | |
bool | newPage () override |
Instructs the print engine to start a new page. | |
bool | abort () override |
Instructs the print engine to abort the printing process. | |
int | metric (QPaintDevice::PaintDeviceMetric) const override |
Returns the metric for the given id. | |
QPrinter::PrinterState | printerState () const override |
Returns the current state of the printer being used by the print engine. | |
QPaintEngine::Type | type () const override |
Reimplement this function to return the paint engine \l{Type}. | |
HDC | getDC () const |
void | releaseDC (HDC) const |
void | setGlobalDevMode (HGLOBAL globalDevNames, HGLOBAL globalDevMode) |
HGLOBAL * | createGlobalDevNames () |
HGLOBAL | globalDevMode () |
![]() | |
~QAlphaPaintEngine () | |
bool | begin (QPaintDevice *pdev) override |
Reimplement this function to initialise your paint engine when painting is to start on the paint device pdev. | |
bool | end () override |
Reimplement this function to finish painting on the current paint device. | |
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. | |
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 points, using mode mode. | |
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. | |
void | drawTextItem (const QPointF &p, const QTextItem &textItem) override |
This function draws the text item textItem at position p. | |
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. | |
![]() | |
QPaintEngine (PaintEngineFeatures features=PaintEngineFeatures()) | |
Creates a paint engine with the featureset specified by caps. | |
virtual | ~QPaintEngine () |
Destroys the paint engine. | |
bool | isActive () const |
Returns true if the paint engine is actively drawing; otherwise returns false . | |
void | setActive (bool newState) |
Sets the active state of the paint engine to state. | |
virtual bool | begin (QPaintDevice *pdev)=0 |
Reimplement this function to initialise your paint engine when painting is to start on the paint device pdev. | |
virtual bool | end ()=0 |
Reimplement this function to finish painting on the current paint device. | |
virtual void | updateState (const QPaintEngineState &state)=0 |
Reimplement this function to update the state of a paint engine. | |
virtual void | drawRects (const QRect *rects, int rectCount) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.The default implementation converts the first rectCount rectangles in the buffer rects to a QRectF and calls the floating point version of this function. | |
virtual void | drawRects (const QRectF *rects, int rectCount) |
Draws the first rectCount rectangles in the buffer rects. | |
virtual void | drawLines (const QLine *lines, int lineCount) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.The default implementation converts the first lineCount lines in lines to a QLineF and calls the floating point version of this function. | |
virtual void | drawLines (const QLineF *lines, int lineCount) |
The default implementation splits the list of lines in lines into lineCount separate calls to drawPath() or drawPolygon() depending on the feature set of the paint engine. | |
virtual void | drawEllipse (const QRectF &r) |
Reimplement this function to draw the largest ellipse that can be contained within rectangle rect. | |
virtual void | drawEllipse (const QRect &r) |
The default implementation of this function calls the floating point version of this function. | |
virtual void | drawPath (const QPainterPath &path) |
The default implementation ignores the path and does nothing. | |
virtual void | drawPoints (const QPointF *points, int pointCount) |
Draws the first pointCount points in the buffer points. | |
virtual void | drawPoints (const QPoint *points, int pointCount) |
Draws the first pointCount points in the buffer points. | |
virtual void | drawPolygon (const QPointF *points, int pointCount, PolygonDrawMode mode) |
Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode. | |
virtual void | drawPolygon (const QPoint *points, int pointCount, PolygonDrawMode mode) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode. | |
virtual void | drawPixmap (const QRectF &r, const QPixmap &pm, const QRectF &sr)=0 |
Reimplement this function to draw the part of the pm specified by the sr rectangle in the given r. | |
virtual void | drawTextItem (const QPointF &p, const QTextItem &textItem) |
This function draws the text item textItem at position p. | |
virtual void | drawTiledPixmap (const QRectF &r, const QPixmap &pixmap, const QPointF &s) |
Reimplement this function to draw the pixmap in the given rect, starting at the given p. | |
virtual void | drawImage (const QRectF &r, const QImage &pm, const QRectF &sr, Qt::ImageConversionFlags flags=Qt::AutoColor) |
Reimplement this function to draw the part of the image specified by the sr rectangle in the given rectangle using the given conversion flags flags, to convert it to a pixmap. | |
void | setPaintDevice (QPaintDevice *device) |
QPaintDevice * | paintDevice () const |
Returns the device that this engine is painting on, if painting is active; otherwise returns \nullptr. | |
void | setSystemClip (const QRegion &baseClip) |
QRegion | systemClip () const |
void | setSystemRect (const QRect &rect) |
QRect | systemRect () const |
virtual QPoint | coordinateOffset () const |
virtual Type | type () const =0 |
Reimplement this function to return the paint engine \l{Type}. | |
void | fix_neg_rect (int *x, int *y, int *w, int *h) |
bool | testDirty (DirtyFlags df) |
void | setDirty (DirtyFlags df) |
void | clearDirty (DirtyFlags df) |
bool | hasFeature (PaintEngineFeatures feature) const |
Returns true if the paint engine supports the specified feature; otherwise returns false . | |
QPainter * | painter () const |
Returns the paint engine's painter. | |
void | syncState () |
bool | isExtended () const |
virtual QPixmap | createPixmap (QSize size) |
virtual QPixmap | createPixmapFromImage (QImage image, Qt::ImageConversionFlags flags=Qt::AutoColor) |
![]() |
Friends | |
class | QPrintDialog |
class | QPageSetupDialog |
Additional Inherited Members | |
![]() | |
enum | PaintEngineFeature { PrimitiveTransform = 0x00000001 , PatternTransform = 0x00000002 , PixmapTransform = 0x00000004 , PatternBrush = 0x00000008 , LinearGradientFill = 0x00000010 , RadialGradientFill = 0x00000020 , ConicalGradientFill = 0x00000040 , AlphaBlend = 0x00000080 , PorterDuff = 0x00000100 , PainterPaths = 0x00000200 , Antialiasing = 0x00000400 , BrushStroke = 0x00000800 , ConstantOpacity = 0x00001000 , MaskedBrush = 0x00002000 , PerspectiveTransform = 0x00004000 , BlendModes = 0x00008000 , ObjectBoundingModeGradients = 0x00010000 , RasterOpModes = 0x00020000 , PaintOutsidePaintEvent = 0x20000000 , AllFeatures = 0xffffffff } |
This enum is used to describe the features or capabilities that the paint engine has. More... | |
enum | DirtyFlag { DirtyPen = 0x0001 , DirtyBrush = 0x0002 , DirtyBrushOrigin = 0x0004 , DirtyFont = 0x0008 , DirtyBackground = 0x0010 , DirtyBackgroundMode = 0x0020 , DirtyTransform = 0x0040 , DirtyClipRegion = 0x0080 , DirtyClipPath = 0x0100 , DirtyHints = 0x0200 , DirtyCompositionMode = 0x0400 , DirtyClipEnabled = 0x0800 , DirtyOpacity = 0x1000 , AllDirty = 0xffff } |
\value DirtyPen The pen is dirty and needs to be updated. More... | |
enum | PolygonDrawMode { OddEvenMode , WindingMode , ConvexMode , PolylineMode } |
\value OddEvenMode The polygon should be drawn using OddEven fill rule. More... | |
enum | Type { X11 , Windows , QuickDraw , CoreGraphics , MacPrinter , QWindowSystem , OpenGL , Picture , SVG , Raster , Direct3D , Pdf , OpenVG , OpenGL2 , PaintBuffer , Blitter , Direct2D , User = 50 , MaxUser = 100 } |
\value X11 \value Windows \value MacPrinter \value CoreGraphics \macos's Quartz2D (CoreGraphics) \value QuickDraw \macos's QuickDraw \value QWindowSystem Qt for Embedded Linux \value OpenGL \value Picture QPicture format \value SVG Scalable Vector Graphics XML format \value Raster \value Direct3D Windows only, Direct3D based engine \value Pdf Portable Document Format \value OpenVG \value User First user type ID \value MaxUser Last user type ID \value OpenGL2 \value PaintBuffer \value Blitter \value Direct2D Windows only, Direct2D based engine More... | |
![]() | |
enum | PrintEnginePropertyKey { PPK_CollateCopies , PPK_ColorMode , PPK_Creator , PPK_DocumentName , PPK_FullPage , PPK_NumberOfCopies , PPK_Orientation , PPK_OutputFileName , PPK_PageOrder , PPK_PageRect , PPK_PageSize , PPK_PaperRect , PPK_PaperSource , PPK_PrinterName , PPK_PrinterProgram , PPK_Resolution , PPK_SelectionOption , PPK_SupportedResolutions , PPK_WindowsPageSize , PPK_FontEmbedding , PPK_Duplex , PPK_PaperSources , PPK_CustomPaperSize , PPK_PageMargins , PPK_CopyCount , PPK_SupportsMultipleCopies , PPK_PaperName , PPK_QPageSize , PPK_QPageMargins , PPK_QPageLayout , PPK_PaperSize = PPK_PageSize , PPK_CustomBase = 0xff00 } |
This enum is used to communicate properties between the print engine and QPrinter. More... | |
![]() | |
QAlphaPaintEngine (QAlphaPaintEnginePrivate &data, PaintEngineFeatures devcaps={ }) | |
QRegion | alphaClipping () const |
bool | continueCall () const |
void | flushAndInit (bool init=true) |
void | cleanUp () |
![]() | |
QPaintEngine (QPaintEnginePrivate &data, PaintEngineFeatures devcaps=PaintEngineFeatures()) | |
![]() | |
QPaintEngineState * | state |
PaintEngineFeatures | gccaps |
uint | active: 1 |
uint | selfDestruct: 1 |
uint | extended: 1 |
QScopedPointer< QPaintEnginePrivate > | d_ptr |
Definition at line 36 of file qprintengine_win_p.h.
QWin32PrintEngine::QWin32PrintEngine | ( | QPrinter::PrinterMode | mode, |
const QString & | deviceId | ||
) |
Definition at line 46 of file qprintengine_win.cpp.
References QPlatformPrinterSupport::createPrintDevice(), d, QPlatformPrinterSupport::defaultPrintDeviceId(), QPlatformPrinterSupportPlugin::get(), and QString::isEmpty().
|
overridevirtual |
Instructs the print engine to abort the printing process.
Returns true if successful; otherwise returns false
.
Implements QPrintEngine.
Definition at line 239 of file qprintengine_win.cpp.
|
overridevirtual |
Reimplement this function to initialise your paint engine when painting is to start on the paint device pdev.
Return true if the initialization was successful; otherwise return false.
Reimplemented from QAlphaPaintEngine.
Definition at line 76 of file qprintengine_win.cpp.
References QPrinter::Active, QAlphaPaintEngine::begin(), Qt::black, QAlphaPaintEngine::cleanUp(), QAlphaPaintEngine::continueCall(), d, QPrinter::Idle, msgBeginFailed(), ok, qDebug, qErrnoWarning(), and updateMatrix().
HGLOBAL * QWin32PrintEngine::createGlobalDevNames | ( | ) |
Definition at line 1533 of file qprintengine_win.cpp.
References d.
Referenced by QPrintDialogPrivate::openWindowsPrintDialogModally().
|
overridevirtual |
The default implementation ignores the path and does nothing.
Reimplemented from QAlphaPaintEngine.
Definition at line 774 of file qprintengine_win.cpp.
References QAlphaPaintEngine::continueCall(), d, QAlphaPaintEngine::drawPath(), and qDebug.
Referenced by drawPolygon().
|
overridevirtual |
Reimplement this function to draw the part of the pm specified by the sr rectangle in the given r.
Reimplemented from QAlphaPaintEngine.
Definition at line 487 of file qprintengine_win.cpp.
References QAlphaPaintEngine::continueCall(), d, QAlphaPaintEngine::drawPixmap(), QPainter::drawPixmap(), QTransform::dx(), QTransform::dy(), QImage::Format_RGB32, QPixmap::fromImage(), QTransform::fromScale(), HBitmapNoAlpha, QPaintEngine::painter(), pixmap, qAbs(), qErrnoWarning(), qRound(), qt_pixmapToWinHBITMAP(), QRectF::size(), tileSize, QRectF::toRect(), QPixmap::trueMatrix(), Qt::white, QPointF::x(), and QPointF::y().
|
overridevirtual |
Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode.
Reimplemented from QAlphaPaintEngine.
Definition at line 794 of file qprintengine_win.cpp.
References QAlphaPaintEngine::continueCall(), d, drawPath(), QAlphaPaintEngine::drawPolygon(), i, QPaintEngine::PolylineMode, Q_ASSERT, and qDebug.
|
overridevirtual |
This function draws the text item textItem at position p.
The default implementation of this function converts the text to a QPainterPath and paints the resulting path.
Reimplemented from QAlphaPaintEngine.
Definition at line 245 of file qprintengine_win.cpp.
References QPen::brush(), QBrush::color(), QAlphaPaintEngine::continueCall(), QWindowsFontEngineDirectWrite::createHFONT(), d, QFontEngine::DirectWrite, draw_text_item_win(), QPaintEngine::drawTextItem(), QAlphaPaintEngine::drawTextItem(), QTextItemInt::fontEngine, QString::fromWCharArray(), QFontEngine::handle(), QPaintEngineState::pen(), qAlpha(), qBlue(), qGreen(), qRed(), QRgb, return, QColor::rgb(), Qt::SolidPattern, QPaintEngine::state, QBrush::style(), QTransform::TxProject, QFontEngine::type(), and QFontEngine::Win.
|
overridevirtual |
Reimplement this function to draw the pixmap in the given rect, starting at the given p.
The pixmap will be drawn repeatedly until the rect is filled.
Reimplemented from QAlphaPaintEngine.
Definition at line 588 of file qprintengine_win.cpp.
References QAlphaPaintEngine::continueCall(), d, QPaintEngine::drawTiledPixmap(), QAlphaPaintEngine::drawTiledPixmap(), HBitmapNoAlpha, QPixmap::height(), QRectF::height(), QRectF::left(), pos, qErrnoWarning(), qt_pixmapToWinHBITMAP(), QRectF::top(), QPixmap::width(), and QRectF::width().
|
overridevirtual |
Reimplement this function to finish painting on the current paint device.
Return true if painting was finished successfully; otherwise return false.
Reimplemented from QAlphaPaintEngine.
Definition at line 145 of file qprintengine_win.cpp.
References QPrinter::Aborted, QAlphaPaintEngine::cleanUp(), QAlphaPaintEngine::continueCall(), d, QAlphaPaintEngine::end(), QPrinter::Idle, and qErrnoWarning().
HDC QWin32PrintEngine::getDC | ( | ) | const |
Definition at line 1523 of file qprintengine_win.cpp.
HGLOBAL QWin32PrintEngine::globalDevMode | ( | ) |
Definition at line 1593 of file qprintengine_win.cpp.
References d.
Referenced by setGlobalDevMode().
|
overridevirtual |
Returns the metric for the given id.
Implements QPrintEngine.
Definition at line 311 of file qprintengine_win.cpp.
References d, QPaintDevice::devicePixelRatioFScale(), QPaintDevice::PdmDepth, QPaintDevice::PdmDevicePixelRatio, QPaintDevice::PdmDevicePixelRatioScaled, QPaintDevice::PdmDpiX, QPaintDevice::PdmDpiY, QPaintDevice::PdmHeight, QPaintDevice::PdmHeightMM, QPaintDevice::PdmNumColors, QPaintDevice::PdmPhysicalDpiX, QPaintDevice::PdmPhysicalDpiY, QPaintDevice::PdmWidth, QPaintDevice::PdmWidthMM, qDebug, and qWarning.
|
overridevirtual |
Instructs the print engine to start a new page.
Returns true
if the printer was able to create the new page; otherwise returns false
.
Implements QPrintEngine.
Definition at line 173 of file qprintengine_win.cpp.
References QPrinter::Aborted, QPrinter::Active, d, QAlphaPaintEngine::flushAndInit(), QPaintEngine::isActive(), Q_ASSERT, qDebug, and qErrnoWarning().
|
overridevirtual |
Returns the current state of the printer being used by the print engine.
Implements QPrintEngine.
Definition at line 1518 of file qprintengine_win.cpp.
|
overridevirtual |
Returns the print engine's property specified by key.
Implements QPrintEngine.
Definition at line 1327 of file qprintengine_win.cpp.
References QPrint::Auto, QMarginsF::bottom(), QPrinter::Color, QPrint::CustomInputSlot, d, DMBIN_USER, QPrinter::DuplexLongSide, QPrinter::DuplexNone, QPrinter::DuplexShortSide, QPrinter::FirstPageFirst, QPageLayout::FullPageMode, QPrinter::GrayScale, indexOfWindowsId(), QMarginsF::left(), list, out, QPageLayout::Point, QPrintEngine::PPK_CollateCopies, QPrintEngine::PPK_ColorMode, QPrintEngine::PPK_CopyCount, QPrintEngine::PPK_Creator, QPrintEngine::PPK_CustomBase, QPrintEngine::PPK_CustomPaperSize, QPrintEngine::PPK_DocumentName, QPrintEngine::PPK_Duplex, QPrintEngine::PPK_FontEmbedding, QPrintEngine::PPK_FullPage, QPrintEngine::PPK_NumberOfCopies, QPrintEngine::PPK_Orientation, QPrintEngine::PPK_OutputFileName, QPrintEngine::PPK_PageMargins, QPrintEngine::PPK_PageOrder, QPrintEngine::PPK_PageRect, QPrintEngine::PPK_PageSize, QPrintEngine::PPK_PaperName, QPrintEngine::PPK_PaperRect, QPrintEngine::PPK_PaperSource, QPrintEngine::PPK_PaperSources, QPrintEngine::PPK_PrinterName, QPrintEngine::PPK_PrinterProgram, QPrintEngine::PPK_QPageLayout, QPrintEngine::PPK_QPageMargins, QPrintEngine::PPK_QPageSize, QPrintEngine::PPK_Resolution, QPrintEngine::PPK_SelectionOption, QPrintEngine::PPK_SupportedResolutions, QPrintEngine::PPK_SupportsMultipleCopies, QPrintEngine::PPK_WindowsPageSize, qMakePair(), QList< T >::reserve(), QMarginsF::right(), and QMarginsF::top().
void QWin32PrintEngine::releaseDC | ( | HDC | ) | const |
Definition at line 1528 of file qprintengine_win.cpp.
void QWin32PrintEngine::setGlobalDevMode | ( | HGLOBAL | globalDevNames, |
HGLOBAL | globalDevMode | ||
) |
Definition at line 1553 of file qprintengine_win.cpp.
References QPlatformPrinterSupport::createPrintDevice(), d, QPlatformPrinterSupport::defaultPrintDeviceId(), QString::fromWCharArray(), QPlatformPrinterSupportPlugin::get(), globalDevMode(), qDebug, and qWarning.
|
overridevirtual |
Sets the print engine's property specified by key to the given value.
Implements QPrintEngine.
Definition at line 1018 of file qprintengine_win.cpp.
References QList< T >::at(), QPrinter::Color, QPlatformPrinterSupport::createPrintDevice(), d, QPlatformPrinterSupport::defaultPrintDeviceId(), DMBIN_AUTO, DMBIN_USER, QPrint::DuplexAuto, QPrint::DuplexLongSide, QPrint::DuplexNone, QPrint::DuplexShortSide, QVariant::fromValue(), QPageLayout::FullPageMode, QPlatformPrinterSupportPlugin::get(), QPageSize::id(), indexOfId, indexOfWindowsId(), QPaintEngine::isActive(), QPageLayout::isValid(), QPageSize::isValid(), QPrintDevice::isValid(), QPageLayout::Landscape, QPageLayout::margins(), QPageLayout::mode(), QPageLayout::orientation(), QPageLayout::pageSize(), QPageLayout::Point, QPageSize::Point, QPrintEngine::PPK_CollateCopies, QPrintEngine::PPK_ColorMode, QPrintEngine::PPK_CopyCount, QPrintEngine::PPK_Creator, QPrintEngine::PPK_CustomBase, QPrintEngine::PPK_CustomPaperSize, QPrintEngine::PPK_DocumentName, QPrintEngine::PPK_Duplex, QPrintEngine::PPK_FontEmbedding, QPrintEngine::PPK_FullPage, QPrintEngine::PPK_NumberOfCopies, QPrintEngine::PPK_Orientation, QPrintEngine::PPK_OutputFileName, QPrintEngine::PPK_PageMargins, QPrintEngine::PPK_PageOrder, QPrintEngine::PPK_PageRect, QPrintEngine::PPK_PageSize, QPrintEngine::PPK_PaperName, QPrintEngine::PPK_PaperRect, QPrintEngine::PPK_PaperSource, QPrintEngine::PPK_PaperSources, QPrintEngine::PPK_PrinterName, QPrintEngine::PPK_PrinterProgram, QPrintEngine::PPK_QPageLayout, QPrintEngine::PPK_QPageMargins, QPrintEngine::PPK_QPageSize, QPrintEngine::PPK_Resolution, QPrintEngine::PPK_SelectionOption, QPrintEngine::PPK_SupportedResolutions, QPrintEngine::PPK_SupportsMultipleCopies, QPrintEngine::PPK_WindowsPageSize, property, Q_ASSERT, qDebug, qWarning, setProperty(), QList< T >::size(), QPageSize::size(), QPageLayout::StandardMode, toInt(), QPageLayout::units(), and QVariant::value().
Referenced by setProperty().
|
inlineoverridevirtual |
Reimplement this function to return the paint engine \l{Type}.
Implements QPaintEngine.
Definition at line 66 of file qprintengine_win_p.h.
References QPaintEngine::Windows.
void QWin32PrintEngine::updateClipPath | ( | const QPainterPath & | clip, |
Qt::ClipOperation | op | ||
) |
Definition at line 430 of file qprintengine_win.cpp.
References QAlphaPaintEngine::alphaClipping(), d, QPainterPath::isEmpty(), QTransform::map(), Qt::NoClip, Q_ASSERT, and qt_regionToPath().
Referenced by updateState().
void QWin32PrintEngine::updateMatrix | ( | const QTransform & | matrix | ) |
Definition at line 469 of file qprintengine_win.cpp.
References d, and QTransform::TxScale.
Referenced by begin(), and updateState().
|
overridevirtual |
Reimplement this function to update the state of a paint engine.
When implemented, this function is responsible for checking the paint engine's current state and update the properties that are changed. Use the QPaintEngineState::state() function to find out which properties that must be updated, then use the corresponding \l {GetFunction}{get function} to retrieve the current values for the given properties.
Reimplemented from QAlphaPaintEngine.
Definition at line 389 of file qprintengine_win.cpp.
References QPaintEngineState::brush(), QPaintEngineState::clipOperation(), QPaintEngineState::clipPath(), QPaintEngineState::clipRegion(), QAlphaPaintEngine::continueCall(), d, QPaintEngine::DirtyBrush, QPaintEngine::DirtyClipEnabled, QPaintEngine::DirtyClipPath, QPaintEngine::DirtyClipRegion, QPaintEngine::DirtyPen, QPaintEngine::DirtyTransform, QPaintEngineState::isClipEnabled(), Qt::NoClip, Qt::NoPen, QPaintEngine::painter(), QPaintEngineState::pen(), qt_regionToPath(), Qt::ReplaceClip, Qt::SolidPattern, QPaintEngine::state, QPaintEngineState::state(), QPaintEngineState::transform(), updateClipPath(), updateMatrix(), and QAlphaPaintEngine::updateState().
|
friend |
Definition at line 78 of file qprintengine_win_p.h.
|
friend |
Definition at line 77 of file qprintengine_win_p.h.