Tizen 2.1 base
[framework/osp/uifw.git] / src / ui / layout / FUi_LayoutLayoutItemInfo.cpp
1 //
2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://floralicense.org/license/
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  * @file                FUi_LayoutLayoutItemInfo.cpp
19  * @brief       This is the implementation file for LayoutItemInfo class.
20  *
21  * This file contains the implementation of LinkedListNode class.
22  */
23
24 #include <new>
25 #include <string.h>
26 #include <FBaseSysLog.h>
27 #include "FUi_LayoutTableLayout.h"
28 #include "FUi_LayoutLayoutItemInfo.h"
29
30 namespace Tizen { namespace Ui { namespace _Layout
31 {
32
33 // Super class
34 LayoutItemInfo::LayoutItemInfo(void)
35 {
36 }
37
38 LayoutItemInfo::~LayoutItemInfo(void)
39 {
40 }
41
42 // Relative layout
43 RelativeItemInfo::RelativeItemInfo(void)
44         : __refCount(0)
45 {
46         memset(__pTarget, 0, sizeof(LayoutItemProxy*) * 6);
47         memset(__targetEdge, EDGE_NONE, sizeof(RelativeLayoutEdge) * 6);
48 }
49
50 RelativeItemInfo::~RelativeItemInfo(void)
51 {
52 }
53
54 // Table layout
55 TableItemInfo::TableItemInfo(void)
56         : __id(TableLayout::INVALID_CELL_ID)
57         , __enable(true)
58         , __merged(false)
59         , __fillWidth(false)
60         , __fillHeight(false)
61 {
62         __mergeEndPoint.x = TableLayout::NOT_MERGED;
63         __mergeEndPoint.y = TableLayout::NOT_MERGED;
64         __minSize.w = 0;
65         __minSize.h = 0;
66         __maxSize.w = 0;
67         __maxSize.h = 0;
68 }
69
70 TableItemInfo::~TableItemInfo(void)
71 {
72 }
73
74 // Linear layout
75 LinearItemInfo::LinearItemInfo(void)
76         : __weight(0.0)
77         , __spacing(0)
78         , __fixedSize(false)
79 {
80         __itemRect.x = 0;
81         __itemRect.y = 0;
82         __itemRect.w = 0;
83         __itemRect.h = 0;
84 }
85
86 LinearItemInfo::~LinearItemInfo(void)
87 {
88 }
89
90 }}} // Tizen::Ui::_Layout