blob: 7b745e15110e6850d38609c944f4c393cf78d6dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#pragma once
#include <mbgl/style/property_value.hpp>
#include <mbgl/renderer/property_evaluator.hpp>
#include <mbgl/renderer/data_driven_property_evaluator.hpp>
namespace mbgl {
namespace style {
template <class T>
class LayoutProperty {
public:
using EvaluatorType = PropertyEvaluator<T>;
using Type = T;
static constexpr bool IsDataDriven = false;
};
template <class T>
class DataDrivenLayoutProperty {
public:
using EvaluatorType = DataDrivenPropertyEvaluator<T>;
using Type = T;
static constexpr bool IsDataDriven = true;
};
} // namespace style
} // namespace mbgl
|