2 * Copyright (c) 2015 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/scrollable.h>
19 #include <dali-toolkit/internal/controls/scrollable/scrollable-impl.h>
29 Scrollable::Scrollable()
33 Scrollable::Scrollable(Internal::Scrollable& implementation)
34 : Control(implementation)
38 Scrollable::Scrollable( Dali::Internal::CustomActor* internal )
41 VerifyCustomActorPointer<Internal::Scrollable>(internal);
44 Scrollable::Scrollable( const Scrollable& handle )
49 Scrollable& Scrollable::operator=( const Scrollable& handle )
53 Control::operator=( handle );
58 Scrollable::~Scrollable()
62 Scrollable Scrollable::DownCast( BaseHandle handle )
64 return Control::DownCast<Scrollable, Internal::Scrollable>(handle);
67 Scrollable::ScrollStartedSignalType& Scrollable::ScrollStartedSignal()
69 return GetImpl(*this).ScrollStartedSignal();
72 Scrollable::ScrollUpdatedSignalType& Scrollable::ScrollUpdatedSignal()
74 return GetImpl(*this).ScrollUpdatedSignal();
77 Scrollable::ScrollCompletedSignalType& Scrollable::ScrollCompletedSignal()
79 return GetImpl(*this).ScrollCompletedSignal();
82 bool Scrollable::IsOvershootEnabled() const
84 return GetImpl(*this).IsOvershootEnabled();
87 void Scrollable::SetOvershootEnabled(bool enable)
89 GetImpl(*this).SetOvershootEnabled(enable);
92 void Scrollable::SetOvershootEffectColor( const Vector4& color )
94 GetImpl(*this).SetOvershootEffectColor(color);
97 Vector4 Scrollable::GetOvershootEffectColor() const
99 return GetImpl(*this).GetOvershootEffectColor();
102 void Scrollable::SetOvershootAnimationSpeed( float pixelsPerSecond )
104 GetImpl(*this).SetOvershootAnimationSpeed(pixelsPerSecond);
107 float Scrollable::GetOvershootAnimationSpeed() const
109 return GetImpl(*this).GetOvershootAnimationSpeed();
112 } // namespace Toolkit