summaryrefslogtreecommitdiff
path: root/src/mbgl/style/layers/line_layer_properties.hpp
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-01-24 10:40:50 +0200
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-04-17 17:21:41 +0300
commit1a66a02097f0e3c95a4d06610fc0b7609f6d77b9 (patch)
treee6a0c00bb8b45497df58fc5088319800139c10ee /src/mbgl/style/layers/line_layer_properties.hpp
parentcd5f87e9d2f373d1a6c7797de767e545b52cddcc (diff)
downloadqtlocation-mapboxgl-1a66a02097f0e3c95a4d06610fc0b7609f6d77b9.tar.gz
[core] Introduce `style::LayerProperties` interface and its implementations
Diffstat (limited to 'src/mbgl/style/layers/line_layer_properties.hpp')
-rw-r--r--src/mbgl/style/layers/line_layer_properties.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mbgl/style/layers/line_layer_properties.hpp b/src/mbgl/style/layers/line_layer_properties.hpp
index 33d7eddbe8..5fcbecf3be 100644
--- a/src/mbgl/style/layers/line_layer_properties.hpp
+++ b/src/mbgl/style/layers/line_layer_properties.hpp
@@ -3,6 +3,8 @@
#pragma once
#include <mbgl/style/types.hpp>
+#include <mbgl/style/layer_properties.hpp>
+#include <mbgl/style/layers/line_layer.hpp>
#include <mbgl/style/layout_property.hpp>
#include <mbgl/style/paint_property.hpp>
#include <mbgl/style/properties.hpp>
@@ -102,5 +104,20 @@ class LinePaintProperties : public Properties<
LineGradient
> {};
+class LineLayerProperties final : public LayerProperties {
+public:
+ explicit LineLayerProperties(Immutable<LineLayer::Impl>);
+ LineLayerProperties(
+ Immutable<LineLayer::Impl>,
+ CrossfadeParameters,
+ LinePaintProperties::PossiblyEvaluated);
+ ~LineLayerProperties() override;
+
+ const LineLayer::Impl& layerImpl() const;
+ // Data members.
+ CrossfadeParameters crossfade;
+ LinePaintProperties::PossiblyEvaluated evaluated;
+};
+
} // namespace style
} // namespace mbgl