mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			91 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			91 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/gui/qgsmapcanvasannotationitem.h                                 *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | 
						|
 ************************************************************************/
 | 
						|
 | 
						|
 | 
						|
 | 
						|
%ModuleHeaderCode
 | 
						|
// For ConvertToSubClassCode.
 | 
						|
#include <qgsmapcanvasannotationitem.h>
 | 
						|
%End
 | 
						|
 | 
						|
 | 
						|
 | 
						|
class QgsMapCanvasAnnotationItem: QObject, QgsMapCanvasItem
 | 
						|
{
 | 
						|
%Docstring(signature="appended")
 | 
						|
An interactive map canvas item which displays a :py:class:`QgsAnnotation`.
 | 
						|
 | 
						|
.. versionadded:: 3.0
 | 
						|
%End
 | 
						|
 | 
						|
%TypeHeaderCode
 | 
						|
#include "qgsmapcanvasannotationitem.h"
 | 
						|
%End
 | 
						|
%ConvertToSubClassCode
 | 
						|
    if ( dynamic_cast<QgsMapCanvasAnnotationItem *>( sipCpp ) )
 | 
						|
      sipType = sipType_QgsMapCanvasAnnotationItem;
 | 
						|
    else
 | 
						|
      sipType = nullptr;
 | 
						|
%End
 | 
						|
  public:
 | 
						|
 | 
						|
    enum MouseMoveAction
 | 
						|
    {
 | 
						|
      NoAction,
 | 
						|
      MoveMapPosition,
 | 
						|
      MoveFramePosition,
 | 
						|
      ResizeFrameUp,
 | 
						|
      ResizeFrameDown,
 | 
						|
      ResizeFrameLeft,
 | 
						|
      ResizeFrameRight,
 | 
						|
      ResizeFrameLeftUp,
 | 
						|
      ResizeFrameRightUp,
 | 
						|
      ResizeFrameLeftDown,
 | 
						|
      ResizeFrameRightDown
 | 
						|
    };
 | 
						|
 | 
						|
    QgsMapCanvasAnnotationItem( QgsAnnotation *annotation /Transfer/, QgsMapCanvas *mapCanvas /TransferThis/ );
 | 
						|
%Docstring
 | 
						|
Constructor for QgsMapCanvasAnnotationItem.
 | 
						|
%End
 | 
						|
 | 
						|
 | 
						|
    QgsAnnotation *annotation();
 | 
						|
%Docstring
 | 
						|
Returns the item's annotation.
 | 
						|
%End
 | 
						|
 | 
						|
    virtual void updatePosition();
 | 
						|
 | 
						|
 | 
						|
    virtual QRectF boundingRect() const;
 | 
						|
 | 
						|
 | 
						|
    virtual void paint( QPainter *painter );
 | 
						|
 | 
						|
 | 
						|
    MouseMoveAction moveActionForPosition( QPointF pos ) const;
 | 
						|
%Docstring
 | 
						|
Returns the mouse move behavior for a given position in scene coordinates
 | 
						|
%End
 | 
						|
 | 
						|
    Qt::CursorShape cursorShapeForAction( MouseMoveAction moveAction ) const;
 | 
						|
%Docstring
 | 
						|
Returns matching cursor shape for a mouse move action.
 | 
						|
%End
 | 
						|
 | 
						|
};
 | 
						|
 | 
						|
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/gui/qgsmapcanvasannotationitem.h                                 *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | 
						|
 ************************************************************************/
 |