-#ifndef DALI_TOOLKIT_INTERNAL_FADE_H
-#define DALI_TOOLKIT_INTERNAL_FADE_H
+#ifndef DALI_TOOLKIT_INTERNAL_FADE_TRANSITION_H
+#define DALI_TOOLKIT_INTERNAL_FADE_TRANSITION_H
/*
* Copyright (c) 2021 Samsung Electronics Co., Ltd.
// INTERNAL INCLUDES
#include <dali-toolkit/internal/transition/transition-base-impl.h>
#include <dali-toolkit/public-api/controls/control.h>
-#include <dali-toolkit/public-api/transition/fade.h>
+#include <dali-toolkit/public-api/transition/fade-transition.h>
// EXTERNAL INCLUDES
#include <dali/public-api/object/weak-handle.h>
{
namespace Internal
{
-using FadePtr = IntrusivePtr<Fade>;
+using FadeTransitionPtr = IntrusivePtr<FadeTransition>;
-class Fade : public TransitionBase
+class FadeTransition : public TransitionBase
{
public:
/**
- * @brief Create a new Fade object.
+ * @brief Create a new FadeTransition object.
* @param[in] control A control of this transition.
* @param[in] opacity opacity value the control Opacity property will be changed from/to.
* @param[in] timePeriod The duration of the animation.
- * @return A smart-pointer to the newly allocated Fade.
+ * @return A smart-pointer to the newly allocated FadeTransition.
*/
- static FadePtr New(Dali::Toolkit::Control control, float opacity, TimePeriod timePeriod);
+ static FadeTransitionPtr New(Dali::Toolkit::Control control, float opacity, TimePeriod timePeriod);
protected:
/**
- * @copydoc Dali::Toolkit::Fade::OnPlay()
+ * @copydoc Dali::Toolkit::FadeTransition::OnPlay()
*/
void OnPlay() override;
protected:
/**
- * @brief Construct a new Fade.
+ * @brief Construct a new FadeTransition.
*/
- Fade(Dali::Toolkit::Control control,
- float opacity,
- TimePeriod timePeriod);
+ FadeTransition(Dali::Toolkit::Control control,
+ float opacity,
+ TimePeriod timePeriod);
/**
* @brief A reference counted object may only be deleted by calling Unreference()
*/
- ~Fade() override;
+ ~FadeTransition() override;
private:
// Undefined
- Fade(const Fade&);
+ FadeTransition(const FadeTransition&);
// Undefined
- Fade& operator=(const Fade& rhs);
+ FadeTransition& operator=(const FadeTransition& rhs);
private:
WeakHandle<Dali::Toolkit::Control> mTargetControl;
- float mOpacity;
+ float mOpacity;
};
} // namespace Internal
// Helpers for public-api forwarding methods
-inline Internal::Fade& GetImplementation(Dali::Toolkit::Fade& fade)
+inline Internal::FadeTransition& GetImplementation(Dali::Toolkit::FadeTransition& fade)
{
- DALI_ASSERT_ALWAYS(fade && "Fade handle is empty");
+ DALI_ASSERT_ALWAYS(fade && "FadeTransition handle is empty");
BaseObject& handle = fade.GetBaseObject();
- return static_cast<Internal::Fade&>(handle);
+ return static_cast<Internal::FadeTransition&>(handle);
}
-inline const Internal::Fade& GetImplementation(const Dali::Toolkit::Fade& fade)
+inline const Internal::FadeTransition& GetImplementation(const Dali::Toolkit::FadeTransition& fade)
{
- DALI_ASSERT_ALWAYS(fade && "Fade handle is empty");
+ DALI_ASSERT_ALWAYS(fade && "FadeTransition handle is empty");
const BaseObject& handle = fade.GetBaseObject();
- return static_cast<const Internal::Fade&>(handle);
+ return static_cast<const Internal::FadeTransition&>(handle);
}
} // namespace Toolkit
} // namespace Dali
-#endif // DALI_TOOLKIT_INTERNAL_FADE_H
+#endif // DALI_TOOLKIT_INTERNAL_FADE_TRANSITION_H