2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
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
8 // http://floralicense.org/license/
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.
18 #include <dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view-custom-effect.h>
21 #include <dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-custom-effect-impl.h>
31 ScrollViewCustomEffect ScrollViewCustomEffect::New()
33 return ScrollViewCustomEffect(new Internal::ScrollViewCustomEffect());
36 ScrollViewCustomEffect::ScrollViewCustomEffect()
41 ScrollViewCustomEffect::ScrollViewCustomEffect(Internal::ScrollViewCustomEffect *impl)
42 : ScrollViewEffect(impl)
46 ScrollViewCustomEffect ScrollViewCustomEffect::DownCast( BaseHandle handle )
48 return ScrollViewCustomEffect( dynamic_cast<Internal::ScrollViewCustomEffect*>(handle.GetObjectPtr()) );
51 void ScrollViewCustomEffect::SetPageSpacing(const Vector2& spacing)
53 GetImpl(*this).SetPageSpacing(spacing);
56 void ScrollViewCustomEffect::SetPageTranslation(const Vector3& translation)
58 GetImpl(*this).SetPageTranslation(translation);
61 void ScrollViewCustomEffect::SetPageTranslation(const Vector3& translationIn, const Vector3& translationOut)
63 GetImpl(*this).SetPageTranslation(translationIn, translationOut);
66 void ScrollViewCustomEffect::SetPageTranslationIn(const Vector3& translation)
68 GetImpl(*this).SetPageTranslationIn(translation);
71 void ScrollViewCustomEffect::SetPageTranslationOut(const Vector3& translation)
73 GetImpl(*this).SetPageTranslationOut(translation);
76 void ScrollViewCustomEffect::SetPageTranslateAlphaFunction(AlphaFunction func)
78 GetImpl(*this).SetPageTranslateAlphaFunction(func);
81 void ScrollViewCustomEffect::SetPageTranslateAlphaFunction(AlphaFunction funcIn, AlphaFunction funcOut)
83 GetImpl(*this).SetPageTranslateAlphaFunction(funcIn, funcOut);
86 void ScrollViewCustomEffect::SetPageTranslateAlphaFunctionIn(AlphaFunction func)
88 GetImpl(*this).SetPageTranslateAlphaFunctionIn(func);
91 void ScrollViewCustomEffect::SetPageTranslateAlphaFunctionOut(AlphaFunction func)
93 GetImpl(*this).SetPageTranslateAlphaFunctionOut(func);
96 void ScrollViewCustomEffect::SetGlobalPageRotation(float angle, const Vector3& axis)
98 GetImpl(*this).SetGlobalPageRotation(angle, axis);
101 void ScrollViewCustomEffect::SetAngledOriginPageRotation(const Vector3& angle)
103 GetImpl(*this).SetAngledOriginPageRotation(angle);
106 void ScrollViewCustomEffect::SetGlobalPageRotation(float angleIn, const Vector3& axisIn, float angleOut, const Vector3& axisOut)
108 GetImpl(*this).SetGlobalPageRotation(angleIn, axisIn, angleOut, axisOut);
111 void ScrollViewCustomEffect::SetGlobalPageRotationIn(float angle, const Vector3& axis)
113 GetImpl(*this).SetGlobalPageRotationIn(angle, axis);
116 void ScrollViewCustomEffect::SetGlobalPageRotationOut(float angle, const Vector3& axis)
118 GetImpl(*this).SetGlobalPageRotationOut(angle, axis);
121 void ScrollViewCustomEffect::SetGlobalPageRotationOrigin(const Vector3& origin)
123 GetImpl(*this).SetGlobalPageRotationOrigin(origin);
126 void ScrollViewCustomEffect::SetGlobalPageRotationOrigin(const Vector3& originIn, const Vector3& originOut)
128 GetImpl(*this).SetGlobalPageRotationOrigin(originIn, originOut);
131 void ScrollViewCustomEffect::SetGlobalPageRotationOriginIn(const Vector3& origin)
133 GetImpl(*this).SetGlobalPageRotationOriginIn(origin);
136 void ScrollViewCustomEffect::SetGlobalPageRotationOriginOut(const Vector3& origin)
138 GetImpl(*this).SetGlobalPageRotationOriginOut(origin);
141 void ScrollViewCustomEffect::SetSwingAngle(const float angle, const Vector3& axis)
143 GetImpl(*this).SetSwingAngle(angle, axis);
146 void ScrollViewCustomEffect::SetSwingAngle(float angleIn, const Vector3& axisIn, float angleOut, const Vector3& axisOut)
148 GetImpl(*this).SetSwingAngle(angleIn, axisIn, angleOut, axisOut);
151 void ScrollViewCustomEffect::SetSwingAngleIn(float angle, const Vector3& axis)
153 GetImpl(*this).SetSwingAngleIn(angle, axis);
156 void ScrollViewCustomEffect::SetSwingAngleOut(float angle, const Vector3& axis)
158 GetImpl(*this).SetSwingAngleOut(angle, axis);
161 void ScrollViewCustomEffect::SetSwingAngleAlphaFunction(AlphaFunction func)
163 GetImpl(*this).SetSwingAngleAlphaFunction(func);
166 void ScrollViewCustomEffect::SetSwingAngleAlphaFunction(AlphaFunction funcIn, AlphaFunction funcOut)
168 GetImpl(*this).SetSwingAngleAlphaFunction(funcIn, funcOut);
171 void ScrollViewCustomEffect::SetSwingAngleAlphaFunctionIn(AlphaFunction func)
173 GetImpl(*this).SetSwingAngleAlphaFunctionIn(func);
176 void ScrollViewCustomEffect::SetSwingAngleAlphaFunctionOut(AlphaFunction func)
178 GetImpl(*this).SetSwingAngleAlphaFunctionOut(func);
181 void ScrollViewCustomEffect::SetSwingAnchor(const Vector3& anchor)
183 GetImpl(*this).SetSwingAnchor(anchor);
186 void ScrollViewCustomEffect::SetSwingAnchor(const Vector3& anchorIn, const Vector3& anchorOut)
188 GetImpl(*this).SetSwingAnchor(anchorIn, anchorOut);
191 void ScrollViewCustomEffect::SetSwingAnchorIn(const Vector3& anchor)
193 GetImpl(*this).SetSwingAnchorIn(anchor);
196 void ScrollViewCustomEffect::SetSwingAnchorOut(const Vector3& anchor)
198 GetImpl(*this).SetSwingAnchorOut(anchor);
201 void ScrollViewCustomEffect::SetSwingAnchorAlphaFunction(AlphaFunction func)
203 GetImpl(*this).SetSwingAnchorAlphaFunction(func);
206 void ScrollViewCustomEffect::SetSwingAnchorAlphaFunction(AlphaFunction funcIn, AlphaFunction funcOut)
208 GetImpl(*this).SetSwingAnchorAlphaFunction(funcIn, funcOut);
211 void ScrollViewCustomEffect::SetSwingAnchorAlphaFunctionIn(AlphaFunction func)
213 GetImpl(*this).SetSwingAnchorAlphaFunctionIn(func);
216 void ScrollViewCustomEffect::SetSwingAnchorAlphaFunctionOut(AlphaFunction func)
218 GetImpl(*this).SetSwingAnchorAlphaFunctionOut(func);
221 void ScrollViewCustomEffect::SetOpacityThreshold(float thresh)
223 GetImpl(*this).SetOpacityThreshold(thresh);
226 void ScrollViewCustomEffect::SetOpacityThreshold(float threshIn, float threshOut)
228 GetImpl(*this).SetOpacityThreshold(threshIn, threshOut);
231 void ScrollViewCustomEffect::SetOpacityThresholdIn(float thresh)
233 GetImpl(*this).SetOpacityThresholdIn(thresh);
236 void ScrollViewCustomEffect::SetOpacityThresholdOut(float thresh)
238 GetImpl(*this).SetOpacityThresholdOut(thresh);
241 void ScrollViewCustomEffect::SetOpacityAlphaFunction(AlphaFunction func)
243 GetImpl(*this).SetOpacityAlphaFunction(func);
246 void ScrollViewCustomEffect::SetOpacityAlphaFunction(AlphaFunction funcIn, AlphaFunction funcOut)
248 GetImpl(*this).SetOpacityAlphaFunction(funcIn, funcOut);
251 void ScrollViewCustomEffect::SetOpacityAlphaFunctionIn(AlphaFunction func)
253 GetImpl(*this).SetOpacityAlphaFunctionIn(func);
256 void ScrollViewCustomEffect::SetOpacityAlphaFunctionOut(AlphaFunction func)
258 GetImpl(*this).SetOpacityAlphaFunctionOut(func);
261 void ScrollViewCustomEffect::ApplyToPage(Actor page, Vector3 pageSize)
263 GetImpl(*this).ApplyToPage(page, pageSize);
266 } // namespace Toolkit