diff options
author | andrunko <andrunko> | 2007-11-19 18:27:11 +0000 |
---|---|---|
committer | andrunko <andrunko@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33> | 2007-11-19 18:27:11 +0000 |
commit | 502b766d664dda3c0a10826bddd8c043a868cfa1 (patch) | |
tree | ef7b1799cd28aad59b1f2d843dbac3e1a24f2052 /legacy/ecore/src/lib/ecore_imf/ecore_imf_private.h | |
parent | 23d39ab1541513e6681c2dd5330de5acec8fdb9b (diff) |
Added Ecore_IMF module.
Added Ecore_IMF module. This module enables different input methods to be
used with Ecore. Input methods modules can be created using the Ecore_IMF
interface.
Added ecore_evas_window_get method to allow input methods to request
the window related to a given Ecore_Evas when available.
SVN revision: 32775
Diffstat (limited to 'legacy/ecore/src/lib/ecore_imf/ecore_imf_private.h')
-rw-r--r-- | legacy/ecore/src/lib/ecore_imf/ecore_imf_private.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/legacy/ecore/src/lib/ecore_imf/ecore_imf_private.h b/legacy/ecore/src/lib/ecore_imf/ecore_imf_private.h new file mode 100644 index 0000000000..8980172fda --- /dev/null +++ b/legacy/ecore/src/lib/ecore_imf/ecore_imf_private.h | |||
@@ -0,0 +1,36 @@ | |||
1 | #ifndef _ECORE_IMF_PRIVATE_H | ||
2 | #define _ECORE_IMF_PRIVATE_H | ||
3 | |||
4 | #include "Ecore_IMF.h" | ||
5 | |||
6 | #include "ecore_private.h" | ||
7 | |||
8 | #define ECORE_MAGIC_CONTEXT 0x56c1b39a | ||
9 | |||
10 | typedef struct _Ecore_IMF_Module Ecore_IMF_Module; | ||
11 | |||
12 | struct _Ecore_IMF_Context | ||
13 | { | ||
14 | ECORE_MAGIC; | ||
15 | const Ecore_IMF_Context_Class *klass; | ||
16 | void *data; | ||
17 | int input_mode; | ||
18 | int (*retrieve_surrounding_func)(void *data, Ecore_IMF_Context *ctx, char **text, int *cursor_pos); | ||
19 | void *retrieve_surrounding_data; | ||
20 | }; | ||
21 | |||
22 | struct _Ecore_IMF_Module | ||
23 | { | ||
24 | Ecore_Plugin *plugin; | ||
25 | const Ecore_IMF_Context_Info *info; | ||
26 | Ecore_IMF_Context *(*create)(void); | ||
27 | }; | ||
28 | |||
29 | void ecore_imf_module_init(void); | ||
30 | void ecore_imf_module_shutdown(void); | ||
31 | Ecore_List *ecore_imf_module_available_get(void); | ||
32 | Ecore_IMF_Module *ecore_imf_module_get(const char *ctx_id); | ||
33 | Ecore_IMF_Context *ecore_imf_module_context_create(const char *ctx_id); | ||
34 | Ecore_List *ecore_imf_module_context_ids_get(void); | ||
35 | |||
36 | #endif | ||