Skip to content

Commit a98d12e

Browse files
committedJun 3, 2019
Dox
1 parent 1bc716f commit a98d12e

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed
 

‎python/core/auto_generated/qgslabelsearchtree.sip.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212

1313

14+
1415
class QgsLabelSearchTree
1516
{
1617
%Docstring

‎python/core/auto_generated/qgspallabeling.sip.in

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,27 @@ class QgsLabelPosition
1919
#include "qgspallabeling.h"
2020
%End
2121
public:
22+
2223
QgsLabelPosition( QgsFeatureId id, double r, const QVector< QgsPointXY > &corners, const QgsRectangle &rect, double w, double h, const QString &layer, const QString &labeltext, const QFont &labelfont, bool upside_down, bool diagram = false, bool pinned = false, const QString &providerId = QString(),
2324
const QgsGeometry &labelGeometry = QgsGeometry() );
25+
%Docstring
26+
Constructor for QgsLabelPosition.
27+
28+
:param id: associated feature ID
29+
:param r: label rotation in degrees clockwise
30+
:param corners: corner points of label bounding box, in map units
31+
:param rect: label bounding box, in map units
32+
:param w: width of label, in map units
33+
:param h: height of label, in map units
34+
:param layer: ID of associated map layer
35+
:param labeltext: text rendered for label
36+
:param labelfont: font used to render label
37+
:param upside_down: ``True`` if label is upside down
38+
:param diagram: ``True`` if label is a diagram
39+
:param pinned: ``True`` if label has pinned placement
40+
:param providerId: ID of associated label provider
41+
:param labelGeometry: polygon geometry of label boundary
42+
%End
2443

2544
QgsLabelPosition();
2645
%Docstring

‎src/core/qgspallabeling.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,24 @@ class QgsExpressionContext;
7979
class CORE_EXPORT QgsLabelPosition
8080
{
8181
public:
82+
83+
/**
84+
* Constructor for QgsLabelPosition.
85+
* \param id associated feature ID
86+
* \param r label rotation in degrees clockwise
87+
* \param corners corner points of label bounding box, in map units
88+
* \param rect label bounding box, in map units
89+
* \param w width of label, in map units
90+
* \param h height of label, in map units
91+
* \param layer ID of associated map layer
92+
* \param labeltext text rendered for label
93+
* \param labelfont font used to render label
94+
* \param upside_down TRUE if label is upside down
95+
* \param diagram TRUE if label is a diagram
96+
* \param pinned TRUE if label has pinned placement
97+
* \param providerId ID of associated label provider
98+
* \param labelGeometry polygon geometry of label boundary
99+
*/
82100
QgsLabelPosition( QgsFeatureId id, double r, const QVector< QgsPointXY > &corners, const QgsRectangle &rect, double w, double h, const QString &layer, const QString &labeltext, const QFont &labelfont, bool upside_down, bool diagram = false, bool pinned = false, const QString &providerId = QString(),
83101
const QgsGeometry &labelGeometry = QgsGeometry() )
84102
: featureId( id )

0 commit comments

Comments
 (0)
Please sign in to comment.