Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QSvgPaintEngine Class Reference
Inheritance diagram for QSvgPaintEngine:
Collaboration diagram for QSvgPaintEngine:

Public Member Functions

 QSvgPaintEngine (QSvgGenerator::SvgVersion version)
bool begin (QPaintDevice *device) 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 updateClipState (const QPaintEngineState &state)
void popGroup ()
void drawEllipse (const QRectF &r) override
 Reimplement this function to draw the largest ellipse that can be contained within rectangle rect.
void drawPath (const QPainterPath &path) override
 The default implementation ignores the path and does nothing.
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 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 drawRects (const QRectF *rects, int rectCount) override
 Draws the first rectCount rectangles in the buffer rects.
void drawTextItem (const QPointF &pt, const QTextItem &item) override
 This function draws the text item textItem at position p.
void generateImage (QTextStream &stream, const QRectF &r, const QImage &pm)
void drawImage (const QRectF &r, const QImage &pm, const QRectF &sr, Qt::ImageConversionFlags flags=Qt::AutoColor) override
 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.
QPaintEngine::Type type () const override
 Reimplement this function to return the paint engine \l{Type}.
QSize size () const
void setSize (const QSize &size)
QRectF viewBox () const
void setViewBox (const QRectF &viewBox)
QString documentTitle () const
void setDocumentTitle (const QString &title)
QString documentDescription () const
void setDocumentDescription (const QString &description)
QIODeviceoutputDevice () const
void setOutputDevice (QIODevice *device)
int resolution () const
void setResolution (int resolution)
QSvgGenerator::SvgVersion svgVersion () const
QString savePatternMask (Qt::BrushStyle style)
QString savePatternBrush (const QString &color, const QBrush &brush)
QString saveTextureBrush (const QString &color, const QBrush &brush)
void saveLinearGradientBrush (const QGradient *g)
void saveRadialGradientBrush (const QGradient *g)
void saveConicalGradientBrush (const QGradient *)
void saveGradientStops (QTextStream &str, const QGradient *g)
void saveGradientUnits (QTextStream &str, const QGradient *gradient)
void generateQtDefaults ()
QTextStreamstream ()
void qpenToSvg (const QPen &spen)
void qbrushToSvg (const QBrush &sbrush)
void qfontToSvg (const QFont &sfont)
 QSvgPaintEngine (QSvgGenerator::SvgVersion version)
bool begin (QPaintDevice *device) 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 updateClipState (const QPaintEngineState &state)
void popGroup ()
void drawEllipse (const QRectF &r) override
 Reimplement this function to draw the largest ellipse that can be contained within rectangle rect.
void drawPath (const QPainterPath &path) override
 The default implementation ignores the path and does nothing.
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 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 drawRects (const QRectF *rects, int rectCount) override
 Draws the first rectCount rectangles in the buffer rects.
void drawTextItem (const QPointF &pt, const QTextItem &item) override
 This function draws the text item textItem at position p.
void generateImage (QTextStream &stream, const QRectF &r, const QImage &pm)
void drawImage (const QRectF &r, const QImage &pm, const QRectF &sr, Qt::ImageConversionFlags flags=Qt::AutoColor) override
 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.
QPaintEngine::Type type () const override
 Reimplement this function to return the paint engine \l{Type}.
QSize size () const
void setSize (const QSize &size)
QRectF viewBox () const
void setViewBox (const QRectF &viewBox)
QString documentTitle () const
void setDocumentTitle (const QString &title)
QString documentDescription () const
void setDocumentDescription (const QString &description)
QIODeviceoutputDevice () const
void setOutputDevice (QIODevice *device)
int resolution () const
void setResolution (int resolution)
QSvgGenerator::SvgVersion svgVersion () const
QString savePatternMask (Qt::BrushStyle style)
QString savePatternBrush (const QString &color, const QBrush &brush)
QString saveTextureBrush (const QString &color, const QBrush &brush)
void saveLinearGradientBrush (const QGradient *g)
void saveRadialGradientBrush (const QGradient *g)
void saveConicalGradientBrush (const QGradient *)
void saveGradientStops (QTextStream &str, const QGradient *g)
void saveGradientUnits (QTextStream &str, const QGradient *gradient)
void generateQtDefaults ()
QTextStreamstream ()
void qpenToSvg (const QPen &spen)
void qbrushToSvg (const QBrush &sbrush)
void qfontToSvg (const QFont &sfont)
Public Member Functions inherited from QPaintEngine
 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 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 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 QRect &r)
 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 of this function calls the floating point version of this function.
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 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 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 setPaintDevice (QPaintDevice *device)
QPaintDevicepaintDevice () 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
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.
QPainterpainter () 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)

