2017-05-23 14:49:24 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsmapcanvasannotationitem.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsMapCanvasAnnotationItem: QObject, QgsMapCanvasItem
|
2017-01-26 18:02:52 +10:00
|
|
|
{
|
2017-05-23 14:49:24 +02:00
|
|
|
%Docstring
|
|
|
|
An interactive map canvas item which displays a QgsAnnotation.
|
|
|
|
.. versionadded:: 3.0
|
2017-01-26 18:02:52 +10:00
|
|
|
%End
|
|
|
|
|
2017-05-23 14:49:24 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsmapcanvasannotationitem.h"
|
|
|
|
%End
|
2017-01-26 18:02:52 +10:00
|
|
|
public:
|
|
|
|
|
|
|
|
enum MouseMoveAction
|
|
|
|
{
|
|
|
|
NoAction,
|
|
|
|
MoveMapPosition,
|
|
|
|
MoveFramePosition,
|
|
|
|
ResizeFrameUp,
|
|
|
|
ResizeFrameDown,
|
|
|
|
ResizeFrameLeft,
|
|
|
|
ResizeFrameRight,
|
|
|
|
ResizeFrameLeftUp,
|
|
|
|
ResizeFrameRightUp,
|
|
|
|
ResizeFrameLeftDown,
|
2017-05-23 14:49:24 +02:00
|
|
|
ResizeFrameRightDown
|
2017-01-26 18:02:52 +10:00
|
|
|
};
|
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsMapCanvasAnnotationItem( QgsAnnotation *annotation /Transfer/, QgsMapCanvas *mapCanvas /TransferThis/ );
|
2017-05-23 14:49:24 +02:00
|
|
|
%Docstring
|
|
|
|
Constructor for QgsMapCanvasAnnotationItem.
|
|
|
|
%End
|
|
|
|
|
2017-01-26 18:02:52 +10:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsAnnotation *annotation();
|
2017-05-23 14:49:24 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the item's annotation.
|
|
|
|
:rtype: QgsAnnotation
|
|
|
|
%End
|
|
|
|
|
|
|
|
virtual void updatePosition();
|
|
|
|
|
2017-01-26 18:02:52 +10:00
|
|
|
|
2017-05-23 14:49:24 +02:00
|
|
|
virtual QRectF boundingRect() const;
|
2017-01-26 18:02:52 +10:00
|
|
|
|
|
|
|
|
2017-05-23 14:49:24 +02:00
|
|
|
virtual void paint( QPainter *painter );
|
|
|
|
|
2017-01-26 18:02:52 +10:00
|
|
|
|
|
|
|
MouseMoveAction moveActionForPosition( QPointF pos ) const;
|
2017-05-23 14:49:24 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the mouse move behavior for a given position in scene coordinates
|
|
|
|
:rtype: MouseMoveAction
|
|
|
|
%End
|
2017-01-26 18:02:52 +10:00
|
|
|
|
|
|
|
Qt::CursorShape cursorShapeForAction( MouseMoveAction moveAction ) const;
|
2017-05-23 14:49:24 +02:00
|
|
|
%Docstring
|
|
|
|
Returns matching cursor shape for a mouse move action.
|
|
|
|
:rtype: Qt.CursorShape
|
|
|
|
%End
|
2017-01-26 18:02:52 +10:00
|
|
|
|
|
|
|
};
|
2017-05-23 14:49:24 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsmapcanvasannotationitem.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|