QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
qgslabeling.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgslabeling.h
3  --------------------------
4  Date : January 2020
5  Copyright : (C) 2020 by Nyall Dawson
6  Email : nyall dot dawson at gmail dot com
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef QGSLABELING_H
17 #define QGSLABELING_H
18 
19 #include "qgis_core.h"
20 #include "qgis_sip.h"
21 #include <QFlags>
22 
31 class CORE_EXPORT QgsLabeling
32 {
33  public:
34 
39  {
40  OnLine = 1,
41  AboveLine = 2,
42  BelowLine = 4,
44  };
45  Q_DECLARE_FLAGS( LinePlacementFlags, LinePlacementFlag )
46 
47 
53  {
54  AllowPlacementOutsideOfPolygon = 1 << 0,
55  AllowPlacementInsideOfPolygon = 1 << 1,
56  };
57  Q_DECLARE_FLAGS( PolygonPlacementFlags, PolygonPlacementFlag )
58 
59 };
60 
61 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsLabeling::LinePlacementFlags )
62 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsLabeling::PolygonPlacementFlags )
63 
64 #endif // QGSLABELING_H
MapOrientation
MapOrientation
Signifies that the AboveLine and BelowLine flags should respect the map's orientation rather than the...
Definition: qgspallabeling.h:280
AboveLine
AboveLine
Labels can be placed above a line feature.
Definition: qgspallabeling.h:274
QgsLabeling
Contains constants and enums relating to labeling.
Definition: qgslabeling.h:32
qgis_sip.h
Q_DECLARE_OPERATORS_FOR_FLAGS
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsField::ConfigurationFlags) CORE_EXPORT QDataStream &operator<<(QDataStream &out
Writes the field to stream out. QGIS version compatibility is not guaranteed.
QgsLabeling::PolygonPlacementFlag
PolygonPlacementFlag
Polygon placement flags, which control how candidates are generated for a polygon feature.
Definition: qgslabeling.h:53
OnLine
OnLine
Labels can be placed directly over a line feature.
Definition: qgspallabeling.h:273
QgsLabeling::LinePlacementFlag
LinePlacementFlag
Line placement flags, which control how candidates are generated for a linear feature.
Definition: qgslabeling.h:39
BelowLine
BelowLine
Labels can be placed below a line feature.
Definition: qgspallabeling.h:277