X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Fanimation%2Fanimation-devel.cpp;h=4fba68bafdcdfec44e7691951afc6ec28fc62044;hb=0c17fedc6fae9c4ca443b1eda9eab846215ca518;hp=79ebbb37d0f429b8657054f3a75ed48238c52d74;hpb=d804ed0767c2d3f1c85fc2e94b4b6a3991ef5c88;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/devel-api/animation/animation-devel.cpp b/dali/devel-api/animation/animation-devel.cpp index 79ebbb3..4fba68b 100644 --- a/dali/devel-api/animation/animation-devel.cpp +++ b/dali/devel-api/animation/animation-devel.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,6 +18,8 @@ // INTERNAL INCLUDES #include #include +#include +#include namespace Dali { @@ -40,19 +42,16 @@ Animation::AnimationSignalType& ProgressReachedSignal( Animation animation ) return GetImplementation( animation ).ProgressReachedSignal(); } -void PlayAfter( Animation animation, float delaySeconds ) +uint32_t GetAnimationCount() { - GetImplementation( animation ).PlayAfter( delaySeconds ); + Dali::Internal::ThreadLocalStorage& tls = Dali::Internal::ThreadLocalStorage::Get(); + return tls.GetAnimationPlaylist().GetAnimationCount(); } -void SetLoopingMode( Animation animation, LoopingMode loopingMode ) +Animation GetAnimationAt( uint32_t index ) { - GetImplementation( animation ).SetLoopingMode( loopingMode ); -} - -LoopingMode GetLoopingMode( Animation animation ) -{ - return GetImplementation(animation).GetLoopingMode(); + Dali::Internal::ThreadLocalStorage& tls = Dali::Internal::ThreadLocalStorage::Get(); + return tls.GetAnimationPlaylist().GetAnimationAt( index ); } } // namespace DevelAnimation