summaryrefslogtreecommitdiff
path: root/src/mbgl/style/light.cpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-05-10 12:20:15 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-05-15 09:45:55 -0700
commite473f2dcceb31eda816ac9e6c972d7e0a8f1dceb (patch)
treea80415390c30f4e4efd47da25f6fee776730465d /src/mbgl/style/light.cpp
parentda4d735e2c465195e0fb9531ce9d4d7c5c9e6503 (diff)
downloadqtlocation-mapboxgl-e473f2dcceb31eda816ac9e6c972d7e0a8f1dceb.tar.gz
[core] cascade ⇢ transition / cascading ⇢ transitionable
Diffstat (limited to 'src/mbgl/style/light.cpp')
-rw-r--r--src/mbgl/style/light.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mbgl/style/light.cpp b/src/mbgl/style/light.cpp
index 651a323da4..352dc4d942 100644
--- a/src/mbgl/style/light.cpp
+++ b/src/mbgl/style/light.cpp
@@ -39,15 +39,15 @@ void Light::setAnchor(PropertyValue<LightAnchorType> property) {
observer->onLightChanged(*this);
}
-void Light::setAnchorTransition(const TransitionOptions& transition) {
+void Light::setAnchorTransition(const TransitionOptions& options) {
auto impl_ = mutableImpl();
- impl_->properties.template get<LightAnchor>().transition = transition;
+ impl_->properties.template get<LightAnchor>().options = options;
impl = std::move(impl_);
observer->onLightChanged(*this);
}
TransitionOptions Light::getAnchorTransition() const {
- return impl->properties.template get<LightAnchor>().transition;
+ return impl->properties.template get<LightAnchor>().options;
}
Position Light::getDefaultPosition() {
@@ -65,15 +65,15 @@ void Light::setPosition(PropertyValue<Position> property) {
observer->onLightChanged(*this);
}
-void Light::setPositionTransition(const TransitionOptions& transition) {
+void Light::setPositionTransition(const TransitionOptions& options) {
auto impl_ = mutableImpl();
- impl_->properties.template get<LightPosition>().transition = transition;
+ impl_->properties.template get<LightPosition>().options = options;
impl = std::move(impl_);
observer->onLightChanged(*this);
}
TransitionOptions Light::getPositionTransition() const {
- return impl->properties.template get<LightPosition>().transition;
+ return impl->properties.template get<LightPosition>().options;
}
Color Light::getDefaultColor() {
@@ -91,15 +91,15 @@ void Light::setColor(PropertyValue<Color> property) {
observer->onLightChanged(*this);
}
-void Light::setColorTransition(const TransitionOptions& transition) {
+void Light::setColorTransition(const TransitionOptions& options) {
auto impl_ = mutableImpl();
- impl_->properties.template get<LightColor>().transition = transition;
+ impl_->properties.template get<LightColor>().options = options;
impl = std::move(impl_);
observer->onLightChanged(*this);
}
TransitionOptions Light::getColorTransition() const {
- return impl->properties.template get<LightColor>().transition;
+ return impl->properties.template get<LightColor>().options;
}
float Light::getDefaultIntensity() {
@@ -117,15 +117,15 @@ void Light::setIntensity(PropertyValue<float> property) {
observer->onLightChanged(*this);
}
-void Light::setIntensityTransition(const TransitionOptions& transition) {
+void Light::setIntensityTransition(const TransitionOptions& options) {
auto impl_ = mutableImpl();
- impl_->properties.template get<LightIntensity>().transition = transition;
+ impl_->properties.template get<LightIntensity>().options = options;
impl = std::move(impl_);
observer->onLightChanged(*this);
}
TransitionOptions Light::getIntensityTransition() const {
- return impl->properties.template get<LightIntensity>().transition;
+ return impl->properties.template get<LightIntensity>().options;
}