QGIS API Documentation  3.12.1-BucureČ™ti (121cc00ff0)
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 
38  enum class LinePlacementFlag : int
39  {
40  OnLine = 1,
41  AboveLine = 2,
42  BelowLine = 4,
43  MapOrientation = 8,
44  };
45  Q_DECLARE_FLAGS( LinePlacementFlags, LinePlacementFlag )
46 
47 };
48 
49 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsLabeling::LinePlacementFlags )
50 
51 #endif // QGSLABELING_H
LinePlacementFlag
Line placement flags, which control how candidates are generated for a linear feature.
Definition: qgslabeling.h:38
Contains constants and enums relating to labeling.
Definition: qgslabeling.h:31