QGIS/python/gui/qgsmapcanvasannotationitem.sip.in

80 lines
2.2 KiB
Plaintext
Raw Normal View History

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-05-23 14:49:24 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
An interactive map canvas item which displays a QgsAnnotation.
2017-05-23 14:49:24 +02:00
.. versionadded:: 3.0
%End
2017-05-23 14:49:24 +02:00
%TypeHeaderCode
#include "qgsmapcanvasannotationitem.h"
%End
public:
enum MouseMoveAction
{
NoAction,
MoveMapPosition,
MoveFramePosition,
ResizeFrameUp,
ResizeFrameDown,
ResizeFrameLeft,
ResizeFrameRight,
ResizeFrameLeftUp,
ResizeFrameRightUp,
ResizeFrameLeftDown,
2017-05-23 14:49:24 +02:00
ResizeFrameRightDown
};
QgsMapCanvasAnnotationItem( QgsAnnotation *annotation /Transfer/, QgsMapCanvas *mapCanvas /TransferThis/ );
2017-05-23 14:49:24 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsMapCanvasAnnotationItem.
2017-05-23 14:49:24 +02:00
%End
QgsAnnotation *annotation();
2017-05-23 14:49:24 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the item's annotation.
2017-05-23 14:49:24 +02:00
%End
virtual void updatePosition();
2017-05-23 14:49:24 +02:00
virtual QRectF boundingRect() const;
2017-05-23 14:49:24 +02:00
virtual void paint( QPainter *painter );
MouseMoveAction moveActionForPosition( QPointF pos ) const;
2017-05-23 14:49:24 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the mouse move behavior for a given position in scene coordinates
2017-05-23 14:49:24 +02:00
%End
Qt::CursorShape cursorShapeForAction( MouseMoveAction moveAction ) const;
2017-05-23 14:49:24 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns matching cursor shape for a mouse move action.
2017-05-23 14:49:24 +02:00
%End
};
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 *
************************************************************************/