2007-11-19 10:27:11 -08:00
|
|
|
#ifndef _ECORE_IMF_PRIVATE_H
|
|
|
|
#define _ECORE_IMF_PRIVATE_H
|
|
|
|
|
|
|
|
#define ECORE_MAGIC_CONTEXT 0x56c1b39a
|
|
|
|
|
2010-01-06 16:30:05 -08:00
|
|
|
#ifdef ECORE_IMF_DEFAULT_LOG_COLOR
|
|
|
|
#undef ECORE_IMF_DEFAULT_LOG_COLOR
|
|
|
|
#endif
|
|
|
|
#define ECORE_IMF_DEFAULT_LOG_COLOR EINA_COLOR_BLUE
|
|
|
|
|
2009-12-21 09:32:19 -08:00
|
|
|
extern int _ecore_imf_log_dom;
|
|
|
|
#ifdef ERR
|
|
|
|
# undef ERR
|
|
|
|
#endif
|
|
|
|
#define ERR(...) EINA_LOG_DOM_ERR(_ecore_imf_log_dom, __VA_ARGS__)
|
|
|
|
|
|
|
|
#ifdef DBG
|
|
|
|
# undef DBG
|
|
|
|
#endif
|
|
|
|
#define DBG(...) EINA_LOG_DOM_DBG(_ecore_imf_log_dom, __VA_ARGS__)
|
|
|
|
|
|
|
|
#ifdef INF
|
|
|
|
# undef INF
|
|
|
|
#endif
|
|
|
|
#define INF(...) EINA_LOG_DOM_INFO(_ecore_imf_log_dom, __VA_ARGS__)
|
|
|
|
|
|
|
|
#ifdef WRN
|
|
|
|
# undef WRN
|
|
|
|
#endif
|
|
|
|
#define WRN(...) EINA_LOG_DOM_WARN(_ecore_imf_log_dom, __VA_ARGS__)
|
|
|
|
|
|
|
|
#ifdef CRIT
|
|
|
|
# undef CRIT
|
|
|
|
#endif
|
|
|
|
#define CRIT(...) EINA_LOG_DOM_CRIT(_ecore_imf_log_dom, __VA_ARGS__)
|
|
|
|
|
2007-11-19 10:27:11 -08:00
|
|
|
typedef struct _Ecore_IMF_Module Ecore_IMF_Module;
|
|
|
|
|
|
|
|
struct _Ecore_IMF_Context
|
|
|
|
{
|
|
|
|
ECORE_MAGIC;
|
2007-11-21 14:20:16 -08:00
|
|
|
const Ecore_IMF_Module *module;
|
2007-11-19 10:27:11 -08:00
|
|
|
const Ecore_IMF_Context_Class *klass;
|
|
|
|
void *data;
|
|
|
|
int input_mode;
|
2010-09-25 22:42:56 -07:00
|
|
|
Eina_Bool (*retrieve_surrounding_func)(void *data, Ecore_IMF_Context *ctx, char **text, int *cursor_pos);
|
2007-11-19 10:27:11 -08:00
|
|
|
void *retrieve_surrounding_data;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _Ecore_IMF_Module
|
|
|
|
{
|
|
|
|
const Ecore_IMF_Context_Info *info;
|
|
|
|
Ecore_IMF_Context *(*create)(void);
|
2010-01-26 14:22:14 -08:00
|
|
|
Ecore_IMF_Context *(*exit)(void);
|
2007-11-19 10:27:11 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
void ecore_imf_module_init(void);
|
|
|
|
void ecore_imf_module_shutdown(void);
|
* estickies,
* etk,
* PROTO/exalt,
* E-MODULES-EXTRA/diskio,
* E-MODULES-EXTRA/drawer,
* E-MODULES-EXTRA/penguins,
* E-MODULES-EXTRA/slideshow,
* E-MODULES-EXTRA/mail,
* E-MODULES-EXTRA/forecasts,
* E-MODULES-EXTRA/iiirk,
* E-MODULES-EXTRA/places,
* e,
* ewl,
* ecore,
* elitaire,
* entrance,
* e_dbus,
* efreet: Here we go, move from Ecore_List to Eina_List.
NOTE: This patch is huge, I did test it a lot, and I hope nothing is
broken. But if you think something change after this commit, please
contact me ASAP.
SVN revision: 39200
2009-02-25 03:03:47 -08:00
|
|
|
Eina_List *ecore_imf_module_available_get(void);
|
2007-11-19 10:27:11 -08:00
|
|
|
Ecore_IMF_Module *ecore_imf_module_get(const char *ctx_id);
|
|
|
|
Ecore_IMF_Context *ecore_imf_module_context_create(const char *ctx_id);
|
* estickies,
* etk,
* PROTO/exalt,
* E-MODULES-EXTRA/diskio,
* E-MODULES-EXTRA/drawer,
* E-MODULES-EXTRA/penguins,
* E-MODULES-EXTRA/slideshow,
* E-MODULES-EXTRA/mail,
* E-MODULES-EXTRA/forecasts,
* E-MODULES-EXTRA/iiirk,
* E-MODULES-EXTRA/places,
* e,
* ewl,
* ecore,
* elitaire,
* entrance,
* e_dbus,
* efreet: Here we go, move from Ecore_List to Eina_List.
NOTE: This patch is huge, I did test it a lot, and I hope nothing is
broken. But if you think something change after this commit, please
contact me ASAP.
SVN revision: 39200
2009-02-25 03:03:47 -08:00
|
|
|
Eina_List *ecore_imf_module_context_ids_get(void);
|
|
|
|
Eina_List *ecore_imf_module_context_ids_by_canvas_type_get(const char *canvas_type);
|
2007-11-19 10:27:11 -08:00
|
|
|
|
|
|
|
#endif
|