X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftransition-effects%2Fcube-transition-fold-effect-impl.h;h=625ce8681968750931ddc1657f736b14aa72dadf;hb=ba2b1aa2e87716f4ef107e0fa627573475e93470;hp=336557f097b739a6c5940f69fe2c120436d06b67;hpb=ed318176506ba6763f189728d7c14c00e9e0b909;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/transition-effects/cube-transition-fold-effect-impl.h b/dali-toolkit/internal/transition-effects/cube-transition-fold-effect-impl.h index 336557f..625ce86 100644 --- a/dali-toolkit/internal/transition-effects/cube-transition-fold-effect-impl.h +++ b/dali-toolkit/internal/transition-effects/cube-transition-fold-effect-impl.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_INTERNAL_CUBE_TRANSITION_FOLD_EFFECT_H__ -#define __DALI_TOOLKIT_INTERNAL_CUBE_TRANSITION_FOLD_EFFECT_H__ +#ifndef DALI_TOOLKIT_INTERNAL_CUBE_TRANSITION_FOLD_EFFECT_H +#define DALI_TOOLKIT_INTERNAL_CUBE_TRANSITION_FOLD_EFFECT_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. @@ -26,54 +26,47 @@ namespace Dali { - namespace Toolkit { - class CubeTransitionFoldEffect; namespace Internal { - class CubeTransitionEffect; class CubeTransitionFoldEffect : public CubeTransitionEffect { - public: - /** * @copydoc Toolkit::CubeTransitionFoldEffect::New */ - static Toolkit::CubeTransitionFoldEffect New( unsigned int numRows, unsigned int numColumns ); + static Toolkit::CubeTransitionFoldEffect New(unsigned int numRows, unsigned int numColumns); protected: - - /** + /** * @copydoc Toolkit::CubeTransitionEffect::OnInitialize */ - virtual void OnInitialize(); + void OnInitialize() override; - /** + /** * @copydoc Toolkit::CubeTransitionEffect::OnStartTransition */ - virtual void OnStartTransition( Vector2 panPosition, Vector2 panDisplacement ); + void OnStartTransition(Vector2 panPosition, Vector2 panDisplacement) override; private: - - /** + /** * Construct a new CubeTransitionFoldEffect object * @param[in] numRows How many rows of cubes * @param[in] numColumns How many columns of cubes */ - CubeTransitionFoldEffect( unsigned int numRows, unsigned int numColumns ); + CubeTransitionFoldEffect(unsigned int numRows, unsigned int numColumns); - /** + /** * Set up animation to an Actor * @param[in] actorIndex The index of the cube in the cube array * @param[in] angle The angle of the rotation animation */ - void SetupAnimation( unsigned int actorIndex, unsigned int x, float angle ); + void SetupAnimation(unsigned int actorIndex, unsigned int x, float angle); }; //class CubeTransitionFoldEffect @@ -81,26 +74,26 @@ private: // Helpers for public-api forwarding methods -inline Internal::CubeTransitionFoldEffect& GetImpl( Dali::Toolkit::CubeTransitionFoldEffect& obj ) +inline Internal::CubeTransitionFoldEffect& GetImpl(Dali::Toolkit::CubeTransitionFoldEffect& obj) { - DALI_ASSERT_ALWAYS( obj ); + DALI_ASSERT_ALWAYS(obj); Dali::RefObject& handle = obj.GetImplementation(); - return static_cast< Internal::CubeTransitionFoldEffect& >( handle ); + return static_cast(handle); } -inline const Internal::CubeTransitionFoldEffect& GetImpl( const Dali::Toolkit::CubeTransitionFoldEffect& obj ) +inline const Internal::CubeTransitionFoldEffect& GetImpl(const Dali::Toolkit::CubeTransitionFoldEffect& obj) { - DALI_ASSERT_ALWAYS( obj ); + DALI_ASSERT_ALWAYS(obj); const Dali::RefObject& handle = obj.GetImplementation(); - return static_cast< const Internal::CubeTransitionFoldEffect& >( handle ); + return static_cast(handle); } } // namespace Toolkit } // namespace Dali -#endif /* __DALI_TOOLKIT_INTERNAL_CUBE_TRANSITION_FOLD_EFFECT_H_ */ +#endif // DALI_TOOLKIT_INTERNAL_CUBE_TRANSITION_FOLD_EFFECT_H