QGIS/python/core/annotations/qgshtmlannotation.sip

84 lines
2.2 KiB
Plaintext
Raw Normal View History

2017-04-02 21:24:19 +10:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/annotations/qgshtmlannotation.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsHtmlAnnotation: QgsAnnotation
{
%Docstring
2017-12-15 10:36:55 -04:00
An annotation item that embeds HTML content.
.. versionadded:: 3.0
%End
2017-04-02 21:24:19 +10:00
%TypeHeaderCode
2017-04-02 21:24:19 +10:00
#include "qgshtmlannotation.h"
%End
public:
2017-04-02 21:24:19 +10:00
QgsHtmlAnnotation( QObject *parent /TransferThis/ = 0 );
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsHtmlAnnotation.
2017-04-02 21:24:19 +10:00
%End
2017-04-20 13:39:36 +10:00
virtual QgsHtmlAnnotation *clone() const /Factory/;
2017-04-20 13:48:50 +02:00
virtual QSizeF minimumFrameSize() const;
2017-04-20 13:48:50 +02:00
2017-04-02 21:24:19 +10:00
void setSourceFile( const QString &htmlFile );
%Docstring
2017-12-15 10:36:55 -04:00
Sets the file path for the source HTML file.
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`sourceFile()`
2017-04-02 21:24:19 +10:00
%End
QString sourceFile() const;
2017-04-02 21:24:19 +10:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the file path for the source HTML file.
:rtype: str
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setSourceFile()`
2017-04-02 21:24:19 +10:00
%End
virtual void writeXml( QDomElement &elem, QDomDocument &doc, const QgsReadWriteContext &context ) const;
virtual void readXml( const QDomElement &itemElem, const QgsReadWriteContext &context );
virtual void setAssociatedFeature( const QgsFeature &feature );
2017-04-20 13:48:50 +02:00
2017-04-02 21:24:19 +10:00
static QgsHtmlAnnotation *create() /Factory/;
%Docstring
2017-12-15 10:36:55 -04:00
Returns a new QgsHtmlAnnotation object.
:rtype: QgsHtmlAnnotation
2017-04-02 21:24:19 +10:00
%End
protected:
virtual void renderAnnotation( QgsRenderContext &context, QSizeF size ) const;
2017-04-20 13:48:50 +02:00
};
2017-04-02 21:24:19 +10:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/annotations/qgshtmlannotation.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/