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 FUiLayoutTypes.h
20 * @brief This is the header file for the layout enumerations.
22 * This header file contains the declarations of the layout enumerations.
24 #ifndef _FUI_LAYOUT_ENUM_H_
25 #define _FUI_LAYOUT_ENUM_H_
27 namespace Tizen { namespace Ui
33 * Defines the layout type.
39 LAYOUT_RELATIVE, /**< The relative layout */
40 LAYOUT_VERTICAL_BOX, /**< The vertical box layout */
41 LAYOUT_HORIZONTAL_BOX, /**< The horizontal box layout */
42 LAYOUT_GRID, /**< The grid layout */
43 LAYOUT_CARD /**< The card layout */
47 * @enum RectangleEdgeRelation
49 * Defines the relative relation between the source control and the target control.
53 enum RectangleEdgeRelation
55 RECT_EDGE_RELATION_LEFT_TO_LEFT, /**< The left edge of the source control is aligned with the left edge of the target control */
56 RECT_EDGE_RELATION_LEFT_TO_RIGHT, /**< The left edge of the source control is aligned with the right edge of the target control */
57 RECT_EDGE_RELATION_RIGHT_TO_RIGHT, /**< The right edge of the source control is aligned with the right edge of the target control */
58 RECT_EDGE_RELATION_RIGHT_TO_LEFT, /**< The right edge of the source control is aligned with the left edge of the target control */
59 RECT_EDGE_RELATION_TOP_TO_TOP, /**< The top edge of the source control is aligned with the top edge of the target control */
60 RECT_EDGE_RELATION_TOP_TO_BOTTOM, /**< The top edge of the source control is aligned with the bottom edge of the target control */
61 RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM, /**< The bottom edge of the source control is aligned with the bottom edge of the target control */
62 RECT_EDGE_RELATION_BOTTOM_TO_TOP /**< The bottom edge of the source control is aligned with the top edge of the target control */
66 * @enum RectangleEdgeType
68 * Defines the edges of a rectangle.
72 enum RectangleEdgeType
74 RECT_EDGE_LEFT, /**< The left edge of a rectangle */
75 RECT_EDGE_RIGHT, /**< The right edge of a rectangle */
76 RECT_EDGE_TOP, /**< The top edge of a rectangle */
77 RECT_EDGE_BOTTOM /**< The bottom edge of a rectangle */
81 * @enum CenterAlignmentType
83 * Defines the center alignment for a control.
87 enum CenterAlignmentType
89 CENTER_ALIGN_HORIZONTAL, /**< Centers the child control horizontally with respect to the left and right side of its parent control */
90 CENTER_ALIGN_VERTICAL /**< Centers the child control vertically with respect to the top and bottom side of its parent control */
96 * Defines the fitting policy for a control.
102 FIT_POLICY_FIXED, /**< The fixed size of a control */
103 FIT_POLICY_CONTENT, /**< The size of the control that is large enough to fit its internal content */
104 FIT_POLICY_PARENT /**< The size of the control that is as large as its parent control */
108 * @enum VerticalDirection
110 * Defines the direction for the vertical box layout.
114 enum VerticalDirection
116 VERTICAL_DIRECTION_DOWNWARD, /**< The direction that runs from top to bottom */
117 VERTICAL_DIRECTION_UPWARD /**< The direction that runs from bottom to top */
121 * @enum HorizontalDirection
123 * Defines the direction for the horizontal box layout.
127 enum HorizontalDirection
129 HORIZONTAL_DIRECTION_RIGHTWARD, /**< The direction that runs from left to right */
130 HORIZONTAL_DIRECTION_LEFTWARD /**< The direction that runs from right to left */
134 * @enum LayoutHorizontalAlignment
136 * Defines the horizontal alignment for the grid layout.
140 enum LayoutHorizontalAlignment
142 LAYOUT_HORIZONTAL_ALIGN_LEFT, /**< The horizontal left alignment of the control */
143 LAYOUT_HORIZONTAL_ALIGN_CENTER, /**< The horizontal center alignment of the control */
144 LAYOUT_HORIZONTAL_ALIGN_RIGHT /**< The horizontal right alignment of the control */
148 * @enum LayoutVerticalAlignment
150 * Defines the vertical alignment for the grid layout.
154 enum LayoutVerticalAlignment
156 LAYOUT_VERTICAL_ALIGN_TOP, /**< The vertical top alignment of the control */
157 LAYOUT_VERTICAL_ALIGN_MIDDLE, /**< The vertical middle alignment of the control */
158 LAYOUT_VERTICAL_ALIGN_BOTTOM /**< The vertical bottom alignment of the control */
163 #endif // _FUI_LAYOUT_ENUM_H_