X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fscrollable%2Fbouncing-effect-actor.h;h=58a19a7152a5359347d6070cdd776a9da8ace233;hb=4ea0e77009c95a4bb670a8ff44bd842b94f2271b;hp=b374df5f0e6ccb8d8a2af48ae6f7e3a8abe61c9e;hpb=2ddfbb9e23a7c3fc30e604236c41e0ef6d2ed6a2;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 b374df5..58a19a7 100644 --- a/dali-toolkit/internal/controls/scrollable/bouncing-effect-actor.h +++ b/dali-toolkit/internal/controls/scrollable/bouncing-effect-actor.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_INTERNAL_BOUNCING_EFFECT_ACTOR_H__ -#define __DALI_TOOLKIT_INTERNAL_BOUNCING_EFFECT_ACTOR_H__ +#ifndef DALI_TOOLKIT_INTERNAL_BOUNCING_EFFECT_ACTOR_H +#define DALI_TOOLKIT_INTERNAL_BOUNCING_EFFECT_ACTOR_H /* - * Copyright (c) 2014 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. @@ -18,19 +18,16 @@ * */ -// INTERNAL INCLUDES +// EXTERNAL INCLUDES #include #include namespace Dali { - namespace Toolkit { - namespace Internal { - /** * @brief Creates a Dali::Actor to display the bouncing effect for overshoot * @@ -41,23 +38,23 @@ 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 * Animation anim = Animation::New(2.0f); - * anim.AnimateTo( Property( bounceActor, bouncePropertyIndex ), 1.f, AlphaFunctions::Sin ); + * anim.AnimateTo( Property( bounceActor, bouncePropertyIndex ), 1.f, AlphaFunction::SIN ); * anim.Play(); * @endcode * * @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__ */ +#endif // DALI_TOOLKIT_INTERNAL_BOUNCING_EFFECT_ACTOR_H