// This file is generated. Do not edit. #include #include #include namespace mbgl { namespace style { static LightObserver nullObserver; Light::Light() : impl(makeMutable()), observer(&nullObserver) { } Light::~Light() = default; void Light::setObserver(LightObserver* observer_) { observer = observer_ ? observer_ : &nullObserver; } Mutable Light::mutableImpl() const { return makeMutable(*impl); } LightAnchorType Light::getDefaultAnchor() { return LightAnchor::defaultValue(); } PropertyValue Light::getAnchor() const { return impl->properties.template get().value; } void Light::setAnchor(PropertyValue property) { auto impl_ = mutableImpl(); impl_->properties.template get().value = property; impl = std::move(impl_); observer->onLightChanged(*this); } void Light::setAnchorTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->properties.template get().options = options; impl = std::move(impl_); observer->onLightChanged(*this); } TransitionOptions Light::getAnchorTransition() const { return impl->properties.template get().options; } Position Light::getDefaultPosition() { return LightPosition::defaultValue(); } PropertyValue Light::getPosition() const { return impl->properties.template get().value; } void Light::setPosition(PropertyValue property) { auto impl_ = mutableImpl(); impl_->properties.template get().value = property; impl = std::move(impl_); observer->onLightChanged(*this); } void Light::setPositionTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->properties.template get().options = options; impl = std::move(impl_); observer->onLightChanged(*this); } TransitionOptions Light::getPositionTransition() const { return impl->properties.template get().options; } Color Light::getDefaultColor() { return LightColor::defaultValue(); } PropertyValue Light::getColor() const { return impl->properties.template get().value; } void Light::setColor(PropertyValue property) { auto impl_ = mutableImpl(); impl_->properties.template get().value = property; impl = std::move(impl_); observer->onLightChanged(*this); } void Light::setColorTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->properties.template get().options = options; impl = std::move(impl_); observer->onLightChanged(*this); } TransitionOptions Light::getColorTransition() const { return impl->properties.template get().options; } float Light::getDefaultIntensity() { return LightIntensity::defaultValue(); } PropertyValue Light::getIntensity() const { return impl->properties.template get().value; } void Light::setIntensity(PropertyValue property) { auto impl_ = mutableImpl(); impl_->properties.template get().value = property; impl = std::move(impl_); observer->onLightChanged(*this); } void Light::setIntensityTransition(const TransitionOptions& options) { auto impl_ = mutableImpl(); impl_->properties.template get().options = options; impl = std::move(impl_); observer->onLightChanged(*this); } TransitionOptions Light::getIntensityTransition() const { return impl->properties.template get().options; } } // namespace style } // namespace mbgl