1 #ifndef __DALI_TOOLKIT_SCROLL_COMPONENT_H__
2 #define __DALI_TOOLKIT_SCROLL_COMPONENT_H__
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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.
21 #include <dali/dali.h>
22 #include <dali-toolkit/public-api/controls/control.h>
24 namespace Dali DALI_IMPORT_API
30 namespace Internal DALI_INTERNAL
32 class ScrollComponent;
36 * Base class for derived ScrollComponents
37 * ScrollComponents such as ScrollBar are derived from this class.
38 * To instantiate these ScrollBars and other derived components
40 class ScrollComponent : public Control
45 * Create an uninitialized ScrollComponent; this can be initialized with ScrollComponent::New()
46 * Calling member functions with an uninitialized Dali::Object is not allowed.
53 ScrollComponent( const ScrollComponent& scrollComponent );
56 * Assignment operator.
58 ScrollComponent& operator=( const ScrollComponent& scrollComponent );
62 * Dali::Object derived classes typically do not contain member data.
64 virtual ~ScrollComponent();
67 * Downcast an Object handle to ScrollComponent. If handle points to a ScrollComponent the
68 * downcast produces valid handle. If not the returned handle is left uninitialized.
69 * @param[in] handle Handle to an object
70 * @return handle to a ScrollComponent or an uninitialized handle
72 static ScrollComponent DownCast( BaseHandle handle );
74 public: // Not intended for application developers
77 * Creates a handle using the Toolkit::Internal implementation.
78 * @param[in] implementation The Control implementation.
80 ScrollComponent( Internal::ScrollComponent& implementation );
83 * Allows the creation of this Control from an Internal::CustomActor pointer.
84 * @param[in] internal A pointer to the internal CustomActor.
86 ScrollComponent( Dali::Internal::CustomActor* internal );
89 } // namespace Toolkit
93 #endif // __DALI_TOOLKIT_SCROLL_COMPONENT_H__