1 #ifndef __DALI_TOOLKIT_INTERNAL_SCROLL_VIEW_PAGE_CAROUSEL_EFFECT_H__
2 #define __DALI_TOOLKIT_INTERNAL_SCROLL_VIEW_PAGE_CAROUSEL_EFFECT_H__
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
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.
22 #include <dali/public-api/animation/animation.h>
23 #include <dali/public-api/animation/alpha-functions.h>
24 #include <dali/public-api/animation/time-period.h>
25 #include <dali/public-api/object/ref-object.h>
28 #include <dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view.h>
29 #include <dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view-page-carousel-effect.h>
30 #include <dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-effect-impl.h>
47 * @copydoc Toolkit::ScrollViewPageCarouselEffect
49 class ScrollViewPageCarouselEffect : public ScrollViewEffect
57 ScrollViewPageCarouselEffect();
62 * @copydoc ScrollViewEffect::ApplyToActor
64 void ApplyToPage( Actor child, const Vector2& positionToPageSizeRatio );
69 * @copydoc ScrollViewEffect::OnAttach
71 virtual void OnAttach( Toolkit::ScrollView& scrollView );
74 * @copydoc ScrollViewEffect::OnDetach
76 virtual void OnDetach( Toolkit::ScrollView& scrollView );
81 * A reference counted object may only be deleted by calling Unreference()
83 virtual ~ScrollViewPageCarouselEffect();
87 Vector3 mPageSize; ///< The logical page size for the 3D effect.
90 } // namespace Internal
92 // Helpers for public-api forwarding methods
94 inline Internal::ScrollViewPageCarouselEffect& GetImpl(Dali::Toolkit::ScrollViewPageCarouselEffect& obj)
96 DALI_ASSERT_ALWAYS(obj);
98 Dali::RefObject& handle = obj.GetBaseObject();
100 return static_cast<Internal::ScrollViewPageCarouselEffect&>(handle);
103 inline const Internal::ScrollViewPageCarouselEffect& GetImpl(const Dali::Toolkit::ScrollViewPageCarouselEffect& obj)
105 DALI_ASSERT_ALWAYS(obj);
107 const Dali::RefObject& handle = obj.GetBaseObject();
109 return static_cast<const Internal::ScrollViewPageCarouselEffect&>(handle);
112 } // namespace Toolkit
116 #endif // __DALI_TOOLKIT_INTERNAL_SCROLL_VIEW_PAGE_CAROUSEL_EFFECT_H__