// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`. #include #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); } std::unique_ptr BackgroundLayer::Impl::cloneRef(const std::string& id_) const { auto result = std::make_unique(*this); result->impl->id = id_; result->impl->paint = BackgroundPaintProperties(); return std::move(result); } void BackgroundLayer::Impl::stringifyLayout(rapidjson::Writer&) const { } // Layout properties // Paint properties PropertyValue BackgroundLayer::getDefaultBackgroundColor() { return { Color::black() }; } PropertyValue BackgroundLayer::getBackgroundColor(const optional& klass) const { return impl->paint.get(klass); } void BackgroundLayer::setBackgroundColor(PropertyValue value, const optional& klass) { if (value == getBackgroundColor(klass)) return; impl->paint.set(value, klass); impl->observer->onLayerPaintPropertyChanged(*this); } PropertyValue BackgroundLayer::getDefaultBackgroundPattern() { return { "" }; } PropertyValue BackgroundLayer::getBackgroundPattern(const optional& klass) const { return impl->paint.get(klass); } void BackgroundLayer::setBackgroundPattern(PropertyValue value, const optional& klass) { if (value == getBackgroundPattern(klass)) return; impl->paint.set(value, klass); impl->observer->onLayerPaintPropertyChanged(*this); } PropertyValue BackgroundLayer::getDefaultBackgroundOpacity() { return { 1 }; } PropertyValue BackgroundLayer::getBackgroundOpacity(const optional& klass) const { return impl->paint.get(klass); } void BackgroundLayer::setBackgroundOpacity(PropertyValue value, const optional& klass) { if (value == getBackgroundOpacity(klass)) return; impl->paint.set(value, klass); impl->observer->onLayerPaintPropertyChanged(*this); } } // namespace style } // namespace mbgl