diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2018-06-28 14:58:52 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2018-06-29 15:38:11 -0700 |
commit | 6dfe56510caa87b3e0fdbb8256d13ec955764d53 (patch) | |
tree | 0df4859ec90a88d2fca83c18c2aef28924db25ae /include/mbgl | |
parent | 542a4b4501794653b55fd1ffc60cb01348d8fc88 (diff) | |
download | qtlocation-mapboxgl-6dfe56510caa87b3e0fdbb8256d13ec955764d53.tar.gz |
[darwin] Replace use of *Stops with expressions DSL
Diffstat (limited to 'include/mbgl')
-rw-r--r-- | include/mbgl/style/expression/dsl.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/mbgl/style/expression/dsl.hpp b/include/mbgl/style/expression/dsl.hpp index b4e1ed436e..8a5d1d84f5 100644 --- a/include/mbgl/style/expression/dsl.hpp +++ b/include/mbgl/style/expression/dsl.hpp @@ -5,6 +5,7 @@ #include <mbgl/style/expression/interpolator.hpp> #include <memory> +#include <initializer_list> namespace mbgl { namespace style { @@ -16,6 +17,8 @@ namespace dsl { std::unique_ptr<Expression> literal(const char* value); std::unique_ptr<Expression> literal(Value value); +std::unique_ptr<Expression> literal(std::initializer_list<double> value); +std::unique_ptr<Expression> literal(std::initializer_list<const char *> value); std::unique_ptr<Expression> number(std::unique_ptr<Expression>); std::unique_ptr<Expression> string(std::unique_ptr<Expression>); @@ -38,6 +41,10 @@ std::unique_ptr<Expression> gt(std::unique_ptr<Expression>, std::unique_ptr<Expression> lt(std::unique_ptr<Expression>, std::unique_ptr<Expression>); +std::unique_ptr<Expression> step(std::unique_ptr<Expression> input, + std::unique_ptr<Expression> output0, + double input1, std::unique_ptr<Expression> output1); + Interpolator linear(); Interpolator exponential(double base); Interpolator cubicBezier(double x1, double y1, double x2, double y2); |