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