summaryrefslogtreecommitdiff
path: root/include/mbgl/style/style_property.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/style/style_property.hpp')
-rw-r--r--include/mbgl/style/style_property.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/mbgl/style/style_property.hpp b/include/mbgl/style/style_property.hpp
new file mode 100644
index 0000000000..43787c7919
--- /dev/null
+++ b/include/mbgl/style/style_property.hpp
@@ -0,0 +1,20 @@
+#pragma once
+
+#include <mbgl/util/feature.hpp>
+
+namespace mbgl {
+namespace style {
+
+/**
+ * @brief Generic representation of a style property.
+ */
+struct StyleProperty {
+ enum class Kind : uint8_t { Undefined, Constant, Expression, Transition };
+ StyleProperty(Value value_, Kind kind_) : value(std::move(value_)), kind(kind_) {}
+ StyleProperty() = default;
+ const Value value;
+ const Kind kind = Kind::Undefined;
+};
+
+} // namespace style
+} // namespace mbgl