Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
create a core interface for QgsMapCanvas
- Loading branch information
Showing
6 changed files
with
75 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/qgsmapcanvasinterface.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
class QgsMapCanvasInterface | ||
{ | ||
%Docstring | ||
The QgsMapCanvasInterface class provides a simple interface to access | ||
core components of a map canvas. | ||
|
||
.. versionadded:: 3.6 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsmapcanvasinterface.h" | ||
%End | ||
public: | ||
explicit QgsMapCanvasInterface(); | ||
%Docstring | ||
Constructor of QgsMapCanvasInterface | ||
%End | ||
virtual ~QgsMapCanvasInterface(); | ||
|
||
virtual const QgsMapSettings &mapSettings() const = 0 /KeepReference/; | ||
%Docstring | ||
Returns the map settings | ||
%End | ||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/qgsmapcanvasinterface.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef QGSMAPCANVASINTERFACE_H | ||
#define QGSMAPCANVASINTERFACE_H | ||
|
||
#include "qgis_core.h" | ||
#include "qgis_sip.h" | ||
|
||
class QgsMapSettings; | ||
|
||
/** | ||
* The QgsMapCanvasInterface class provides a simple interface to access | ||
* core components of a map canvas. | ||
* \since QGIS 3.6 | ||
*/ | ||
class CORE_EXPORT QgsMapCanvasInterface | ||
{ | ||
public: | ||
//! Constructor of QgsMapCanvasInterface | ||
explicit QgsMapCanvasInterface() = default; | ||
virtual ~QgsMapCanvasInterface() = default; | ||
|
||
//! Returns the map settings | ||
virtual const QgsMapSettings &mapSettings() const = 0 SIP_KEEPREFERENCE; | ||
}; | ||
|
||
#endif // QGSMAPCANVASINTERFACE_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters