QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
16 #ifndef QGSMAPMOUSEEVENT_H
17 #define QGSMAPMOUSEEVENT_H
19 #include <QMouseEvent>
41 sipType = sipType_QgsMapMouseEvent;
68 Qt::MouseButtons buttons = Qt::NoButton, Qt::KeyboardModifiers modifiers = Qt::NoModifier );
82 bool isSnapped()
const {
return mSnapMatch.isValid(); }
140 QPoint mapToPixelCoordinates(
const QgsPointXY &point );
143 bool mHasCachedSnapResult;
163 #endif // QGSMAPMOUSEEVENT_H
QgsPointXY mapPoint() const
mapPoint returns the point in coordinates
const QgsCoordinateReferenceSystem & crs
QPoint pixelPoint() const
The snapped mouse cursor in pixel coordinates.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
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.
bool isSnapped() const
Returns true if there is a snapped point cached.
QPoint originalPixelPoint() const
The unsnapped, real mouse cursor position in pixel coordinates.