18#include <QtGui/private/qtguiglobal_p.h>
22#include "QtCore/qlist.h"
23#include "QtCore/qstring.h"
24#include "private/qfontengine_p.h"
25#include "private/qfontsubset_p.h"
26#include "private/qpaintengine_p.h"
27#include "private/qstroker_p.h"
73 bool fileBackingEnabled;
74 bool fileBackingActive;
91 void setPen(
const QPen &pen, QPainter::RenderHints hints);
148 void setOutputFilename(
const QString &filename);
150 void setResolution(
int resolution);
151 int resolution()
const;
153 void setPdfVersion(PdfVersion version);
155 void setDocumentXmpMetadata(
const QByteArray &xmpMetadata);
190 void setPageSize(
const QPageSize &pageSize);
198 void setupGraphicsState(QPaintEngine::DirtyFlags
flags);
217 int addConstantAlphaObject(
int brushAlpha,
int penAlpha = 255);
218 int addBrushPattern(
const QTransform &
matrix,
bool *specifyColor,
int *gStateObject);
268 int createShadingFunction(
const QGradient *gradient,
int from,
int to,
bool reflect,
bool alpha);
271 int writeXmpDcumentMetaData();
272 int writeOutputIntent();
273 void writePageRoot();
274 void writeDestsRoot();
275 void writeAttachmentRoot();
276 void writeNamesRoot();
279 qreal calcUserUnit()
const;
286 int maskObject,
int softMaskObject,
bool dct =
false,
bool isMono =
false);
289 int addXrefEntry(
int object,
bool printostr =
true);
291 void xprintf(
const char*
fmt, ...);
294 streampos +=
data.size();
297 int writeCompressed(
const char *
src,
int len);
298 inline int writeCompressed(
const QByteArray &
data) {
return writeCompressed(
data.constData(),
data.size()); }
301 struct AttachmentInfo
318 int pageRoot, namesRoot, destsRoot, attachmentsRoot, catalog,
info;
319 int graphicsState, patternColorSpace;
\inmodule QtCore\reentrant
\inmodule QtCore \reentrant
Unit
This enum type is used to specify the measurement unit for page layout and margins.
Orientation
This enum type defines the page orientation.
The QPaintEngineState class provides information about the active paint engine's current state....
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 drawRects(const QRect *rects, int rectCount)
This is an overloaded member function, provided for convenience. It differs from the above function o...
virtual void updateState(const QPaintEngineState &state)=0
Reimplement this function to update the state of a paint engine.
virtual void drawLines(const QLine *lines, int lineCount)
This is an overloaded member function, provided for convenience. It differs from the above function o...
virtual void drawTextItem(const QPointF &p, const QTextItem &textItem)
This function draws the text item textItem at position p.
virtual void drawPoints(const QPointF *points, int pointCount)
Draws the first pointCount points in the buffer points.
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 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...
virtual bool begin(QPaintDevice *pdev)=0
Reimplement this function to initialise your paint engine when painting is to start on the paint devi...
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...
virtual bool end()=0
Reimplement this function to finish painting on the current paint device.
virtual Type type() const =0
Reimplement this function to return the paint engine \l{Type}.
virtual void drawPath(const QPainterPath &path)
The default implementation ignores the path and does nothing.
QList< QPainterPath > clips
QHash< QFontEngine::FaceId, QFontSubset * > fonts
QPdfEngine::PdfVersion pdfVersion
void streamImage(int w, int h, uint object)
QList< uint > graphicStates
QList< uint > annotations
ByteStream & operator<<(char chr)
void constructor_helper(QIODevice *dev)
static int maxMemorySize()
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
const char * toHex(ushort u, char *buffer)
QByteArray generatePath(const QPainterPath &path, const QTransform &matrix, PathFlags flags)
QByteArray ascii85Encode(const QByteArray &input)
QByteArray generateDashes(const QPen &pen)
QByteArray patternForBrush(const QBrush &b)
QByteArray generateMatrix(const QTransform &matrix)
Combined button and popup list for selecting options.
GLboolean GLboolean GLboolean b
GLint GLenum GLsizei GLsizei GLsizei depth
GLfloat GLfloat GLfloat w
[0]
GLint GLsizei GLsizei height
GLsizei const GLubyte GLsizei GLenum const void * coords
GLenum GLuint GLenum GLsizei const GLchar * buf
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLfloat GLfloat GLfloat GLfloat h
GLfixed GLfixed GLint GLint GLfixed points
GLsizei GLfixed GLfixed GLfixed GLfixed const GLubyte * bitmap
GLsizei const GLchar *const * path
GLfloat GLfloat GLfloat alpha
GLenum GLenum GLenum input
const char * qt_int_to_string(int val, char *buf)
QT_BEGIN_NAMESPACE const char * qt_real_to_string(qreal val, char *buf)
QVideoFrameFormat::PixelFormat fmt
QFileInfo info(fileName)
[8]
gzip write("uncompressed data")
QUrl url("example.com")
[constructor-url-reference]
void setPen(const QPen &pen, QPainter::RenderHints hints)
void strokePath(const QPainterPath &path)