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-connector.h>
19 #include <dali-toolkit/internal/controls/scrollable/scroll-connector-impl.h>
29 const char* const ScrollConnector::SCROLL_POSITION_PROPERTY_NAME = "scroll-position";
30 const char* const ScrollConnector::OVERSHOOT_PROPERTY_NAME = "overshoot";
32 const Property::Index ScrollConnector::SCROLL_POSITION = Internal::ScrollConnector::SCROLL_POSITION;
33 const Property::Index ScrollConnector::OVERSHOOT = Internal::ScrollConnector::OVERSHOOT;
35 ScrollConnector ScrollConnector::New()
37 return ScrollConnector( Internal::ScrollConnector::New() );
40 ScrollConnector::ScrollConnector()
44 ScrollConnector::ScrollConnector( const ScrollConnector& handle )
45 : BaseHandle( handle )
49 ScrollConnector::~ScrollConnector()
53 ScrollConnector ScrollConnector::DownCast( BaseHandle handle )
55 return ScrollConnector( dynamic_cast<Internal::ScrollConnector*>(handle.GetObjectPtr()) );
58 void ScrollConnector::SetScrollDomain( float min, float max, float length )
60 GetImpl(*this).SetScrollDomain( min, max, length );
63 float ScrollConnector::GetMinLimit() const
65 return GetImpl(*this).GetMinLimit();
68 float ScrollConnector::GetMaxLimit() const
70 return GetImpl(*this).GetMaxLimit();
73 float ScrollConnector::GetContentLength() const
75 return GetImpl(*this).GetContentLength();
78 Handle ScrollConnector::GetScrollPositionObject() const
80 return GetImpl(*this).GetScrollPositionObject();
83 void ScrollConnector::SetScrollPosition( float position )
85 GetImpl(*this).SetScrollPosition( position );
88 float ScrollConnector::GetScrollPosition() const
90 return GetImpl(*this).GetScrollPosition();
93 ScrollConnector::ScrollPositionChangedSignalType& ScrollConnector::ScrollPositionChangedSignal()
95 return GetImpl(*this).ScrollPositionChangedSignal();
98 ScrollConnector::DomainChangedSignalType& ScrollConnector::DomainChangedSignal()
100 return GetImpl(*this).DomainChangedSignal();
103 ScrollConnector::ScrollConnector( Internal::ScrollConnector* impl )
108 } // namespace Toolkit