summaryrefslogtreecommitdiff
path: root/src/mbgl/style/layers/fill_layer_properties.hpp
blob: 09aa432d236ebca28cc48512e7b0ff0f8e794326 (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/layout_property.hpp>
#include <mbgl/style/paint_property.hpp>
#include <mbgl/util/rapidjson.hpp>

namespace mbgl {
namespace style {

class CascadeParameters;
class CalculationParameters;

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

    PaintProperty<bool> fillAntialias { true };
    PaintProperty<float> fillOpacity { 1 };
    PaintProperty<Color> fillColor { { 0, 0, 0, 1 } };
    PaintProperty<Color> fillOutlineColor { { 0, 0, 0, -1 } };
    PaintProperty<std::array<float, 2>> fillTranslate { {{ 0, 0 }} };
    PaintProperty<TranslateAnchorType> fillTranslateAnchor { TranslateAnchorType::Map };
    PaintProperty<std::string, CrossFadedPropertyEvaluator> fillPattern { "" };
};

} // namespace style
} // namespace mbgl