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

#pragma once

#include <mbgl/style/layout_property.hpp>
#include <mbgl/style/paint_property.hpp>
#include <mbgl/util/rapidjson.hpp>

namespace mbgl {
namespace style {

class CascadeParameters;
class CalculationParameters;

class CirclePaintProperties {
public:
    void parse(const JSValue&);
    void cascade(const CascadeParameters&);
    bool recalculate(const CalculationParameters&);

    PaintProperty<float> circleRadius { 5 };
    PaintProperty<Color> circleColor { {{ 0, 0, 0, 1 }} };
    PaintProperty<float> circleBlur { 0 };
    PaintProperty<float> circleOpacity { 1 };
    PaintProperty<std::array<float, 2>> circleTranslate { {{ 0, 0 }} };
    PaintProperty<TranslateAnchorType> circleTranslateAnchor { TranslateAnchorType::Map };
};

} // namespace style
} // namespace mbgl