Tizen 2.1 base
[framework/osp/uifw.git] / src / ui / inc / FUi_Types.h
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 #ifndef _FUI_INTERNAL_DEFINITIONS_H_
19 #define _FUI_INTERNAL_DEFINITIONS_H_
20
21 #include <FBaseDataType.h>
22 #include <FGrpPoint.h>
23 #include <FGrpDimension.h>
24 #include <FBase_ObjectManagerT.h>
25
26 #define MULTI_WINDOW
27
28 namespace Tizen { namespace Ui
29 {
30
31 class _Control;
32
33 typedef Tizen::Base::_HandleT <_Control> _ControlHandle;
34
35 enum _ControlRotation
36 {
37         _CONTROL_ROTATION_0,
38         _CONTROL_ROTATION_90,
39         _CONTROL_ROTATION_180,
40         _CONTROL_ROTATION_270,
41 };
42
43 enum _ControlOrientation
44 {
45         _CONTROL_ORIENTATION_PORTRAIT,
46         _CONTROL_ORIENTATION_LANDSCAPE
47 };
48
49 enum _ControlArea
50 {
51         _CONTROL_AREA_NONE = -1,
52         _CONTROL_AREA_CLIENT,
53         _CONTROL_AREA_SYSTEM,
54 };
55
56 enum _ControlLayer
57 {
58         _CONTROL_LAYER_NONE = -1,
59         _CONTROL_LAYER_OVERLAY,
60         _CONTROL_LAYER_CLIENT_BOTTOM,
61         _CONTROL_LAYER_CLIENT_MIDDLE,
62         _CONTROL_LAYER_CLIENT_TOP,
63         _CONTROL_LAYER_SYSTEM,
64 };
65
66 enum _ControlZOrderUpdate
67 {
68         _CONTROL_ZORDER_UPDATE_TOP,
69         _CONTROL_ZORDER_UPDATE_BOTTOM,
70         _CONTROL_ZORDER_UPDATE_UPWARD,
71         _CONTROL_ZORDER_UPDATE_DOWNWARD,
72 };
73
74 enum _TouchMoveAllowance
75 {
76         TOUCH_MOVE_ALLOWANCE_SENSITIVE = 0,
77         TOUCH_MOVE_ALLOWANCE_NORMAL,
78         TOUCH_MOVE_ALLOWANCE_INSENSITIVE
79 };
80
81 template <int V>
82 struct _IntToType
83 {
84         enum
85         {
86                 VALUE = V
87         };
88 };
89
90 template <typename T>
91 struct _TypeToType
92 {
93         typedef T type;
94 };
95
96 typedef unsigned int NativeWindowHandle;
97
98 }} // Tizen::Ui
99
100 #endif // _FUI_INTERNAL_DEFINITIONS_H_