16#ifndef QGSLAYOUTVIEWMOUSEEVENT_H
17#define QGSLAYOUTVIEWMOUSEEVENT_H
24class QGraphicsLineItem;
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;
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)