summaryrefslogtreecommitdiff
path: root/src/mbgl/style/layers/background_layer_properties.hpp
blob: 792bf3de94958ce7a1eb65e4c81a78509f5a30fa (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
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.

#pragma once

#include <mbgl/style/types.hpp>
#include <mbgl/style/layout_property.hpp>
#include <mbgl/style/paint_property.hpp>

namespace mbgl {
namespace style {

struct BackgroundColor : PaintProperty<Color> {
    static Color defaultValue() { return Color::black(); }
};

struct BackgroundPattern : CrossFadedPaintProperty<std::string> {
    static std::string defaultValue() { return ""; }
};

struct BackgroundOpacity : PaintProperty<float> {
    static float defaultValue() { return 1; }
};

class BackgroundPaintProperties : public PaintProperties<
    BackgroundColor,
    BackgroundPattern,
    BackgroundOpacity
> {};

} // namespace style
} // namespace mbgl