Skip to content

Commit 8fdf34b

Browse files
m-kuhnnyalldawson
authored andcommitted
Doxygen for QgsRubberband
1 parent fc7df32 commit 8fdf34b

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

python/gui/auto_generated/qgsrubberband.sip.in

+7-3
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,17 @@ for tracking the mouse while drawing polylines or polygons.
4646
%Docstring
4747
Creates a new RubberBand.
4848

49-
:param mapCanvas: The map canvas to draw onto. It's CRS will be used map points onto screen coordinates.
50-
:param geometryType: Defines how the data should be drawn onto the screen. (Use Qgis.Line, Qgis.Polygon or Qgis.Point)
49+
:param mapCanvas: The map canvas to draw onto.
50+
Its CRS will be used map points onto screen coordinates.
51+
The ownership is transferred to this canvas.
52+
:param geometryType: Defines how the data should be drawn onto the screen.
53+
QgsWkbTypes.LineGeometry, QgsWkbTypes.PolygonGeometry or QgsWkbTypes.PointGeometry
5154
%End
5255

5356
void setColor( const QColor &color );
5457
%Docstring
55-
Sets the color for the rubberband
58+
Sets the color for the rubberband.
59+
Shorthand method to set fill and stroke color with a single call.
5660

5761
:param color: The color used to render this rubberband
5862
%End

src/gui/qgsrubberband.h

+7-3
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,17 @@ class GUI_EXPORT QgsRubberBand: public QgsMapCanvasItem
8787

8888
/**
8989
* Creates a new RubberBand.
90-
* \param mapCanvas The map canvas to draw onto. It's CRS will be used map points onto screen coordinates.
91-
* \param geometryType Defines how the data should be drawn onto the screen. (Use Qgis::Line, Qgis::Polygon or Qgis::Point)
90+
* \param mapCanvas The map canvas to draw onto.
91+
* Its CRS will be used map points onto screen coordinates.
92+
* The ownership is transferred to this canvas.
93+
* \param geometryType Defines how the data should be drawn onto the screen.
94+
* QgsWkbTypes::LineGeometry, QgsWkbTypes::PolygonGeometry or QgsWkbTypes::PointGeometry
9295
*/
9396
QgsRubberBand( QgsMapCanvas *mapCanvas SIP_TRANSFERTHIS, QgsWkbTypes::GeometryType geometryType = QgsWkbTypes::LineGeometry );
9497

9598
/**
96-
* Sets the color for the rubberband
99+
* Sets the color for the rubberband.
100+
* Shorthand method to set fill and stroke color with a single call.
97101
* \param color The color used to render this rubberband
98102
*/
99103
void setColor( const QColor &color );

0 commit comments

Comments
 (0)