summaryrefslogtreecommitdiff
path: root/include/mbgl/style/property_transition.hpp
blob: b9a301feea832a7a2875d648b490e32737e978a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include <mbgl/util/chrono.hpp>
#include <mbgl/util/optional.hpp>

namespace mbgl {

class PropertyTransition {
public:
    PropertyTransition(const optional<Duration>& duration_ = {}, const optional<Duration>& delay_ = {})
        : duration(duration_), delay(delay_) {}

    optional<Duration> duration;
    optional<Duration> delay;
};

} // namespace mbgl