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 FUiCtrlEditTypes.h
20 * @brief This is the header file for the Ui::Controls edit control enumerations.
22 * This header file contains the declarations of the Ui::Controls edit control enumerations.
24 #ifndef _FUI_CTRL_EDIT_ENUM_H_
25 #define _FUI_CTRL_EDIT_ENUM_H_
27 namespace Tizen { namespace Ui { namespace Controls
32 * @enum EditInputModeCategory
34 * Defines the input modes.
36 * @brief <i> [Deprecated] </i>
37 * @deprecated We no longer provide a method to specify the list of styles which the user can set the keypad to, or the current mode to initially set the keypad to, @n
38 * from this list. It is recommended to use the styles offered in EditFieldStyle or KeypadStyle enumerations instead.
42 enum EditInputModeCategory
44 EDIT_INPUTMODE_ALPHA = 0x0001, /**< @if OSPDEPREC The alphabetic input mode @endif */
45 EDIT_INPUTMODE_PREDICTIVE = 0x0002, /**< @if OSPDEPREC The predictive input mode @endif */
46 EDIT_INPUTMODE_NUMERIC = 0x0004, /**< @if OSPDEPREC The numeric input mode @endif */
47 EDIT_INPUTMODE_SYMBOL = 0x0008 /**< @if OSPDEPREC The symbolic input mode @endif */
51 * @enum EditFieldStyle
53 * Defines the EditField style.
59 EDIT_FIELD_STYLE_NORMAL, /**< The normal style */
60 EDIT_FIELD_STYLE_PASSWORD, /**< The password style '****' */
61 EDIT_FIELD_STYLE_NORMAL_SMALL, /**< The small normal style */
62 EDIT_FIELD_STYLE_PASSWORD_SMALL, /**< The small password style '****' */
63 EDIT_FIELD_STYLE_EMAIL, /**< The email style */
64 EDIT_FIELD_STYLE_URL, /**< The URL style */
65 EDIT_FIELD_STYLE_EMAIL_SMALL, /**< The small email style */
66 EDIT_FIELD_STYLE_URL_SMALL, /**< The small URL style */
67 EDIT_FIELD_STYLE_NUMBER, /**< The number style */
68 EDIT_FIELD_STYLE_NUMBER_SMALL, /**< The small number style */
69 EDIT_FIELD_STYLE_PHONE_NUMBER, /**< The phone number style */
70 EDIT_FIELD_STYLE_PHONE_NUMBER_SMALL, /**< The small phone number style */
71 EDIT_FIELD_STYLE_PASSWORD_NUMBER, /**< The number password style */
72 EDIT_FIELD_STYLE_PASSWORD_NUMBER_SMALL, /**< The small number password style */
73 EDIT_FIELD_STYLE_IP_V4, /**< The IP V4 style */
74 EDIT_FIELD_STYLE_IP_V4_SMALL, /**< The small IP V4 style */
78 * @enum CommandButtonPosition
80 * Defines the command button position.
84 enum CommandButtonPosition
86 COMMAND_BUTTON_POSITION_LEFT, /**< The position is to the left */
87 COMMAND_BUTTON_POSITION_RIGHT /**< The position is to the right */
91 * @enum EditMarginType
93 * Defines the possible margin types of EditField and EditArea.
99 EDIT_MARGIN_TYPE_VERTICAL, /**< The margin for top and bottom */
100 EDIT_MARGIN_TYPE_HORIZONTAL /**< The margin for left and right */
104 * @enum EditTextColor
106 * Defines the possible Edit's text colors.
112 EDIT_TEXT_COLOR_NORMAL, /**< The normal text color */
113 EDIT_TEXT_COLOR_DISABLED, /**< The disabled text color */
114 EDIT_TEXT_COLOR_HIGHLIGHTED, /**< The selected text color */
115 EDIT_TEXT_COLOR_LINK /**< The highlighted text color */
121 * Defines the possible Edit's states.
127 EDIT_STATUS_NORMAL, /**< The normal state */
128 EDIT_STATUS_DISABLED, /**< The disabled state */
129 EDIT_STATUS_HIGHLIGHTED, /**< The highlighted state */
130 EDIT_STATUS_PRESSED /**< The pressed state */
134 * @enum EditFieldTitleStyle
136 * Defines the possible styles of title.
140 enum EditFieldTitleStyle
142 EDIT_FIELD_TITLE_STYLE_NONE = 0, /**< No title */
143 EDIT_FIELD_TITLE_STYLE_INNER, /**< The title appears inside of the EditField's input field */
144 EDIT_FIELD_TITLE_STYLE_TOP /**< The title appears at the top input field */
148 * @enum EllipsisPosition
150 * Defines the possible positions of ellipsis.
154 enum EllipsisPosition
156 ELLIPSIS_POSITION_START = 0, /**< The ellipsis appears at the start of text block */
157 ELLIPSIS_POSITION_MIDDLE, /**< The ellipsis appears at the middle of text block */
158 ELLIPSIS_POSITION_END, /**< The ellipsis appears at the end of text block */
164 * Defines the initial keypad style.
170 KEYPAD_STYLE_NORMAL = 0, /**< The normal style */
171 KEYPAD_STYLE_PASSWORD, /**< The password style '****' */
172 KEYPAD_STYLE_EMAIL, /**< The email style */
173 KEYPAD_STYLE_URL, /**< The URL style */
174 KEYPAD_STYLE_NUMBER, /**< The number style */
175 KEYPAD_STYLE_PHONE_NUMBER, /**< The phone number style */
176 KEYPAD_STYLE_IP_V4, /**< The IP V4 style */
179 }}} // Tizen::Ui::Controls
180 #endif // _FUI_CTRL_EDIT_ENUM_H_