/************************************************************************ * This file has been generated automatically from * * * * src/core/symbology-ng/qgssvgcache.h * * * * Do not edit manually ! Edit header and run scripts/sipify.pl again * ************************************************************************/ class QgsSvgCacheEntry { %TypeHeaderCode #include "qgssvgcache.h" %End public: QgsSvgCacheEntry(); QgsSvgCacheEntry( const QString &path, double size, double strokeWidth, double widthScaleFactor, const QColor &fill, const QColor &stroke ); %Docstring Constructor. \param path Absolute path to SVG file (relative paths are not resolved). \param size \param strokeWidth width of stroke \param widthScaleFactor width scale factor \param fill color of fill \param stroke color of stroke %End ~QgsSvgCacheEntry(); QString path; %Docstring Absolute path to SVG file %End double size; //size in pixels (cast to int for QImage) double strokeWidth; double widthScaleFactor; QSizeF viewboxSize; %Docstring SVG viewbox size. .. versionadded:: 2.14 %End QColor fill; QColor stroke; QImage *image; QPicture *picture; QByteArray svgContent; QgsSvgCacheEntry *nextEntry; QgsSvgCacheEntry *previousEntry; bool operator==( const QgsSvgCacheEntry &other ) const; int dataSize() const; %Docstring Return memory usage in bytes :rtype: int %End private: QgsSvgCacheEntry( const QgsSvgCacheEntry &rh ); }; class QgsSvgCache : QObject { %Docstring A cache for images / pictures derived from svg files. This class supports parameter replacement in svg files according to the svg params specification (http://www.w3.org/TR/2009/WD-SVGParamPrimer-20090616/). Supported are the parameters 'fill-color', 'pen-color', 'outline-width', 'stroke-width'. E.g.