blob: 8d097344fc7a7c62e2a80e787f972ebc3433363d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#include <mbgl/layer/background_layer.hpp>
#include <mbgl/layer/background_layer_impl.hpp>
namespace mbgl {
BackgroundLayer::BackgroundLayer(const std::string& layerID)
: Layer(Type::Background, std::make_unique<Impl>())
, impl(static_cast<Impl*>(baseImpl.get())) {
impl->id = layerID;
}
BackgroundLayer::BackgroundLayer(const Impl& other)
: Layer(Type::Background, std::make_unique<Impl>(other))
, impl(static_cast<Impl*>(baseImpl.get())) {
}
BackgroundLayer::~BackgroundLayer() = default;
std::unique_ptr<Layer> BackgroundLayer::Impl::clone() const {
return std::make_unique<BackgroundLayer>(*this);
}
// Layout properties
// Paint properties
Function<Color> BackgroundLayer::getBackgroundColor() const {
return impl->paint.backgroundColor.values.at(ClassID::Default);
}
void BackgroundLayer::setBackgroundColor(Function<Color> value) {
impl->paint.backgroundColor.values.emplace(ClassID::Default, value);
}
Function<std::string> BackgroundLayer::getBackgroundPattern() const {
return impl->paint.backgroundPattern.values.at(ClassID::Default);
}
void BackgroundLayer::setBackgroundPattern(Function<std::string> value) {
impl->paint.backgroundPattern.values.emplace(ClassID::Default, value);
}
Function<float> BackgroundLayer::getBackgroundOpacity() const {
return impl->paint.backgroundOpacity.values.at(ClassID::Default);
}
void BackgroundLayer::setBackgroundOpacity(Function<float> value) {
impl->paint.backgroundOpacity.values.emplace(ClassID::Default, value);
}
} // namespace mbgl
|