mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	- code simplification (moving displayName() to the core class prevents us having to create lists of DecorationItem alongside lists of MapDecoration - Proper translation support for decoration names
		
			
				
	
	
		
			62 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			62 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/core/qgsmapdecoration.h                                          *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | 
						|
 ************************************************************************/
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
class QgsMapDecoration
 | 
						|
{
 | 
						|
%Docstring
 | 
						|
Interface for map decorations.
 | 
						|
 | 
						|
.. versionadded:: 3.0
 | 
						|
%End
 | 
						|
 | 
						|
%TypeHeaderCode
 | 
						|
#include "qgsmapdecoration.h"
 | 
						|
%End
 | 
						|
  public:
 | 
						|
 | 
						|
    QgsMapDecoration();
 | 
						|
%Docstring
 | 
						|
Constructor for QgsMapDecoration.
 | 
						|
%End
 | 
						|
 | 
						|
    virtual ~QgsMapDecoration();
 | 
						|
 | 
						|
    virtual void render( const QgsMapSettings &mapSettings, QgsRenderContext &context ) = 0;
 | 
						|
%Docstring
 | 
						|
Renders a map decoration.
 | 
						|
%End
 | 
						|
 | 
						|
    const QString displayName() const;
 | 
						|
%Docstring
 | 
						|
Returns the map decoration display name.
 | 
						|
 | 
						|
.. versionadded:: 3.14
 | 
						|
%End
 | 
						|
 | 
						|
  protected:
 | 
						|
 | 
						|
    void setDisplayName( const QString &name );
 | 
						|
%Docstring
 | 
						|
Sets the map decoration display ``name``.
 | 
						|
 | 
						|
.. versionadded:: 3.14
 | 
						|
%End
 | 
						|
 | 
						|
};
 | 
						|
 | 
						|
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/core/qgsmapdecoration.h                                          *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | 
						|
 ************************************************************************/
 |