QGIS/python/gui/auto_generated/qgsmaptoolpan.sip.in
Nyall Dawson 99c8afe4e9 [FEATURE] Show the total pan distance and bearing in the status bar during
canvas pan operations

Allows users to know exactly how far (and in what direction) they've dragged
the map.
2019-12-06 04:50:17 +10:00

71 lines
2.1 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsmaptoolpan.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsMapToolPan : QgsMapTool
{
%Docstring
A map tool for panning the map.
.. seealso:: :py:class:`QgsMapTool`
%End
%TypeHeaderCode
#include "qgsmaptoolpan.h"
%End
public:
QgsMapToolPan( QgsMapCanvas *canvas );
%Docstring
constructor
%End
~QgsMapToolPan();
virtual void activate();
virtual void deactivate();
virtual Flags flags() const;
virtual void canvasPressEvent( QgsMapMouseEvent *e );
virtual void canvasMoveEvent( QgsMapMouseEvent *e );
virtual void canvasReleaseEvent( QgsMapMouseEvent *e );
virtual void canvasDoubleClickEvent( QgsMapMouseEvent *e );
virtual bool gestureEvent( QGestureEvent *e );
signals:
void panDistanceBearingChanged( double distance, QgsUnitTypes::DistanceUnit unit, double bearing );
%Docstring
Emitted whenever the distance or bearing of an in-progress panning
operation is changed.
This signal will be emitted during a pan operation as the user moves the map,
giving the total distance and bearing between the map position at the
start of the pan and the current pan position.
.. versionadded:: 3.12
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsmaptoolpan.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/