2 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 #include <dali-toolkit/public-api/controls/scroll-bar/scroll-bar.h>
22 #include <dali-toolkit/internal/controls/scroll-bar/scroll-bar-impl.h>
30 ScrollBar::ScrollBar()
34 ScrollBar::ScrollBar(Internal::ScrollBar& implementation)
35 : ScrollComponent( implementation )
39 ScrollBar::ScrollBar( Dali::Internal::CustomActor* internal )
40 : ScrollComponent( internal )
42 VerifyCustomActorPointer<Internal::ScrollBar>(internal);
45 ScrollBar::ScrollBar( const ScrollBar& scrollBar )
46 : ScrollComponent( scrollBar )
50 ScrollBar& ScrollBar::operator=( const ScrollBar& scrollBar )
52 if( &scrollBar != this )
54 Control::operator=( scrollBar );
59 ScrollBar ScrollBar::New()
61 return Internal::ScrollBar::New();
64 ScrollBar ScrollBar::DownCast( BaseHandle handle )
66 return Control::DownCast<ScrollBar, Internal::ScrollBar>(handle);
69 ScrollBar::~ScrollBar()
73 void ScrollBar::SetIndicatorImage( Image image )
75 GetImpl(*this).SetIndicatorImage(image);
78 Actor ScrollBar::GetScrollIndicator()
80 return GetImpl(*this).GetScrollIndicator();
83 void ScrollBar::SetPositionNotifications( const std::vector<float>& positions )
85 GetImpl(*this).SetPositionNotifications(positions);
88 void ScrollBar::SetIndicatorHeightPolicy( ScrollBar::IndicatorHeightPolicy policy )
90 GetImpl(*this).SetIndicatorHeightPolicy(policy);
93 ScrollBar::IndicatorHeightPolicy ScrollBar::GetIndicatorHeightPolicy()
95 return GetImpl(*this).GetIndicatorHeightPolicy();
98 void ScrollBar::SetIndicatorFixedHeight( float height )
100 GetImpl(*this).SetIndicatorFixedHeight(height);
103 float ScrollBar::GetIndicatorFixedHeight()
105 return GetImpl(*this).GetIndicatorFixedHeight();
108 void ScrollBar::SetIndicatorShowDuration( float durationSeconds )
110 GetImpl(*this).SetIndicatorShowDuration(durationSeconds);
113 float ScrollBar::GetIndicatorShowDuration()
115 return GetImpl(*this).GetIndicatorShowDuration();
118 void ScrollBar::SetIndicatorHideDuration( float durationSeconds )
120 GetImpl(*this).SetIndicatorHideDuration(durationSeconds);
123 float ScrollBar::GetIndicatorHideDuration()
125 return GetImpl(*this).GetIndicatorHideDuration();
128 void ScrollBar::Show()
130 GetImpl(*this).Show();
133 void ScrollBar::Hide()
135 GetImpl(*this).Hide();
138 ScrollBar::ScrollPositionNotifiedSignalType& ScrollBar::ScrollPositionNotifiedSignal()
140 return GetImpl(*this).ScrollPositionNotifiedSignal();
143 } // namespace Toolkit