X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fscrollable%2Fbouncing-effect-actor.h;h=58a19a7152a5359347d6070cdd776a9da8ace233;hb=91a31a5bdf35ebea5818c3809467b6fb74a547a2;hp=f78ab9f65f44bf51459c0f35887c73abd676935e;hpb=8c98262c52c72d5767c4552bb3c294a1565aefaa;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/scrollable/bouncing-effect-actor.h b/dali-toolkit/internal/controls/scrollable/bouncing-effect-actor.h index f78ab9f..58a19a7 100644 --- a/dali-toolkit/internal/controls/scrollable/bouncing-effect-actor.h +++ b/dali-toolkit/internal/controls/scrollable/bouncing-effect-actor.h @@ -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. @@ -24,13 +24,10 @@ namespace Dali { - namespace Toolkit { - namespace Internal { - /** * @brief Creates a Dali::Actor to display the bouncing effect for overshoot * @@ -41,7 +38,7 @@ namespace Internal * Actor bounceActor = CreateBouncingEffectActor( bouncePropertyIndex ); * // set size and color - * bounceActor.SetSize(720.f, 42.f ); + * 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 @@ -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