Formatting API
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / public-api / controls / scrollable / item-view / item-view-declarations.h
1 #ifndef DALI_TOOLKIT_ITEM_VIEW_DECLARATIONS_H
2 #define DALI_TOOLKIT_ITEM_VIEW_DECLARATIONS_H
3
4 /*
5  * Copyright (c) 2020 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 // EXTERNAL INCLUDES
22 #include <dali/public-api/actors/actor.h>
23 #include <dali/public-api/common/vector-wrapper.h>
24 #include <utility> // std::pair
25
26 namespace Dali
27 {
28 namespace Toolkit
29 {
30 /**
31  * @addtogroup dali_toolkit_controls_item_view
32  * @{
33  */
34
35 typedef unsigned int ItemId; ///< Unique identity for each item in the view. @SINCE_1_0.0
36
37 typedef std::vector<ItemId>             ItemIdContainer; ///< Item id container type @SINCE_1_0.0
38 typedef ItemIdContainer::iterator       ItemIdIter;      ///< Item id iterator type @SINCE_1_0.0
39 typedef ItemIdContainer::const_iterator ConstItemIdIter; ///< Item id const iterator type @SINCE_1_0.0
40
41 typedef std::pair<ItemId, Actor> Item; ///< Item type @SINCE_1_0.0
42
43 typedef std::vector<Item>             ItemContainer; ///< Item container type @SINCE_1_0.0
44 typedef ItemContainer::iterator       ItemIter;      ///< Item iterator type @SINCE_1_0.0
45 typedef ItemContainer::const_iterator ConstItemIter; ///< Item const iterator type @SINCE_1_0.0
46
47 class ItemView;
48 class ItemLayout;
49
50 /**
51  * @}
52  */
53 } // namespace Toolkit
54
55 } // namespace Dali
56
57 #endif // DALI_TOOLKIT_ITEM_VIEW_DECLARATIONS_H