mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
19 lines
406 B
Plaintext
19 lines
406 B
Plaintext
|
class QgsHighlight : public QgsMapCanvasItem
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <qgshighlight.h>
|
||
|
%End
|
||
|
public:
|
||
|
QgsHighlight( QgsMapCanvas *mapCanvas, QgsGeometry *geom, QgsVectorLayer *layer );
|
||
|
~QgsHighlight();
|
||
|
|
||
|
void setColor( const QColor & color );
|
||
|
void setWidth( int width );
|
||
|
|
||
|
protected:
|
||
|
virtual void paint( QPainter* p );
|
||
|
|
||
|
//! recalculates needed rectangle
|
||
|
void updateRect();
|
||
|
};
|