From 8c57431ee614d1313c117739bebbda836af48012 Mon Sep 17 00:00:00 2001 From: raster Date: Mon, 26 Dec 2011 04:26:15 +0000 Subject: [PATCH] add missing scim immodule header. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@66508 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/modules/immodules/scim/Makefile.am | 3 ++- src/modules/immodules/scim/scim_imcontext.h | 40 +++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 src/modules/immodules/scim/scim_imcontext.h diff --git a/src/modules/immodules/scim/Makefile.am b/src/modules/immodules/scim/Makefile.am index c3689e7..a5d1fed 100644 --- a/src/modules/immodules/scim/Makefile.am +++ b/src/modules/immodules/scim/Makefile.am @@ -23,7 +23,8 @@ pkgdir = $(libdir)/ecore/immodules pkg_LTLIBRARIES = scim.la scim_la_SOURCES = \ scim_imcontext.cpp \ -scim_module.cpp +scim_module.cpp \ +scim_imcontext.h scim_la_LIBADD = \ $(top_builddir)/src/lib/ecore_imf/libecore_imf.la \ diff --git a/src/modules/immodules/scim/scim_imcontext.h b/src/modules/immodules/scim/scim_imcontext.h new file mode 100644 index 0000000..84f1a2f --- /dev/null +++ b/src/modules/immodules/scim/scim_imcontext.h @@ -0,0 +1,40 @@ +#ifndef __ISF_IMF_CONTEXT_H +#define __ISF_IMF_CONTEXT_H + +#include + +typedef struct _EcoreIMFContextISF EcoreIMFContextISF; +typedef struct _EcoreIMFContextISFImpl EcoreIMFContextISFImpl; + +struct _EcoreIMFContextISF { + Ecore_IMF_Context *ctx; + + EcoreIMFContextISFImpl *impl; + + int id; /* Input Context id*/ + struct _EcoreIMFContextISF *next; +}; + +void isf_imf_context_add (Ecore_IMF_Context *ctx); +void isf_imf_context_del (Ecore_IMF_Context *ctx); +void isf_imf_context_client_window_set (Ecore_IMF_Context *ctx, void *window); +void isf_imf_context_client_canvas_set (Ecore_IMF_Context *ctx, void *window); +void isf_imf_context_focus_in (Ecore_IMF_Context *ctx); +void isf_imf_context_focus_out (Ecore_IMF_Context *ctx); +void isf_imf_context_reset (Ecore_IMF_Context *ctx); +void isf_imf_context_cursor_position_set (Ecore_IMF_Context *ctx, int cursor_pos); +void isf_imf_context_cursor_location_set (Ecore_IMF_Context *ctx, int x, int y, int w, int h); +void isf_imf_context_input_mode_set (Ecore_IMF_Context *ctx, Ecore_IMF_Input_Mode input_mode); +void isf_imf_context_preedit_string_get (Ecore_IMF_Context *ctx, char** str, int *cursor_pos); +void isf_imf_context_preedit_string_with_attributes_get (Ecore_IMF_Context *ctx, char** str, Eina_List **attrs, int *cursor_pos); +void isf_imf_context_use_preedit_set (Ecore_IMF_Context* ctx, Eina_Bool use_preedit); +Eina_Bool isf_imf_context_filter_event (Ecore_IMF_Context *ctx, Ecore_IMF_Event_Type type, Ecore_IMF_Event *event); +void isf_imf_context_prediction_allow_set (Ecore_IMF_Context* ctx, Eina_Bool prediction); +void isf_imf_context_autocapital_type_set (Ecore_IMF_Context* ctx, Ecore_IMF_Autocapital_Type autocapital_type); +void isf_imf_context_input_panel_layout_set (Ecore_IMF_Context* ctx, Ecore_IMF_Input_Panel_Layout layout); + +EcoreIMFContextISF* isf_imf_context_new (void); +void isf_imf_context_shutdown (void); + +#endif /* __ISF_IMF_CONTEXT_H */ + -- 2.7.4