summaryrefslogtreecommitdiff
path: root/platform/android/src/style/functions/exponential_stops.hpp
diff options
context:
space:
mode:
authorIvo van Dongen <info@ivovandongen.nl>2017-02-09 17:34:28 +0200
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-02-09 11:16:26 -0600
commitc65e8bfa62907fe27f23952f6ae949736c52c6c0 (patch)
treeb9fb2401627bdc67c3eb042dc109f9c52dafaf17 /platform/android/src/style/functions/exponential_stops.hpp
parentf35ca0d9dfc8a6ba88273edbeda43e633ae0adce (diff)
downloadqtlocation-mapboxgl-c65e8bfa62907fe27f23952f6ae949736c52c6c0.tar.gz
[android] Refactor composite stop types and conversions
Diffstat (limited to 'platform/android/src/style/functions/exponential_stops.hpp')
-rw-r--r--platform/android/src/style/functions/exponential_stops.hpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/platform/android/src/style/functions/exponential_stops.hpp b/platform/android/src/style/functions/exponential_stops.hpp
new file mode 100644
index 0000000000..391d723cef
--- /dev/null
+++ b/platform/android/src/style/functions/exponential_stops.hpp
@@ -0,0 +1,24 @@
+#pragma once
+
+#include <mbgl/util/noncopyable.hpp>
+#include <jni/jni.hpp>
+
+#include "../../java/lang.hpp"
+#include "stop.hpp"
+
+namespace mbgl {
+namespace android {
+
+class ExponentialStops : private mbgl::util::noncopyable {
+public:
+ static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/functions/stops/ExponentialStops"; };
+
+ static jni::Object<ExponentialStops> New(jni::JNIEnv&, jni::Object<java::lang::Float>, jni::Array<jni::Object<Stop>>);
+
+ static jni::Class<ExponentialStops> javaClass;
+
+ static void registerNative(jni::JNIEnv&);
+};
+
+} // namespace android
+} // namespace mbgl