QGIS/python/core/annotations/qgstextannotation.sip

70 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/qgstextannotation.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsTextAnnotation: QgsAnnotation
{
2017-04-02 21:24:19 +10:00
%Docstring
An annotation item that displays formatted text from a QTextDocument document.
.. versionadded:: 3.0
%End
%TypeHeaderCode
2017-04-02 21:24:19 +10:00
#include "qgstextannotation.h"
%End
public:
2017-04-02 21:24:19 +10:00
QgsTextAnnotation( QObject *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsTextAnnotation.
%End
2017-04-20 13:39:36 +10:00
virtual QgsTextAnnotation *clone() const /Factory/;
2017-04-20 13:48:50 +02:00
2017-04-02 21:24:19 +10:00
const QTextDocument *document() const;
%Docstring
Returns the text document which will be rendered
within the annotation.
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setDocument()`
:rtype: QTextDocument
2017-04-02 21:24:19 +10:00
%End
2017-04-02 21:24:19 +10:00
void setDocument( const QTextDocument *doc );
%Docstring
Sets the text document which will be rendered
within the annotation. Ownership is not transferred.
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`document()`
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 );
2017-04-02 21:24:19 +10:00
static QgsTextAnnotation *create() /Factory/;
%Docstring
Returns a new QgsTextAnnotation object.
:rtype: QgsTextAnnotation
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/qgstextannotation.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/