blob: d98a1cbf3147687a23ec50f232b625437e2f536f (
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
28
29
30
31
32
33
34
35
|
#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 TransitionableType = std::nullptr_t;
using UnevaluatedType = PropertyValue<T>;
using EvaluatorType = PropertyEvaluator<T>;
using PossiblyEvaluatedType = T;
using Type = T;
static constexpr bool IsDataDriven = false;
static constexpr bool IsOverridable = false;
};
template <class T>
class DataDrivenLayoutProperty {
public:
using TransitionableType = std::nullptr_t;
using UnevaluatedType = PropertyValue<T>;
using EvaluatorType = DataDrivenPropertyEvaluator<T>;
using PossiblyEvaluatedType = PossiblyEvaluatedPropertyValue<T>;
using Type = T;
static constexpr bool IsDataDriven = true;
static constexpr bool IsOverridable = false;
};
} // namespace style
} // namespace mbgl
|