2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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 FGrp_TextTextSimpleList.h
20 * @brief This is the header file for the TextSimpleList class.
22 * This header file contains the declarations of the %TextSimpleList class.
25 #ifndef _FGRP_INTERNAL_TEXT_SIMPLE_LIST_H_
26 #define _FGRP_INTERNAL_TEXT_SIMPLE_LIST_H_
28 namespace Tizen { namespace Graphics
35 struct SimpleNode* pNext;
36 struct SimpleNode* pPrev;
42 SimpleNode* pHeaderNode;
43 SimpleNode* pTailNode;
50 static SimpleList* Create(void);
52 static bool Destory(SimpleList* pSimpleList);
54 static bool Init(SimpleList* pSimpleList);
56 static SimpleNode* InsertObject(SimpleList* pSimpleList, void* pObject, int index);
58 static SimpleNode* AddObject(SimpleList* pSimpleList, void* pObject);
60 static SimpleNode* AppendObject(SimpleList* pSimpleList, void* pObject);
62 static bool DeleteNode(SimpleList* pSimpleList, SimpleNode* pNode);
64 static void* DeleteNthObject(SimpleList* pSimpleList, int index);
66 static bool DeleteAllObject(SimpleList* pSimpleList);
68 static SimpleNode* InsertObjectAfterNode(SimpleList* pSimpleList, SimpleNode* pSimpleNode, void* pObject);
70 static SimpleNode* InsertObjectBeforeNode(SimpleList* pSimpleList, SimpleNode* pSimpleNode, void* pObject);
72 static int GetCount(SimpleList* pSimpleList);
74 static SimpleNode* GetFirstNode(SimpleList* pSimpleList);
76 static SimpleNode* GetLastNode(SimpleList* pSimpleList);
78 static SimpleNode* GetNthNode(SimpleList* pSimpleList, int index);
80 static void* GetFirstObject(SimpleList* pSimpleList);
82 static void* GetNthObject(SimpleList* pSimpleList, int index);
84 static int GetObjectIndex(SimpleList* pSimpleList, void* pObject);
86 static bool IsEmpty(SimpleList* pSimpleList);
90 }}} // Tizen::Graphics::_Text
92 #endif // _FGRP_INTERNAL_TEXT_SIMPLE_LIST_H_