#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.
{
/**
- * @brief Enumeration for what looping mode is in.
- */
-enum LoopingMode
-{
- RESTART, ///< When the animation arrives at the end in looping mode, the animation restarts from the beginning.
- AUTO_REVERSE ///< When the animation arrives at the end in looping mode, the animation reverses direction and runs backwards again.
-};
-
-/**
* @brief Set progress percentage marker to trigger ProgressHasBeenReachedSignal
*
* @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
* @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_IMPORT_API Animation::AnimationSignalType& ProgressReachedSignal( Animation animation );
-
-/**
- * @brief Play the animation after a given delay time.
- *
- * 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
*/
-DALI_IMPORT_API void PlayAfter( Animation animation, float delaySeconds );
+DALI_CORE_API Animation::AnimationSignalType& ProgressReachedSignal( Animation animation );
/**
- * @brief Sets the looping mode.
+ * @brief Retrive the number of Animations.
*
- * Animation plays forwards and then restarts from the beginning or runs backwards again.
- * @param[in] animation The animation object to perform this operation on
- * @param[in] loopingMode The looping mode is one of RESTART and AUTO_REVERSE
+ * @return The number of Animations.
*/
-DALI_IMPORT_API void SetLoopingMode( Animation animation, LoopingMode loopingMode );
+DALI_CORE_API uint32_t GetAnimationCount();
/**
- * @brief Gets one of the current looping mode.
+ * @brief Retrieve an Animation by index.
*
- * @param[in] animation The animation object to perform this operation on
- * @return The current looping mode
+ * @param[in] index The index of the Animation to retrieve
+ * @return The animation for the given index or empty handle
*/
-DALI_IMPORT_API LoopingMode GetLoopingMode( Animation animation );
+DALI_CORE_API Animation GetAnimationAt( uint32_t index );
} // namespace DevelAnimation