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 const char* const ScrollConnector::DOMAIN_CHANGED_SIGNAL_NAME = "domain-changed";
36 const char* const ScrollConnector::SCROLL_POSITION_CHANGED_SIGNAL_NAME = "scroll-position-changed";
38 ScrollConnector ScrollConnector::New()
40 return ScrollConnector( Internal::ScrollConnector::New() );
43 ScrollConnector::ScrollConnector()
47 ScrollConnector::ScrollConnector( const ScrollConnector& handle )
48 : BaseHandle( handle )
52 ScrollConnector::~ScrollConnector()
56 ScrollConnector ScrollConnector::DownCast( BaseHandle handle )
58 return ScrollConnector( dynamic_cast<Internal::ScrollConnector*>(handle.GetObjectPtr()) );
61 void ScrollConnector::SetScrollDomain( float min, float max, float length )
63 GetImpl(*this).SetScrollDomain( min, max, length );
66 float ScrollConnector::GetMinLimit() const
68 return GetImpl(*this).GetMinLimit();
71 float ScrollConnector::GetMaxLimit() const
73 return GetImpl(*this).GetMaxLimit();
76 float ScrollConnector::GetContentLength() const
78 return GetImpl(*this).GetContentLength();
81 Constrainable ScrollConnector::GetScrollPositionObject() const
83 return GetImpl(*this).GetScrollPositionObject();
86 void ScrollConnector::SetScrollPosition( float position )
88 GetImpl(*this).SetScrollPosition( position );
91 float ScrollConnector::GetScrollPosition() const
93 return GetImpl(*this).GetScrollPosition();
96 ScrollConnector::ScrollPositionChangedSignalType& ScrollConnector::ScrollPositionChangedSignal()
98 return GetImpl(*this).ScrollPositionChangedSignal();
101 ScrollConnector::DomainChangedSignalType& ScrollConnector::DomainChangedSignal()
103 return GetImpl(*this).DomainChangedSignal();
106 ScrollConnector::ScrollConnector( Internal::ScrollConnector* impl )
111 } // namespace Toolkit