16 #ifndef QGSLAYOUTVIEWTOOLADDITEM_H    17 #define QGSLAYOUTVIEWTOOLADDITEM_H    44     int itemMetadataId() 
const;
    54     void setItemMetadataId( 
int metadataId );
    70     bool mDrawing = 
false;
    72     int mItemMetadataId = -1;
    75     std::unique_ptr< QgsLayoutViewRubberBand > mRubberBand;
    78     QPoint mMousePressStartPos;
    81     QPointF mRubberBandStartPos;
    85 #endif // QGSLAYOUTVIEWTOOLADDITEM_H 
A graphical widget to display and interact with QgsLayouts. 
A QgsLayoutViewMouseEvent is the result of a user interaction with the mouse on a QgsLayoutView...