diff options
Diffstat (limited to 'include/mbgl/map/camera.hpp')
-rw-r--r-- | include/mbgl/map/camera.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/mbgl/map/camera.hpp b/include/mbgl/map/camera.hpp index 87adc46910..95be4e8178 100644 --- a/include/mbgl/map/camera.hpp +++ b/include/mbgl/map/camera.hpp @@ -59,6 +59,13 @@ struct AnimationOptions { /** A function that is called once on the last frame of the transition, just before the corresponding screen update. */ std::function<void()> transitionFinishFn; + + /** Creates an animation with no options specified. */ + inline AnimationOptions() {} + + /** Creates an animation with the specified duration. */ + inline AnimationOptions(Duration d) + : duration(d) {} }; } // namespace mbgl |