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 FUiDataBindingTypes.h
20 * @brief This is the header file for the data binding enumerations.
22 * This header file contains the declarations of the data binding enumerations.
25 #ifndef _FUI_DATA_BINDING_TYPES_H_
26 #define _FUI_DATA_BINDING_TYPES_H_
28 namespace Tizen { namespace Ui
31 * @enum DataBindingFlow
33 * Defines the possible data flow types.
39 DATA_BINDING_FLOW_ONE_WAY = 0, /**< The data flow is one way from source to target */
40 DATA_BINDING_FLOW_ONE_WAY_TO_SOURCE = 1, /**< The data flow is one way from target to source */
41 DATA_BINDING_FLOW_TWO_WAY = 2 /**< The data flow is two way */
45 * @enum DataBindingTrigger
47 * Defines the possible data binding trigger types.
51 enum DataBindingTrigger
53 DATA_BINDING_TRIGGER_IMMEDIATE = 0, /**< Immediate trigger */
54 DATA_BINDING_TRIGGER_EXPLICIT = 1, /**< Explicit trigger */
58 * @enum DataBindingDataType
60 * Defines the possible data types for data binding source.
64 enum DataBindingDataType
66 DATA_BINDING_DATA_TYPE_BOOLEAN = 0, /**< Boolean type */
67 DATA_BINDING_DATA_TYPE_COLOR = 1, /**< Color type */
68 DATA_BINDING_DATA_TYPE_DIMENSION = 2, /**< Dimension type */
69 DATA_BINDING_DATA_TYPE_DOUBLE = 3, /**< Double type */
70 DATA_BINDING_DATA_TYPE_FLOAT = 4, /**< Float type */
71 DATA_BINDING_DATA_TYPE_INTEGER = 5, /**< Integer type */
72 DATA_BINDING_DATA_TYPE_LONG = 6, /**< Long type */
73 DATA_BINDING_DATA_TYPE_POINT = 7, /**< Point type */
74 DATA_BINDING_DATA_TYPE_RECTANGLE = 8, /**< Rectangle type */
75 DATA_BINDING_DATA_TYPE_STRING = 9, /**< String type */
76 DATA_BINDING_DATA_TYPE_FLOAT_DIMENSION = 10, /**< Dimension type in floating-point number @b Since: @b 2.1 */
77 DATA_BINDING_DATA_TYPE_FLOAT_POINT = 11, /**<Point type in floating-point number @b Since: @b 2.1 */
78 DATA_BINDING_DATA_TYPE_FLOAT_RECTANGLE = 12 /**<Rectangle type in floating-point number @b Since: @b 2.1 */
82 * @enum DataBindingDestinationType
84 * Defines the possible destination types for explicit data bindings.
88 enum DataBindingDestinationType
90 DATA_BINDING_DESTINATION_TYPE_SOURCE = 0, /**< Update source with latest data of associated target */
91 DATA_BINDING_DESTINATION_TYPE_TARGET = 1 /**< Update target with latest data of associated source */
95 #endif // _FUI_DATA_BINDING_TYPES_H_