2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
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
9 // http://www.apache.org/licenses/LICENSE-2.0/
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.
19 * @file FUiCtrl_FastScrollIndexNode.cpp
20 * @brief This is the implementation file for the _FastScrollIndexNode class.
26 #include <FBaseSysLog.h>
27 #include "FUiCtrl_FastScrollIndexNode.h"
29 namespace Tizen { namespace Ui { namespace Controls
33 _FastScrollIndexNode::_FastScrollIndexNode(int indexLength)
34 : __indexLength(indexLength)
37 , __indexOmitted(false)
38 , __indexOmitPriority(true)
43 _FastScrollIndexNode::~_FastScrollIndexNode(void)
48 _FastScrollIndexNode::SetIndexNodeWidth(int indexWdith)
50 __indexWidth = indexWdith;
54 _FastScrollIndexNode::GetIndexNodeWidth(void) const
60 _FastScrollIndexNode::SetIndexNodeHeight(int indexHeight)
62 __indexHeight = indexHeight;
66 _FastScrollIndexNode::GetIndexNodeHeight(void) const
72 _FastScrollIndexNode::SetIndexNodeOmitted(bool indexOmitted)
74 __indexOmitted = indexOmitted;
78 _FastScrollIndexNode::GetIndexNodeOmitted(void) const
80 return __indexOmitted;
84 _FastScrollIndexNode::SetIndexNodeText(wchar_t* indexText)
88 for (int i = 0; i < __indexLength; i++)
90 __indexText.push_back(*(indexText + i));
95 _FastScrollIndexNode::GetIndexNodeText(wchar_t* indexText)
97 for (int i = 0; i < (int) __indexText.size(); i++)
99 *(indexText + i) = __indexText[i];
104 _FastScrollIndexNode::GetIndexNodeLength(void) const
106 return __indexText.size();
109 } } } // Tizen::Ui::Controls