diff options
Diffstat (limited to 'include/mbgl/layer/background_layer.hpp')
-rw-r--r-- | include/mbgl/layer/background_layer.hpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/include/mbgl/layer/background_layer.hpp b/include/mbgl/layer/background_layer.hpp new file mode 100644 index 0000000000..79f24990e6 --- /dev/null +++ b/include/mbgl/layer/background_layer.hpp @@ -0,0 +1,39 @@ +// This file is generated. Do not edit. + +#pragma once + +#include <mbgl/style/layer.hpp> + +namespace mbgl { + +class BackgroundLayer : public Layer { +public: + BackgroundLayer(const std::string& layerID); + ~BackgroundLayer() final; + + // Paint properties + + Function<Color> getBackgroundColor() const; + void setBackgroundColor(Function<Color>); + + Function<std::string> getBackgroundPattern() const; + void setBackgroundPattern(Function<std::string>); + + Function<float> getBackgroundOpacity() const; + void setBackgroundOpacity(Function<float>); + + // Private implementation + + class Impl; + Impl* const impl; + + BackgroundLayer(const Impl&); + BackgroundLayer(const BackgroundLayer&) = delete; +}; + +template <> +inline bool Layer::is<BackgroundLayer>() const { + return type == Type::Background; +} + +} // namespace mbgl |