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 ScrollConnector::SCROLL_POSITION = Internal::ScrollConnector::SCROLL_POSITION;
30 const char* const ScrollConnector::LIMITS_CHANGED_SIGNAL_NAME = "limits-changed";
32 ScrollConnector ScrollConnector::New()
34 return ScrollConnector( Internal::ScrollConnector::New() );
37 ScrollConnector::ScrollConnector()
41 ScrollConnector::ScrollConnector( const ScrollConnector& handle )
42 : BaseHandle( handle )
46 ScrollConnector::~ScrollConnector()
50 ScrollConnector ScrollConnector::DownCast( BaseHandle handle )
52 return ScrollConnector( dynamic_cast<Internal::ScrollConnector*>(handle.GetObjectPtr()) );
55 void ScrollConnector::SetLimits( float min, float max )
57 GetImpl(*this).SetLimits( min, max );
60 float ScrollConnector::GetMinLimit() const
62 return GetImpl(*this).GetMinLimit();
65 float ScrollConnector::GetMaxLimit() const
67 return GetImpl(*this).GetMaxLimit();
70 Constrainable ScrollConnector::GetScrollPositionObject() const
72 return GetImpl(*this).GetScrollPositionObject();
75 ScrollConnector::LimitsChangedSignalType& ScrollConnector::LimitsChangedSignal()
77 return GetImpl(*this).LimitsChangedSignal();
80 ScrollConnector::ScrollConnector( Internal::ScrollConnector* impl )
85 } // namespace Toolkit