QGIS/python/gui/qgshighlight.sip
2014-01-26 18:36:29 +01:00

21 lines
447 B
Plaintext

class QgsHighlight : QgsMapCanvasItem
{
%TypeHeaderCode
#include <qgshighlight.h>
%End
public:
QgsHighlight( QgsMapCanvas *mapCanvas, QgsGeometry *geom, QgsVectorLayer *layer );
~QgsHighlight();
void setColor( const QColor & color );
/** Set width. Ignored in feature mode. */
void setWidth( int width );
protected:
virtual void paint( QPainter* p );
//! recalculates needed rectangle
void updateRect();
};