From 1733e29f0ac7ffe7c1aa5bf54d8f710befcdd2ea Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Thu, 26 Sep 2019 14:43:11 +0300 Subject: [core] Separate header for StyleProperty --- include/mbgl/style/layer.hpp | 10 +--------- include/mbgl/style/style_property.hpp | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 9 deletions(-) create mode 100644 include/mbgl/style/style_property.hpp (limited to 'include') diff --git a/include/mbgl/style/layer.hpp b/include/mbgl/style/layer.hpp index 11fd429be9..849cb436be 100644 --- a/include/mbgl/style/layer.hpp +++ b/include/mbgl/style/layer.hpp @@ -1,8 +1,8 @@ #pragma once #include +#include #include -#include #include #include @@ -66,14 +66,6 @@ struct LayerTypeInfo { const enum class TileKind : uint8_t { Geometry, Raster, RasterDEM, NotRequired } tileKind; }; -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; -}; - /** * The runtime representation of a [layer](https://www.mapbox.com/mapbox-gl-style-spec/#layers) from the Mapbox Style * Specification. 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 + +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 -- cgit v1.2.1