mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
21 lines
447 B
Plaintext
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();
|
|
};
|