1 #ifndef DALI_TOOLKIT_ITEM_VIEW_DECLARATIONS_H
2 #define DALI_TOOLKIT_ITEM_VIEW_DECLARATIONS_H
5 * Copyright (c) 2019 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 <utility> // std::pair
23 #include <dali/public-api/actors/actor.h>
24 #include <dali/public-api/common/vector-wrapper.h>
32 * @addtogroup dali_toolkit_controls_item_view
36 typedef unsigned int ItemId; ///< Unique identity for each item in the view. @SINCE_1_0.0
38 typedef std::vector<ItemId> ItemIdContainer; ///< Item id container type @SINCE_1_0.0
39 typedef ItemIdContainer::iterator ItemIdIter; ///< Item id iterator type @SINCE_1_0.0
40 typedef ItemIdContainer::const_iterator ConstItemIdIter; ///< Item id const iterator type @SINCE_1_0.0
42 typedef std::pair<ItemId, Actor> Item; ///< Item type @SINCE_1_0.0
44 typedef std::vector<Item> ItemContainer; ///< Item container type @SINCE_1_0.0
45 typedef ItemContainer::iterator ItemIter; ///< Item iterator type @SINCE_1_0.0
46 typedef ItemContainer::const_iterator ConstItemIter; ///< Item const iterator type @SINCE_1_0.0
54 } // namespace Toolkit
58 #endif // DALI_TOOLKIT_ITEM_VIEW_DECLARATIONS_H