Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qsvggenerator.cpp File Reference
#include "qsvggenerator.h"
#include "qpainterpath.h"
#include "private/qpaintengine_p.h"
#include "private/qtextengine_p.h"
#include "private/qdrawhelper_p.h"
#include "qfile.h"
#include "qtextstream.h"
#include "qbuffer.h"
#include "qmath.h"
#include "qbitmap.h"
#include "qtransform.h"
#include "qdebug.h"
#include <optional>
+ Include dependency graph for qsvggenerator.cpp:

Go to the source code of this file.

Classes

class  QSvgPaintEnginePrivate
 
struct  QSvgPaintEnginePrivate::_attributes
 
class  QSvgPaintEngine
 
class  QSvgGeneratorPrivate
 

Functions

static QT_BEGIN_NAMESPACE void translate_color (const QColor &color, QString *color_string, QString *opacity_string)
 
static void translate_dashPattern (const QList< qreal > &pattern, qreal width, QString *pattern_string)
 
static QPaintEngine::PaintEngineFeatures svgEngineFeatures ()
 
Q_GUI_EXPORT QImage qt_imageForBrush (int brushStyle, bool invert)
 

Function Documentation

◆ qt_imageForBrush()

Q_GUI_EXPORT QImage qt_imageForBrush ( int  brushStyle,
bool  invert 
)

Definition at line 146 of file qbrush.cpp.

Referenced by QSvgPaintEngine::savePatternMask(), QSpanData::setup(), and QOpenGL2PaintEngineExPrivate::updateBrushTexture().

+ Here is the caller graph for this function:

◆ svgEngineFeatures()

static QPaintEngine::PaintEngineFeatures svgEngineFeatures ( )
inlinestatic

◆ translate_color()

static QT_BEGIN_NAMESPACE void translate_color ( const QColor color,
QString color_string,
QString opacity_string 
)
static

Definition at line 27 of file qsvggenerator.cpp.

References QString::arg(), QString::fromLatin1(), QString::number(), and Q_ASSERT.

Referenced by QSvgPaintEngine::qbrushToSvg(), and QSvgPaintEngine::qpenToSvg().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ translate_dashPattern()

static void translate_dashPattern ( const QList< qreal > &  pattern,
qreal  width,
QString pattern_string 
)
static

Definition at line 41 of file qsvggenerator.cpp.

References QString::arg(), QString::chop(), QString::fromLatin1(), and Q_ASSERT.

Referenced by QSvgPaintEngine::qpenToSvg().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: