1 #ifndef __DALI_TOOLKIT_INTERNAL_SCROLL_VIEW_CUBE_EFFECT_H__
2 #define __DALI_TOOLKIT_INTERNAL_SCROLL_VIEW_CUBE_EFFECT_H__
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 // Licensed under the Flora License, Version 1.0 (the License);
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
11 // http://floralicense.org/license/
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an AS IS BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
21 #include <dali/public-api/animation/animation.h>
22 #include <dali/public-api/animation/alpha-functions.h>
23 #include <dali/public-api/animation/time-period.h>
24 #include <dali/public-api/object/ref-object.h>
25 #include <dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view.h>
26 #include <dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view-effect.h>
27 #include <dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view-cube-effect.h>
42 class ScrollViewEffect;
45 * @copydoc Toolkit::ScrollViewCubeEffect
47 class ScrollViewCubeEffect : public ScrollViewEffect
55 ScrollViewCubeEffect();
60 * @copydoc ScrollViewEffect::ApplyToActor
62 void ApplyToActor(Actor child,
63 const Vector3& anchor,
64 const Vector2& angleSwing,
65 const Vector2& positionSwing);
68 * @copydoc ScrollViewEffect::ApplyToActor
70 void ApplyToActor(Actor child,
72 const Vector3& anchor,
73 const Vector2& angleSwing,
74 const Vector2& positionSwing);
79 * @copydoc ScrollViewEffect::OnAttach
81 virtual void OnAttach(Toolkit::ScrollView& scrollView);
84 * @copydoc ScrollViewEffect::OnDetach
86 virtual void OnDetach(Toolkit::ScrollView& scrollView);
91 * A reference counted object may only be deleted by calling Unreference()
93 virtual ~ScrollViewCubeEffect();
97 Vector3 mPageSize; ///< The logical page size for the 3D effect.
101 } // namespace Internal
103 // Helpers for public-api forwarding methods
105 inline Internal::ScrollViewCubeEffect& GetImpl(Dali::Toolkit::ScrollViewCubeEffect& obj)
107 DALI_ASSERT_ALWAYS(obj);
109 Dali::RefObject& handle = obj.GetBaseObject();
111 return static_cast<Internal::ScrollViewCubeEffect&>(handle);
114 inline const Internal::ScrollViewCubeEffect& GetImpl(const Dali::Toolkit::ScrollViewCubeEffect& obj)
116 DALI_ASSERT_ALWAYS(obj);
118 const Dali::RefObject& handle = obj.GetBaseObject();
120 return static_cast<const Internal::ScrollViewCubeEffect&>(handle);
123 } // namespace Toolkit
127 #endif // __DALI_TOOLKIT_INTERNAL_SCROLL_VIEW_CUBE_EFFECT_H__