mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	reverting 3fb0f66 (followup #45348) Using --no-public-is-protected (default on Windows) also works on Linux and fixes #45331 too
		
			
				
	
	
		
			73 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			73 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
/************************************************************************
 | 
						|
 * 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
 | 
						|
{
 | 
						|
%Docstring(signature="appended")
 | 
						|
An annotation item that displays formatted text from a QTextDocument document.
 | 
						|
 | 
						|
.. versionadded:: 3.0
 | 
						|
%End
 | 
						|
 | 
						|
%TypeHeaderCode
 | 
						|
#include "qgstextannotation.h"
 | 
						|
%End
 | 
						|
  public:
 | 
						|
 | 
						|
    QgsTextAnnotation( QObject *parent /TransferThis/ = 0 );
 | 
						|
%Docstring
 | 
						|
Constructor for QgsTextAnnotation.
 | 
						|
%End
 | 
						|
 | 
						|
    virtual QgsTextAnnotation *clone() const /Factory/;
 | 
						|
 | 
						|
 | 
						|
    const QTextDocument *document() const;
 | 
						|
%Docstring
 | 
						|
Returns the text document which will be rendered
 | 
						|
within the annotation.
 | 
						|
 | 
						|
.. seealso:: :py:func:`setDocument`
 | 
						|
%End
 | 
						|
 | 
						|
    void setDocument( const QTextDocument *doc );
 | 
						|
%Docstring
 | 
						|
Sets the text document which will be rendered
 | 
						|
within the annotation. Ownership is not transferred.
 | 
						|
 | 
						|
.. seealso:: :py:func:`document`
 | 
						|
%End
 | 
						|
 | 
						|
    virtual void writeXml( QDomElement &elem, QDomDocument &doc, const QgsReadWriteContext &context ) const;
 | 
						|
 | 
						|
    virtual void readXml( const QDomElement &itemElem, const QgsReadWriteContext &context );
 | 
						|
 | 
						|
 | 
						|
    static QgsTextAnnotation *create() /Factory/;
 | 
						|
%Docstring
 | 
						|
Returns a new QgsTextAnnotation object.
 | 
						|
%End
 | 
						|
 | 
						|
  protected:
 | 
						|
 | 
						|
    virtual void renderAnnotation( QgsRenderContext &context, QSizeF size ) const;
 | 
						|
 | 
						|
 | 
						|
};
 | 
						|
 | 
						|
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/core/annotations/qgstextannotation.h                             *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | 
						|
 ************************************************************************/
 |