QGIS/python/core/annotations/qgssvgannotation.sip

66 lines
2.0 KiB
Plaintext
Raw Normal View History

2017-04-02 21:24:19 +10:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/annotations/qgssvgannotation.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsSvgAnnotation: QgsAnnotation
{
2017-04-02 21:24:19 +10:00
%Docstring
An annotation which renders the contents of an SVG file.
.. versionadded:: 3.0
%End
%TypeHeaderCode
2017-04-02 21:24:19 +10:00
#include "qgssvgannotation.h"
%End
public:
2017-04-02 21:24:19 +10:00
QgsSvgAnnotation( QObject *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsSvgAnnotation.
%End
2017-04-20 13:39:36 +10:00
virtual QgsSvgAnnotation *clone() const /Factory/;
2017-04-02 21:24:19 +10:00
virtual void writeXml( QDomElement &elem, QDomDocument &doc ) const;
virtual void readXml( const QDomElement &itemElem, const QDomDocument &doc );
2017-04-02 21:24:19 +10:00
void setFilePath( const QString &file );
%Docstring
Sets the file path for the source SVG file.
2017-04-03 11:59:45 +10:00
\see filePath()
2017-04-02 21:24:19 +10:00
%End
QString filePath() const;
2017-04-02 21:24:19 +10:00
%Docstring
Returns the file path for the source SVG file.
2017-04-03 11:59:45 +10:00
\see setFilePath()
:rtype: str
2017-04-02 21:24:19 +10:00
%End
2017-04-02 21:24:19 +10:00
static QgsSvgAnnotation *create() /Factory/;
%Docstring
Returns a new QgsSvgAnnotation object.
:rtype: QgsSvgAnnotation
2017-04-02 21:24:19 +10:00
%End
protected:
virtual void renderAnnotation( QgsRenderContext &context, QSizeF size ) const;
};
2017-04-02 21:24:19 +10:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/annotations/qgssvgannotation.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/