Add 'ExclusiveArch: armv7l' limit build to arm architecture
[platform/core/uifw/dali-toolkit.git] / base / dali-toolkit / public-api / controls / scrollable / scroll-view / scroll-view-slide-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 #include <dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view-effect.h>
18 #include <dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-effect-impl.h>
19 #include <dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-slide-effect-impl.h>
20
21 using namespace Dali;
22
23 namespace Dali
24 {
25
26 namespace Toolkit
27 {
28
29 const std::string ScrollViewSlideEffect::EFFECT_TIME( "ScrollViewSlideEffect::EFFECT_TIME" );
30 const std::string ScrollViewSlideEffect::EFFECT_REFERENCE( "ScrollViewSlideEffect::EFFECT_REFERENCE" );
31 const std::string ScrollViewSlideEffect::EFFECT_ACTIVE( "ScrollViewSlideEffect::EFFECT_ACTIVE" );
32
33 ScrollViewSlideEffect ScrollViewSlideEffect::New()
34 {
35   return ScrollViewSlideEffect(new Internal::ScrollViewSlideEffect());
36 }
37
38 ScrollViewSlideEffect::ScrollViewSlideEffect()
39 {
40
41 }
42
43 ScrollViewSlideEffect::ScrollViewSlideEffect(Internal::ScrollViewSlideEffect *impl)
44 : ScrollViewEffect(impl)
45 {
46 }
47
48 bool ScrollViewSlideEffect::GetSlideDirection() const
49 {
50   return GetImpl(*this).GetSlideDirection();
51 }
52
53 void ScrollViewSlideEffect::SetSlideDirection(bool vertical)
54 {
55   GetImpl(*this).SetSlideDirection( vertical );
56 }
57
58 Vector3 ScrollViewSlideEffect::GetDelayReferenceOffset() const
59 {
60   return GetImpl(*this).GetDelayReferenceOffset();
61 }
62
63 void ScrollViewSlideEffect::SetDelayReferenceOffset(const Vector3& offset)
64 {
65   GetImpl(*this).SetDelayReferenceOffset(offset);
66 }
67
68 float ScrollViewSlideEffect::GetMaxDelayDuration() const
69 {
70   return GetImpl(*this).GetMaxDelayDuration();
71 }
72
73 void ScrollViewSlideEffect::SetMaxDelayDuration(float offset)
74 {
75   GetImpl(*this).SetMaxDelayDuration(offset);
76 }
77
78 ScrollViewSlideEffect ScrollViewSlideEffect::DownCast( BaseHandle handle )
79 {
80   return ScrollViewSlideEffect( dynamic_cast<Internal::ScrollViewSlideEffect*>(handle.GetObjectPtr()) );
81 }
82
83 void ScrollViewSlideEffect::ApplyToActor( Actor child,
84                                           float delayMin,
85                                           float delayMax )
86 {
87   GetImpl(*this).ApplyToActor( child,
88                                delayMin,
89                                delayMax );
90 }
91
92 } // namespace Toolkit
93
94 } // namespace Dali