16 #ifndef QGSMAPMOUSEEVENT_H 17 #define QGSMAPMOUSEEVENT_H 19 #include <QMouseEvent> 40 if ( dynamic_cast<QgsMapMouseEvent *>( sipCpp ) )
41 sipType = sipType_QgsMapMouseEvent;
68 Qt::MouseButtons buttons = Qt::NoButton, Qt::KeyboardModifiers modifiers = Qt::NoModifier );
82 bool isSnapped()
const {
return mSnapMatch.isValid(); }
131 QPoint mapToPixelCoordinates(
const QgsPointXY &point );
134 bool mHasCachedSnapResult;
154 #endif // QGSMAPMOUSEEVENT_H
A class to represent a 2D point.
A QgsMapMouseEvent is the result of a user interaction with the mouse on a QgsMapCanvas.
bool isSnapped() const
Returns true if there is a snapped point cached.
Map canvas is a class for displaying all GIS data types on a canvas.
QgsPointLocator::Match mapPointMatch() const
Returns the matching data from the most recently snapped point.
QgsPointXY originalMapPoint() const
Returns the original, unmodified map point of the mouse cursor.
QPoint originalPixelPoint() const
The unsnapped, real mouse cursor position in pixel coordinates.
QgsPointXY mapPoint() const
mapPoint returns the point in coordinates
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
QPoint pixelPoint() const
The snapped mouse cursor in pixel coordinates.