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/line_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/line_layer.hpp')
-rw-r--r-- | include/mbgl/layer/line_layer.hpp | 57 |
1 files changed, 29 insertions, 28 deletions
diff --git a/include/mbgl/layer/line_layer.hpp b/include/mbgl/layer/line_layer.hpp index 0f898d3c69..b438799116 100644 --- a/include/mbgl/layer/line_layer.hpp +++ b/include/mbgl/layer/line_layer.hpp @@ -3,6 +3,7 @@ #pragma once #include <mbgl/style/layer.hpp> +#include <mbgl/style/property_value.hpp> #include <vector> @@ -21,49 +22,49 @@ public: // Layout properties - Function<LineCapType> getLineCap() const; - void setLineCap(Function<LineCapType>); + PropertyValue<LineCapType> getLineCap() const; + void setLineCap(PropertyValue<LineCapType>); - Function<LineJoinType> getLineJoin() const; - void setLineJoin(Function<LineJoinType>); + PropertyValue<LineJoinType> getLineJoin() const; + void setLineJoin(PropertyValue<LineJoinType>); - Function<float> getLineMiterLimit() const; - void setLineMiterLimit(Function<float>); + PropertyValue<float> getLineMiterLimit() const; + void setLineMiterLimit(PropertyValue<float>); - Function<float> getLineRoundLimit() const; - void setLineRoundLimit(Function<float>); + PropertyValue<float> getLineRoundLimit() const; + void setLineRoundLimit(PropertyValue<float>); // Paint properties - Function<float> getLineOpacity() const; - void setLineOpacity(Function<float>); + PropertyValue<float> getLineOpacity() const; + void setLineOpacity(PropertyValue<float>); - Function<Color> getLineColor() const; - void setLineColor(Function<Color>); + PropertyValue<Color> getLineColor() const; + void setLineColor(PropertyValue<Color>); - Function<std::array<float, 2>> getLineTranslate() const; - void setLineTranslate(Function<std::array<float, 2>>); + PropertyValue<std::array<float, 2>> getLineTranslate() const; + void setLineTranslate(PropertyValue<std::array<float, 2>>); - Function<TranslateAnchorType> getLineTranslateAnchor() const; - void setLineTranslateAnchor(Function<TranslateAnchorType>); + PropertyValue<TranslateAnchorType> getLineTranslateAnchor() const; + void setLineTranslateAnchor(PropertyValue<TranslateAnchorType>); - Function<float> getLineWidth() const; - void setLineWidth(Function<float>); + PropertyValue<float> getLineWidth() const; + void setLineWidth(PropertyValue<float>); - Function<float> getLineGapWidth() const; - void setLineGapWidth(Function<float>); + PropertyValue<float> getLineGapWidth() const; + void setLineGapWidth(PropertyValue<float>); - Function<float> getLineOffset() const; - void setLineOffset(Function<float>); + PropertyValue<float> getLineOffset() const; + void setLineOffset(PropertyValue<float>); - Function<float> getLineBlur() const; - void setLineBlur(Function<float>); + PropertyValue<float> getLineBlur() const; + void setLineBlur(PropertyValue<float>); - Function<std::vector<float>> getLineDasharray() const; - void setLineDasharray(Function<std::vector<float>>); + PropertyValue<std::vector<float>> getLineDasharray() const; + void setLineDasharray(PropertyValue<std::vector<float>>); - Function<std::string> getLinePattern() const; - void setLinePattern(Function<std::string>); + PropertyValue<std::string> getLinePattern() const; + void setLinePattern(PropertyValue<std::string>); // Private implementation |