diff options
Diffstat (limited to 'src/mbgl/layer/background_layer_properties.hpp')
-rw-r--r-- | src/mbgl/layer/background_layer_properties.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/mbgl/layer/background_layer_properties.hpp b/src/mbgl/layer/background_layer_properties.hpp new file mode 100644 index 0000000000..5e388a7928 --- /dev/null +++ b/src/mbgl/layer/background_layer_properties.hpp @@ -0,0 +1,25 @@ +// 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 { + +class StyleCascadeParameters; +class StyleCalculationParameters; + +class BackgroundPaintProperties { +public: + void parse(const JSValue&); + void cascade(const StyleCascadeParameters&); + bool recalculate(const StyleCalculationParameters&); + + PaintProperty<Color> backgroundColor { {{ 0, 0, 0, 1 }} }; + PaintProperty<std::string, CrossFadedFunctionEvaluator> backgroundPattern { "" }; + PaintProperty<float> backgroundOpacity { 1 }; +}; + +} // namespace mbgl |