Fix for ScrollConnector enum.
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / public-api / controls / scrollable / scroll-connector.cpp
1 //
2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
3 //
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
7 //
8 //     http://floralicense.org/license/
9 //
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.
15 //
16
17 #include <dali-toolkit/public-api/controls/scrollable/scroll-connector.h>
18 #include <dali-toolkit/internal/controls/scrollable/scroll-connector-impl.h>
19
20 using namespace Dali;
21
22 namespace Dali
23 {
24
25 namespace Toolkit
26 {
27
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";
31
32 ScrollConnector ScrollConnector::New()
33 {
34   return ScrollConnector( Internal::ScrollConnector::New() );
35 }
36
37 ScrollConnector::ScrollConnector()
38 {
39 }
40
41 ScrollConnector::ScrollConnector( const ScrollConnector& handle )
42 : BaseHandle( handle )
43 {
44 }
45
46 ScrollConnector::~ScrollConnector()
47 {
48 }
49
50 ScrollConnector ScrollConnector::DownCast( BaseHandle handle )
51 {
52   return ScrollConnector( dynamic_cast<Internal::ScrollConnector*>(handle.GetObjectPtr()) );
53 }
54
55 void ScrollConnector::SetLimits( float min, float max )
56 {
57   GetImpl(*this).SetLimits( min, max );
58 }
59
60 float ScrollConnector::GetMinLimit() const
61 {
62   return GetImpl(*this).GetMinLimit();
63 }
64
65 float ScrollConnector::GetMaxLimit() const
66 {
67   return GetImpl(*this).GetMaxLimit();
68 }
69
70 Constrainable ScrollConnector::GetScrollPositionObject() const
71 {
72   return GetImpl(*this).GetScrollPositionObject();
73 }
74
75 ScrollConnector::LimitsChangedSignalType& ScrollConnector::LimitsChangedSignal()
76 {
77   return GetImpl(*this).LimitsChangedSignal();
78 }
79
80 ScrollConnector::ScrollConnector( Internal::ScrollConnector* impl )
81 : BaseHandle( impl )
82 {
83 }
84
85 } // namespace Toolkit
86
87 } // namespace Dali