DALi Version 1.0.26
[platform/core/uifw/dali-toolkit.git] / base / dali-toolkit / public-api / controls / scrollable / scroll-view / scroll-view-custom-effect.cpp
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
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
18 // CLASS HEADER
19 #include <dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view-custom-effect.h>
20
21 // INTERNAL HEADERS
22 #include <dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-custom-effect-impl.h>
23
24 using namespace Dali;
25
26 namespace Dali
27 {
28
29 namespace Toolkit
30 {
31
32 ScrollViewCustomEffect ScrollViewCustomEffect::New()
33 {
34   return ScrollViewCustomEffect(new Internal::ScrollViewCustomEffect());
35 }
36
37 ScrollViewCustomEffect::ScrollViewCustomEffect()
38 {
39
40 }
41
42 ScrollViewCustomEffect::ScrollViewCustomEffect(Internal::ScrollViewCustomEffect *impl)
43 : ScrollViewEffect(impl)
44 {
45 }
46
47 ScrollViewCustomEffect ScrollViewCustomEffect::DownCast( BaseHandle handle )
48 {
49   return ScrollViewCustomEffect( dynamic_cast<Internal::ScrollViewCustomEffect*>(handle.GetObjectPtr()) );
50 }
51
52 void ScrollViewCustomEffect::SetPageSpacing(const Vector2& spacing)
53 {
54   GetImpl(*this).SetPageSpacing(spacing);
55 }
56
57 void ScrollViewCustomEffect::SetPageTranslation(const Vector3& translation)
58 {
59   GetImpl(*this).SetPageTranslation(translation);
60 }
61
62 void ScrollViewCustomEffect::SetPageTranslation(const Vector3& translationIn, const Vector3& translationOut)
63 {
64   GetImpl(*this).SetPageTranslation(translationIn, translationOut);
65 }
66
67 void ScrollViewCustomEffect::SetPageTranslationIn(const Vector3& translation)
68 {
69   GetImpl(*this).SetPageTranslationIn(translation);
70 }
71
72 void ScrollViewCustomEffect::SetPageTranslationOut(const Vector3& translation)
73 {
74   GetImpl(*this).SetPageTranslationOut(translation);
75 }
76
77 void ScrollViewCustomEffect::SetPageTranslateAlphaFunction(AlphaFunction func)
78 {
79   GetImpl(*this).SetPageTranslateAlphaFunction(func);
80 }
81
82 void ScrollViewCustomEffect::SetPageTranslateAlphaFunction(AlphaFunction funcIn, AlphaFunction funcOut)
83 {
84   GetImpl(*this).SetPageTranslateAlphaFunction(funcIn, funcOut);
85 }
86
87 void ScrollViewCustomEffect::SetPageTranslateAlphaFunctionIn(AlphaFunction func)
88 {
89   GetImpl(*this).SetPageTranslateAlphaFunctionIn(func);
90 }
91
92 void ScrollViewCustomEffect::SetPageTranslateAlphaFunctionOut(AlphaFunction func)
93 {
94   GetImpl(*this).SetPageTranslateAlphaFunctionOut(func);
95 }
96
97 void ScrollViewCustomEffect::SetGlobalPageRotation(float angle, const Vector3& axis)
98 {
99   GetImpl(*this).SetGlobalPageRotation(angle, axis);
100 }
101
102 void ScrollViewCustomEffect::SetAngledOriginPageRotation(const Vector3& angle)
103 {
104   GetImpl(*this).SetAngledOriginPageRotation(angle);
105 }
106
107 void ScrollViewCustomEffect::SetGlobalPageRotation(float angleIn, const Vector3& axisIn, float angleOut, const Vector3& axisOut)
108 {
109   GetImpl(*this).SetGlobalPageRotation(angleIn, axisIn, angleOut, axisOut);
110 }
111
112 void ScrollViewCustomEffect::SetGlobalPageRotationIn(float angle, const Vector3& axis)
113 {
114   GetImpl(*this).SetGlobalPageRotationIn(angle, axis);
115 }
116
117 void ScrollViewCustomEffect::SetGlobalPageRotationOut(float angle, const Vector3& axis)
118 {
119   GetImpl(*this).SetGlobalPageRotationOut(angle, axis);
120 }
121
122 void ScrollViewCustomEffect::SetGlobalPageRotationOrigin(const Vector3& origin)
123 {
124   GetImpl(*this).SetGlobalPageRotationOrigin(origin);
125 }
126
127 void ScrollViewCustomEffect::SetGlobalPageRotationOrigin(const Vector3& originIn, const Vector3& originOut)
128 {
129   GetImpl(*this).SetGlobalPageRotationOrigin(originIn, originOut);
130 }
131
132 void ScrollViewCustomEffect::SetGlobalPageRotationOriginIn(const Vector3& origin)
133 {
134   GetImpl(*this).SetGlobalPageRotationOriginIn(origin);
135 }
136
137 void ScrollViewCustomEffect::SetGlobalPageRotationOriginOut(const Vector3& origin)
138 {
139   GetImpl(*this).SetGlobalPageRotationOriginOut(origin);
140 }
141
142 void ScrollViewCustomEffect::SetSwingAngle(const float angle, const Vector3& axis)
143 {
144   GetImpl(*this).SetSwingAngle(angle, axis);
145 }
146
147 void ScrollViewCustomEffect::SetSwingAngle(float angleIn, const Vector3& axisIn, float angleOut, const Vector3& axisOut)
148 {
149   GetImpl(*this).SetSwingAngle(angleIn, axisIn, angleOut, axisOut);
150 }
151
152 void ScrollViewCustomEffect::SetSwingAngleIn(float angle, const Vector3& axis)
153 {
154   GetImpl(*this).SetSwingAngleIn(angle, axis);
155 }
156
157 void ScrollViewCustomEffect::SetSwingAngleOut(float angle, const Vector3& axis)
158 {
159   GetImpl(*this).SetSwingAngleOut(angle, axis);
160 }
161
162 void ScrollViewCustomEffect::SetSwingAngleAlphaFunction(AlphaFunction func)
163 {
164   GetImpl(*this).SetSwingAngleAlphaFunction(func);
165 }
166
167 void ScrollViewCustomEffect::SetSwingAngleAlphaFunction(AlphaFunction funcIn, AlphaFunction funcOut)
168 {
169   GetImpl(*this).SetSwingAngleAlphaFunction(funcIn, funcOut);
170 }
171
172 void ScrollViewCustomEffect::SetSwingAngleAlphaFunctionIn(AlphaFunction func)
173 {
174   GetImpl(*this).SetSwingAngleAlphaFunctionIn(func);
175 }
176
177 void ScrollViewCustomEffect::SetSwingAngleAlphaFunctionOut(AlphaFunction func)
178 {
179   GetImpl(*this).SetSwingAngleAlphaFunctionOut(func);
180 }
181
182 void ScrollViewCustomEffect::SetSwingAnchor(const Vector3& anchor)
183 {
184   GetImpl(*this).SetSwingAnchor(anchor);
185 }
186
187 void ScrollViewCustomEffect::SetSwingAnchor(const Vector3& anchorIn, const Vector3& anchorOut)
188 {
189   GetImpl(*this).SetSwingAnchor(anchorIn, anchorOut);
190 }
191
192 void ScrollViewCustomEffect::SetSwingAnchorIn(const Vector3& anchor)
193 {
194   GetImpl(*this).SetSwingAnchorIn(anchor);
195 }
196
197 void ScrollViewCustomEffect::SetSwingAnchorOut(const Vector3& anchor)
198 {
199   GetImpl(*this).SetSwingAnchorOut(anchor);
200 }
201
202 void ScrollViewCustomEffect::SetSwingAnchorAlphaFunction(AlphaFunction func)
203 {
204   GetImpl(*this).SetSwingAnchorAlphaFunction(func);
205 }
206
207 void ScrollViewCustomEffect::SetSwingAnchorAlphaFunction(AlphaFunction funcIn, AlphaFunction funcOut)
208 {
209   GetImpl(*this).SetSwingAnchorAlphaFunction(funcIn, funcOut);
210 }
211
212 void ScrollViewCustomEffect::SetSwingAnchorAlphaFunctionIn(AlphaFunction func)
213 {
214   GetImpl(*this).SetSwingAnchorAlphaFunctionIn(func);
215 }
216
217 void ScrollViewCustomEffect::SetSwingAnchorAlphaFunctionOut(AlphaFunction func)
218 {
219   GetImpl(*this).SetSwingAnchorAlphaFunctionOut(func);
220 }
221
222 void ScrollViewCustomEffect::SetOpacityThreshold(float thresh)
223 {
224   GetImpl(*this).SetOpacityThreshold(thresh);
225 }
226
227 void ScrollViewCustomEffect::SetOpacityThreshold(float threshIn, float threshOut)
228 {
229   GetImpl(*this).SetOpacityThreshold(threshIn, threshOut);
230 }
231
232 void ScrollViewCustomEffect::SetOpacityThresholdIn(float thresh)
233 {
234   GetImpl(*this).SetOpacityThresholdIn(thresh);
235 }
236
237 void ScrollViewCustomEffect::SetOpacityThresholdOut(float thresh)
238 {
239   GetImpl(*this).SetOpacityThresholdOut(thresh);
240 }
241
242 void ScrollViewCustomEffect::SetOpacityAlphaFunction(AlphaFunction func)
243 {
244   GetImpl(*this).SetOpacityAlphaFunction(func);
245 }
246
247 void ScrollViewCustomEffect::SetOpacityAlphaFunction(AlphaFunction funcIn, AlphaFunction funcOut)
248 {
249   GetImpl(*this).SetOpacityAlphaFunction(funcIn, funcOut);
250 }
251
252 void ScrollViewCustomEffect::SetOpacityAlphaFunctionIn(AlphaFunction func)
253 {
254   GetImpl(*this).SetOpacityAlphaFunctionIn(func);
255 }
256
257 void ScrollViewCustomEffect::SetOpacityAlphaFunctionOut(AlphaFunction func)
258 {
259   GetImpl(*this).SetOpacityAlphaFunctionOut(func);
260 }
261
262 void ScrollViewCustomEffect::ApplyToPage(Actor page, Vector3 pageSize)
263 {
264   GetImpl(*this).ApplyToPage(page, pageSize);
265 }
266
267 } // namespace Toolkit
268
269 } // namespace Dali