2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
4 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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.
17 #include <dali-toolkit/public-api/controls/scrollable/scroll-connector.h>
18 #include <dali-toolkit/internal/controls/scrollable/scroll-connector-impl.h>
28 const char* const ScrollConnector::SCROLL_POSITION_PROPERTY_NAME = "scroll-position";
29 const char* const ScrollConnector::OVERSHOOT_PROPERTY_NAME = "overshoot";
31 const Property::Index ScrollConnector::SCROLL_POSITION = Internal::ScrollConnector::SCROLL_POSITION;
32 const Property::Index ScrollConnector::OVERSHOOT = Internal::ScrollConnector::OVERSHOOT;
34 const char* const ScrollConnector::DOMAIN_CHANGED_SIGNAL_NAME = "domain-changed";
36 ScrollConnector ScrollConnector::New()
38 return ScrollConnector( Internal::ScrollConnector::New() );
41 ScrollConnector::ScrollConnector()
45 ScrollConnector::ScrollConnector( const ScrollConnector& handle )
46 : BaseHandle( handle )
50 ScrollConnector::~ScrollConnector()
54 ScrollConnector ScrollConnector::DownCast( BaseHandle handle )
56 return ScrollConnector( dynamic_cast<Internal::ScrollConnector*>(handle.GetObjectPtr()) );
59 void ScrollConnector::SetScrollDomain( float min, float max, float length )
61 GetImpl(*this).SetScrollDomain( min, max, length );
64 float ScrollConnector::GetMinLimit() const
66 return GetImpl(*this).GetMinLimit();
69 float ScrollConnector::GetMaxLimit() const
71 return GetImpl(*this).GetMaxLimit();
74 float ScrollConnector::GetContentLength() const
76 return GetImpl(*this).GetContentLength();
79 Constrainable ScrollConnector::GetScrollPositionObject() const
81 return GetImpl(*this).GetScrollPositionObject();
84 ScrollConnector::DomainChangedSignalType& ScrollConnector::DomainChangedSignal()
86 return GetImpl(*this).DomainChangedSignal();
89 ScrollConnector::ScrollConnector( Internal::ScrollConnector* impl )
94 } // namespace Toolkit