QGIS API Documentation 3.29.0-Master (da8bb1db43)
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
31class CORE_EXPORT QgsLabeling
32{
33 public:
34
39 {
40 OnLine = 1,
41 AboveLine = 2,
42 BelowLine = 4,
43 MapOrientation = 8,
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
61Q_DECLARE_OPERATORS_FOR_FLAGS( QgsLabeling::LinePlacementFlags )
62Q_DECLARE_OPERATORS_FOR_FLAGS( QgsLabeling::PolygonPlacementFlags )
63
64#endif // QGSLABELING_H
Contains constants and enums relating to labeling.
Definition: qgslabeling.h:32
LinePlacementFlag
Line placement flags, which control how candidates are generated for a linear feature.
Definition: qgslabeling.h:39
PolygonPlacementFlag
Polygon placement flags, which control how candidates are generated for a polygon feature.
Definition: qgslabeling.h:53
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.