QGIS/python/gui/auto_generated/qgsvertexmarker.sip.in

116 lines
2.7 KiB
Plaintext
Raw Normal View History

2017-04-30 16:51:18 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsvertexmarker.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
%ModuleHeaderCode
// For ConvertToSubClassCode.
#include <qgsvertexmarker.h>
%End
class QgsVertexMarker : QgsMapCanvasItem
{
2017-04-30 16:51:18 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
A class for marking vertices of features using e.g. circles or 'x'.
%End
2017-04-30 16:51:18 +02:00
%TypeHeaderCode
#include "qgsvertexmarker.h"
%End
%ConvertToSubClassCode
if ( dynamic_cast<QgsVertexMarker *>( sipCpp ) )
sipType = sipType_QgsVertexMarker;
else
sipType = nullptr;
2017-04-30 16:51:18 +02:00
%End
public:
enum IconType
{
ICON_NONE,
ICON_CROSS,
ICON_X,
2016-02-14 03:50:23 +01:00
ICON_BOX,
ICON_CIRCLE,
ICON_DOUBLE_TRIANGLE,
};
QgsVertexMarker( QgsMapCanvas *mapCanvas /TransferThis/ );
void setCenter( const QgsPointXY &point );
void setIconType( int iconType );
void setIconSize( int iconSize );
2017-04-30 16:51:18 +02:00
void setColor( const QColor &color );
2017-04-30 16:51:18 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Sets the stroke ``color`` for the marker.
.. seealso:: :py:func:`color`
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`setFillColor`
2017-04-30 16:51:18 +02:00
%End
QColor color() const;
2017-04-30 16:51:18 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the stroke color for the marker.
.. seealso:: :py:func:`setColor`
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`fillColor`
2017-12-15 10:36:55 -04:00
2017-04-30 16:51:18 +02:00
.. versionadded:: 3.0
%End
void setFillColor( const QColor &color );
2017-04-30 16:51:18 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Sets the fill ``color`` for the marker. This setting only
applies to some icon types.
.. seealso:: :py:func:`fillColor`
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`setColor`
2018-05-28 11:31:08 -04:00
.. versionadded:: 3.0
2017-04-30 16:51:18 +02:00
%End
QColor fillColor() const;
2017-04-30 16:51:18 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the fill ``color`` for the marker. This setting only
applies to some icon types.
.. seealso:: :py:func:`setFillColor`
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`color`
2018-05-28 11:31:08 -04:00
.. versionadded:: 3.0
2017-04-30 16:51:18 +02:00
%End
void setPenWidth( int width );
2017-04-30 16:51:18 +02:00
virtual void paint( QPainter *p );
virtual QRectF boundingRect() const;
virtual void updatePosition();
2017-04-30 16:51:18 +02:00
};
2017-04-30 16:51:18 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsvertexmarker.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/