Additional Inherited Members

Public Types inherited from QPaintEngine
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...
Protected Member Functions inherited from QPaintEngine
 QPaintEngine (QPaintEnginePrivate &data, PaintEngineFeatures devcaps=PaintEngineFeatures())
Protected Attributes inherited from QPaintEngine
QPaintEngineStatestate
PaintEngineFeatures gccaps
uint active: 1
uint selfDestruct: 1
uint extended: 1
QScopedPointer< QPaintEnginePrivated_ptr

Detailed Description

Definition at line 143 of file qsvggenerator.cpp.

Constructor & Destructor Documentation

◆ QSvgPaintEngine() [1/2]

QSvgPaintEngine::QSvgPaintEngine ( QSvgGenerator::SvgVersion version)
inlineexplicit

Definition at line 148 of file qsvggenerator.cpp.

◆ QSvgPaintEngine() [2/2]

QSvgPaintEngine::QSvgPaintEngine ( QSvgGenerator::SvgVersion version)
inlineexplicit

Definition at line 148 of file qsvggenerator.cpp.

Member Function Documentation

◆ begin() [1/2]

bool QSvgPaintEngine::begin ( QPaintDevice * pdev)
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.

See also
end(), isActive()

Implements QPaintEngine.

Definition at line 899 of file qsvggenerator.cpp.

◆ begin() [2/2]

bool QSvgPaintEngine::begin ( QPaintDevice * pdev)
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.

See also
end(), isActive()

Implements QPaintEngine.

◆ documentDescription() [1/2]

QString QSvgPaintEngine::documentDescription ( ) const
inline

Definition at line 190 of file qsvggenerator.cpp.

◆ documentDescription() [2/2]

QString QSvgPaintEngine::documentDescription ( ) const
inline

Definition at line 190 of file qsvggenerator.cpp.

◆ documentTitle() [1/2]

QString QSvgPaintEngine::documentTitle ( ) const
inline

Definition at line 185 of file qsvggenerator.cpp.

◆ documentTitle() [2/2]

QString QSvgPaintEngine::documentTitle ( ) const
inline

Definition at line 185 of file qsvggenerator.cpp.

◆ drawEllipse() [1/2]

void QSvgPaintEngine::drawEllipse ( const QRectF & rect)
overridevirtual

Reimplement this function to draw the largest ellipse that can be contained within rectangle rect.

The default implementation calls drawPolygon().

Reimplemented from QPaintEngine.

Definition at line 1115 of file qsvggenerator.cpp.

◆ drawEllipse() [2/2]

void QSvgPaintEngine::drawEllipse ( const QRectF & rect)
overridevirtual

Reimplement this function to draw the largest ellipse that can be contained within rectangle rect.

The default implementation calls drawPolygon().

Reimplemented from QPaintEngine.

◆ drawImage() [1/2]

void QSvgPaintEngine::drawImage ( const QRectF & r,
const QImage & pm,
const QRectF & sr,
Qt::ImageConversionFlags flags = Qt::AutoColor )
overridevirtual

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.

Reimplemented from QPaintEngine.

Definition at line 1024 of file qsvggenerator.cpp.

◆ drawImage() [2/2]

void QSvgPaintEngine::drawImage ( const QRectF & r,
const QImage & pm,
const QRectF & sr,
Qt::ImageConversionFlags flags = Qt::AutoColor )
overridevirtual

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.

Reimplemented from QPaintEngine.

◆ drawPath() [1/2]

void QSvgPaintEngine::drawPath ( const QPainterPath & path)
overridevirtual

The default implementation ignores the path and does nothing.

Reimplemented from QPaintEngine.

Definition at line 1132 of file qsvggenerator.cpp.

Referenced by drawPolygon().

Here is the caller graph for this function:

◆ drawPath() [2/2]

void QSvgPaintEngine::drawPath ( const QPainterPath & path)
overridevirtual

The default implementation ignores the path and does nothing.

Reimplemented from QPaintEngine.

◆ drawPixmap() [1/2]

void QSvgPaintEngine::drawPixmap ( const QRectF & r,
const QPixmap & pm,
const QRectF & sr )
overridevirtual

Reimplement this function to draw the part of the pm specified by the sr rectangle in the given r.

Implements QPaintEngine.

