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 Property::Index SCROLL_POSITION = Internal::ScrollConnector::SCROLL_POSITION;
31 const char* const ScrollConnector::LIMITS_CHANGED_SIGNAL_NAME = "limits-changed";
33 ScrollConnector ScrollConnector::New()
35 return ScrollConnector( Internal::ScrollConnector::New() );
38 ScrollConnector::ScrollConnector()
42 ScrollConnector::ScrollConnector( const ScrollConnector& handle )
43 : BaseHandle( handle )
47 ScrollConnector::~ScrollConnector()
51 ScrollConnector ScrollConnector::DownCast( BaseHandle handle )
53 return ScrollConnector( dynamic_cast<Internal::ScrollConnector*>(handle.GetObjectPtr()) );
56 void ScrollConnector::SetLimits( float min, float max )
58 GetImpl(*this).SetLimits( min, max );
61 float ScrollConnector::GetMinLimit() const
63 return GetImpl(*this).GetMinLimit();
66 float ScrollConnector::GetMaxLimit() const
68 return GetImpl(*this).GetMaxLimit();
71 Constrainable ScrollConnector::GetScrollPositionObject() const
73 return GetImpl(*this).GetScrollPositionObject();
76 ScrollConnector::LimitsChangedSignalType& ScrollConnector::LimitsChangedSignal()
78 return GetImpl(*this).LimitsChangedSignal();
81 ScrollConnector::ScrollConnector( Internal::ScrollConnector* impl )
86 } // namespace Toolkit