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