QGIS/python/core/auto_generated/qgsmapdecoration.sip.in
nirvn de799721aa Map decoration cleanup:
- 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
2020-05-21 09:05:28 +10:00

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 *
************************************************************************/