return context;
}
-EAPI void
+void
ecore_imf_context_ibus_add(Ecore_IMF_Context *ctx)
{
EINA_LOG_DBG("%s", __FUNCTION__);
g_signal_connect(_bus, "connected", G_CALLBACK (_ecore_imf_context_ibus_bus_connected_cb), ibusimcontext);
}
-EAPI void
+void
ecore_imf_context_ibus_del(Ecore_IMF_Context *ctx)
{
EINA_LOG_DBG("%s", __FUNCTION__);
_focus_im_context = NULL;
}
-EAPI Eina_Bool
+Eina_Bool
ecore_imf_context_ibus_filter_event(Ecore_IMF_Context *ctx,
Ecore_IMF_Event_Type type,
Ecore_IMF_Event *event)
return EINA_FALSE;
}
-EAPI void
+void
ecore_imf_context_ibus_focus_in(Ecore_IMF_Context *ctx)
{
EINA_LOG_DBG("ctx : %p", ctx);
_focus_im_context = ctx;
}
-EAPI void
+void
ecore_imf_context_ibus_focus_out(Ecore_IMF_Context *ctx)
{
EINA_LOG_DBG("ctx : %p", ctx);
ibus_input_context_focus_out(ibusimcontext->ibuscontext);
}
-EAPI void
+void
ecore_imf_context_ibus_reset(Ecore_IMF_Context *ctx)
{
IBusIMContext *ibusimcontext = (IBusIMContext*)ecore_imf_context_data_get(ctx);
ibus_input_context_reset(ibusimcontext->ibuscontext);
}
-EAPI void
+void
ecore_imf_context_ibus_preedit_string_get(Ecore_IMF_Context *ctx,
char **str,
int *cursor_pos)
EINA_LOG_DBG("cursor_pos : %d", *cursor_pos);
}
-EAPI void
+void
ecore_imf_context_ibus_preedit_string_with_attributes_get(Ecore_IMF_Context *ctx,
char **str,
Eina_List **attrs,
}
}
-EAPI void
+void
ecore_imf_context_ibus_client_window_set(Ecore_IMF_Context *ctx, void *window)
{
EINA_LOG_DBG("canvas : %p", window);
ibusimcontext->client_window = (Ecore_X_Window)(Ecore_Window)window;
}
-EAPI void
+void
ecore_imf_context_ibus_client_canvas_set(Ecore_IMF_Context *ctx, void *canvas)
{
EINA_LOG_DBG("canvas : %p", canvas);
ibusimcontext->cursor_h);
}
-EAPI void
+void
ecore_imf_context_ibus_cursor_location_set(Ecore_IMF_Context *ctx,
int x,
int y,
}
}
-EAPI void
+void
ecore_imf_context_ibus_use_preedit_set(Ecore_IMF_Context *ctx, Eina_Bool use_preedit)
{
EINA_LOG_DBG("preedit : %d", use_preedit);
typedef struct _IBusIMContext IBusIMContext;
-EAPI void ecore_imf_context_ibus_add(Ecore_IMF_Context *ctx);
+void ecore_imf_context_ibus_add(Ecore_IMF_Context *ctx);
-EAPI void ecore_imf_context_ibus_del(Ecore_IMF_Context *ctx);
+void ecore_imf_context_ibus_del(Ecore_IMF_Context *ctx);
-EAPI void ecore_imf_context_ibus_reset(Ecore_IMF_Context *context);
+void ecore_imf_context_ibus_reset(Ecore_IMF_Context *context);
-EAPI void ecore_imf_context_ibus_focus_in(Ecore_IMF_Context *context);
+void ecore_imf_context_ibus_focus_in(Ecore_IMF_Context *context);
-EAPI void ecore_imf_context_ibus_focus_out(Ecore_IMF_Context *context);
+void ecore_imf_context_ibus_focus_out(Ecore_IMF_Context *context);
-EAPI void ecore_imf_context_ibus_preedit_string_get(Ecore_IMF_Context *context,
- char **str,
- int *cursor_pos);
+void ecore_imf_context_ibus_preedit_string_get(Ecore_IMF_Context *context,
+ char **str,
+ int *cursor_pos);
-EAPI void ecore_imf_context_ibus_preedit_string_with_attributes_get(Ecore_IMF_Context *context,
- char **str,
- Eina_List **attrs,
- int *cursor_pos);
+void ecore_imf_context_ibus_preedit_string_with_attributes_get(Ecore_IMF_Context *context,
+ char **str,
+ Eina_List **attrs,
+ int *cursor_pos);
-EAPI void ecore_imf_context_ibus_cursor_location_set(Ecore_IMF_Context *context,
- int x, int y, int w, int h);
+void ecore_imf_context_ibus_cursor_location_set(Ecore_IMF_Context *context,
+ int x, int y, int w, int h);
-EAPI void ecore_imf_context_ibus_use_preedit_set(Ecore_IMF_Context *context,
- Eina_Bool use_preedit);
+void ecore_imf_context_ibus_use_preedit_set(Ecore_IMF_Context *context,
+ Eina_Bool use_preedit);
-EAPI void ecore_imf_context_ibus_client_window_set(Ecore_IMF_Context *context, void *window);
+void ecore_imf_context_ibus_client_window_set(Ecore_IMF_Context *context, void *window);
-EAPI void ecore_imf_context_ibus_client_canvas_set(Ecore_IMF_Context *context, void *canvas);
+void ecore_imf_context_ibus_client_canvas_set(Ecore_IMF_Context *context, void *canvas);
-EAPI Eina_Bool ecore_imf_context_ibus_filter_event(Ecore_IMF_Context *ctx, Ecore_IMF_Event_Type type, Ecore_IMF_Event *event);
+Eina_Bool ecore_imf_context_ibus_filter_event(Ecore_IMF_Context *ctx, Ecore_IMF_Event_Type type, Ecore_IMF_Event *event);
IBusIMContext *ecore_imf_context_ibus_new(void);
#endif
*
* Return value: A pointer to the newly created EcoreIMFContextISF instance
*/
-EAPI EcoreIMFContextISF *
+EcoreIMFContextISF *
isf_imf_context_new(void)
{
SCIM_DEBUG_FRONTEND(1) << __FUNCTION__ << "...\n";
* It will be called when the scim im module is unloaded by ecore. It will do some
* cleanup job.
*/
-EAPI void
+void
isf_imf_context_shutdown(void)
{
SCIM_DEBUG_FRONTEND(1) << __FUNCTION__ << "...\n";
}
}
-EAPI void
+void
isf_imf_context_add(Ecore_IMF_Context *ctx)
{
SCIM_DEBUG_FRONTEND(1) << __FUNCTION__ << "...\n";
SCIM_DEBUG_FRONTEND(2) << "input context created: id = " << context_scim->id << "\n";
}
-EAPI void
+void
isf_imf_context_del(Ecore_IMF_Context *ctx)
{
SCIM_DEBUG_FRONTEND(1) << __FUNCTION__ << "...\n";
* may be used in order to correctly position status windows, and may also
* be used for purposes internal to the Input Method Context.
*/
-EAPI void
+void
isf_imf_context_client_canvas_set(Ecore_IMF_Context *ctx, void *canvas)
{
SCIM_DEBUG_FRONTEND(1) << __FUNCTION__ << "...\n";
* This window is used in order to correctly position status windows,
* and may also be used for purposes internal to the Input Method Context.
*/
-EAPI void
+void
isf_imf_context_client_window_set(Ecore_IMF_Context *ctx, void *window)
{
SCIM_DEBUG_FRONTEND(1) << __FUNCTION__ << "...\n";
* position has been made. This will typically cause the Input Method Context
* to clear the preedit state.
*/
-EAPI void
+void
isf_imf_context_reset(Ecore_IMF_Context *ctx)
{
SCIM_DEBUG_FRONTEND(1) << __FUNCTION__ << "...\n";
*
* Notify the Input Method Context that the widget to which its correspond has gained focus.
*/
-EAPI void
+void
isf_imf_context_focus_in(Ecore_IMF_Context *ctx)
{
EcoreIMFContextISF *context_scim = (EcoreIMFContextISF *)ecore_imf_context_data_get(ctx);
*
* Notify the Input Method Context that the widget to which its correspond has lost focus.
*/
-EAPI void
+void
isf_imf_context_focus_out(Ecore_IMF_Context *ctx)
{
EcoreIMFContextISF *context_scim = (EcoreIMFContextISF *)ecore_imf_context_data_get(ctx);
*
* Notify the Input Method Context that a change in the cursor location has been made.
*/
-EAPI void
+void
isf_imf_context_cursor_location_set(Ecore_IMF_Context *ctx, int cx, int cy, int cw, int ch)
{
SCIM_DEBUG_FRONTEND(1) << __FUNCTION__ << "...\n";
* If is 0 (default is 1), then the IM context may use some other method to
* display feedback, such as displaying it in a child of the root window.
*/
-EAPI void
+void
isf_imf_context_use_preedit_set(Ecore_IMF_Context* ctx, Eina_Bool use_preedit)
{
SCIM_DEBUG_FRONTEND(1) << __FUNCTION__ << " = " << (use_preedit ? "true" : "false") << "...\n";
}
}
-EAPI void
+void
isf_imf_context_preedit_string_with_attributes_get(Ecore_IMF_Context *ctx, char** str, Eina_List **attrs, int *cursor_pos)
{
SCIM_DEBUG_FRONTEND(1) << __FUNCTION__ << "...\n";
*
* To get the preedit string of the input method.
*/
-EAPI void
+void
isf_imf_context_preedit_string_get(Ecore_IMF_Context *ctx, char** str, int *cursor_pos)
{
SCIM_DEBUG_FRONTEND(1) << __FUNCTION__ << "...\n";
*
* Notify the Input Method Context that a change in the cursor position has been made.
*/
-EAPI void
+void
isf_imf_context_cursor_position_set(Ecore_IMF_Context *ctx, int cursor_pos)
{
SCIM_DEBUG_FRONTEND(1) << __FUNCTION__ << "...\n";
* To set the input mode of input method. The definition of Ecore_IMF_Input_Mode
* is in Ecore_IMF.h.
*/
-EAPI void
+void
isf_imf_context_input_mode_set(Ecore_IMF_Context *ctx, Ecore_IMF_Input_Mode input_mode)
{
SCIM_DEBUG_FRONTEND(1) << __FUNCTION__ << "...\n";
*
* Set whether the IM context should use the prediction.
*/
-EAPI void
+void
isf_imf_context_prediction_allow_set(Ecore_IMF_Context* ctx, Eina_Bool prediction)
{
SCIM_DEBUG_FRONTEND(1) << __FUNCTION__ << " = " << (prediction ? "true" : "false") << "...\n";
context_scim->impl->prediction_allow = prediction;
}
-EAPI void
+void
isf_imf_context_autocapital_type_set(Ecore_IMF_Context* ctx, Ecore_IMF_Autocapital_Type autocapital_type)
{
SCIM_DEBUG_FRONTEND(1) << __FUNCTION__ << " = " << autocapital_type << "...\n";
* the event was not handled), but there is no obligation of any events to be
* submitted to this function.
*/
-EAPI Eina_Bool
+Eina_Bool
isf_imf_context_filter_event(Ecore_IMF_Context *ctx, Ecore_IMF_Event_Type type, Ecore_IMF_Event *event)
{
SCIM_DEBUG_FRONTEND(1) << __FUNCTION__ << "...\n";
return ret;
}
-EAPI void
+void
isf_imf_context_input_panel_show(Ecore_IMF_Context *ctx)
{
SCIM_DEBUG_FRONTEND(1) << __FUNCTION__ << "...\n";
(context_scim->impl->client_window, ECORE_X_VIRTUAL_KEYBOARD_STATE_ON);
}
-EAPI void
+void
isf_imf_context_input_panel_hide(Ecore_IMF_Context *ctx)
{
SCIM_DEBUG_FRONTEND(1) << __FUNCTION__ << "...\n";
text_input_text_direction
};
-EAPI void
+void
wayland_im_context_add(Ecore_IMF_Context *ctx)
{
WaylandIMContext *imcontext = (WaylandIMContext *)ecore_imf_context_data_get(ctx);
&text_input_listener, imcontext);
}
-EAPI void
+void
wayland_im_context_del(Ecore_IMF_Context *ctx)
{
WaylandIMContext *imcontext = (WaylandIMContext *)ecore_imf_context_data_get(ctx);
clear_preedit(imcontext);
}
-EAPI void
+void
wayland_im_context_reset(Ecore_IMF_Context *ctx)
{
WaylandIMContext *imcontext = (WaylandIMContext *)ecore_imf_context_data_get(ctx);
imcontext->reset_serial = imcontext->serial;
}
-EAPI void
+void
wayland_im_context_focus_in(Ecore_IMF_Context *ctx)
{
EINA_LOG_DOM_INFO(_ecore_imf_wayland_log_dom, "focus-in");
show_input_panel(ctx);
}
-EAPI void
+void
wayland_im_context_focus_out(Ecore_IMF_Context *ctx)
{
WaylandIMContext *imcontext = (WaylandIMContext *)ecore_imf_context_data_get(ctx);
imcontext->input = NULL;
}
-EAPI void
+void
wayland_im_context_preedit_string_get(Ecore_IMF_Context *ctx,
char **str,
int *cursor_pos)
*cursor_pos = imcontext->preedit_cursor;
}
-EAPI void
+void
wayland_im_context_preedit_string_with_attributes_get(Ecore_IMF_Context *ctx,
char **str,
Eina_List **attrs,
*cursor_pos = imcontext->preedit_cursor;
}
-EAPI void
+void
wayland_im_context_cursor_position_set(Ecore_IMF_Context *ctx,
int cursor_pos)
{
update_state(imcontext);
}
-EAPI void
+void
wayland_im_context_use_preedit_set(Ecore_IMF_Context *ctx EINA_UNUSED,
Eina_Bool use_preedit EINA_UNUSED)
{
}
-EAPI void
+void
wayland_im_context_client_window_set(Ecore_IMF_Context *ctx,
void *window)
{
}
}
-EAPI void
+void
wayland_im_context_client_canvas_set(Ecore_IMF_Context *ctx,
void *canvas)
{
imcontext->canvas = canvas;
}
-EAPI void
+void
wayland_im_context_show(Ecore_IMF_Context *ctx)
{
EINA_LOG_DOM_INFO(_ecore_imf_wayland_log_dom, "context_show");
show_input_panel(ctx);
}
-EAPI void
+void
wayland_im_context_hide(Ecore_IMF_Context *ctx)
{
EINA_LOG_DOM_INFO(_ecore_imf_wayland_log_dom, "context_hide");
_input_panel_hide(ctx, EINA_FALSE);
}
-EAPI Eina_Bool
+Eina_Bool
wayland_im_context_filter_event(Ecore_IMF_Context *ctx,
Ecore_IMF_Event_Type type,
Ecore_IMF_Event *event EINA_UNUSED)
return EINA_FALSE;
}
-EAPI void
+void
wayland_im_context_cursor_location_set(Ecore_IMF_Context *ctx, int x, int y, int width, int height)
{
WaylandIMContext *imcontext = (WaylandIMContext *)ecore_imf_context_data_get(ctx);
}
}
-EAPI void wayland_im_context_autocapital_type_set(Ecore_IMF_Context *ctx,
+void wayland_im_context_autocapital_type_set(Ecore_IMF_Context *ctx,
Ecore_IMF_Autocapital_Type autocapital_type)
{
WaylandIMContext *imcontext = (WaylandIMContext *)ecore_imf_context_data_get(ctx);
imcontext->content_hint |= WL_TEXT_INPUT_CONTENT_HINT_LOWERCASE;
}
-EAPI void
+void
wayland_im_context_input_panel_layout_set(Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Layout layout)
{
WaylandIMContext *imcontext = (WaylandIMContext *)ecore_imf_context_data_get(ctx);
}
}
-EAPI void
+void
wayland_im_context_input_mode_set(Ecore_IMF_Context *ctx,
Ecore_IMF_Input_Mode input_mode)
{
imcontext->content_hint &= ~WL_TEXT_INPUT_CONTENT_HINT_PASSWORD;
}
-EAPI void
+void
wayland_im_context_input_hint_set(Ecore_IMF_Context *ctx,
Ecore_IMF_Input_Hints input_hints)
{
imcontext->content_hint &= ~WL_TEXT_INPUT_CONTENT_HINT_MULTILINE;
}
-EAPI void
+void
wayland_im_context_input_panel_language_set(Ecore_IMF_Context *ctx,
Ecore_IMF_Input_Panel_Lang lang)
{
imcontext->content_hint &= ~WL_TEXT_INPUT_CONTENT_HINT_LATIN;
}
-EAPI void
+void
wayland_im_context_input_panel_language_locale_get(Ecore_IMF_Context *ctx,
char **locale)
{
*locale = strdup(imcontext->language ? imcontext->language : "");
}
-EAPI void
+void
wayland_im_context_prediction_allow_set(Ecore_IMF_Context *ctx,
Eina_Bool prediction)
{
typedef struct _WaylandIMContext WaylandIMContext;
-EAPI void wayland_im_context_add (Ecore_IMF_Context *ctx);
-EAPI void wayland_im_context_del (Ecore_IMF_Context *ctx);
-EAPI void wayland_im_context_reset (Ecore_IMF_Context *ctx);
-EAPI void wayland_im_context_focus_in (Ecore_IMF_Context *ctx);
-EAPI void wayland_im_context_focus_out (Ecore_IMF_Context *ctx);
-EAPI void wayland_im_context_preedit_string_get (Ecore_IMF_Context *ctx,
- char **str,
- int *cursor_pos);
-EAPI void wayland_im_context_preedit_string_with_attributes_get(Ecore_IMF_Context *ctx,
- char **str,
- Eina_List **attr,
- int *cursor_pos);
-
-EAPI void wayland_im_context_cursor_position_set(Ecore_IMF_Context *ctx,
- int cursor_pos);
-EAPI void wayland_im_context_use_preedit_set (Ecore_IMF_Context *ctx,
- Eina_Bool use_preedit);
-EAPI void wayland_im_context_client_window_set (Ecore_IMF_Context *ctx,
- void *window);
-EAPI void wayland_im_context_client_canvas_set (Ecore_IMF_Context *ctx,
- void *canvas);
-EAPI void wayland_im_context_show (Ecore_IMF_Context *ctx);
-EAPI void wayland_im_context_hide (Ecore_IMF_Context *ctx);
-EAPI Eina_Bool wayland_im_context_filter_event (Ecore_IMF_Context *ctx,
- Ecore_IMF_Event_Type type,
- Ecore_IMF_Event *event);
-EAPI void wayland_im_context_cursor_location_set(Ecore_IMF_Context *ctx,
- int x,
- int y,
- int width,
- int height);
-
-EAPI void wayland_im_context_autocapital_type_set(Ecore_IMF_Context *ctx,
- Ecore_IMF_Autocapital_Type autocapital_type);
-
-EAPI void wayland_im_context_input_panel_layout_set(Ecore_IMF_Context *ctx,
- Ecore_IMF_Input_Panel_Layout layout);
-
-EAPI void wayland_im_context_input_mode_set(Ecore_IMF_Context *ctx,
- Ecore_IMF_Input_Mode input_mode);
-
-EAPI void wayland_im_context_input_hint_set(Ecore_IMF_Context *ctx,
- Ecore_IMF_Input_Hints input_hints);
-
-EAPI void wayland_im_context_input_panel_language_set(Ecore_IMF_Context *ctx,
- Ecore_IMF_Input_Panel_Lang lang);
-
-EAPI void
+void wayland_im_context_add (Ecore_IMF_Context *ctx);
+void wayland_im_context_del (Ecore_IMF_Context *ctx);
+void wayland_im_context_reset (Ecore_IMF_Context *ctx);
+void wayland_im_context_focus_in (Ecore_IMF_Context *ctx);
+void wayland_im_context_focus_out (Ecore_IMF_Context *ctx);
+void wayland_im_context_preedit_string_get (Ecore_IMF_Context *ctx,
+ char **str,
+ int *cursor_pos);
+void wayland_im_context_preedit_string_with_attributes_get(Ecore_IMF_Context *ctx,
+ char **str,
+ Eina_List **attr,
+ int *cursor_pos);
+
+void wayland_im_context_cursor_position_set(Ecore_IMF_Context *ctx,
+ int cursor_pos);
+void wayland_im_context_use_preedit_set (Ecore_IMF_Context *ctx,
+ Eina_Bool use_preedit);
+void wayland_im_context_client_window_set (Ecore_IMF_Context *ctx,
+ void *window);
+void wayland_im_context_client_canvas_set (Ecore_IMF_Context *ctx,
+ void *canvas);
+void wayland_im_context_show (Ecore_IMF_Context *ctx);
+void wayland_im_context_hide (Ecore_IMF_Context *ctx);
+Eina_Bool wayland_im_context_filter_event (Ecore_IMF_Context *ctx,
+ Ecore_IMF_Event_Type type,
+ Ecore_IMF_Event *event);
+void wayland_im_context_cursor_location_set(Ecore_IMF_Context *ctx,
+ int x,
+ int y,
+ int width,
+ int height);
+
+void wayland_im_context_autocapital_type_set(Ecore_IMF_Context *ctx,
+ Ecore_IMF_Autocapital_Type autocapital_type);
+
+void wayland_im_context_input_panel_layout_set(Ecore_IMF_Context *ctx,
+ Ecore_IMF_Input_Panel_Layout layout);
+
+void wayland_im_context_input_mode_set(Ecore_IMF_Context *ctx,
+ Ecore_IMF_Input_Mode input_mode);
+
+void wayland_im_context_input_hint_set(Ecore_IMF_Context *ctx,
+ Ecore_IMF_Input_Hints input_hints);
+
+void wayland_im_context_input_panel_language_set(Ecore_IMF_Context *ctx,
+ Ecore_IMF_Input_Panel_Lang lang);
+
+void
wayland_im_context_input_panel_language_locale_get(Ecore_IMF_Context *ctx,
char **locale);
-EAPI void
+void
wayland_im_context_prediction_allow_set(Ecore_IMF_Context *ctx,
Eina_Bool prediction);