Definition at line 992 of file qsvggenerator.cpp.

◆ drawPixmap() [2/2]

void QSvgPaintEngine::drawPixmap ( const QRectF & r,
const QPixmap & pm,
const QRectF & sr )
overridevirtual

Reimplement this function to draw the part of the pm specified by the sr rectangle in the given r.

Implements QPaintEngine.

◆ drawPolygon() [1/2]

void QSvgPaintEngine::drawPolygon ( const QPointF * points,
int pointCount,
PolygonDrawMode mode )
overridevirtual

Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode.

Note
At least one of the drawPolygon() functions must be reimplemented.

Reimplemented from QPaintEngine.

Definition at line 1176 of file qsvggenerator.cpp.

References drawPath().

Here is the call graph for this function:

◆ drawPolygon() [2/2]

void QSvgPaintEngine::drawPolygon ( const QPointF * points,
int pointCount,
PolygonDrawMode mode )
overridevirtual

Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode.

Note
At least one of the drawPolygon() functions must be reimplemented.

Reimplemented from QPaintEngine.

◆ drawRects() [1/2]

void QSvgPaintEngine::drawRects ( const QRectF * rects,
int rectCount )
overridevirtual

Draws the first rectCount rectangles in the buffer rects.

The default implementation of this function calls drawPath() or drawPolygon() depending on the feature set of the paint engine.

Reimplemented from QPaintEngine.

Definition at line 1202 of file qsvggenerator.cpp.

◆ drawRects() [2/2]

void QSvgPaintEngine::drawRects ( const QRectF * rects,
int rectCount )
overridevirtual

Draws the first rectCount rectangles in the buffer rects.

The default implementation of this function calls drawPath() or drawPolygon() depending on the feature set of the paint engine.

Reimplemented from QPaintEngine.

◆ drawTextItem() [1/2]

void QSvgPaintEngine::drawTextItem ( const QPointF & p,
const QTextItem & textItem )
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 QPaintEngine.

Definition at line 1217 of file qsvggenerator.cpp.

◆ drawTextItem() [2/2]

void QSvgPaintEngine::drawTextItem ( const QPointF & p,
const QTextItem & textItem )
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 QPaintEngine.

◆ end() [1/2]

bool QSvgPaintEngine::end ( )
overridevirtual

Reimplement this function to finish painting on the current paint device.

Return true if painting was finished successfully; otherwise return false.

See also
begin(), isActive()

Implements QPaintEngine.

Definition at line 967 of file qsvggenerator.cpp.

◆ end() [2/2]

bool QSvgPaintEngine::end ( )
overridevirtual

Reimplement this function to finish painting on the current paint device.

Return true if painting was finished successfully; otherwise return false.

See also
begin(), isActive()

Implements QPaintEngine.

◆ generateImage() [1/2]

void QSvgPaintEngine::generateImage ( QTextStream & stream,
const QRectF & r,
const QImage & pm )

Definition at line 998 of file qsvggenerator.cpp.

◆ generateImage() [2/2]

void QSvgPaintEngine::generateImage ( QTextStream & stream,
const QRectF & r,
const QImage & pm )

◆ generateQtDefaults() [1/2]

void QSvgPaintEngine::generateQtDefaults ( )
inline

Definition at line 354 of file qsvggenerator.cpp.

◆ generateQtDefaults() [2/2]

void QSvgPaintEngine::generateQtDefaults ( )
inline

Definition at line 354 of file qsvggenerator.cpp.

◆ outputDevice() [1/2]

QIODevice * QSvgPaintEngine::outputDevice ( ) const
inline

Definition at line 195 of file qsvggenerator.cpp.

◆ outputDevice() [2/2]

QIODevice * QSvgPaintEngine::outputDevice ( ) const
inline

Definition at line 195 of file qsvggenerator.cpp.

◆ popGroup() [1/2]

void QSvgPaintEngine::popGroup ( )

◆ popGroup() [2/2]

void QSvgPaintEngine::popGroup ( )

◆ qbrushToSvg() [1/2]

void QSvgPaintEngine::qbrushToSvg ( const QBrush & sbrush)
inline

Definition at line 459 of file qsvggenerator.cpp.

◆ qbrushToSvg() [2/2]

void QSvgPaintEngine::qbrushToSvg ( const QBrush & sbrush)
inline

Definition at line 459 of file qsvggenerator.cpp.

◆ qfontToSvg() [1/2]

void QSvgPaintEngine::qfontToSvg ( const QFont & sfont)
inline

