c656e76f4b068bfa9de0ce65c2ce03e850bacc32
[framework/uifw/cbhm.git] / src / clipdrawer.h
1 /*
2  * cbhm
3  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4  *
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
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
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
19
20 #ifndef _CLIPDRAWER_H_
21 #define _CLIPDRAWER_H_
22
23 #include <Ecore_X.h>
24 #include <Elementary.h>
25
26 typedef enum _AnimStatus AnimStatus;
27 enum _AnimStatus {
28         STATUS_NONE = 0,
29         SHOW_ANIM,
30         HIDE_ANIM
31 };
32
33 struct _ClipdrawerData {
34         Evas_Object *main_win;
35         Ecore_X_Window x_main_win;
36         Evas_Object *gengrid;
37         Evas_Object *main_layout;
38         Elm_Gengrid_Item_Class gic;
39         Evas_Object *popup;
40
41         int o_degree;
42
43         int root_w;
44         int root_h;
45
46         int height;
47         int landscape_height;
48         int grid_item_bg_w;
49         int grid_item_bg_h;
50         int grid_image_item_w;
51         int grid_image_item_h;
52
53         Ecore_Event_Handler *keydown_handler;
54         Evas *evas;
55
56         Ecore_Timer *anim_timer;
57         AnimStatus anim_status;
58         int anim_count;
59         Eina_Bool paste_text_only:1;
60 };
61
62 #include "cbhm.h"
63
64 Eina_Bool delete_mode;
65
66 void set_rotation_to_clipdrawer(ClipdrawerData *ad);
67 void clipdrawer_activate_view(AppData* ad);
68 void clipdrawer_lower_view(AppData* ad);
69 ClipdrawerData *init_clipdrawer(AppData *ad);
70 void depose_clipdrawer(ClipdrawerData *cd);
71 void _delete_mode_set(AppData *ad, Eina_Bool del_mode);
72
73 #endif // _CLIPDRAWER_H_