#define DALI_DEMO_BUBBLE_ANIMATOR_H\r
\r
/*\r
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.\r
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.\r
*\r
* Licensed under the Apache License, Version 2.0 (the "License");\r
* you may not use this file except in compliance with the License.\r
*/\r
\r
// EXTERNAL INCLUDES\r
-#include <vector>\r
#include <dali/public-api/actors/actor.h>\r
#include <dali/public-api/adaptor-framework/timer.h>\r
#include <dali/public-api/animation/animation.h>\r
#include <dali/public-api/object/weak-handle.h>\r
#include <dali/public-api/signals/connection-tracker.h>\r
+#include <vector>\r
\r
/**\r
* Creates and animates random sized bubbles\r
class BubbleAnimator : public Dali::ConnectionTracker\r
{\r
public:\r
-\r
/**\r
* @brief Initilizes the bubble background\r
*\r
void PlayAnimation();\r
\r
private:\r
-\r
/**\r
* @brief Used by the timer to pause the animation\r
*\r
void AddBackgroundActors(Dali::Actor layer, int count);\r
\r
private:\r
-\r
using AnimationList = std::vector<Dali::Animation>;\r
\r
- Dali::WeakHandle<Dali::Actor> mScrollView; ///< Weak handle to the scroll view used to apply a parallax effect when scrolling.\r
- AnimationList mBackgroundAnimations; ///< List of background bubble animations.\r
- Dali::Timer mAnimationTimer; ///< Timer used to turn off animation after a specific time period.\r
- bool mBackgroundAnimsPlaying{false}; ///< Are background animations playing.\r
+ Dali::WeakHandle<Dali::Actor> mScrollView; ///< Weak handle to the scroll view used to apply a parallax effect when scrolling.\r
+ AnimationList mBackgroundAnimations; ///< List of background bubble animations.\r
+ Dali::Timer mAnimationTimer; ///< Timer used to turn off animation after a specific time period.\r
+ bool mBackgroundAnimsPlaying{false}; ///< Are background animations playing.\r
};\r
\r
#endif // DALI_DEMO_BUBBLE_ANIMATOR_H\r