X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Fanimation%2Fanimation-devel.cpp;h=32c3dff018dc81f6012af2d13c695cd8ed39c60f;hb=697c8c3bd6a503c926f75f2cfa669a49b4b8583b;hp=0840ae7d914dbb46e7345cbe3702efccbfc404ad;hpb=78d1f36cbeea7166826d2104d0a0bcd26889793c;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 0840ae7..32c3dff 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,6 +42,18 @@ Animation::AnimationSignalType& ProgressReachedSignal( Animation animation ) return GetImplementation( animation ).ProgressReachedSignal(); } +uint32_t GetAnimationCount() +{ + Dali::Internal::ThreadLocalStorage& tls = Dali::Internal::ThreadLocalStorage::Get(); + return tls.GetAnimationPlaylist().GetAnimationCount(); +} + +Animation GetAnimationAt( uint32_t index ) +{ + Dali::Internal::ThreadLocalStorage& tls = Dali::Internal::ThreadLocalStorage::Get(); + return Animation( tls.GetAnimationPlaylist().GetAnimationAt( index ) ); +} + } // namespace DevelAnimation } // namespace Dali