[dali_2.3.22] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / controls / scrollable / bouncing-effect-actor.h
index 1eb7725..58a19a7 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_TOOLKIT_INTERNAL_BOUNCING_EFFECT_ACTOR_H
 
 /*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 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.
 
 namespace Dali
 {
-
 namespace Toolkit
 {
-
 namespace Internal
 {
-
 /**
  * @brief Creates a Dali::Actor to display the bouncing effect for overshoot
  *
@@ -41,11 +38,11 @@ namespace Internal
  *  Actor bounceActor = CreateBouncingEffectActor( bouncePropertyIndex );
 
  *  // set size and color
- *  bounceActor.SetSize(720.f, 42.f );
- *  bounceActor.SetColor( Vector4( 0.0,0.64f,0.85f,0.25f ) );
+ *  bounceActor.SetProperty( Actor::Property::SIZE, Vector2(720.f, 42.f );
+ *  bounceActor.SetProperty( Actor::Property::COLOR, Vector4( 0.0,0.64f,0.85f,0.25f ) );
  *
  *  // add to stage
- *  bounceActor.SetParentOrigin(ParentOrigin::CENTER);
+ *  bounceActor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
  *  Stage::GetCurrent().Add(bounceActor);
 
  *  // start the bouncing animation
@@ -57,7 +54,7 @@ namespace Internal
  * @param[out] bouncePropertyIndex The property index which controls the bouncing
  * @return The actor which displays the bouncing effect
  */
-Actor CreateBouncingEffectActor( Property::Index& bouncePropertyIndex);
+Actor CreateBouncingEffectActor(Property::Index& bouncePropertyIndex);
 
 } // namespace Internal
 
@@ -65,5 +62,4 @@ Actor CreateBouncingEffectActor( Property::Index& bouncePropertyIndex);
 
 } // namespace Dali
 
-
 #endif // DALI_TOOLKIT_INTERNAL_BOUNCING_EFFECT_ACTOR_H