X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fscrollable%2Fscroll-view%2Fscroll-view-page-path-effect-impl.h;h=ec87fa563d957a229ef22819218d42c14fa57034;hb=e887157f812e2fcf08c4eabb8c3a0197049d51ce;hp=d6fcccd3f3de9b1ae25e8db548439d41ee5b3bfd;hpb=acd889e1216f09643136902ba7a115c2e5589418;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-page-path-effect-impl.h b/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-page-path-effect-impl.h index d6fcccd..ec87fa5 100644 --- a/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-page-path-effect-impl.h +++ b/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-page-path-effect-impl.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_INTERNAL_SCROLL_VIEW_PAGE_PATH_EFFECT_H /* - * Copyright (c) 2019 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. @@ -19,8 +19,8 @@ */ // EXTERNAL INCLUDES -#include #include +#include // INTERNAL INCLUDES #include @@ -28,21 +28,16 @@ namespace Dali { - namespace Toolkit { - namespace Internal { - /** * @copydoc Toolkit::ScrollViewPagePathEffect */ class ScrollViewPagePathEffect : public ScrollViewEffect { - public: - /** * Constructor * @param[in] path Pages will follow this path @@ -51,41 +46,37 @@ public: * @param[in] viewPageSize size of a page in the scrollview * @param[in] pageCount total number of pages in the scrollview */ - ScrollViewPagePathEffect(Path path, const Vector3& forward, Dali::Property::Index inputPropertyIndex, const Vector3& viewPageSize, unsigned int pageCount ); + ScrollViewPagePathEffect(Path path, const Vector3& forward, Dali::Property::Index inputPropertyIndex, const Vector3& viewPageSize, unsigned int pageCount); public: - /** * @copydoc ScrollViewEffect::ApplyToActor */ - void ApplyToPage( Actor child, unsigned int pageOrder ); + void ApplyToPage(Actor child, unsigned int pageOrder); public: - /** * @copydoc ScrollViewEffect::OnAttach */ - virtual void OnAttach( Toolkit::ScrollView& scrollView ); + void OnAttach(Toolkit::ScrollView& scrollView) override; /** * @copydoc ScrollViewEffect::OnDetach */ - virtual void OnDetach( Toolkit::ScrollView& scrollView ); + void OnDetach(Toolkit::ScrollView& scrollView) override; protected: - /** * A reference counted object may only be deleted by calling Unreference() */ virtual ~ScrollViewPagePathEffect(); private: - - Vector3 mPageSize; ///< The logical page size for the 3D effect. - PathConstrainer mPathConstrainer; ///< PathConstrainer used to constraint position and orientation - LinearConstrainer mLinearConstrainer; ///< LinearConstrainer used to constraint opacity - Dali::Property::Index mInputPropertyIndex; ///< Index of the property in the scrollview used as the parameter for the path - unsigned int mPageCount; ///< Total number of pages (Needed for wrapping) + Vector3 mPageSize; ///< The logical page size for the 3D effect. + PathConstrainer mPathConstrainer; ///< PathConstrainer used to constraint position and orientation + LinearConstrainer mLinearConstrainer; ///< LinearConstrainer used to constraint opacity + Dali::Property::Index mInputPropertyIndex; ///< Index of the property in the scrollview used as the parameter for the path + unsigned int mPageCount; ///< Total number of pages (Needed for wrapping) }; } // namespace Internal