Return Animation information
[platform/core/uifw/dali-core.git] / dali / devel-api / animation / animation-devel.h
index 4efa70a..b7b6019 100644 (file)
@@ -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,25 +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_IMPORT_API Animation::AnimationSignalType& ProgressReachedSignal( Animation animation );
+DALI_CORE_API uint32_t GetAnimationCount();
 
 /**
- * @brief Play the animation after a given delay time.
+ * @brief Retrieve an Animation by index.
  *
- * The delay time is not included in the looping time.
- * When the delay time is negative value, it would treat as play immediately.
- * @param[in] animation The animation object to perform this operation on
- * @param[in] delaySeconds The delay time
+ * @param[in] index The index of the Animation to retrieve
+ * @return The animation for the given index or empty handle
  */
-DALI_IMPORT_API void PlayAfter( Animation animation, float delaySeconds );
+DALI_CORE_API Animation GetAnimationAt( uint32_t index );
 
 } // namespace DevelAnimation