QGIS API Documentation
3.34.0-Prizren (ffbdd678812)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
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
i
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 Symbols
3
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
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
x
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
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
x
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
src
core
qgscolorutils.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgscolorutils.h
3
---------------------------
4
begin : July 2022
5
copyright : (C) 2022 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSCOLORUTILS_H
19
#define QGSCOLORUTILS_H
20
21
#include "qgis_core.h"
22
#include "
qgis_sip.h
"
23
#include "
qgis.h
"
24
25
#include <QDomDocument>
26
#include <QDomElement>
27
28
class
QgsReadWriteContext
;
29
36
class
CORE_EXPORT
QgsColorUtils
37
{
38
public
:
39
54
static
void
writeXml(
const
QColor &color,
const
QString &identifier,
55
QDomDocument &document, QDomElement &element,
const
QgsReadWriteContext
&context );
56
69
static
QColor readXml(
const
QDomElement &element,
const
QString &identifier,
const
QgsReadWriteContext
&context );
70
81
static
QString colorToString(
const
QColor &color );
82
95
static
QColor colorFromString(
const
QString &
string
);
96
97
};
36
class
CORE_EXPORT
QgsColorUtils
{
…
};
98
99
#endif
// QGSCOLORUTILS_H
QgsColorUtils
Contains utility functions for working with colors.
Definition
qgscolorutils.h:37
QgsReadWriteContext
The class is used as a container of context for various read/write operations on other objects.
Definition
qgsreadwritecontext.h:35
qgis.h
qgis_sip.h
Generated on Mon Oct 30 2023 18:42:25 for QGIS API Documentation by
1.9.8