aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ecore/src/lib/ecore_imf/ecore_imf_private.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-04 18:41:13 +1000
committerDavid Walter Seikel2012-01-04 18:41:13 +1000
commitdd7595a3475407a7fa96a97393bae8c5220e8762 (patch)
treee341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/ecore/src/lib/ecore_imf/ecore_imf_private.h
parentAdd the skeleton. (diff)
downloadSledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip
SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz
SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2
SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to 'libraries/ecore/src/lib/ecore_imf/ecore_imf_private.h')
-rw-r--r--libraries/ecore/src/lib/ecore_imf/ecore_imf_private.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/libraries/ecore/src/lib/ecore_imf/ecore_imf_private.h b/libraries/ecore/src/lib/ecore_imf/ecore_imf_private.h
new file mode 100644
index 0000000..07a5b09
--- /dev/null
+++ b/libraries/ecore/src/lib/ecore_imf/ecore_imf_private.h
@@ -0,0 +1,72 @@
1#ifndef _ECORE_IMF_PRIVATE_H
2#define _ECORE_IMF_PRIVATE_H
3
4#define ECORE_MAGIC_CONTEXT 0x56c1b39a
5
6#ifdef ECORE_IMF_DEFAULT_LOG_COLOR
7#undef ECORE_IMF_DEFAULT_LOG_COLOR
8#endif
9#define ECORE_IMF_DEFAULT_LOG_COLOR EINA_COLOR_BLUE
10
11extern int _ecore_imf_log_dom;
12#ifdef ERR
13# undef ERR
14#endif
15#define ERR(...) EINA_LOG_DOM_ERR(_ecore_imf_log_dom, __VA_ARGS__)
16
17#ifdef DBG
18# undef DBG
19#endif
20#define DBG(...) EINA_LOG_DOM_DBG(_ecore_imf_log_dom, __VA_ARGS__)
21
22#ifdef INF
23# undef INF
24#endif
25#define INF(...) EINA_LOG_DOM_INFO(_ecore_imf_log_dom, __VA_ARGS__)
26
27#ifdef WRN
28# undef WRN
29#endif
30#define WRN(...) EINA_LOG_DOM_WARN(_ecore_imf_log_dom, __VA_ARGS__)
31
32#ifdef CRIT
33# undef CRIT
34#endif
35#define CRIT(...) EINA_LOG_DOM_CRIT(_ecore_imf_log_dom, __VA_ARGS__)
36
37typedef struct _Ecore_IMF_Module Ecore_IMF_Module;
38
39struct _Ecore_IMF_Context
40{
41 ECORE_MAGIC;
42 const Ecore_IMF_Module *module;
43 const Ecore_IMF_Context_Class *klass;
44 void *data;
45 int input_mode;
46 void *window;
47 void *client_canvas;
48 Eina_Bool (*retrieve_surrounding_func)(void *data, Ecore_IMF_Context *ctx, char **text, int *cursor_pos);
49 void *retrieve_surrounding_data;
50 Ecore_IMF_Autocapital_Type autocapital_type;
51 Ecore_IMF_Input_Panel_Layout input_panel_layout;
52 Ecore_IMF_Input_Panel_Lang input_panel_lang;
53 Eina_Bool allow_prediction : 1;
54 Eina_Bool input_panel_enabled : 1;
55};
56
57struct _Ecore_IMF_Module
58{
59 const Ecore_IMF_Context_Info *info;
60 Ecore_IMF_Context *(*create)(void);
61 Ecore_IMF_Context *(*exit)(void);
62};
63
64void ecore_imf_module_init(void);
65void ecore_imf_module_shutdown(void);
66Eina_List *ecore_imf_module_available_get(void);
67Ecore_IMF_Module *ecore_imf_module_get(const char *ctx_id);
68Ecore_IMF_Context *ecore_imf_module_context_create(const char *ctx_id);
69Eina_List *ecore_imf_module_context_ids_get(void);
70Eina_List *ecore_imf_module_context_ids_by_canvas_type_get(const char *canvas_type);
71
72#endif