// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`. #include #include namespace mbgl { namespace style { BackgroundLayer::BackgroundLayer(const std::string& layerID) : Layer(Type::Background, std::make_unique()) , impl(static_cast(baseImpl.get())) { impl->id = layerID; } BackgroundLayer::BackgroundLayer(const Impl& other) : Layer(Type::Background, std::make_unique(other)) , impl(static_cast(baseImpl.get())) { } BackgroundLayer::~BackgroundLayer() = default; std::unique_ptr BackgroundLayer::Impl::clone() const { return std::make_unique(*this); } // Layout properties // Paint properties PropertyValue BackgroundLayer::getBackgroundColor() const { return impl->paint.backgroundColor.get(); } void BackgroundLayer::setBackgroundColor(PropertyValue value) { impl->paint.backgroundColor.set(value); } PropertyValue BackgroundLayer::getBackgroundPattern() const { return impl->paint.backgroundPattern.get(); } void BackgroundLayer::setBackgroundPattern(PropertyValue value) { impl->paint.backgroundPattern.set(value); } PropertyValue BackgroundLayer::getBackgroundOpacity() const { return impl->paint.backgroundOpacity.get(); } void BackgroundLayer::setBackgroundOpacity(PropertyValue value) { impl->paint.backgroundOpacity.set(value); } } // namespace style } // namespace mbgl