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 * @addtogroup CAPI_DALI_FRAMEWORK
26 #include <dali/dali.h>
27 #include <dali-toolkit/public-api/controls/control.h>
29 namespace Dali DALI_IMPORT_API
35 namespace Internal DALI_INTERNAL
37 class ScrollComponent;
41 * Base class for derived ScrollComponents
42 * ScrollComponents such as ScrollBar are derived from this class.
43 * To instantiate these ScrollBars and other derived components
45 class ScrollComponent : public Control
50 * Create an uninitialized ScrollComponent; this can be initialized with ScrollComponent::New()
51 * Calling member functions with an uninitialized Dali::Object is not allowed.
58 ScrollComponent( const ScrollComponent& scrollComponent );
61 * Assignment operator.
63 ScrollComponent& operator=( const ScrollComponent& scrollComponent );
67 * Dali::Object derived classes typically do not contain member data.
69 virtual ~ScrollComponent();
72 * Downcast an Object handle to ScrollComponent. If handle points to a ScrollComponent the
73 * downcast produces valid handle. If not the returned handle is left uninitialized.
74 * @param[in] handle Handle to an object
75 * @return handle to a ScrollComponent or an uninitialized handle
77 static ScrollComponent DownCast( BaseHandle handle );
79 public: // Not intended for application developers
82 * Creates a handle using the Toolkit::Internal implementation.
83 * @param[in] implementation The Control implementation.
85 ScrollComponent( Internal::ScrollComponent& implementation );
88 * Allows the creation of this Control from an Internal::CustomActor pointer.
89 * @param[in] internal A pointer to the internal CustomActor.
91 ScrollComponent( Dali::Internal::CustomActor* internal );
94 } // namespace Toolkit
101 #endif // __DALI_TOOLKIT_SCROLL_COMPONENT_H__