Merge "Typo fixed in Control implementation doc." into tizen
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / public-api / controls / scroll-bar / scroll-bar.cpp
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
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
18 #include <dali-toolkit/public-api/controls/scroll-bar/scroll-bar.h>
19 #include <dali-toolkit/internal/controls/scroll-bar/scroll-bar-impl.h>
20
21 namespace Dali
22 {
23
24 namespace Toolkit
25 {
26
27 ScrollBar::ScrollBar()
28 {
29 }
30
31 ScrollBar::ScrollBar(Internal::ScrollBar& implementation)
32 : ScrollComponent( implementation )
33 {
34 }
35
36 ScrollBar::ScrollBar( Dali::Internal::CustomActor* internal )
37 : ScrollComponent( internal )
38 {
39   VerifyCustomActorPointer<Internal::ScrollBar>(internal);
40 }
41
42 ScrollBar::ScrollBar( const ScrollBar& scrollBar )
43 : ScrollComponent( scrollBar )
44 {
45 }
46
47 ScrollBar& ScrollBar::operator=( const ScrollBar& scrollBar )
48 {
49   if( &scrollBar != this )
50   {
51     Control::operator=( scrollBar );
52   }
53   return *this;
54 }
55
56 ScrollBar ScrollBar::New()
57 {
58   return Internal::ScrollBar::New();
59 }
60
61 ScrollBar ScrollBar::DownCast( BaseHandle handle )
62 {
63   return Control::DownCast<ScrollBar, Internal::ScrollBar>(handle);
64 }
65
66 ScrollBar::~ScrollBar()
67 {
68 }
69
70 void ScrollBar::SetIndicatorImage( Image image )
71 {
72   GetImpl(*this).SetIndicatorImage(image);
73 }
74
75 Actor ScrollBar::GetScrollIndicator()
76 {
77   return GetImpl(*this).GetScrollIndicator();
78 }
79
80 void ScrollBar::SetPositionNotifications( const std::vector<float>& positions )
81 {
82   GetImpl(*this).SetPositionNotifications(positions);
83 }
84
85 void ScrollBar::SetIndicatorHeightPolicy( ScrollBar::IndicatorHeightPolicy policy )
86 {
87   GetImpl(*this).SetIndicatorHeightPolicy(policy);
88 }
89
90 ScrollBar::IndicatorHeightPolicy ScrollBar::GetIndicatorHeightPolicy()
91 {
92   return GetImpl(*this).GetIndicatorHeightPolicy();
93 }
94
95 void ScrollBar::SetIndicatorFixedHeight( float height )
96 {
97   GetImpl(*this).SetIndicatorFixedHeight(height);
98 }
99
100 float ScrollBar::GetIndicatorFixedHeight()
101 {
102   return GetImpl(*this).GetIndicatorFixedHeight();
103 }
104
105 void ScrollBar::SetIndicatorShowDuration( float durationSeconds )
106 {
107   GetImpl(*this).SetIndicatorShowDuration(durationSeconds);
108 }
109
110 float ScrollBar::GetIndicatorShowDuration()
111 {
112   return GetImpl(*this).GetIndicatorShowDuration();
113 }
114
115 void ScrollBar::SetIndicatorHideDuration( float durationSeconds )
116 {
117   GetImpl(*this).SetIndicatorHideDuration(durationSeconds);
118 }
119
120 float ScrollBar::GetIndicatorHideDuration()
121 {
122   return GetImpl(*this).GetIndicatorHideDuration();
123 }
124
125 void ScrollBar::Show()
126 {
127   GetImpl(*this).Show();
128 }
129
130 void ScrollBar::Hide()
131 {
132   GetImpl(*this).Hide();
133 }
134
135 ScrollBar::ScrollPositionNotifiedSignalType& ScrollBar::ScrollPositionNotifiedSignal()
136 {
137   return GetImpl(*this).ScrollPositionNotifiedSignal();
138 }
139
140 } // namespace Toolkit
141
142 } // namespace Dali