16#ifndef QGSLAYOUTVIEWMOUSEEVENT_H
17#define QGSLAYOUTVIEWMOUSEEVENT_H
24class QGraphicsLineItem;
39 sipType = sipType_QgsLayoutViewMouseEvent;
62 void snapPoint( QGraphicsLineItem *horizontalSnapLine =
nullptr, QGraphicsLineItem *verticalSnapLine =
nullptr,
const QList<QgsLayoutItem *> &ignoreItems = QList<QgsLayoutItem *>() );
86 bool mSnapped =
false;
88 QPointF mSnappedPoint;
Base class for graphical items within a QgsLayout.
bool isSnapped() const
Returns true if point was snapped, e.g.
void snapPoint(QGraphicsLineItem *horizontalSnapLine=nullptr, QGraphicsLineItem *verticalSnapLine=nullptr, const QList< QgsLayoutItem * > &ignoreItems=QList< QgsLayoutItem * >())
Manually triggers a snap for the mouse event position using the layout's snapper.
QPointF snappedPoint() const
Returns the snapped event point location in layout coordinates.
QgsLayoutViewMouseEvent(QgsLayoutView *view, QMouseEvent *event, bool snap=false)
Constructor for QgsLayoutViewMouseEvent.
QPointF layoutPoint() const
Returns the event point location in layout coordinates.
A graphical widget to display and interact with QgsLayouts.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)