summaryrefslogtreecommitdiff
path: root/include/mbgl/style
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-03-06 14:22:11 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-03-18 01:26:22 +0200
commit4909169996b333bdb004508544d4b97da1c45412 (patch)
tree9e03d3e63f03015307c878dbfdb26de53532d056 /include/mbgl/style
parent94de5d7f4afdee7391b93e562438feff48b30add (diff)
downloadqtlocation-mapboxgl-4909169996b333bdb004508544d4b97da1c45412.tar.gz
[core] Added user-defined transition properties when modifying classes
Diffstat (limited to 'include/mbgl/style')
-rw-r--r--include/mbgl/style/property_transition.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/mbgl/style/property_transition.hpp b/include/mbgl/style/property_transition.hpp
new file mode 100644
index 0000000000..fa837f11a3
--- /dev/null
+++ b/include/mbgl/style/property_transition.hpp
@@ -0,0 +1,20 @@
+#ifndef MBGL_STYLE_PROPERTY_TRANSITION
+#define MBGL_STYLE_PROPERTY_TRANSITION
+
+#include <mbgl/util/chrono.hpp>
+#include <mbgl/util/optional.hpp>
+
+namespace mbgl {
+
+class PropertyTransition {
+public:
+ PropertyTransition(const optional<Duration>& duration_ = {}, const optional<Duration>& delay_ = {})
+ : duration(duration_), delay(delay_) {}
+
+ optional<Duration> duration;
+ optional<Duration> delay;
+};
+
+} // namespace mbgl
+
+#endif // MBGL_STYLE_PROPERTY_TRANSITION