Changed indicator bg color.
[platform/framework/native/uifw.git] / src / ui / controls / FUiCtrl_FastScrollIndexNode.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_FastScrollIndexNode.cpp
20  * @brief               This is the implementation file for the _FastScrollIndexNode class.
21  */
22
23 #if 0
24
25 #include <wchar.h>
26 #include <FBaseSysLog.h>
27 #include "FUiCtrl_FastScrollIndexNode.h"
28
29 namespace Tizen { namespace Ui { namespace Controls
30 {
31
32 // Lifecycle
33 _FastScrollIndexNode::_FastScrollIndexNode(int indexLength)
34         : __indexLength(indexLength)
35         , __indexWidth(0)
36         , __indexHeight(0)
37         , __indexOmitted(false)
38         , __indexOmitPriority(true)
39         , __indexText(null)
40 {
41 }
42
43 _FastScrollIndexNode::~_FastScrollIndexNode(void)
44 {
45 }
46
47 void
48 _FastScrollIndexNode::SetIndexNodeWidth(int indexWdith)
49 {
50         __indexWidth = indexWdith;
51 }
52
53 int
54 _FastScrollIndexNode::GetIndexNodeWidth(void) const
55 {
56         return __indexWidth;
57 }
58
59 void
60 _FastScrollIndexNode::SetIndexNodeHeight(int indexHeight)
61 {
62         __indexHeight = indexHeight;
63 }
64
65 int
66 _FastScrollIndexNode::GetIndexNodeHeight(void) const
67 {
68         return __indexHeight;
69 }
70
71 void
72 _FastScrollIndexNode::SetIndexNodeOmitted(bool indexOmitted)
73 {
74         __indexOmitted = indexOmitted;
75 }
76
77 bool
78 _FastScrollIndexNode::GetIndexNodeOmitted(void) const
79 {
80         return __indexOmitted;
81 }
82
83 void
84 _FastScrollIndexNode::SetIndexNodeText(wchar_t* indexText)
85 {
86         __indexText.clear();
87
88         for (int i = 0; i < __indexLength; i++)
89         {
90                 __indexText.push_back(*(indexText + i));
91         }
92 }
93
94 void
95 _FastScrollIndexNode::GetIndexNodeText(wchar_t* indexText)
96 {
97         for (int i = 0; i < (int) __indexText.size(); i++)
98         {
99                 *(indexText + i) = __indexText[i];
100         }
101 }
102
103 int
104 _FastScrollIndexNode::GetIndexNodeLength(void) const
105 {
106         return __indexText.size();
107 }
108
109 } } } // Tizen::Ui::Controls
110 #endif