1 #ifndef __DALI_TOOLKIT_SCROLL_BAR_INTERNAL_H__
2 #define __DALI_TOOLKIT_SCROLL_BAR_INTERNAL_H__
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali-toolkit/public-api/controls/scrollable/scroll-component.h>
23 #include <dali-toolkit/public-api/controls/scrollable/scrollable.h>
31 // Forward declarations
35 // Forward declarations
37 class ScrollBarInternal;
41 * ScrollBarInternal is a UI component that can be added to the sides of the scrollable controls
42 * indicating the current scroll position.
44 class ScrollBarInternal : public ScrollComponent
50 * Create an uninitialized ScrollBarInternal; this can be initialized with ScrollBarInternal::New()
51 * Calling member functions with an uninitialized Dali::Object is not allowed.
52 * or horizontally (false)
59 ScrollBarInternal( const ScrollBarInternal& scrollBar );
62 * Assignment operator.
64 ScrollBarInternal& operator=( const ScrollBarInternal& scrollBar );
68 * Dali::Object derived classes typically do not contain member data.
70 virtual ~ScrollBarInternal();
73 * Create an initialized ScrollBarInternal
74 * @param[in] container Reference to the container of scroll bar
75 * @param[in] vertical Whether ScrollBarInternal should be oriented vertically (true)
76 * or horizontally (false)
77 * @return A pointer to the created ScrollBarInternal.
79 static ScrollBarInternal New(Scrollable& container, bool vertical);
82 * Downcast an Object handle to ScrollBarInternal. If handle points to a ScrollBarInternal the
83 * downcast produces valid handle. If not the returned handle is left uninitialized.
84 * @param[in] handle Handle to an object
85 * @return handle to a ScrollBarInternal or an uninitialized handle
87 static ScrollBarInternal DownCast( BaseHandle handle );
90 * Show ScrollBarInternal
95 * Hide ScrollBarInternal
99 public: // Not intended for application developers
102 * Creates a handle using the Toolkit::Internal implementation.
103 * @param[in] implementation The Control implementation.
105 ScrollBarInternal( Internal::ScrollBarInternal& implementation );
108 * Allows the creation of this Control from an Internal::CustomActor pointer.
109 * @param[in] internal A pointer to the internal CustomActor.
111 ScrollBarInternal( Dali::Internal::CustomActor* internal );
114 } // namespace Toolkit
118 #endif // __DALI_TOOLKIT_SCROLL_BAR_INTERNAL_H__