// 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(LayerType::Background, std::make_unique()) , impl(static_cast(baseImpl.get())) { impl->id = layerID; } BackgroundLayer::BackgroundLayer(const Impl& other) : Layer(LayerType::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->cascading = BackgroundPaintProperties::Cascading(); 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->cascading.template get().get(klass); } void BackgroundLayer::setBackgroundColor(PropertyValue value, const optional& klass) { if (value == getBackgroundColor(klass)) return; impl->cascading.template get().set(value, klass); impl->observer->onLayerPaintPropertyChanged(*this); } void BackgroundLayer::setBackgroundColorTransition(const TransitionOptions& value, const optional& klass) { impl->cascading.template get().setTransition(value, klass); } TransitionOptions BackgroundLayer::getBackgroundColorTransition(const optional& klass) const { return impl->cascading.template get().getTransition(klass); } PropertyValue BackgroundLayer::getDefaultBackgroundPattern() { return { "" }; } PropertyValue BackgroundLayer::getBackgroundPattern(const optional& klass) const { return impl->cascading.template get().get(klass); } void BackgroundLayer::setBackgroundPattern(PropertyValue value, const optional& klass) { if (value == getBackgroundPattern(klass)) return; impl->cascading.template get().set(value, klass); impl->observer->onLayerPaintPropertyChanged(*this); } void BackgroundLayer::setBackgroundPatternTransition(const TransitionOptions& value, const optional& klass) { impl->cascading.template get().setTransition(value, klass); } TransitionOptions BackgroundLayer::getBackgroundPatternTransition(const optional& klass) const { return impl->cascading.template get().getTransition(klass); } PropertyValue BackgroundLayer::getDefaultBackgroundOpacity() { return { 1 }; } PropertyValue BackgroundLayer::getBackgroundOpacity(const optional& klass) const { return impl->cascading.template get().get(klass); } void BackgroundLayer::setBackgroundOpacity(PropertyValue value, const optional& klass) { if (value == getBackgroundOpacity(klass)) return; impl->cascading.template get().set(value, klass); impl->observer->onLayerPaintPropertyChanged(*this); } void BackgroundLayer::setBackgroundOpacityTransition(const TransitionOptions& value, const optional& klass) { impl->cascading.template get().setTransition(value, klass); } TransitionOptions BackgroundLayer::getBackgroundOpacityTransition(const optional& klass) const { return impl->cascading.template get().getTransition(klass); } } // namespace style } // namespace mbgl