2 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 #include <dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view-custom-effect.h>
22 #include <dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-custom-effect-impl.h>
32 ScrollViewCustomEffect ScrollViewCustomEffect::New()
34 return ScrollViewCustomEffect(new Internal::ScrollViewCustomEffect());
37 ScrollViewCustomEffect::ScrollViewCustomEffect()
42 ScrollViewCustomEffect::ScrollViewCustomEffect(Internal::ScrollViewCustomEffect *impl)
43 : ScrollViewEffect(impl)
47 ScrollViewCustomEffect ScrollViewCustomEffect::DownCast( BaseHandle handle )
49 return ScrollViewCustomEffect( dynamic_cast<Internal::ScrollViewCustomEffect*>(handle.GetObjectPtr()) );
52 void ScrollViewCustomEffect::SetPageSpacing(const Vector2& spacing)
54 GetImpl(*this).SetPageSpacing(spacing);
57 void ScrollViewCustomEffect::SetPageTranslation(const Vector3& translation)
59 GetImpl(*this).SetPageTranslation(translation);
62 void ScrollViewCustomEffect::SetPageTranslation(const Vector3& translationIn, const Vector3& translationOut)
64 GetImpl(*this).SetPageTranslation(translationIn, translationOut);
67 void ScrollViewCustomEffect::SetPageTranslationIn(const Vector3& translation)
69 GetImpl(*this).SetPageTranslationIn(translation);
72 void ScrollViewCustomEffect::SetPageTranslationOut(const Vector3& translation)
74 GetImpl(*this).SetPageTranslationOut(translation);
77 void ScrollViewCustomEffect::SetPageTranslateAlphaFunction(AlphaFunction func)
79 GetImpl(*this).SetPageTranslateAlphaFunction(func);
82 void ScrollViewCustomEffect::SetPageTranslateAlphaFunction(AlphaFunction funcIn, AlphaFunction funcOut)
84 GetImpl(*this).SetPageTranslateAlphaFunction(funcIn, funcOut);
87 void ScrollViewCustomEffect::SetPageTranslateAlphaFunctionIn(AlphaFunction func)
89 GetImpl(*this).SetPageTranslateAlphaFunctionIn(func);
92 void ScrollViewCustomEffect::SetPageTranslateAlphaFunctionOut(AlphaFunction func)
94 GetImpl(*this).SetPageTranslateAlphaFunctionOut(func);
97 void ScrollViewCustomEffect::SetGlobalPageRotation(float angle, const Vector3& axis)
99 GetImpl(*this).SetGlobalPageRotation(angle, axis);
102 void ScrollViewCustomEffect::SetAngledOriginPageRotation(const Vector3& angle)
104 GetImpl(*this).SetAngledOriginPageRotation(angle);
107 void ScrollViewCustomEffect::SetGlobalPageRotation(float angleIn, const Vector3& axisIn, float angleOut, const Vector3& axisOut)
109 GetImpl(*this).SetGlobalPageRotation(angleIn, axisIn, angleOut, axisOut);
112 void ScrollViewCustomEffect::SetGlobalPageRotationIn(float angle, const Vector3& axis)
114 GetImpl(*this).SetGlobalPageRotationIn(angle, axis);
117 void ScrollViewCustomEffect::SetGlobalPageRotationOut(float angle, const Vector3& axis)
119 GetImpl(*this).SetGlobalPageRotationOut(angle, axis);
122 void ScrollViewCustomEffect::SetGlobalPageRotationOrigin(const Vector3& origin)
124 GetImpl(*this).SetGlobalPageRotationOrigin(origin);
127 void ScrollViewCustomEffect::SetGlobalPageRotationOrigin(const Vector3& originIn, const Vector3& originOut)
129 GetImpl(*this).SetGlobalPageRotationOrigin(originIn, originOut);
132 void ScrollViewCustomEffect::SetGlobalPageRotationOriginIn(const Vector3& origin)
134 GetImpl(*this).SetGlobalPageRotationOriginIn(origin);
137 void ScrollViewCustomEffect::SetGlobalPageRotationOriginOut(const Vector3& origin)
139 GetImpl(*this).SetGlobalPageRotationOriginOut(origin);
142 void ScrollViewCustomEffect::SetSwingAngle(const float angle, const Vector3& axis)
144 GetImpl(*this).SetSwingAngle(angle, axis);
147 void ScrollViewCustomEffect::SetSwingAngle(float angleIn, const Vector3& axisIn, float angleOut, const Vector3& axisOut)
149 GetImpl(*this).SetSwingAngle(angleIn, axisIn, angleOut, axisOut);
152 void ScrollViewCustomEffect::SetSwingAngleIn(float angle, const Vector3& axis)
154 GetImpl(*this).SetSwingAngleIn(angle, axis);
157 void ScrollViewCustomEffect::SetSwingAngleOut(float angle, const Vector3& axis)
159 GetImpl(*this).SetSwingAngleOut(angle, axis);
162 void ScrollViewCustomEffect::SetSwingAngleAlphaFunction(AlphaFunction func)
164 GetImpl(*this).SetSwingAngleAlphaFunction(func);
167 void ScrollViewCustomEffect::SetSwingAngleAlphaFunction(AlphaFunction funcIn, AlphaFunction funcOut)
169 GetImpl(*this).SetSwingAngleAlphaFunction(funcIn, funcOut);
172 void ScrollViewCustomEffect::SetSwingAngleAlphaFunctionIn(AlphaFunction func)
174 GetImpl(*this).SetSwingAngleAlphaFunctionIn(func);
177 void ScrollViewCustomEffect::SetSwingAngleAlphaFunctionOut(AlphaFunction func)
179 GetImpl(*this).SetSwingAngleAlphaFunctionOut(func);
182 void ScrollViewCustomEffect::SetSwingAnchor(const Vector3& anchor)
184 GetImpl(*this).SetSwingAnchor(anchor);
187 void ScrollViewCustomEffect::SetSwingAnchor(const Vector3& anchorIn, const Vector3& anchorOut)
189 GetImpl(*this).SetSwingAnchor(anchorIn, anchorOut);
192 void ScrollViewCustomEffect::SetSwingAnchorIn(const Vector3& anchor)
194 GetImpl(*this).SetSwingAnchorIn(anchor);
197 void ScrollViewCustomEffect::SetSwingAnchorOut(const Vector3& anchor)
199 GetImpl(*this).SetSwingAnchorOut(anchor);
202 void ScrollViewCustomEffect::SetSwingAnchorAlphaFunction(AlphaFunction func)
204 GetImpl(*this).SetSwingAnchorAlphaFunction(func);
207 void ScrollViewCustomEffect::SetSwingAnchorAlphaFunction(AlphaFunction funcIn, AlphaFunction funcOut)
209 GetImpl(*this).SetSwingAnchorAlphaFunction(funcIn, funcOut);
212 void ScrollViewCustomEffect::SetSwingAnchorAlphaFunctionIn(AlphaFunction func)
214 GetImpl(*this).SetSwingAnchorAlphaFunctionIn(func);
217 void ScrollViewCustomEffect::SetSwingAnchorAlphaFunctionOut(AlphaFunction func)
219 GetImpl(*this).SetSwingAnchorAlphaFunctionOut(func);
222 void ScrollViewCustomEffect::SetOpacityThreshold(float thresh)
224 GetImpl(*this).SetOpacityThreshold(thresh);
227 void ScrollViewCustomEffect::SetOpacityThreshold(float threshIn, float threshOut)
229 GetImpl(*this).SetOpacityThreshold(threshIn, threshOut);
232 void ScrollViewCustomEffect::SetOpacityThresholdIn(float thresh)
234 GetImpl(*this).SetOpacityThresholdIn(thresh);
237 void ScrollViewCustomEffect::SetOpacityThresholdOut(float thresh)
239 GetImpl(*this).SetOpacityThresholdOut(thresh);
242 void ScrollViewCustomEffect::SetOpacityAlphaFunction(AlphaFunction func)
244 GetImpl(*this).SetOpacityAlphaFunction(func);
247 void ScrollViewCustomEffect::SetOpacityAlphaFunction(AlphaFunction funcIn, AlphaFunction funcOut)
249 GetImpl(*this).SetOpacityAlphaFunction(funcIn, funcOut);
252 void ScrollViewCustomEffect::SetOpacityAlphaFunctionIn(AlphaFunction func)
254 GetImpl(*this).SetOpacityAlphaFunctionIn(func);
257 void ScrollViewCustomEffect::SetOpacityAlphaFunctionOut(AlphaFunction func)
259 GetImpl(*this).SetOpacityAlphaFunctionOut(func);
262 void ScrollViewCustomEffect::ApplyToPage(Actor page, Vector3 pageSize)
264 GetImpl(*this).ApplyToPage(page, pageSize);
267 } // namespace Toolkit