[cbhm] modify cbhm GUI
[framework/uifw/cbhm.git] / src / clipdrawer.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *  Licensed under the Apache License, Version 2.0 (the "License");
5  *  you may not use this file except in compliance with the License.
6  *  You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  *  Unless required by applicable law or agreed to in writing, software
11  *  distributed under the License is distributed on an "AS IS" BASIS,
12  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  *  See the License for the specific language governing permissions and
14  *  limitations under the License.
15  *
16  */
17
18 #ifndef _CLIPDRAWER_H_
19 #define _CLIPDRAWER_H_
20
21 #include <Ecore_X.h>
22 #include <Elementary.h>
23
24 typedef enum _AnimStatus AnimStatus;
25 enum _AnimStatus {
26         STATUS_NONE = 0,
27         SHOW_ANIM,
28         HIDE_ANIM
29 };
30
31 struct _ClipdrawerData {
32         Evas_Object *main_win;
33         Ecore_X_Window x_main_win;
34         Evas_Object *gengrid;
35         Evas_Object *main_layout;
36         Elm_Gengrid_Item_Class gic;
37         Evas_Object *popup;
38
39         int o_degree;
40
41         int root_w;
42         int root_h;
43
44         int height;
45         int landscape_height;
46         int grid_item_w;
47         int grid_item_h;
48
49         Ecore_Event_Handler *keydown_handler;
50         Evas *evas;
51
52         Ecore_Timer *anim_timer;
53         AnimStatus anim_status;
54         int anim_count;
55         Eina_Bool paste_text_only:1;
56 };
57
58 #include "cbhm.h"
59
60 Eina_Bool delete_mode;
61
62 void set_rotation_to_clipdrawer(ClipdrawerData *ad);
63 void clipdrawer_activate_view(AppData* ad);
64 void clipdrawer_lower_view(AppData* ad);
65 ClipdrawerData *init_clipdrawer(AppData *ad);
66 void depose_clipdrawer(ClipdrawerData *cd);
67 void _delete_mode_set(AppData *ad, Eina_Bool del_mode);
68
69 #endif // _CLIPDRAWER_H_