mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
class QgsHighlight : QgsMapCanvasItem
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgshighlight.h>
|
|
%End
|
|
public:
|
|
QgsHighlight( QgsMapCanvas *mapCanvas, QgsGeometry *geom, QgsVectorLayer *layer );
|
|
~QgsHighlight();
|
|
|
|
/** Set line/outline to color, polygon fill to color with alpha = 63.
|
|
* This is legacy function, use setFillColor() after setColor() if different fill color is required. */
|
|
void setColor( const QColor & color );
|
|
|
|
/** Set polygons fill color.
|
|
* @note: added in version 2.3 */
|
|
void setFillColor( const QColor & fillColor );
|
|
|
|
/** Set width. Ignored in feature mode. */
|
|
void setWidth( int width );
|
|
|
|
/** Set line / outline buffer in millimeters.
|
|
* @note: added in version 2.3 */
|
|
void setBuffer( double buffer );
|
|
|
|
/** Set minimum line / outline width in millimeters.
|
|
* @note: added in version 2.3 */
|
|
void setMinWidth( double width );
|
|
|
|
const QgsMapLayer *layer() const;
|
|
|
|
protected:
|
|
virtual void paint( QPainter* p );
|
|
|
|
//! recalculates needed rectangle
|
|
void updateRect();
|
|
};
|