2 * Copyright (c) 2020 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/internal/controls/scrollable/scrollable-impl.h>
19 #include <dali-toolkit/public-api/controls/scrollable/scrollable.h>
27 Scrollable::Scrollable()
31 Scrollable::Scrollable(Internal::Scrollable& implementation)
32 : Control(implementation)
36 Scrollable::Scrollable(Dali::Internal::CustomActor* internal)
39 VerifyCustomActorPointer<Internal::Scrollable>(internal);
42 Scrollable::Scrollable(const Scrollable& handle) = default;
44 Scrollable::Scrollable(Scrollable&& rhs) = default;
46 Scrollable& Scrollable::operator=(const Scrollable& handle) = default;
48 Scrollable& Scrollable::operator=(Scrollable&& rhs) = default;
50 Scrollable::~Scrollable()
54 Scrollable Scrollable::DownCast(BaseHandle handle)
56 return Control::DownCast<Scrollable, Internal::Scrollable>(handle);
59 Scrollable::ScrollStartedSignalType& Scrollable::ScrollStartedSignal()
61 return GetImpl(*this).ScrollStartedSignal();
64 Scrollable::ScrollUpdatedSignalType& Scrollable::ScrollUpdatedSignal()
66 return GetImpl(*this).ScrollUpdatedSignal();
69 Scrollable::ScrollCompletedSignalType& Scrollable::ScrollCompletedSignal()
71 return GetImpl(*this).ScrollCompletedSignal();
74 bool Scrollable::IsOvershootEnabled() const
76 return GetImpl(*this).IsOvershootEnabled();
79 void Scrollable::SetOvershootEnabled(bool enable)
81 GetImpl(*this).SetOvershootEnabled(enable);
84 void Scrollable::SetOvershootEffectColor(const Vector4& color)
86 GetImpl(*this).SetOvershootEffectColor(color);
89 Vector4 Scrollable::GetOvershootEffectColor() const
91 return GetImpl(*this).GetOvershootEffectColor();
94 void Scrollable::SetOvershootAnimationSpeed(float pixelsPerSecond)
96 GetImpl(*this).SetOvershootAnimationSpeed(pixelsPerSecond);
99 float Scrollable::GetOvershootAnimationSpeed() const
101 return GetImpl(*this).GetOvershootAnimationSpeed();
104 } // namespace Toolkit