4#ifndef QPRINTENGINE_MAC_P_H
5#define QPRINTENGINE_MAC_P_H
18#include <QtPrintSupport/qtprintsupportglobal.h>
22#include <QtPrintSupport/qprinter.h>
23#include <QtPrintSupport/qprintengine.h>
24#include <QtGui/private/qpainter_p.h>
25#include <QtGui/qpagelayout.h>
111 PMPageFormat
format()
const {
return static_cast<PMPageFormat
>([
printInfo PMPageFormat]); }
112 PMPrintSession
session()
const {
return static_cast<PMPrintSession
>([
printInfo PMPrintSession]); }
113 PMPrintSettings
settings()
const {
return static_cast<PMPrintSettings
>([
printInfo PMPrintSettings]); }
QPrinter::PrinterMode mode
~QMacPrintEnginePrivate()
PMPrintSession session() const
QPrinter::PrinterState state
QSharedPointer< QCocoaPrintDevice > m_printDevice
QPaintEngine * paintEngine
Qt::HANDLE nativeHandle() override
QPaintEngine * aggregateEngine() override
PMPrintSettings settings() const
PMPageFormat format() const
void setPageSize(const QPageSize &pageSize)
QHash< QMacPrintEngine::PrintEnginePropertyKey, QVariant > valueCache
bool isPrintSessionInitialized() const
virtual void drawPoints(const QPointF *p, int pointCount)
Draws the first pointCount points in the buffer points.
void updateState(const QPaintEngineState &state)
Reimplement this function to update the state of a paint engine.
QPaintEngine * paintEngine() const
virtual void drawImage(const QRectF &r, const QImage &pm, const QRectF &sr, Qt::ImageConversionFlags flags)
Reimplement this function to draw the part of the image specified by the sr rectangle in the given re...
virtual void drawTextItem(const QPointF &p, const QTextItem &ti)
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 drawPath(const QPainterPath &)
The default implementation ignores the path and does nothing.
bool newPage()
Instructs the print engine to start a new page.
Qt::HANDLE handle() const
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 point...
QPrinter::PrinterState printerState() const
Returns the current state of the printer being used by the print engine.
virtual void drawRects(const QRectF *r, int num)
Draws the first rectCount rectangles in the buffer rects.
NSPrintInfo * printInfo()
bool end()
Reimplement this function to finish painting on the current paint device.
bool begin(QPaintDevice *dev)
Reimplement this function to initialise your paint engine when painting is to start on the paint devi...
virtual 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.
bool abort()
Instructs the print engine to abort the printing process.
int metric(QPaintDevice::PaintDeviceMetric) const
Returns the metric for the given id.
virtual void drawEllipse(const QRectF &r)
Reimplement this function to draw the largest ellipse that can be contained within rectangle rect.
void setProperty(PrintEnginePropertyKey key, const QVariant &value)
Sets the print engine's property specified by key to the given value.
virtual void drawLines(const QLineF *lines, int lineCount)
The default implementation splits the list of lines in lines into lineCount separate calls to drawPat...
virtual QPaintEngine::Type type() const
Reimplement this function to return the paint engine \l{Type}.
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.
friend class QMacPrintEngine
QPaintEngineState * state
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
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
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
#define Q_FORWARD_DECLARE_OBJC_CLASS(classname)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLfixed GLfixed GLint GLint GLfixed points