#endif
/* ecore_imf_context_input_panel_event_callback_add() flag */
- typedef enum
+ typedef enum
{
ECORE_IMF_INPUT_PANEL_STATE_EVENT, /**< Input Panel STATE Event */
ECORE_IMF_INPUT_PANEL_MODE_EVENT, /**< Input Panel MODE Event */
ECORE_IMF_INPUT_PANEL_EVENT_INVALID
} Ecore_IMF_Input_Panel_Event;
- typedef enum
+ typedef enum
{
ECORE_IMF_INPUT_PANEL_STATE_SHOW, /**< Show Input panel */
ECORE_IMF_INPUT_PANEL_STATE_HIDE, /**< Hide Input panel */
ECORE_IMF_INPUT_PANEL_STATE_INVALID
} Ecore_IMF_Input_Panel_State;
- typedef enum
+ typedef enum
{
ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL, /**< Default 4x4 layout */
ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBER, /**< Number layout */
ECORE_IMF_INPUT_PANEL_LAYOUT_URL, /**< URL layout */
ECORE_IMF_INPUT_PANEL_LAYOUT_PHONENUMBER, /**< Phone Number layout */
ECORE_IMF_INPUT_PANEL_LAYOUT_IP, /**< IP layout */
- ECORE_IMF_INPUT_PANEL_LAYOUT_MONTH, /**< Month layout */
+ ECORE_IMF_INPUT_PANEL_LAYOUT_MONTH, /**< Month layout */
ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY, /**< Number Only layout */
ECORE_IMF_INPUT_PANEL_LAYOUT_CUSTOM_1 = 100, /* Reserved for future use */
ECORE_IMF_INPUT_PANEL_LAYOUT_CUSTOM_2,
ECORE_IMF_INPUT_PANEL_LAYOUT_CUSTOM_7,
ECORE_IMF_INPUT_PANEL_LAYOUT_CUSTOM_8,
ECORE_IMF_INPUT_PANEL_LAYOUT_CUSTOM_9,
- ECORE_IMF_INPUT_PANEL_LAYOUT_CUSTOM_10,
+ ECORE_IMF_INPUT_PANEL_LAYOUT_CUSTOM_10,
ECORE_IMF_INPUT_PANEL_LAYOUT_INVALID
} Ecore_IMF_Input_Panel_Layout;
ECORE_IMF_KEYBOARD_LANG_ALPHABET /**< Alphabet */
} Ecore_IMF_Keyboard_Lang;
- typedef enum
+ typedef enum
{
ECORE_IMF_AUTOCORRECTION_DEFAULT,
ECORE_IMF_AUTOCORRECTION_NO,
typedef enum
{
ECORE_IMF_INPUT_PANEL_CAPS_MODE_OFF, /**< Off */
- ECORE_IMF_INPUT_PANEL_CAPS_MODE_ON, /**< On */
+ ECORE_IMF_INPUT_PANEL_CAPS_MODE_ON, /**< On */
ECORE_IMF_INPUT_PANEL_CAPS_MODE_LOCK, /**< Lock */
} Ecore_IMF_Input_Panel_Caps_Mode;
- typedef enum
+ typedef enum
{
ECORE_IMF_INPUT_PANEL_ORIENT_NONE,
ECORE_IMF_INPUT_PANEL_ORIENT_90_CW, /* Clockwise */
ECORE_IMF_INPUT_PANEL_ORIENT_90_CCW /* CounterClockwise */
} Ecore_IMF_Input_Panel_Orient;
- typedef struct
+ typedef struct
{
int layout_idx;
int key_idx;
Eina_Bool disabled;
} Disable_Key_Item;
- typedef struct
+ typedef struct
{
int layout_idx;
int key_idx;
{
Ecore_IMF_Preedit_Type preedit_type;
unsigned int start_index;
- unsigned int end_index;
+ unsigned int end_index;
};
struct _Ecore_IMF_Context_Class
Ecore_IMF_Input_Panel_Layout (*input_panel_layout_get) (Ecore_IMF_Context *ctx);
void (*input_panel_language_set) (Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Lang lang);
- Ecore_IMF_Input_Panel_Lang (*input_panel_language_get) (Ecore_IMF_Context *ctx);
+ Ecore_IMF_Input_Panel_Lang (*input_panel_language_get) (Ecore_IMF_Context *ctx);
void (*input_panel_imdata_set) (Ecore_IMF_Context *ctx, const char* data, int len);
void (*input_panel_imdata_get) (Ecore_IMF_Context *ctx, char* data, int *len);
* @param lang see Ecore_IMF_Input_Panel_Lang
* @ingroup Ecore_IMF_Context_IMControl_Group
* THIS API IS NOT SUPPORTED NOW
- */
+ */
EAPI void ecore_imf_context_input_panel_language_set (Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Lang lang);
/**
* @param lang see Ecore_IMF_Input_Panel_Lang
* @ingroup Ecore_IMF_Context_IMControl_Group
* THIS API IS NOT SUPPORTED NOW
- */
+ */
EAPI void ecore_imf_context_keyboard_language_set (Ecore_IMF_Context *ctx, Ecore_IMF_Keyboard_Lang lang);
/**
* @return Ecore_IMF_Input_Panel_Lang
* @ingroup Ecore_IMF_Context_IMControl_Group
* THIS API IS NOT SUPPORTED NOW
- */
+ */
EAPI Ecore_IMF_Keyboard_Lang ecore_imf_context_keyboard_language_get (Ecore_IMF_Context *ctx);
-
+
/**
* Get ISE Language of given ISE. -- Not supported for now --
* @ingroup Ecore_IMF_Context_IMControl_Group
* }
* }
* @endcode
- */
+ */
EAPI void ecore_imf_context_input_panel_imdata_set (Ecore_IMF_Context *ctx, const char * data, int len);
/**
* }
* }
* @endcode
- */
+ */
EAPI void ecore_imf_context_input_panel_use_effect_set (Ecore_IMF_Context *ctx, Eina_Bool use_effect);
/**
* return use_effect;
* }
* @endcode
- */
+ */
EAPI Eina_Bool ecore_imf_context_input_panel_use_effect_get (Ecore_IMF_Context *ctx);
/**
* }
* }
* @endcode
- */
+ */
EAPI void ecore_imf_context_input_panel_private_key_set (Ecore_IMF_Context *ctx, int layout_index, int key_index, const char *img_path, const char* label, int key_value, const char* key_string);
EAPI Eina_List *ecore_imf_context_input_panel_private_key_list_get (Ecore_IMF_Context *ctx);
* }
* }
*/
-
- EAPI Ecore_IMF_Input_Panel_Orient ecore_imf_context_input_panel_orient_get (Ecore_IMF_Context *ctx);
+
+ EAPI Ecore_IMF_Input_Panel_Orient ecore_imf_context_input_panel_orient_get (Ecore_IMF_Context *ctx);
/**
* Get name of current active ISE.
* //do imf irrelated things
* }
* @endcode
- */
+ */
EAPI int ecore_imf_context_ise_get_iselist (Ecore_IMF_Context *ctx, char*** iselist);
/**
* @endcode
*/
EAPI Ecore_IMF_Input_Panel_State ecore_imf_context_input_panel_state_get (Ecore_IMF_Context *ctx);
-
+
/**
* Application can register a callback function which will be called if there is change in ise state,language,mode etc.
* To use this API application should include Ecore_IMF.h header file.
ctx->input_panel_orient = ECORE_IMF_INPUT_PANEL_ORIENT_NONE;
ctx->use_effect = EINA_TRUE;
ctx->callbacks = NULL;
-
+
return ctx;
}
}
if (ctx->klass->input_panel_language_set) ctx->klass->input_panel_language_set(ctx, lang);
- ctx->input_panel_lang = lang;
+ ctx->input_panel_lang = lang;
}
EAPI Ecore_IMF_Input_Panel_Lang
return -1;
}
- if (ctx->klass->ise_get_ise_language)
+ if (ctx->klass->ise_get_ise_language)
return ctx->klass->ise_get_ise_language(ctx, ise_name, langlist);
- else
+ else
return -1;
}
}
EAPI void
-ecore_imf_context_input_panel_imdata_set (Ecore_IMF_Context *ctx, const char * data, int len)
+ecore_imf_context_input_panel_imdata_set (Ecore_IMF_Context *ctx, const char *data, int len)
{
if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
{
EINA_LIST_FOREACH(ctx->private_key_list, l, key_item)
{
- if (key_item && key_item->layout_idx == layout_index &&
+ if (key_item && key_item->layout_idx == layout_index &&
key_item->key_idx == key_index)
{
// if exist in the list
return ctx->private_key_list;
}
-EAPI void
+EAPI void
ecore_imf_context_input_panel_key_disabled_set (Ecore_IMF_Context *ctx, int layout_index, int key_index, Eina_Bool disabled)
{
Disable_Key_Item *key_item;
return ECORE_IMF_INPUT_PANEL_LAYOUT_INVALID;
}
- if (ctx->klass->input_panel_layout_get )
+ if (ctx->klass->input_panel_layout_get)
{
// ctx->klass->input_panel_layout_get (ctx, &layout);
return ctx->input_panel_layout;
return ctx->input_panel_orient;
}
-EAPI void
+EAPI void
ecore_imf_context_ise_get_active_isename (Ecore_IMF_Context *ctx, char* name)
{
if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
if (ctx->klass->ise_get_active_isename) ctx->klass->ise_get_active_isename(ctx, name);
}
-
-EAPI void
+
+EAPI void
ecore_imf_context_ise_set_active_ise_by_name (Ecore_IMF_Context *ctx, const char* name)
{
if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,"ecore_imf_context_ise_set_active_ise_by_name");
return;
}
-
+
if (!name)
{
printf ("input parameters error!!! \n");
if (ctx->klass->ise_set_active_ise_by_name) ctx->klass->ise_set_active_ise_by_name(ctx, name);
}
-
-EAPI void
+
+EAPI void
ecore_imf_context_ise_set_active_ise_by_uuid (Ecore_IMF_Context *ctx, const char* uuid)
{
if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
}
EAPI int
-ecore_imf_context_ise_get_iselist (Ecore_IMF_Context *ctx, char*** iselist)
+ecore_imf_context_ise_get_iselist (Ecore_IMF_Context *ctx, char*** iselist)
{
if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
{
return -1;
}
- if (ctx->klass->ise_get_iselist)
+ if (ctx->klass->ise_get_iselist)
return ctx->klass->ise_get_iselist(ctx, iselist);
- else
+ else
return -1;
}
return ECORE_IMF_INPUT_PANEL_STATE_INVALID;
}
- if (ctx->klass->input_panel_state_get)
+ if (ctx->klass->input_panel_state_get)
state = ctx->klass->input_panel_state_get(ctx);
- return state;
+ return state;
}
EAPI void
-ecore_imf_context_input_panel_event_callback_add (Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Event type, void (*pEventCallBackFunc) (void *data, Ecore_IMF_Context *ctx, int value), const void *data)
+ecore_imf_context_input_panel_event_callback_add (Ecore_IMF_Context *ctx,
+ Ecore_IMF_Input_Panel_Event type,
+ void (*pEventCallBackFunc) (void *data, Ecore_IMF_Context *ctx, int value),
+ const void *data)
{
if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
{
return;
}
- if (ctx->klass->input_panel_event_callback_add)
+ if (ctx->klass->input_panel_event_callback_add)
{
ctx->klass->input_panel_event_callback_add(ctx, type, pEventCallBackFunc, data);
}
}
EAPI void
-ecore_imf_context_input_panel_event_callback_del (Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Event type, void (*pEventCallBackFunc) (void *data, Ecore_IMF_Context *ctx, int value))
+ecore_imf_context_input_panel_event_callback_del (Ecore_IMF_Context *ctx,
+ Ecore_IMF_Input_Panel_Event type,
+ void (*pEventCallBackFunc) (void *data, Ecore_IMF_Context *ctx, int value))
{
if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
{
return;
}
- if (ctx->klass->input_panel_event_callback_del)
+ if (ctx->klass->input_panel_event_callback_del)
{
ctx->klass->input_panel_event_callback_del(ctx, type, pEventCallBackFunc);
}
}
EAPI void
-ecore_imf_context_input_panel_caps_mode_set (Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Caps_Mode mode)
+ecore_imf_context_input_panel_caps_mode_set (Ecore_IMF_Context *ctx,
+ Ecore_IMF_Input_Panel_Caps_Mode mode)
{
if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
{