Changed indicator bg color.
[platform/framework/native/uifw.git] / src / ui / controls / FUiCtrl_IconListViewItemEventArg.cpp
1 //
2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0/
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 /**
19  * @file                FUiCtrl_IconListViewItemEventArg.cpp
20  * @brief               This is the implementation file for the _IconListViewItemEventArg class.
21  */
22
23 #include "FUiCtrl_IconListViewItemEventArg.h"
24
25 namespace Tizen { namespace Ui { namespace Controls
26 {
27
28 _IconListViewItemEventArg::_IconListViewItemEventArg(int index, _IconListViewItemEventType eventType)
29         : __itemIndex(index)
30         , __toIndex(-1)
31         , __overlayBitmapId(-1)
32         , __itemStatus(ICON_LIST_VIEW_ITEM_CHECKED)
33         , __eventType(eventType)
34 {
35         // Do nothing
36 }
37
38 _IconListViewItemEventArg::~_IconListViewItemEventArg(void)
39 {
40         // Do nothing
41 }
42
43 int
44 _IconListViewItemEventArg::GetIndex(void) const
45 {
46         return __itemIndex;
47 }
48
49 IconListViewItemStatus
50 _IconListViewItemEventArg::GetStatus(void) const
51 {
52         return __itemStatus;
53 }
54
55 void
56 _IconListViewItemEventArg::SetStatus(IconListViewItemStatus status)
57 {
58         __itemStatus = status;
59 }
60
61 int
62 _IconListViewItemEventArg::GetOverlayBitmapId(void) const
63 {
64         return __overlayBitmapId;
65 }
66
67 void
68 _IconListViewItemEventArg::SetOverlayBitmapId(const int overlayBitmapId)
69 {
70         __overlayBitmapId = overlayBitmapId;
71 }
72
73 int
74 _IconListViewItemEventArg::GetFromIndex(void) const
75 {
76         return __itemIndex;
77 }
78
79 int
80 _IconListViewItemEventArg::GetToIndex(void) const
81 {
82         return __toIndex;
83 }
84
85 void
86 _IconListViewItemEventArg::SetToIndex(int toIndex)
87 {
88         __toIndex = toIndex;
89 }
90
91 _IconListViewItemEventType
92 _IconListViewItemEventArg::GetEventType(void) const
93 {
94         return __eventType;
95 }
96
97 }}} // Tizen::Ui::Controls