[cbhm] fixed N_SE-398 issue
[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         Ecore_Event_Handler *keydown_handler;
45         Evas *evas;
46
47         Ecore_Timer *anim_timer;
48         AnimStatus anim_status;
49         int anim_count;
50         Eina_Bool paste_text_only:1;
51 };
52
53 #include "cbhm.h"
54
55 void set_rotation_to_clipdrawer(ClipdrawerData *ad);
56 void clipdrawer_activate_view(AppData* ad);
57 void clipdrawer_lower_view(AppData* ad);
58 ClipdrawerData *init_clipdrawer(AppData *ad);
59 void depose_clipdrawer(ClipdrawerData *cd);
60 #endif // _CLIPDRAWER_H_