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/raster_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/raster_layer.hpp')
-rw-r--r-- | include/mbgl/layer/raster_layer.hpp | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/include/mbgl/layer/raster_layer.hpp b/include/mbgl/layer/raster_layer.hpp index 9dc27a274a..5d747737c0 100644 --- a/include/mbgl/layer/raster_layer.hpp +++ b/include/mbgl/layer/raster_layer.hpp @@ -3,6 +3,7 @@ #pragma once #include <mbgl/style/layer.hpp> +#include <mbgl/style/property_value.hpp> namespace mbgl { @@ -18,26 +19,26 @@ public: // Paint properties - Function<float> getRasterOpacity() const; - void setRasterOpacity(Function<float>); + PropertyValue<float> getRasterOpacity() const; + void setRasterOpacity(PropertyValue<float>); - Function<float> getRasterHueRotate() const; - void setRasterHueRotate(Function<float>); + PropertyValue<float> getRasterHueRotate() const; + void setRasterHueRotate(PropertyValue<float>); - Function<float> getRasterBrightnessMin() const; - void setRasterBrightnessMin(Function<float>); + PropertyValue<float> getRasterBrightnessMin() const; + void setRasterBrightnessMin(PropertyValue<float>); - Function<float> getRasterBrightnessMax() const; - void setRasterBrightnessMax(Function<float>); + PropertyValue<float> getRasterBrightnessMax() const; + void setRasterBrightnessMax(PropertyValue<float>); - Function<float> getRasterSaturation() const; - void setRasterSaturation(Function<float>); + PropertyValue<float> getRasterSaturation() const; + void setRasterSaturation(PropertyValue<float>); - Function<float> getRasterContrast() const; - void setRasterContrast(Function<float>); + PropertyValue<float> getRasterContrast() const; + void setRasterContrast(PropertyValue<float>); - Function<float> getRasterFadeDuration() const; - void setRasterFadeDuration(Function<float>); + PropertyValue<float> getRasterFadeDuration() const; + void setRasterFadeDuration(PropertyValue<float>); // Private implementation |