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.
18 #include <dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view-effect.h>
19 #include <dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-effect-impl.h>
20 #include <dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-slide-effect-impl.h>
30 const std::string ScrollViewSlideEffect::EFFECT_TIME( "ScrollViewSlideEffect::EFFECT_TIME" );
31 const std::string ScrollViewSlideEffect::EFFECT_REFERENCE( "ScrollViewSlideEffect::EFFECT_REFERENCE" );
32 const std::string ScrollViewSlideEffect::EFFECT_ACTIVE( "ScrollViewSlideEffect::EFFECT_ACTIVE" );
34 ScrollViewSlideEffect ScrollViewSlideEffect::New()
36 return ScrollViewSlideEffect(new Internal::ScrollViewSlideEffect());
39 ScrollViewSlideEffect::ScrollViewSlideEffect()
44 ScrollViewSlideEffect::ScrollViewSlideEffect(Internal::ScrollViewSlideEffect *impl)
45 : ScrollViewEffect(impl)
49 bool ScrollViewSlideEffect::GetSlideDirection() const
51 return GetImpl(*this).GetSlideDirection();
54 void ScrollViewSlideEffect::SetSlideDirection(bool vertical)
56 GetImpl(*this).SetSlideDirection( vertical );
59 Vector3 ScrollViewSlideEffect::GetDelayReferenceOffset() const
61 return GetImpl(*this).GetDelayReferenceOffset();
64 void ScrollViewSlideEffect::SetDelayReferenceOffset(const Vector3& offset)
66 GetImpl(*this).SetDelayReferenceOffset(offset);
69 float ScrollViewSlideEffect::GetMaxDelayDuration() const
71 return GetImpl(*this).GetMaxDelayDuration();
74 void ScrollViewSlideEffect::SetMaxDelayDuration(float offset)
76 GetImpl(*this).SetMaxDelayDuration(offset);
79 ScrollViewSlideEffect ScrollViewSlideEffect::DownCast( BaseHandle handle )
81 return ScrollViewSlideEffect( dynamic_cast<Internal::ScrollViewSlideEffect*>(handle.GetObjectPtr()) );
84 void ScrollViewSlideEffect::ApplyToActor( Actor child,
88 GetImpl(*this).ApplyToActor( child,
93 } // namespace Toolkit