X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Fanimation%2Fanimation-devel.h;h=b7b60191fc3d8d45edc2285c9ef1a966a912938b;hb=0c17fedc6fae9c4ca443b1eda9eab846215ca518;hp=b106f6fc10f3fe455b92b4b42f3a57cebc4a084b;hpb=5af035b463d96ff9ba1f13b4598ea78d475677e7;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/devel-api/animation/animation-devel.h b/dali/devel-api/animation/animation-devel.h index b106f6f..b7b6019 100644 --- a/dali/devel-api/animation/animation-devel.h +++ b/dali/devel-api/animation/animation-devel.h @@ -2,7 +2,7 @@ #define DALI_ANIMATION_DEVEL_H /* - * 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. @@ -33,7 +33,7 @@ namespace DevelAnimation * @param[in] animation the animation object to perform this operation on * @param[in] progress the progress percentage to trigger the signal at, e.g .3 for 30%. */ -DALI_IMPORT_API void SetProgressNotification( Animation animation, float progress ); +DALI_CORE_API void SetProgressNotification( Animation animation, float progress ); /** * @brief Get progress percentage marker that has been set to trigger ProgressHasBeenReachedSignal @@ -41,15 +41,29 @@ DALI_IMPORT_API void SetProgressNotification( Animation animation, float progres * @param[in] animation the animation object to perform this operation on * @return the percentage to trigger at eg 0.3 for 30% */ -DALI_IMPORT_API float GetProgressNotification( Animation animation ); +DALI_CORE_API float GetProgressNotification( Animation animation ); /** * @brief Connects to this signal to be notified when an Animation's animations have reached set progress. * * @return A signal object to connect with + */ +DALI_CORE_API Animation::AnimationSignalType& ProgressReachedSignal( Animation animation ); + +/** + * @brief Retrive the number of Animations. + * + * @return The number of Animations. + */ +DALI_CORE_API uint32_t GetAnimationCount(); + +/** + * @brief Retrieve an Animation by index. * + * @param[in] index The index of the Animation to retrieve + * @return The animation for the given index or empty handle */ -DALI_IMPORT_API Animation::AnimationSignalType& ProgressReachedSignal( Animation animation ); +DALI_CORE_API Animation GetAnimationAt( uint32_t index ); } // namespace DevelAnimation