QGIS/python/gui/layout/qgslayoutviewmouseevent.sip

59 lines
2.0 KiB
Plaintext
Raw Normal View History

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/layout/qgslayoutviewmouseevent.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsLayoutViewMouseEvent : QMouseEvent
{
%Docstring
A QgsLayoutViewMouseEvent is the result of a user interaction with the mouse on a QgsLayoutView.
It is sent whenever the user moves, clicks, releases or double clicks the mouse.
In addition to the coordinates in pixel space it also knows the coordinates the layout space.
.. versionadded:: 3.0
%End
%TypeHeaderCode
#include "qgslayoutviewmouseevent.h"
%End
%ConvertToSubClassCode
if ( dynamic_cast<QgsLayoutViewMouseEvent *>( sipCpp ) )
sipType = sipType_QgsLayoutViewMouseEvent;
else
sipType = 0;
%End
public:
QgsLayoutViewMouseEvent( QgsLayoutView *view, QMouseEvent *event );
%Docstring
Constructor for QgsLayoutViewMouseEvent. Should only be required to be called from the QgsLayoutView.
\param view The view in which the event occurred.
\param event The original mouse event
%End
QPointF layoutPoint() const;
%Docstring
Returns the event point location in layout coordinates.
.. seealso:: pos()
:rtype: QPointF
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/layout/qgslayoutviewmouseevent.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/