diff options
Diffstat (limited to 'src/mbgl/style/property_evaluation_parameters.hpp')
-rw-r--r-- | src/mbgl/style/property_evaluation_parameters.hpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/mbgl/style/property_evaluation_parameters.hpp b/src/mbgl/style/property_evaluation_parameters.hpp new file mode 100644 index 0000000000..2591fc07a1 --- /dev/null +++ b/src/mbgl/style/property_evaluation_parameters.hpp @@ -0,0 +1,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 |