bb1e6294f34722017607d744c6cc9a41c57609a6
[platform/core/uifw/dali-toolkit.git] / base / dali-toolkit / internal / controls / scroll-component / scroll-bar-internal.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/internal/controls/scroll-component/scroll-bar-internal.h>
19 #include <dali-toolkit/internal/controls/scroll-component/scroll-bar-internal-impl.h>
20
21 namespace Dali
22 {
23
24 namespace Toolkit
25 {
26
27 ScrollBarInternal::ScrollBarInternal()
28 {
29 }
30
31 ScrollBarInternal::ScrollBarInternal(Internal::ScrollBarInternal& implementation)
32 : ScrollComponent(implementation)
33 {
34 }
35
36 ScrollBarInternal::ScrollBarInternal( Dali::Internal::CustomActor* internal )
37 : ScrollComponent( internal )
38 {
39   VerifyCustomActorPointer<Internal::ScrollBarInternal>(internal);
40 }
41
42 ScrollBarInternal::ScrollBarInternal( const ScrollBarInternal& scrollBar )
43 : ScrollComponent(scrollBar)
44 {
45 }
46
47 ScrollBarInternal& ScrollBarInternal::operator=( const ScrollBarInternal& scrollBar )
48 {
49   if( &scrollBar != this )
50   {
51     Control::operator=( scrollBar );
52   }
53   return *this;
54 }
55
56 ScrollBarInternal ScrollBarInternal::New(Scrollable& container, bool vertical)
57 {
58   return Internal::ScrollBarInternal::New(container, vertical);
59 }
60
61 ScrollBarInternal ScrollBarInternal::DownCast( BaseHandle handle )
62 {
63   return Control::DownCast<ScrollBarInternal, Internal::ScrollBarInternal>(handle);
64 }
65
66 ScrollBarInternal::~ScrollBarInternal()
67 {
68 }
69
70 void ScrollBarInternal::Show()
71 {
72   GetImpl(*this).Show();
73 }
74
75 void ScrollBarInternal::Hide()
76 {
77   GetImpl(*this).Hide();
78 }
79
80 } // namespace Toolkit
81
82 } // namespace Dali