Add support for ItemView layout customisation through properties.
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / controls / scrollable / item-view / item-view-devel.h
1 #ifndef DALI_TOOLKIT_ITEM_VIEW_DEVEL_H
2 #define DALI_TOOLKIT_ITEM_VIEW_DEVEL_H
3
4 /*
5  * Copyright (c) 2016 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20
21 // INTERNAL INCLUDES
22 #include <dali-toolkit/public-api/controls/scrollable/item-view/item-view.h>
23
24 namespace Dali
25 {
26
27 namespace Toolkit
28 {
29
30 namespace DevelItemView
31 {
32
33 namespace Property
34 {
35
36 enum
37 {
38   // Event side properties
39   MINIMUM_SWIPE_SPEED          = Dali::Toolkit::ItemView::Property::MINIMUM_SWIPE_SPEED,
40   MINIMUM_SWIPE_DISTANCE       = Dali::Toolkit::ItemView::Property::MINIMUM_SWIPE_DISTANCE,
41   WHEEL_SCROLL_DISTANCE_STEP   = Dali::Toolkit::ItemView::Property::WHEEL_SCROLL_DISTANCE_STEP,
42   SNAP_TO_ITEM_ENABLED         = Dali::Toolkit::ItemView::Property::SNAP_TO_ITEM_ENABLED,
43   REFRESH_INTERVAL             = Dali::Toolkit::ItemView::Property::REFRESH_INTERVAL,
44
45   /**
46    * @brief The layout used.
47    * @details Name "layout", type Property::ARRAY
48    * @see SetLayout()
49    */
50   LAYOUT                       = REFRESH_INTERVAL + 1,
51
52   // Animatable properties
53   LAYOUT_POSITION              = Dali::Toolkit::ItemView::Property::LAYOUT_POSITION,
54   SCROLL_SPEED                 = Dali::Toolkit::ItemView::Property::SCROLL_SPEED,
55   OVERSHOOT                    = Dali::Toolkit::ItemView::Property::OVERSHOOT,
56   SCROLL_DIRECTION             = Dali::Toolkit::ItemView::Property::SCROLL_DIRECTION,
57   LAYOUT_ORIENTATION           = Dali::Toolkit::ItemView::Property::LAYOUT_ORIENTATION,
58   SCROLL_CONTENT_SIZE          = Dali::Toolkit::ItemView::Property::SCROLL_CONTENT_SIZE
59 };
60
61 } // namespace Property
62
63 } // namespace DevelItemView
64
65 } // namespace Toolkit
66
67 } // namespace Dali
68
69 #endif // DALI_TOOLKIT_ITEM_VIEW_DEVEL_H