QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
e
f
g
h
k
l
m
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Functions
3
a
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
c
l
s
t
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
core
textrenderer
qgstextrendererutils.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgstextrendererutils.h
3
-----------------
4
begin : May 2020
5
copyright : (C) 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 QGSTEXTRENDERERUTILS_H
17
#define QGSTEXTRENDERERUTILS_H
18
19
#include "
qgis_sip.h
"
20
#include "qgis_core.h"
21
#include "
qgstextbackgroundsettings.h
"
22
#include "
qgstextshadowsettings.h
"
23
#include "
qgstextformat.h
"
24
31
class
CORE_EXPORT
QgsTextRendererUtils
32
{
33
public
:
34
38
static
QgsTextBackgroundSettings::ShapeType
decodeShapeType(
const
QString &
string
);
39
43
static
QgsTextBackgroundSettings::SizeType
decodeBackgroundSizeType(
const
QString &
string
);
44
48
static
QgsTextBackgroundSettings::RotationType
decodeBackgroundRotationType(
const
QString &
string
);
49
53
static
QgsTextShadowSettings::ShadowPlacement
decodeShadowPlacementType(
const
QString &
string
);
54
60
static
QString encodeTextOrientation(
QgsTextFormat::TextOrientation
orientation );
61
69
static
QgsTextFormat::TextOrientation
decodeTextOrientation(
const
QString &name,
bool
*ok =
nullptr
);
70
77
static
QgsUnitTypes::RenderUnit
convertFromOldLabelUnit(
int
val )
SIP_SKIP
;
78
85
static
QColor readColor(
QgsVectorLayer
*layer,
const
QString &property,
const
QColor &defaultColor = Qt::black,
bool
withAlpha =
true
)
SIP_SKIP
;
86
};
87
88
89
#endif // QGSTEXTRENDERERUTILS_H
QgsUnitTypes::RenderUnit
RenderUnit
Rendering size units.
Definition:
qgsunittypes.h:167
qgstextshadowsettings.h
qgstextbackgroundsettings.h
QgsTextBackgroundSettings::SizeType
SizeType
Methods for determining the background shape size.
Definition:
qgstextbackgroundsettings.h:66
QgsTextBackgroundSettings::RotationType
RotationType
Methods for determining the rotation of the background shape.
Definition:
qgstextbackgroundsettings.h:76
QgsTextShadowSettings::ShadowPlacement
ShadowPlacement
Placement positions for text shadow.
Definition:
qgstextshadowsettings.h:45
SIP_SKIP
#define SIP_SKIP
Definition:
qgis_sip.h:126
qgis_sip.h
QgsTextRendererUtils
Utility functions for text rendering.
Definition:
qgstextrendererutils.h:32
QgsVectorLayer
Represents a vector layer which manages a vector based data sets.
Definition:
qgsvectorlayer.h:387
QgsTextBackgroundSettings::ShapeType
ShapeType
Background shape types.
Definition:
qgstextbackgroundsettings.h:53
qgstextformat.h
QgsTextFormat::TextOrientation
TextOrientation
Text orientation.
Definition:
qgstextformat.h:45
Generated on Sat Oct 24 2020 17:43:09 for QGIS API Documentation by
1.8.20