fe920203b4e3f0efb675c27af3376de4a4f1daa3
[platform/core/uifw/dali-toolkit.git] / base / dali-toolkit / public-api / controls / scrollable / scroll-view / scroll-view-page-spiral-effect.cpp
1 //
2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Flora License, Version 1.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //     http://floralicense.org/license/
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16
17 // CLASS HEADER
18 #include <dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view-page-spiral-effect.h>
19
20 // INTERNAL HEADERS
21 #include <dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-page-spiral-effect-impl.h>
22
23 using namespace Dali;
24
25 namespace Dali
26 {
27
28 namespace Toolkit
29 {
30
31 ScrollViewPageSpiralEffect ScrollViewPageSpiralEffect::New()
32 {
33   return ScrollViewPageSpiralEffect(new Internal::ScrollViewPageSpiralEffect());
34 }
35
36 ScrollViewPageSpiralEffect::ScrollViewPageSpiralEffect()
37 {
38
39 }
40
41 ScrollViewPageSpiralEffect::ScrollViewPageSpiralEffect(Internal::ScrollViewPageSpiralEffect *impl)
42 : ScrollViewEffect(impl)
43 {
44 }
45
46 ScrollViewPageSpiralEffect ScrollViewPageSpiralEffect::DownCast( BaseHandle handle )
47 {
48   return ScrollViewPageSpiralEffect( dynamic_cast<Internal::ScrollViewPageSpiralEffect*>(handle.GetObjectPtr()) );
49 }
50
51 void ScrollViewPageSpiralEffect::ApplyToPage( Actor page, const Vector2& spiralAngle )
52 {
53   GetImpl(*this).ApplyToPage( page, spiralAngle );
54 }
55
56 } // namespace Toolkit
57
58 } // namespace Dali