From cadc617c762d453cca2c9bac41f9c1db984c5fac Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Mon, 25 Apr 2016 13:59:09 -0700 Subject: [core] Introduce PropertyValue PropertyValue represents the three possible types of style property value: undefined, constant, or function. --- include/mbgl/layer/circle_layer.hpp | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'include/mbgl/layer/circle_layer.hpp') diff --git a/include/mbgl/layer/circle_layer.hpp b/include/mbgl/layer/circle_layer.hpp index 14b9da895f..28e5c2fa7a 100644 --- a/include/mbgl/layer/circle_layer.hpp +++ b/include/mbgl/layer/circle_layer.hpp @@ -3,6 +3,7 @@ #pragma once #include +#include namespace mbgl { @@ -19,23 +20,23 @@ public: // Paint properties - Function getCircleRadius() const; - void setCircleRadius(Function); + PropertyValue getCircleRadius() const; + void setCircleRadius(PropertyValue); - Function getCircleColor() const; - void setCircleColor(Function); + PropertyValue getCircleColor() const; + void setCircleColor(PropertyValue); - Function getCircleBlur() const; - void setCircleBlur(Function); + PropertyValue getCircleBlur() const; + void setCircleBlur(PropertyValue); - Function getCircleOpacity() const; - void setCircleOpacity(Function); + PropertyValue getCircleOpacity() const; + void setCircleOpacity(PropertyValue); - Function> getCircleTranslate() const; - void setCircleTranslate(Function>); + PropertyValue> getCircleTranslate() const; + void setCircleTranslate(PropertyValue>); - Function getCircleTranslateAnchor() const; - void setCircleTranslateAnchor(Function); + PropertyValue getCircleTranslateAnchor() const; + void setCircleTranslateAnchor(PropertyValue); // Private implementation -- cgit v1.2.1