diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-04-11 03:12:40 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-04-11 03:12:40 +0200 |
commit | bfbf55700091bb6084b3cbe151a762816db0e3f0 (patch) | |
tree | bf7605926a6e8fb06c85b1d1a605d889ca67a79f /context.h | |
download | xmimd-bfbf55700091bb6084b3cbe151a762816db0e3f0.tar.gz xmimd-bfbf55700091bb6084b3cbe151a762816db0e3f0.zip |
initial import
Diffstat (limited to 'context.h')
-rw-r--r-- | context.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/context.h b/context.h new file mode 100644 index 0000000..948840a --- /dev/null +++ b/context.h @@ -0,0 +1,35 @@ +#ifndef CONTEXT_H +#define CONTEXT_H + +#include <glib.h> +#include <X11/Xlib.h> +#include "IMdkit/IMdkit.h" +#include "IMdkit/Xi18n.h" +#include "meego/meego-im-defs.h" + +void contexts_init(); +void contexts_destroy(); +guint contexts_focused_icid(); + +/* The following functions get the icid from call_data */ +gboolean context_create(IMChangeICStruct *call_data); +gboolean context_destroy(IMChangeICStruct *call_data); + +gboolean context_set_values(IMChangeICStruct *call_data); +gboolean context_get_values(IMChangeICStruct *call_data); + +gboolean context_set_focus(IMChangeFocusStruct *call_data); +gboolean context_unset_focus(IMChangeFocusStruct *call_data); + +gboolean context_forward_event(IMForwardEventStruct *call_data); + +gboolean context_reset(IMResetICStruct *call_data); + +gboolean context_commit(guint icid, const char *string, + int replace_start, int replace_length, int cursor_pos); +gboolean context_update_preedit(guint icid, const char *string, + int preedit_format_count, const MeegoImPreeditFormat *preedit_formats, + int replace_start, int replace_length, int cursor_pos); +gboolean context_send_key(guint icid, const MeegoImKeyEvent* e); + +#endif |