diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-04-25 13:59:09 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-06-02 14:51:39 -0700 |
commit | cadc617c762d453cca2c9bac41f9c1db984c5fac (patch) | |
tree | 5a15363a54ef81b0106693dd83c70bfdf7761393 /include/mbgl/layer/fill_layer.hpp | |
parent | ba4a8a97316d65ab595bb7edf759f463bbd10049 (diff) | |
download | qtlocation-mapboxgl-cadc617c762d453cca2c9bac41f9c1db984c5fac.tar.gz |
[core] Introduce PropertyValue<T>
PropertyValue<T> represents the three possible types of style property value: undefined, constant, or function.
Diffstat (limited to 'include/mbgl/layer/fill_layer.hpp')
-rw-r--r-- | include/mbgl/layer/fill_layer.hpp | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/include/mbgl/layer/fill_layer.hpp b/include/mbgl/layer/fill_layer.hpp index dc0752f9e2..76c043957d 100644 --- a/include/mbgl/layer/fill_layer.hpp +++ b/include/mbgl/layer/fill_layer.hpp @@ -3,6 +3,7 @@ #pragma once #include <mbgl/style/layer.hpp> +#include <mbgl/style/property_value.hpp> namespace mbgl { @@ -19,26 +20,26 @@ public: // Paint properties - Function<bool> getFillAntialias() const; - void setFillAntialias(Function<bool>); + PropertyValue<bool> getFillAntialias() const; + void setFillAntialias(PropertyValue<bool>); - Function<float> getFillOpacity() const; - void setFillOpacity(Function<float>); + PropertyValue<float> getFillOpacity() const; + void setFillOpacity(PropertyValue<float>); - Function<Color> getFillColor() const; - void setFillColor(Function<Color>); + PropertyValue<Color> getFillColor() const; + void setFillColor(PropertyValue<Color>); - Function<Color> getFillOutlineColor() const; - void setFillOutlineColor(Function<Color>); + PropertyValue<Color> getFillOutlineColor() const; + void setFillOutlineColor(PropertyValue<Color>); - Function<std::array<float, 2>> getFillTranslate() const; - void setFillTranslate(Function<std::array<float, 2>>); + PropertyValue<std::array<float, 2>> getFillTranslate() const; + void setFillTranslate(PropertyValue<std::array<float, 2>>); - Function<TranslateAnchorType> getFillTranslateAnchor() const; - void setFillTranslateAnchor(Function<TranslateAnchorType>); + PropertyValue<TranslateAnchorType> getFillTranslateAnchor() const; + void setFillTranslateAnchor(PropertyValue<TranslateAnchorType>); - Function<std::string> getFillPattern() const; - void setFillPattern(Function<std::string>); + PropertyValue<std::string> getFillPattern() const; + void setFillPattern(PropertyValue<std::string>); // Private implementation |