2c7ac237b617d04b08eb3725033e46386cd14631
[platform/core/uifw/e-mod-tizen-wl-textinput.git] / src / e_mod_main.h
1 #ifndef _E_MOD_MAIN_H
2 #define _E_MOD_MAIN_H
3
4 #include "wti_log.h"
5 #include <dlog.h>
6
7 #ifdef LOG_TAG
8 #undef LOG_TAG
9 #endif
10 #define LOG_TAG "WL_TEXTINPUT"
11
12 #define SUPPORT_CANDIDATE_ONEWINDOW
13
14 Eina_Bool   e_input_panel_init(void);
15 void        e_input_panel_shutdown(void);
16 void        e_input_panel_visibility_change(Eina_Bool visible);
17 Eina_Bool   e_input_panel_client_find(E_Client *ec);
18 Eina_Bool   e_input_panel_client_geometry_get(E_Client *ec, int *x, int *y, int *w, int *h);
19 E_Client   *e_text_input_client_surface_get(void);
20 EINTERN void   e_input_panel_wait_update_set(Eina_Bool wait_update);
21 EINTERN void   e_input_panel_transient_for_set(E_Client *parent);
22 void        e_input_panel_show_need_rerun_set(Eina_Bool need_rerun);
23 void        e_input_panel_floating_position_set(int x, int y);
24 void        e_text_input_update_input_panel_state(Eina_Bool state);
25 Eina_Bool   e_input_panel_surface_destroy(E_Client *ec);
26
27 typedef enum {
28    TIZEN_PROFILE_UNKNOWN = 0,
29    TIZEN_PROFILE_MOBILE = 0x1,
30    TIZEN_PROFILE_WEARABLE = 0x2,
31    TIZEN_PROFILE_TV = 0x4,
32    TIZEN_PROFILE_IVI = 0x8,
33    TIZEN_PROFILE_COMMON = 0x10,
34 } tizen_profile_t;
35 extern tizen_profile_t _get_tizen_profile();
36
37 #define _TV (_get_tizen_profile() == TIZEN_PROFILE_TV)
38
39 #if defined(_TV)
40 #ifdef LOGD
41 #undef LOGD
42 #endif
43 #define LOGD LOGI
44 #endif
45
46 #endif /* _E_MOD_MAIN_H */