Definition at line 525 of file qsvggenerator.cpp.

◆ qfontToSvg() [2/2]

void QSvgPaintEngine::qfontToSvg ( const QFont & sfont)
inline

Definition at line 525 of file qsvggenerator.cpp.

◆ qpenToSvg() [1/2]

void QSvgPaintEngine::qpenToSvg ( const QPen & spen)
inline

Definition at line 370 of file qsvggenerator.cpp.

◆ qpenToSvg() [2/2]

void QSvgPaintEngine::qpenToSvg ( const QPen & spen)
inline

Definition at line 370 of file qsvggenerator.cpp.

◆ resolution() [1/2]

int QSvgPaintEngine::resolution ( ) const
inline

Definition at line 201 of file qsvggenerator.cpp.

◆ resolution() [2/2]

int QSvgPaintEngine::resolution ( ) const
inline

Definition at line 201 of file qsvggenerator.cpp.

◆ saveConicalGradientBrush() [1/2]

void QSvgPaintEngine::saveConicalGradientBrush ( const QGradient * )
inline

Definition at line 298 of file qsvggenerator.cpp.

◆ saveConicalGradientBrush() [2/2]

void QSvgPaintEngine::saveConicalGradientBrush ( const QGradient * )
inline

Definition at line 298 of file qsvggenerator.cpp.

◆ saveGradientStops() [1/2]

void QSvgPaintEngine::saveGradientStops ( QTextStream & str,
const QGradient * g )
inline

Definition at line 303 of file qsvggenerator.cpp.

◆ saveGradientStops() [2/2]

void QSvgPaintEngine::saveGradientStops ( QTextStream & str,
const QGradient * g )
inline

Definition at line 303 of file qsvggenerator.cpp.

◆ saveGradientUnits() [1/2]

void QSvgPaintEngine::saveGradientUnits ( QTextStream & str,
const QGradient * gradient )
inline

Definition at line 344 of file qsvggenerator.cpp.

◆ saveGradientUnits() [2/2]

void QSvgPaintEngine::saveGradientUnits ( QTextStream & str,
const QGradient * gradient )
inline

Definition at line 344 of file qsvggenerator.cpp.

◆ saveLinearGradientBrush() [1/2]

void QSvgPaintEngine::saveLinearGradientBrush ( const QGradient * g)
inline

Definition at line 264 of file qsvggenerator.cpp.

◆ saveLinearGradientBrush() [2/2]

void QSvgPaintEngine::saveLinearGradientBrush ( const QGradient * g)
inline

Definition at line 264 of file qsvggenerator.cpp.

◆ savePatternBrush() [1/2]

QString QSvgPaintEngine::savePatternBrush ( const QString & color,
const QBrush & brush )
inline

Definition at line 227 of file qsvggenerator.cpp.

◆ savePatternBrush() [2/2]

QString QSvgPaintEngine::savePatternBrush ( const QString & color,
const QBrush & brush )
inline

Definition at line 227 of file qsvggenerator.cpp.

◆ savePatternMask() [1/2]

QString QSvgPaintEngine::savePatternMask ( Qt::BrushStyle style)
inline

Definition at line 209 of file qsvggenerator.cpp.

◆ savePatternMask() [2/2]

QString QSvgPaintEngine::savePatternMask ( Qt::BrushStyle style)
inline

Definition at line 209 of file qsvggenerator.cpp.

◆ saveRadialGradientBrush() [1/2]

void QSvgPaintEngine::saveRadialGradientBrush ( const QGradient * g)
inline

Definition at line 281 of file qsvggenerator.cpp.

◆ saveRadialGradientBrush() [2/2]

void QSvgPaintEngine::saveRadialGradientBrush ( const QGradient * g)
inline

Definition at line 281 of file qsvggenerator.cpp.

◆ saveTextureBrush() [1/2]

QString QSvgPaintEngine::saveTextureBrush ( const QString & color,
const QBrush & brush )
inline

Definition at line 242 of file qsvggenerator.cpp.

◆ saveTextureBrush() [2/2]

QString QSvgPaintEngine::saveTextureBrush ( const QString & color,
const QBrush & brush )
inline

Definition at line 242 of file qsvggenerator.cpp.

◆ setDocumentDescription() [1/2]

void QSvgPaintEngine::setDocumentDescription ( const QString & description)
inline

Definition at line 191 of file qsvggenerator.cpp.

◆ setDocumentDescription() [2/2]

