16 #ifndef QGSLAYOUTVIEWMOUSEEVENT_H 17 #define QGSLAYOUTVIEWMOUSEEVENT_H 19 #include <QMouseEvent> 24 class QGraphicsLineItem;
40 if ( dynamic_cast<QgsLayoutViewMouseEvent *>( sipCpp ) )
41 sipType = sipType_QgsLayoutViewMouseEvent;
65 void snapPoint( QGraphicsLineItem *horizontalSnapLine =
nullptr, QGraphicsLineItem *verticalSnapLine =
nullptr,
66 const QList<QgsLayoutItem *> &ignoreItems = QList< QgsLayoutItem * >() );
71 QPointF layoutPoint()
const;
91 bool mSnapped =
false;
93 QPointF mSnappedPoint;
97 #endif // QGSLAYOUTVIEWMOUSEEVENT_H Base class for graphical items within a QgsLayout.
A graphical widget to display and interact with QgsLayouts.
bool isSnapped() const
Returns true if point was snapped, e.g.
A QgsLayoutViewMouseEvent is the result of a user interaction with the mouse on a QgsLayoutView...
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
QPointF snappedPoint() const
Returns the snapped event point location in layout coordinates.