From 20712b7c84bd91bcf658d74bf25f3460354b5fd6 Mon Sep 17 00:00:00 2001 From: Fabian Guerra Soto Date: Fri, 10 Mar 2017 11:33:31 -0800 Subject: Per-attribute transition properties on MGLStyleLayer (#8225) * [ios, macos] new struct MGLTransition * [ios] MGLTransition struct moved to MGLTypes.h * [ios] MGLTransition implemented for style layer properties * [ios, macos] added support for getting property transitions * [ios, macos] updated to MGLDurationFromTimeInterval and MGLTimeIntervalFromDuration * [ios, macos] added transition properties test * [ios, macos] modified key strings imp * [ios, macos] The impl for transition properties were changed to public methods * [ios, macos] Changelog update * [ios] Fixed layer space formatting * [core] The name space was fixed for getters that returned TransitionOptions * [ios, macos] Added rawLayer transition property tests * [ios] Added a factory method for MGLTransition and transition-related methods to NSValue(MGLAdditions) * [ios, macos] Copyedited changelog blurbs about transition properties --- include/mbgl/style/layers/background_layer.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/mbgl/style/layers/background_layer.hpp') diff --git a/include/mbgl/style/layers/background_layer.hpp b/include/mbgl/style/layers/background_layer.hpp index 94076931e7..0de3302b7a 100644 --- a/include/mbgl/style/layers/background_layer.hpp +++ b/include/mbgl/style/layers/background_layer.hpp @@ -25,16 +25,19 @@ public: PropertyValue getBackgroundColor(const optional& klass = {}) const; void setBackgroundColor(PropertyValue, const optional& klass = {}); void setBackgroundColorTransition(const TransitionOptions&, const optional& klass = {}); + TransitionOptions getBackgroundColorTransition(const optional& klass = {}) const; static PropertyValue getDefaultBackgroundPattern(); PropertyValue getBackgroundPattern(const optional& klass = {}) const; void setBackgroundPattern(PropertyValue, const optional& klass = {}); void setBackgroundPatternTransition(const TransitionOptions&, const optional& klass = {}); + TransitionOptions getBackgroundPatternTransition(const optional& klass = {}) const; static PropertyValue getDefaultBackgroundOpacity(); PropertyValue getBackgroundOpacity(const optional& klass = {}) const; void setBackgroundOpacity(PropertyValue, const optional& klass = {}); void setBackgroundOpacityTransition(const TransitionOptions&, const optional& klass = {}); + TransitionOptions getBackgroundOpacityTransition(const optional& klass = {}) const; // Private implementation -- cgit v1.2.1