summaryrefslogtreecommitdiff
path: root/src/mbgl/style/property_evaluation_parameters.hpp
blob: 2591fc07a187fd0e63147b2ed61caaa0babf87fb (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
#pragma once

#include <mbgl/map/zoom_history.hpp>
#include <mbgl/util/chrono.hpp>

namespace mbgl {
namespace style {

class PropertyEvaluationParameters {
public:
    explicit PropertyEvaluationParameters(float z_)
        : z(z_) {}

    PropertyEvaluationParameters(float z_,
                          TimePoint now_,
                          ZoomHistory zoomHistory_,
                          Duration defaultFadeDuration_)
        : z(z_),
          now(std::move(now_)),
          zoomHistory(std::move(zoomHistory_)),
          defaultFadeDuration(std::move(defaultFadeDuration_)) {}

    float z;
    TimePoint now;
    ZoomHistory zoomHistory;
    Duration defaultFadeDuration;
};

} // namespace style
} // namespace mbgl