MapLibre Native Core
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
v
Typedefs
a
c
d
e
f
g
i
l
m
n
o
p
s
t
u
v
Enumerations
a
b
c
e
f
h
i
k
l
m
n
o
r
s
t
v
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
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
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
Related Functions
a
b
e
i
m
o
s
t
Files
File List
File Members
All
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
style_property.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
mbgl/util/feature.hpp
>
4
5
namespace
mbgl
{
6
namespace
style {
7
11
class
StyleProperty
{
12
public
:
13
enum class
Kind
: uint8_t {
Undefined
,
Constant
,
Expression
,
Transition
};
14
StyleProperty
(
Value
value_,
Kind
kind_) : value(
std
::move(value_)), kind(kind_) {}
15
StyleProperty
() =
default
;
16
const
Value
&
getValue
()
const
{
return
value; }
17
Value
&
getValue
() {
return
value; }
18
Kind
getKind
()
const
{
return
kind; }
19
20
private
:
21
Value
value;
22
Kind
kind =
Kind::Undefined
;
23
};
24
25
}
// namespace style
26
}
// namespace mbgl
mbgl::style::StyleProperty
Generic representation of a style property.
Definition:
style_property.hpp:11
mbgl::style::StyleProperty::getValue
Value & getValue()
Definition:
style_property.hpp:17
mbgl::style::StyleProperty::getKind
Kind getKind() const
Definition:
style_property.hpp:18
mbgl::style::StyleProperty::StyleProperty
StyleProperty()=default
mbgl::style::StyleProperty::StyleProperty
StyleProperty(Value value_, Kind kind_)
Definition:
style_property.hpp:14
mbgl::style::StyleProperty::Kind
Kind
Definition:
style_property.hpp:13
mbgl::style::StyleProperty::Kind::Expression
@ Expression
mbgl::style::StyleProperty::Kind::Transition
@ Transition
mbgl::style::StyleProperty::Kind::Constant
@ Constant
mbgl::style::StyleProperty::Kind::Undefined
@ Undefined
mbgl::style::StyleProperty::getValue
const Value & getValue() const
Definition:
style_property.hpp:16
feature.hpp
mbgl
Definition:
actor.hpp:15
mbgl::Value
mapbox::base::Value Value
Definition:
feature.hpp:11
std
Definition:
tile_id.hpp:256
include
mbgl
style
style_property.hpp
MapLibre website
|
GitHub repository