void QSvgPaintEngine::setDocumentDescription ( const QString & description)
inline

Definition at line 191 of file qsvggenerator.cpp.

◆ setDocumentTitle() [1/2]

void QSvgPaintEngine::setDocumentTitle ( const QString & title)
inline

Definition at line 186 of file qsvggenerator.cpp.

◆ setDocumentTitle() [2/2]

void QSvgPaintEngine::setDocumentTitle ( const QString & title)
inline

Definition at line 186 of file qsvggenerator.cpp.

◆ setOutputDevice() [1/2]

void QSvgPaintEngine::setOutputDevice ( QIODevice * device)
inline

Definition at line 196 of file qsvggenerator.cpp.

◆ setOutputDevice() [2/2]

void QSvgPaintEngine::setOutputDevice ( QIODevice * device)
inline

Definition at line 196 of file qsvggenerator.cpp.

◆ setResolution() [1/2]

void QSvgPaintEngine::setResolution ( int resolution)
inline

Definition at line 202 of file qsvggenerator.cpp.

◆ setResolution() [2/2]

void QSvgPaintEngine::setResolution ( int resolution)
inline

Definition at line 202 of file qsvggenerator.cpp.

◆ setSize() [1/2]

void QSvgPaintEngine::setSize ( const QSize & size)
inline

Definition at line 174 of file qsvggenerator.cpp.

◆ setSize() [2/2]

void QSvgPaintEngine::setSize ( const QSize & size)
inline

Definition at line 174 of file qsvggenerator.cpp.

◆ setViewBox() [1/2]

void QSvgPaintEngine::setViewBox ( const QRectF & viewBox)
inline

Definition at line 180 of file qsvggenerator.cpp.

◆ setViewBox() [2/2]

void QSvgPaintEngine::setViewBox ( const QRectF & viewBox)
inline

Definition at line 180 of file qsvggenerator.cpp.

◆ size() [1/2]

QSize QSvgPaintEngine::size ( ) const
inline

Definition at line 173 of file qsvggenerator.cpp.

◆ size() [2/2]

QSize QSvgPaintEngine::size ( ) const
inline

Definition at line 173 of file qsvggenerator.cpp.

◆ stream() [1/2]

QTextStream & QSvgPaintEngine::stream ( )
inline

Definition at line 364 of file qsvggenerator.cpp.

◆ stream() [2/2]

QTextStream & QSvgPaintEngine::stream ( )
inline

Definition at line 364 of file qsvggenerator.cpp.

◆ svgVersion() [1/2]

QSvgGenerator::SvgVersion QSvgPaintEngine::svgVersion ( ) const
inline

Definition at line 207 of file qsvggenerator.cpp.

◆ svgVersion() [2/2]

QSvgGenerator::SvgVersion QSvgPaintEngine::svgVersion ( ) const
inline

Definition at line 207 of file qsvggenerator.cpp.

◆ type() [1/2]

QPaintEngine::Type QSvgPaintEngine::type ( ) const
inlineoverridevirtual

Reimplement this function to return the paint engine \l{Type}.

Implements QPaintEngine.

Definition at line 171 of file qsvggenerator.cpp.

◆ type() [2/2]

QPaintEngine::Type QSvgPaintEngine::type ( ) const
inlineoverridevirtual

Reimplement this function to return the paint engine \l{Type}.

Implements QPaintEngine.

Definition at line 171 of file qsvggenerator.cpp.

◆ updateClipState() [1/2]

void QSvgPaintEngine::updateClipState ( const QPaintEngineState & state)

Definition at line 1076 of file qsvggenerator.cpp.

◆ updateClipState() [2/2]

void QSvgPaintEngine::updateClipState ( const QPaintEngineState & state)

◆ updateState() [1/2]

void QSvgPaintEngine::updateState ( const QPaintEngineState & state)
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.

See also
QPaintEngineState

Implements QPaintEngine.

Definition at line 1033 of file qsvggenerator.cpp.

◆ updateState() [2/2]

void QSvgPaintEngine::updateState ( const QPaintEngineState & state)
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.

See also
QPaintEngineState

Implements QPaintEngine.

◆ viewBox() [1/2]

QRectF QSvgPaintEngine::viewBox ( ) const
inline

Definition at line 179 of file qsvggenerator.cpp.

◆ viewBox() [2/2]

QRectF QSvgPaintEngine::viewBox ( ) const
inline

Definition at line 179 of file qsvggenerator.cpp.


The documentation for this class was generated from the following file: