4#ifndef QPAINTENGINE_MAC_P_H
5#define QPAINTENGINE_MAC_P_H
18#include <QtPrintSupport/qtprintsupportglobal.h>
20#include <QtGui/qpaintengine.h>
21#include <QtGui/private/qpaintengine_p.h>
22#include <QtGui/private/qfont_p.h>
23#include <QtCore/qhash.h>
144 CGContextConcatCTM(
hd, CGAffineTransformInvert(CGContextGetCTM(
hd)));
151 CGContextSetTextMatrix(
hd,
xform);
158 CGContextSaveGState(
hd);
165 CGContextRestoreGState(
hd);
void setTransform(const QTransform *matrix=nullptr)
void setFillBrush(const QPointF &origin=QPoint())
void setStrokePen(const QPen &pen)
QPointF devicePixelSize(CGContextRef context)
QCoreGraphicsPaintEnginePrivate()
float adjustPenWidth(float penWidth)
struct QCoreGraphicsPaintEnginePrivate::@470 current
CGAffineTransform orig_xform
enum QCoreGraphicsPaintEnginePrivate::@471 cosmeticPen
void restoreGraphicsState()
void drawPath(uchar ops, CGMutablePathRef path=nullptr)
void setClip(const QRegion *rgn=nullptr)
void updateState(const QPaintEngineState &state)
Reimplement this function to update the state of a paint engine.
void updateRenderHints(QPainter::RenderHints hints)
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 re...
Type type() const
Reimplement this function to return the paint engine \l{Type}.
void drawPoints(const QPointF *p, int pointCount)
Draws the first pointCount points in the buffer points.
void drawRects(const QRectF *rects, int rectCount)
Draws the first rectCount rectangles in the buffer rects.
void drawTextItem(const QPointF &pos, const QTextItem &item)
This function draws the text item textItem at position p.
void updateMatrix(const QTransform &matrix)
void updateBrush(const QBrush &brush, const QPointF &pt)
QPainter::RenderHints supportedRenderHints() const
void drawPoints(const QPoint *p, int pointCount)
Draws the first pointCount points in the buffer points.
void drawRects(const QRect *rects, int rectCount)
This is an overloaded member function, provided for convenience. It differs from the above function o...
void drawEllipse(const QRect &r)
The default implementation of this function calls the floating point version of this function.
void updateClipPath(const QPainterPath &path, Qt::ClipOperation op)
bool end()
Reimplement this function to finish painting on the current paint device.
bool begin(QPaintDevice *pdev)
Reimplement this function to initialise your paint engine when painting is to start on the paint devi...
void updateCompositionMode(QPainter::CompositionMode mode)
CGContextRef handle() const
void updateFont(const QFont &font)
void drawPolygon(const QPoint *points, int pointCount, PolygonDrawMode mode)
This is an overloaded member function, provided for convenience. It differs from the above function o...
void drawLines(const QLineF *lines, int lineCount)
The default implementation splits the list of lines in lines into lineCount separate calls to drawPat...
void updateClipRegion(const QRegion ®ion, Qt::ClipOperation op)
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.
void drawEllipse(const QRectF &r)
Reimplement this function to draw the largest ellipse that can be contained within rectangle rect.
~QCoreGraphicsPaintEngine()
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...
void updatePen(const QPen &pen)
void drawLines(const QLine *lines, int lineCount)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QCoreGraphicsPaintEngine()
void updateOpacity(qreal opacity)
void drawPath(const QPainterPath &path)
The default implementation ignores the path and does nothing.
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.
void updateTransform(const QTransform &matrix)
The QPaintEngineState class provides information about the active paint engine's current state....
virtual void drawRects(const QRect *rects, int rectCount)
This is an overloaded member function, provided for convenience. It differs from the above function o...
virtual void drawLines(const QLine *lines, int lineCount)
This is an overloaded member function, provided for convenience. It differs from the above function o...
PolygonDrawMode
\value OddEvenMode The polygon should be drawn using OddEven fill rule.
virtual void drawPoints(const QPointF *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 point...
QPaintEngineState * state
virtual void drawEllipse(const QRectF &r)
Reimplement this function to draw the largest ellipse that can be contained within rectangle rect.
CompositionMode
Defines the modes supported for digital image compositing.
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QRegion class specifies a clip region for a painter.
Combined button and popup list for selecting options.
GLfixed GLfixed GLint GLint GLfixed points
GLsizei const GLchar *const * path
CGAffineTransform qt_mac_convert_transform_to_cg(const QTransform &t)
struct CGContext * CGContextRef
struct CGColorSpace * CGColorSpaceRef