From 567a9a2475963fedce2c334f1cf9def10c24a631 Mon Sep 17 00:00:00 2001 From: Sungmin Kwak Date: Tue, 3 Mar 2015 19:52:52 +0900 Subject: [PATCH] Change the prefix from inputmethod_ to ime_ Change-Id: Iab64005388f84510d412a8120009cc85a2ec9f09 --- include/inputmethod.h | 836 +++++++++++++++++++++--------------------- include/inputmethod_keydef.h | 446 +++++++++++----------- include/inputmethod_private.h | 2 +- src/inputmethod.cpp | 382 +++++++++---------- 4 files changed, 833 insertions(+), 833 deletions(-) diff --git a/include/inputmethod.h b/include/inputmethod.h index 6dc7a91..6fa8f0a 100644 --- a/include/inputmethod.h +++ b/include/inputmethod.h @@ -19,7 +19,7 @@ /** * @file inputmethod.h - * @brief This file contains inputmethod APIs and related enumeration. + * @brief This file contains input method APIs and related enumeration. */ #include @@ -38,103 +38,103 @@ extern "C" { */ /** - * @brief Enumeration for inputmethod function error + * @brief Enumeration for input method function error * * @since_tizen 2.4 */ typedef enum { - INPUTMETHOD_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */ - INPUTMETHOD_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */ - INPUTMETHOD_ERROR_NO_CALLBACK_FUNCTION = TIZEN_ERROR_UIX_CLASS | 0x0001, /**< Necessary callback function is not set */ - INPUTMETHOD_ERROR_NOT_RUNNING = TIZEN_ERROR_UIX_CLASS | 0x0002, /**< IME main loop isn't started yet */ - INPUTMETHOD_ERROR_OPERATION_FAILED = TIZEN_ERROR_UIX_CLASS | 0x0003, /**< Operation failed */ -} inputmethod_error_e; + IME_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */ + IME_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */ + IME_ERROR_NO_CALLBACK_FUNCTION = TIZEN_ERROR_UIX_CLASS | 0x0001, /**< Necessary callback function is not set */ + IME_ERROR_NOT_RUNNING = TIZEN_ERROR_UIX_CLASS | 0x0002, /**< IME main loop isn't started yet */ + IME_ERROR_OPERATION_FAILED = TIZEN_ERROR_UIX_CLASS | 0x0003, /**< Operation failed */ +} ime_error_e; /** * @brief Enumeration of the option window type * * @since_tizen 2.4 * - * @see inputmethod_option_window_created_cb + * @see ime_option_window_created_cb */ typedef enum { - INPUTMETHOD_OPTION_WINDOW_TYPE_KEYBOARD, /**< Open from Keyboard */ - INPUTMETHOD_OPTION_WINDOW_TYPE_SETTING_APPLICATION, /**< Open from Setting application */ -} inputmethod_option_window_type_e; + IME_OPTION_WINDOW_TYPE_KEYBOARD, /**< Open from Keyboard */ + IME_OPTION_WINDOW_TYPE_SETTING_APPLICATION, /**< Open from Setting application */ +} ime_option_window_type_e; /** * @brief Enumeration of layout variation * * @since_tizen 2.4 * - * @see inputmethod_context_get_layout_variation + * @see ime_context_get_layout_variation */ typedef enum { - INPUTMETHOD_LAYOUT_NORMAL_VARIATION_NORMAL = 0, /**< The plain normal layout */ - INPUTMETHOD_LAYOUT_NORMAL_VARIATION_FILENAME, /**< Filename layout; symbols such as '/', '*', '\', '|', '<', '>', '?', '"' and ':' should be disabled */ - INPUTMETHOD_LAYOUT_NORMAL_VARIATION_PERSON_NAME, /**< The name of a person */ - INPUTMETHOD_LAYOUT_NUMBERONLY_VARIATION_NORMAL = 0, /**< The plain normal number layout */ - INPUTMETHOD_LAYOUT_NUMBERONLY_VARIATION_SIGNED, /**< The number layout to allow a negative sign */ - INPUTMETHOD_LAYOUT_NUMBERONLY_VARIATION_DECIMAL, /**< The number layout to allow decimal point to provide fractional value */ - INPUTMETHOD_LAYOUT_NUMBERONLY_VARIATION_SIGNED_AND_DECIMAL, /**< The number layout to allow decimal point and negative sign */ - INPUTMETHOD_LAYOUT_PASSWORD_VARIATION_NORMAL = 0, /**< The normal password layout */ - INPUTMETHOD_LAYOUT_PASSWORD_VARIATION_NUMBERONLY, /**< The password layout to allow only number */ -} inputmethod_layout_variation_e; + IME_LAYOUT_NORMAL_VARIATION_NORMAL = 0, /**< The plain normal layout */ + IME_LAYOUT_NORMAL_VARIATION_FILENAME, /**< Filename layout; symbols such as '/', '*', '\', '|', '<', '>', '?', '"' and ':' should be disabled */ + IME_LAYOUT_NORMAL_VARIATION_PERSON_NAME, /**< The name of a person */ + IME_LAYOUT_NUMBERONLY_VARIATION_NORMAL = 0, /**< The plain normal number layout */ + IME_LAYOUT_NUMBERONLY_VARIATION_SIGNED, /**< The number layout to allow a negative sign */ + IME_LAYOUT_NUMBERONLY_VARIATION_DECIMAL, /**< The number layout to allow decimal point to provide fractional value */ + IME_LAYOUT_NUMBERONLY_VARIATION_SIGNED_AND_DECIMAL, /**< The number layout to allow decimal point and negative sign */ + IME_LAYOUT_PASSWORD_VARIATION_NORMAL = 0, /**< The normal password layout */ + IME_LAYOUT_PASSWORD_VARIATION_NUMBERONLY, /**< The password layout to allow only number */ +} ime_layout_variation_e; /** * @brief Structure of an associated text input UI control's input context. * - * @details This is one of parameters of inputmethod_show_cb() callback function. IME application + * @details This is one of parameters of ime_show_cb() callback function. IME application * should configure its input panel with this structure information. * * @since_tizen 2.4 * - * @see inputmethod_context_get_layout, inputmethod_context_get_layout_variation, inputmethod_context_get_cursor_position, - * inputmethod_context_get_autocapital_type, inputmethod_context_get_return_key_type, inputmethod_context_get_return_key_state, - * inputmethod_context_get_prediction_mode, inputmethod_context_get_password_mode, inputmethod_context_get_input_hint, - * inputmethod_context_get_bidi_direction, inputmethod_context_get_language + * @see ime_context_get_layout, ime_context_get_layout_variation, ime_context_get_cursor_position, + * ime_context_get_autocapital_type, ime_context_get_return_key_type, ime_context_get_return_key_state, + * ime_context_get_prediction_mode, ime_context_get_password_mode, ime_context_get_input_hint, + * ime_context_get_bidi_direction, ime_context_get_language */ -typedef struct _inputmethod_context *inputmethod_context_h; +typedef struct _ime_context *ime_context_h; /** * @brief Called when the input panel is created. * - * @remarks This callback function is mandatory and must be registered using inputmethod_run(). The - * inputmethod_get_main_window() can be used to get the created input panel window. + * @remarks This callback function is mandatory and must be registered using ime_run(). The + * ime_get_main_window() can be used to get the created input panel window. * * @since_tizen 2.4 * * @param[in] user_data User data to be passed from the callback registration function * - * @pre The inputmethod_run() function calls this callback function. + * @pre The ime_run() function calls this callback function. * - * @see inputmethod_run, inputmethod_set_size, inputmethod_get_main_window + * @see ime_run, ime_set_size, ime_get_main_window */ -typedef void (*inputmethod_create_cb)(void *user_data); +typedef void (*ime_create_cb)(void *user_data); /** * @brief Called when the input panel is terminated. * - * @remarks This callback function is mandatory and must be registered using inputmethod_run(). The - * inputmethod_get_main_window() can be used to get the created input panel window. + * @remarks This callback function is mandatory and must be registered using ime_run(). The + * ime_get_main_window() can be used to get the created input panel window. * * @since_tizen 2.4 * * @param[in] user_data User data to be passed from the callback registration function * - * @see inputmethod_run, inputmethod_get_main_window + * @see ime_run, ime_get_main_window */ -typedef void (*inputmethod_terminate_cb)(void *user_data); +typedef void (*ime_terminate_cb)(void *user_data); /** * @brief Called when an associated text input UI control requests the input panel to show itself. * - * @remarks This callback function is mandatory and must be registered using inputmethod_run(). - * IME application should configure its input panel with #inputmethod_context_h structure information. - * The inputmethod_get_main_window() can be used to get the created input panel window. + * @remarks This callback function is mandatory and must be registered using ime_run(). + * IME application should configure its input panel with #ime_context_h structure information. + * The ime_get_main_window() can be used to get the created input panel window. * * @since_tizen 2.4 * @@ -142,29 +142,29 @@ typedef void (*inputmethod_terminate_cb)(void *user_data); * @param[in] context The input context information pointer * @param[in] user_data User data to be passed from the callback registration function * - * @see inputmethod_run, inputmethod_get_main_window, inputmethod_context_get_layout, - * inputmethod_context_get_layout_variation, inputmethod_context_get_cursor_position, - * inputmethod_context_get_autocapital_type, inputmethod_context_get_return_key_type, - * inputmethod_context_get_return_key_state, inputmethod_context_get_prediction_mode, - * inputmethod_context_get_password_mode, inputmethod_context_get_input_hint, - * inputmethod_context_get_bidi_direction, inputmethod_context_get_language + * @see ime_run, ime_get_main_window, ime_context_get_layout, + * ime_context_get_layout_variation, ime_context_get_cursor_position, + * ime_context_get_autocapital_type, ime_context_get_return_key_type, + * ime_context_get_return_key_state, ime_context_get_prediction_mode, + * ime_context_get_password_mode, ime_context_get_input_hint, + * ime_context_get_bidi_direction, ime_context_get_language */ -typedef void (*inputmethod_show_cb)(int context_id, inputmethod_context_h context, void *user_data); +typedef void (*ime_show_cb)(int context_id, ime_context_h context, void *user_data); /** * @brief Called when an associated text input UI control requests the input panel to hide itself. * - * @remarks This callback function is mandatory and must be registered using inputmethod_run(). The - * inputmethod_get_main_window() can be used to get the created input panel window. + * @remarks This callback function is mandatory and must be registered using ime_run(). The + * ime_get_main_window() can be used to get the created input panel window. * * @since_tizen 2.4 * * @param[in] context_id The input context identification value of an associated text input UI control * @param[in] user_data User data to be passed from the callback registration function * - * @see inputmethod_run, inputmethod_get_main_window + * @see ime_run, ime_get_main_window */ -typedef void (*inputmethod_hide_cb)(int context_id, void *user_data); +typedef void (*ime_hide_cb)(int context_id, void *user_data); /** * @brief Called when an associated text input UI control has focus. @@ -174,11 +174,11 @@ typedef void (*inputmethod_hide_cb)(int context_id, void *user_data); * @param[in] context_id The input context identification value of an associated text input UI control * @param[in] user_data User data to be passed from the callback registration function * - * @pre The callback can be registered using inputmethod_event_set_focus_in_cb(). + * @pre The callback can be registered using ime_event_set_focus_in_cb(). * - * @see inputmethod_event_set_focus_in_cb + * @see ime_event_set_focus_in_cb */ -typedef void (*inputmethod_focus_in_cb)(int context_id, void *user_data); +typedef void (*ime_focus_in_cb)(int context_id, void *user_data); /** * @brief Called when an associated text input UI control loses focus. @@ -188,16 +188,16 @@ typedef void (*inputmethod_focus_in_cb)(int context_id, void *user_data); * @param[in] context_id The input context identification value of an associated text input UI control * @param[in] user_data User data to be passed from the callback registration function * - * @pre The callback can be registered using inputmethod_event_set_focus_out_cb(). + * @pre The callback can be registered using ime_event_set_focus_out_cb(). * - * @see inputmethod_event_set_focus_out_cb + * @see ime_event_set_focus_out_cb */ -typedef void (*inputmethod_focus_out_cb)(int context_id, void *user_data); +typedef void (*ime_focus_out_cb)(int context_id, void *user_data); /** * @brief Called when an associated text input UI control responds to a request with the surrounding text. * - * @remarks The inputmethod_request_surrounding_text() must be called to invoke this callback function, asynchronously. + * @remarks The ime_request_surrounding_text() must be called to invoke this callback function, asynchronously. * * @since_tizen 2.4 * @@ -206,11 +206,11 @@ typedef void (*inputmethod_focus_out_cb)(int context_id, void *user_data); * @param[in] cursor_pos The cursor position * @param[in] user_data User data to be passed from the callback registration function * - * @pre The callback can be registered using inputmethod_event_set_surrounding_text_updated_cb(). + * @pre The callback can be registered using ime_event_set_surrounding_text_updated_cb(). * - * @see inputmethod_event_set_surrounding_text_updated_cb, inputmethod_request_surrounding_text + * @see ime_event_set_surrounding_text_updated_cb, ime_request_surrounding_text */ -typedef void (*inputmethod_surrounding_text_updated_cb)(int context_id, const char *text, int cursor_pos, void *user_data); +typedef void (*ime_surrounding_text_updated_cb)(int context_id, const char *text, int cursor_pos, void *user_data); /** * @brief Called to reset the input context of an associated text input UI control. @@ -219,11 +219,11 @@ typedef void (*inputmethod_surrounding_text_updated_cb)(int context_id, const ch * * @param[in] user_data User data to be passed from the callback registration function * - * @pre The callback can be registered using inputmethod_event_set_input_context_reset_cb(). + * @pre The callback can be registered using ime_event_set_input_context_reset_cb(). * - * @see inputmethod_event_set_input_context_reset_cb + * @see ime_event_set_input_context_reset_cb */ -typedef void (*inputmethod_input_context_reset_cb)(void *user_data); +typedef void (*ime_input_context_reset_cb)(void *user_data); /** * @brief Called when the position of the cursor in an associated text input UI control changes. @@ -233,11 +233,11 @@ typedef void (*inputmethod_input_context_reset_cb)(void *user_data); * @param[in] cursor_pos The cursor position * @param[in] user_data User data to be passed from the callback registration function * - * @pre The callback can be registered using inputmethod_event_set_cursor_position_updated_cb(). + * @pre The callback can be registered using ime_event_set_cursor_position_updated_cb(). * - * @see inputmethod_event_set_cursor_position_updated_cb + * @see ime_event_set_cursor_position_updated_cb */ -typedef void (*inputmethod_cursor_position_updated_cb)(int cursor_pos, void *user_data); +typedef void (*ime_cursor_position_updated_cb)(int cursor_pos, void *user_data); /** * @brief Called when an associated text input UI control requests for the language of the input panel. @@ -249,17 +249,17 @@ typedef void (*inputmethod_cursor_position_updated_cb)(int cursor_pos, void *use * @param[in] user_data User data to be passed from the callback registration function * @param[out] lang_code Input panel's current input language code * - * @pre The callback can be registered using inputmethod_event_set_language_requested_cb(). + * @pre The callback can be registered using ime_event_set_language_requested_cb(). * - * @see inputmethod_event_set_language_requested_cb + * @see ime_event_set_language_requested_cb */ -typedef void (*inputmethod_language_requested_cb)(void *user_data, char **lang_code); +typedef void (*ime_language_requested_cb)(void *user_data, char **lang_code); /** * @brief Called to set the preferred language to the input panel. * * @remarks @a language information is already set to the input panel when it is shown - * through #inputmethod_context_h. This callback function will be only called when the client + * through #ime_context_h. This callback function will be only called when the client * application changes the edit field's language attribute after the input panel is shown. * * @since_tizen 2.4 @@ -267,11 +267,11 @@ typedef void (*inputmethod_language_requested_cb)(void *user_data, char **lang_c * @param[in] language The preferred language that the client wants * @param[in] user_data User data to be passed from the callback registration function * - * @pre The callback can be registered using inputmethod_event_set_language_set_cb(). + * @pre The callback can be registered using ime_event_set_language_set_cb(). * - * @see inputmethod_event_set_language_set_cb + * @see ime_event_set_language_set_cb */ -typedef void (*inputmethod_language_set_cb)(Ecore_IMF_Input_Panel_Lang language, void *user_data); +typedef void (*ime_language_set_cb)(Ecore_IMF_Input_Panel_Lang language, void *user_data); /** * @brief Called to set the application specific data to deliver to the input panel. @@ -285,17 +285,17 @@ typedef void (*inputmethod_language_set_cb)(Ecore_IMF_Input_Panel_Lang language, * @param[in] data_len The length of data, in bytes, to send to the input panel * @param[in] user_data User data to be passed from the callback registration function * - * @pre The callback can be registered using inputmethod_event_set_imdata_set_cb(). + * @pre The callback can be registered using ime_event_set_imdata_set_cb(). * - * @see inputmethod_event_set_imdata_set_cb + * @see ime_event_set_imdata_set_cb */ -typedef void (*inputmethod_imdata_set_cb)(void *data, unsigned int data_len, void *user_data); +typedef void (*ime_imdata_set_cb)(void *data, unsigned int data_len, void *user_data); /** * @brief Called when an associated text input UI control requests the input panel to set its layout. * * @remarks @a layout information is already set to the input panel when it is shown - * through #inputmethod_context_h. This callback function will be only called when the client + * through #ime_context_h. This callback function will be only called when the client * application changes the edit field's layout attribute after the input panel is shown. * * @since_tizen 2.4 @@ -303,18 +303,18 @@ typedef void (*inputmethod_imdata_set_cb)(void *data, unsigned int data_len, voi * @param[in] layout The input panel layout * @param[in] user_data User data to be passed from the callback registration function * - * @pre The callback can be registered using inputmethod_event_set_layout_set_cb(). + * @pre The callback can be registered using ime_event_set_layout_set_cb(). * - * @see inputmethod_event_set_layout_set_cb + * @see ime_event_set_layout_set_cb */ -typedef void (*inputmethod_layout_set_cb)(Ecore_IMF_Input_Panel_Layout layout, void *user_data); +typedef void (*ime_layout_set_cb)(Ecore_IMF_Input_Panel_Layout layout, void *user_data); /** * @brief Called when an associated text input UI control requests the input panel to set the @c Return key label. * The input panel can show text or image on the @c Return button according to the @c Return key action. * * @remarks @a type information is already set to the input panel when it is shown - * through #inputmethod_context_h. This callback function will be only called when the client + * through #ime_context_h. This callback function will be only called when the client * application changes the edit field's @c Return key type attribute after the input panel * is shown. * @@ -323,18 +323,18 @@ typedef void (*inputmethod_layout_set_cb)(Ecore_IMF_Input_Panel_Layout layout, v * @param[in] type The type of @c Return key on the input panel * @param[in] user_data User data to be passed from the callback registration function * - * @pre The callback can be registered using inputmethod_event_set_return_key_type_set_cb(). + * @pre The callback can be registered using ime_event_set_return_key_type_set_cb(). * - * @see inputmethod_event_set_return_key_type_set_cb + * @see ime_event_set_return_key_type_set_cb */ -typedef void (*inputmethod_return_key_type_set_cb)(Ecore_IMF_Input_Panel_Return_Key_Type type, void *user_data); +typedef void (*ime_return_key_type_set_cb)(Ecore_IMF_Input_Panel_Return_Key_Type type, void *user_data); /** * @brief Called when an associated text input UI control requests the input panel to enable * or disable the @c Return key state. * * @remarks @a disabled information is already set to the input panel when it is shown - * through #inputmethod_context_h. This callback function will be only called when the client + * through #ime_context_h. This callback function will be only called when the client * application changes the edit field's @c Return key disable attribute after the input panel * is shown. * @@ -343,11 +343,11 @@ typedef void (*inputmethod_return_key_type_set_cb)(Ecore_IMF_Input_Panel_Return_ * @param[in] disabled The Boolean state to disable @c Return key. The @c Return key is enabled by default * @param[in] user_data User data to be passed from the callback registration function * - * @pre The callback can be registered using inputmethod_event_set_return_key_state_set_cb(). + * @pre The callback can be registered using ime_event_set_return_key_state_set_cb(). * - * @see inputmethod_event_set_return_key_state_set_cb + * @see ime_event_set_return_key_state_set_cb */ -typedef void (*inputmethod_return_key_state_set_cb)(bool disabled, void *user_data); +typedef void (*ime_return_key_state_set_cb)(bool disabled, void *user_data); /** * @brief Called when an associated text input UI control requests for the position @@ -361,11 +361,11 @@ typedef void (*inputmethod_return_key_state_set_cb)(bool disabled, void *user_da * @param[out] w The window width * @param[out] h The window height * - * @pre The callback can be registered using inputmethod_event_set_geometry_requested_cb(). + * @pre The callback can be registered using ime_event_set_geometry_requested_cb(). * - * @see inputmethod_event_set_geometry_requested_cb + * @see ime_event_set_geometry_requested_cb */ -typedef void (*inputmethod_geometry_requested_cb)(void *user_data, int *x, int *y, int *w, int *h); +typedef void (*ime_geometry_requested_cb)(void *user_data, int *x, int *y, int *w, int *h); /** * @brief Called when the system display language is changed. @@ -375,11 +375,11 @@ typedef void (*inputmethod_geometry_requested_cb)(void *user_data, int *x, int * * @param[in] language The language code * @param[in] user_data User data to be passed from the callback registration function * - * @pre The callback can be registered using inputmethod_event_set_display_language_changed_cb(). + * @pre The callback can be registered using ime_event_set_display_language_changed_cb(). * - * @see inputmethod_event_set_display_language_changed_cb + * @see ime_event_set_display_language_changed_cb */ -typedef void (*inputmethod_display_language_changed_cb)(const char *language, void *user_data); +typedef void (*ime_display_language_changed_cb)(const char *language, void *user_data); /** * @brief Called when the device is rotated. @@ -389,11 +389,11 @@ typedef void (*inputmethod_display_language_changed_cb)(const char *language, vo * @param[in] degree The rotation degree * @param[in] user_data User data to be passed from the callback registration function * - * @pre The callback can be registered using inputmethod_event_set_rotation_degree_changed_cb(). + * @pre The callback can be registered using ime_event_set_rotation_degree_changed_cb(). * - * @see inputmethod_event_set_rotation_degree_changed_cb + * @see ime_event_set_rotation_degree_changed_cb */ -typedef void (*inputmethod_rotation_degree_changed_cb)(int degree, void *user_data); +typedef void (*ime_rotation_degree_changed_cb)(int degree, void *user_data); /** * @brief Called when Accessibility in Settings application is on or off. @@ -403,17 +403,17 @@ typedef void (*inputmethod_rotation_degree_changed_cb)(int degree, void *user_da * @param[in] state Accessibility option state * @param[in] user_data User data to be passed from the callback registration function * - * @pre The callback can be registered using inputmethod_event_set_accessibility_state_changed_cb(). + * @pre The callback can be registered using ime_event_set_accessibility_state_changed_cb(). * - * @see inputmethod_event_set_accessibility_state_changed_cb + * @see ime_event_set_accessibility_state_changed_cb */ -typedef void (*inputmethod_accessibility_state_changed_cb)(bool state, void *user_data); +typedef void (*ime_accessibility_state_changed_cb)(bool state, void *user_data); /** * @brief Called to create the option window. * - * @remarks if Input panel requests to open the option window, @a type will be #INPUTMETHOD_OPTION_WINDOW_TYPE_KEYBOARD. - * And if Settings application requests to open it, @a type will be #INPUTMETHOD_OPTION_WINDOW_TYPE_SETTING_APPLICATION. + * @remarks if Input panel requests to open the option window, @a type will be #IME_OPTION_WINDOW_TYPE_KEYBOARD. + * And if Settings application requests to open it, @a type will be #IME_OPTION_WINDOW_TYPE_SETTING_APPLICATION. * * @since_tizen 2.4 * @@ -421,12 +421,12 @@ typedef void (*inputmethod_accessibility_state_changed_cb)(bool state, void *use * @param[in] type The type of option window * @param[in] user_data User data to be passed from the callback registration function * - * @pre The callback can be registered using inputmethod_event_set_option_window_created_cb(). The - * inputmethod_create_option_window() calls this callback function or Settings application can call this callback function. + * @pre The callback can be registered using ime_event_set_option_window_created_cb(). The + * ime_create_option_window() calls this callback function or Settings application can call this callback function. * - * @see inputmethod_event_set_option_window_created_cb, inputmethod_create_option_window + * @see ime_event_set_option_window_created_cb, ime_create_option_window */ -typedef void (*inputmethod_option_window_created_cb)(Evas_Object *window, inputmethod_option_window_type_e type, void *user_data); +typedef void (*ime_option_window_created_cb)(Evas_Object *window, ime_option_window_type_e type, void *user_data); /** * @brief Called to destroy the option window. @@ -436,12 +436,12 @@ typedef void (*inputmethod_option_window_created_cb)(Evas_Object *window, inputm * @param[in] window The window object to destroy * @param[in] user_data User data to be passed to the callback function * - * @pre The callback can be registered using inputmethod_event_set_option_window_destroyed_cb(). - * inputmethod_destroy_option_window() calls this callback function. + * @pre The callback can be registered using ime_event_set_option_window_destroyed_cb(). + * ime_destroy_option_window() calls this callback function. * - * @see inputmethod_event_set_option_window_destroyed_cb + * @see ime_event_set_option_window_destroyed_cb */ -typedef void (*inputmethod_option_window_destroyed_cb)(Evas_Object *window, void *user_data); +typedef void (*ime_option_window_destroyed_cb)(Evas_Object *window, void *user_data); /** * @brief The structure type to contain the set of the essential callback functions for IME application lifecycle and appearance. @@ -450,27 +450,27 @@ typedef void (*inputmethod_option_window_destroyed_cb)(Evas_Object *window, void * * @since_tizen 2.4 * - * @see inputmethod_run + * @see ime_run */ typedef struct { - inputmethod_create_cb create; /**< Called when the input panel is created */ - inputmethod_terminate_cb terminate; /**< Called when the input panel is terminated */ - inputmethod_show_cb show; /**< Called when the input panel is requested to show itself */ - inputmethod_hide_cb hide; /**< Called when the input panel is requested to hide itself */ -} inputmethod_callback_s; + ime_create_cb create; /**< Called when the input panel is created */ + ime_terminate_cb terminate; /**< Called when the input panel is terminated */ + ime_show_cb show; /**< Called when the input panel is requested to show itself */ + ime_hide_cb hide; /**< Called when the input panel is requested to hide itself */ +} ime_callback_s; /** * @brief Runs the main loop of IME application. * - * @details This function starts to run IME application's main loop. The inputmethod_create_cb() + * @details This function starts to run IME application's main loop. The ime_create_cb() * callback function is called to initialize IME application before the main loop starts up. And - * the inputmethod_terminate_cb() callback function is called when IME application is terminated. + * the ime_terminate_cb() callback function is called when IME application is terminated. * - * @remarks IME application needs to implement inputmethod_app_main() function which is the main - * entry point of IME application. In inputmethod_app_main() function, the inputmethod_run() - * function MUST be called with the necessary callback functions; inputmethod_create_cb(), - * inputmethod_terminate_cb(), inputmethod_show_cb(), and inputmethod_hide_cb() callback functions + * @remarks IME application MUST implement ime_app_main() function which is the main + * entry point of IME application. In ime_app_main() function, the ime_run() + * function MUST be called with the necessary callback functions; ime_create_cb(), + * ime_terminate_cb(), ime_show_cb(), and ime_hide_cb() callback functions * are mandatory for IME application. * * @since_tizen 2.4 @@ -479,52 +479,52 @@ typedef struct * @param[in] user_data User data to be passed to the callback functions * * @return 0 if IME application ends successfully, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_NO_CALLBACK_FUNCTION Necessary callback function is not set - * @retval #INPUTMETHOD_ERROR_OPERATION_FAILED Operation failed - * - * @pre The inputmethod_event_set_***() functions can be called to set the event handling callback functions. - * - * @see inputmethod_callback_s, inputmethod_event_set_focus_in_cb, inputmethod_event_set_focus_out_cb, - * inputmethod_event_set_surrounding_text_updated_cb, inputmethod_event_set_input_context_reset_cb, - * inputmethod_event_set_cursor_position_updated_cb, inputmethod_event_set_language_requested_cb, - * inputmethod_event_set_language_set_cb, inputmethod_event_set_imdata_set_cb, inputmethod_event_set_layout_set_cb, - * inputmethod_event_set_return_key_type_set_cb, inputmethod_event_set_return_key_state_set_cb, - * inputmethod_event_set_geometry_requested_cb, inputmethod_event_set_display_language_changed_cb, - * inputmethod_event_set_rotation_degree_changed_cb, inputmethod_event_set_accessibility_state_changed_cb, - * inputmethod_event_set_option_window_created_cb, inputmethod_event_set_option_window_destroyed_cb + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_NO_CALLBACK_FUNCTION Necessary callback function is not set + * @retval #IME_ERROR_OPERATION_FAILED Operation failed + * + * @pre The ime_event_set_***() functions can be called to set the event handling callback functions. + * + * @see ime_callback_s, ime_event_set_focus_in_cb, ime_event_set_focus_out_cb, + * ime_event_set_surrounding_text_updated_cb, ime_event_set_input_context_reset_cb, + * ime_event_set_cursor_position_updated_cb, ime_event_set_language_requested_cb, + * ime_event_set_language_set_cb, ime_event_set_imdata_set_cb, ime_event_set_layout_set_cb, + * ime_event_set_return_key_type_set_cb, ime_event_set_return_key_state_set_cb, + * ime_event_set_geometry_requested_cb, ime_event_set_display_language_changed_cb, + * ime_event_set_rotation_degree_changed_cb, ime_event_set_accessibility_state_changed_cb, + * ime_event_set_option_window_created_cb, ime_event_set_option_window_destroyed_cb * * @code - static void ime_create_cb(void *user_data); - static void ime_terminate_cb(void *user_data); - static void ime_show_cb(int context_id, inputmethod_context_h context, void *user_data); - static void ime_hide_cb(int context_id, void *user_data); - static void ime_focus_in_cb(int context_id, void *user_data); - static void ime_focus_out_cb(int context_id, void *user_data); - static void ime_cursor_position_updated_cb(int cursor_pos, void *user_data); - - static void ime_create_cb(void *user_data) + static void inputmethod_create_cb(void *user_data); + static void inputmethod_terminate_cb(void *user_data); + static void inputmethod_show_cb(int context_id, ime_context_h context, void *user_data); + static void inputmethod_hide_cb(int context_id, void *user_data); + static void inputmethod_focus_in_cb(int context_id, void *user_data); + static void inputmethod_focus_out_cb(int context_id, void *user_data); + static void inputmethod_cursor_position_updated_cb(int cursor_pos, void *user_data); + + static void inputmethod_create_cb(void *user_data) { Evas_Object *ime_win = NULL; - inputmethod_set_size(480, 400, 800, 400); - ime_win = inputmethod_get_main_window(); + ime_set_size(480, 400, 800, 400); + ime_win = ime_get_main_window(); if (ime_win) { // Prepare before showing IME window. } } - static void ime_show_cb(int context_id, inputmethod_context_h context, void *user_data) + static void inputmethod_show_cb(int context_id, ime_context_h context, void *user_data) { Ecore_IMF_Input_Panel_Layout layout; - inputmethod_layout_variation_e layout_variation; + ime_layout_variation_e layout_variation; Evas_Object *ime_win; - inputmethod_context_get_layout(context, &layout); - inputmethod_context_get_layout_variation(context, &layout_variation); + ime_context_get_layout(context, &layout); + ime_context_get_layout_variation(context, &layout_variation); - ime_win = inputmethod_get_main_window(); + ime_win = ime_get_main_window(); if (ime_win) { // Compose IME UI properly with the context information and show. @@ -532,37 +532,37 @@ typedef struct } } - static void ime_hide_cb(int context_id, void *user_data) + static void inputmethod_hide_cb(int context_id, void *user_data) { - Evas_Object *ime_win = inputmethod_get_main_window(); + Evas_Object *ime_win = ime_get_main_window(); if (ime_win) { evas_object_hide(ime_win); } } - void inputmethod_app_main(int argc, char **argv) + void ime_app_main(int argc, char **argv) { - inputmethod_callback_s basic_callback = { - ime_create_cb, - ime_terminate_cb, - ime_show_cb, - ime_hide_cb, + ime_callback_s basic_callback = { + inputmethod_create_cb, + inputmethod_terminate_cb, + inputmethod_show_cb, + inputmethod_hide_cb, }; - inputmethod_event_set_focus_in_cb(ime_focus_in_cb, NULL); - inputmethod_event_set_focus_out_cb(ime_focus_out_cb, NULL); - inputmethod_event_set_cursor_position_updated_cb(ime_cursor_position_updated_cb, NULL); + ime_event_set_focus_in_cb(inputmethod_focus_in_cb, NULL); + ime_event_set_focus_out_cb(inputmethod_focus_out_cb, NULL); + ime_event_set_cursor_position_updated_cb(inputmethod_cursor_position_updated_cb, NULL); - inputmethod_run(&basic_callback, NULL); + ime_run(&basic_callback, NULL); } * @endcode */ -EXPORT_API int inputmethod_run(inputmethod_callback_s *basic_cb, void *user_data); +EXPORT_API int ime_run(ime_callback_s *basic_cb, void *user_data); /** * @brief Sets @c focus_in event callback function. * - * @remarks The inputmethod_focus_in_cb() callback function is called when an associated text input + * @remarks The ime_focus_in_cb() callback function is called when an associated text input * UI control has focus. * * @since_tizen 2.4 @@ -571,20 +571,20 @@ EXPORT_API int inputmethod_run(inputmethod_callback_s *basic_cb, void *user_data * @param[in] user_data User data to be passed to the callback function * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_OPERATION_FAILED Operation failed + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_OPERATION_FAILED Operation failed * - * @post The inputmethod_run() function should be called to start to run IME application's main loop. + * @post The ime_run() function should be called to start to run IME application's main loop. * - * @see inputmethod_focus_in_cb, inputmethod_run + * @see ime_focus_in_cb, ime_run */ -EXPORT_API int inputmethod_event_set_focus_in_cb(inputmethod_focus_in_cb callback_func, void *user_data); +EXPORT_API int ime_event_set_focus_in_cb(ime_focus_in_cb callback_func, void *user_data); /** * @brief Sets @c focus_out event callback function. * - * @remarks The inputmethod_focus_out_cb() callback function is called when an associated text input + * @remarks The ime_focus_out_cb() callback function is called when an associated text input * UI control loses focus. * * @since_tizen 2.4 @@ -593,20 +593,20 @@ EXPORT_API int inputmethod_event_set_focus_in_cb(inputmethod_focus_in_cb callbac * @param[in] user_data User data to be passed to the callback function * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_OPERATION_FAILED Operation failed + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_OPERATION_FAILED Operation failed * - * @post The inputmethod_run() function should be called to start to run IME application's main loop. + * @post The ime_run() function should be called to start to run IME application's main loop. * - * @see inputmethod_focus_out_cb, inputmethod_run + * @see ime_focus_out_cb, ime_run */ -EXPORT_API int inputmethod_event_set_focus_out_cb(inputmethod_focus_out_cb callback_func, void *user_data); +EXPORT_API int ime_event_set_focus_out_cb(ime_focus_out_cb callback_func, void *user_data); /** * @brief Sets @c surrounding_text_updated event callback function. * - * @remarks The inputmethod_surrounding_text_updated_cb() callback function is called when an + * @remarks The ime_surrounding_text_updated_cb() callback function is called when an * associated text input UI control responds to a request with the surrounding text. * * @since_tizen 2.4 @@ -615,20 +615,20 @@ EXPORT_API int inputmethod_event_set_focus_out_cb(inputmethod_focus_out_cb callb * @param[in] user_data User data to be passed to the callback function * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_OPERATION_FAILED Operation failed + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_OPERATION_FAILED Operation failed * - * @post The inputmethod_run() function should be called to start to run IME application's main loop. + * @post The ime_run() function should be called to start to run IME application's main loop. * - * @see inputmethod_surrounding_text_updated_cb, inputmethod_run + * @see ime_surrounding_text_updated_cb, ime_run */ -EXPORT_API int inputmethod_event_set_surrounding_text_updated_cb(inputmethod_surrounding_text_updated_cb callback_func, void *user_data); +EXPORT_API int ime_event_set_surrounding_text_updated_cb(ime_surrounding_text_updated_cb callback_func, void *user_data); /** * @brief Sets #c input_context_reset event callback function. * - * @remarks The inputmethod_input_context_reset_cb() callback function is called to reset the input + * @remarks The ime_input_context_reset_cb() callback function is called to reset the input * context of an associated text input UI control. * * @since_tizen 2.4 @@ -637,20 +637,20 @@ EXPORT_API int inputmethod_event_set_surrounding_text_updated_cb(inputmethod_sur * @param[in] user_data User data to be passed to the callback function * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_OPERATION_FAILED Operation failed + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_OPERATION_FAILED Operation failed * - * @post The inputmethod_run() function should be called to start to run IME application's main loop. + * @post The ime_run() function should be called to start to run IME application's main loop. * - * @see inputmethod_input_context_reset_cb, inputmethod_run + * @see ime_input_context_reset_cb, ime_run */ -EXPORT_API int inputmethod_event_set_input_context_reset_cb(inputmethod_input_context_reset_cb callback_func, void *user_data); +EXPORT_API int ime_event_set_input_context_reset_cb(ime_input_context_reset_cb callback_func, void *user_data); /** * @brief Sets @c cursor_position_updated event callback function. * - * @remarks The inputmethod_cursor_position_updated_cb() callback function is called when the position + * @remarks The ime_cursor_position_updated_cb() callback function is called when the position * of the cursor in an associated text input UI control changes. * * @since_tizen 2.4 @@ -659,20 +659,20 @@ EXPORT_API int inputmethod_event_set_input_context_reset_cb(inputmethod_input_co * @param[in] user_data User data to be passed to the callback function * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_OPERATION_FAILED Operation failed + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_OPERATION_FAILED Operation failed * - * @post The inputmethod_run() function should be called to start to run IME application's main loop. + * @post The ime_run() function should be called to start to run IME application's main loop. * - * @see inputmethod_cursor_position_updated_cb, inputmethod_run + * @see ime_cursor_position_updated_cb, ime_run */ -EXPORT_API int inputmethod_event_set_cursor_position_updated_cb(inputmethod_cursor_position_updated_cb callback_func, void *user_data); +EXPORT_API int ime_event_set_cursor_position_updated_cb(ime_cursor_position_updated_cb callback_func, void *user_data); /** * @brief Sets @c language_requested event callback function. * - * @remarks The inputmethod_language_requested_cb() callback function is called when an associated + * @remarks The ime_language_requested_cb() callback function is called when an associated * text input UI control requests for the language of the input panel. * * @since_tizen 2.4 @@ -681,20 +681,20 @@ EXPORT_API int inputmethod_event_set_cursor_position_updated_cb(inputmethod_curs * @param[in] user_data User data to be passed to the callback function * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_OPERATION_FAILED Operation failed + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_OPERATION_FAILED Operation failed * - * @post The inputmethod_run() function should be called to start to run IME application's main loop. + * @post The ime_run() function should be called to start to run IME application's main loop. * - * @see inputmethod_language_requested_cb, inputmethod_run + * @see ime_language_requested_cb, ime_run */ -EXPORT_API int inputmethod_event_set_language_requested_cb(inputmethod_language_requested_cb callback_func, void *user_data); +EXPORT_API int ime_event_set_language_requested_cb(ime_language_requested_cb callback_func, void *user_data); /** * @brief Sets @c language_set event callback function. * - * @remarks The inputmethod_language_set_cb() callback function is called to set the preferred + * @remarks The ime_language_set_cb() callback function is called to set the preferred * language to the input panel. * * @since_tizen 2.4 @@ -703,20 +703,20 @@ EXPORT_API int inputmethod_event_set_language_requested_cb(inputmethod_language_ * @param[in] user_data User data to be passed to the callback function * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_OPERATION_FAILED Operation failed + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_OPERATION_FAILED Operation failed * - * @post The inputmethod_run() function should be called to start to run IME application's main loop. + * @post The ime_run() function should be called to start to run IME application's main loop. * - * @see inputmethod_language_set_cb, inputmethod_run + * @see ime_language_set_cb, ime_run */ -EXPORT_API int inputmethod_event_set_language_set_cb(inputmethod_language_set_cb callback_func, void *user_data); +EXPORT_API int ime_event_set_language_set_cb(ime_language_set_cb callback_func, void *user_data); /** * @brief Sets @c imdata_set event callback function. * - * @remarks The inputmethod_imdata_set_cb() callback function is called to set the application + * @remarks The ime_imdata_set_cb() callback function is called to set the application * specific data to deliver to the input panel. * * @since_tizen 2.4 @@ -725,20 +725,20 @@ EXPORT_API int inputmethod_event_set_language_set_cb(inputmethod_language_set_cb * @param[in] user_data User data to be passed to the callback function * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_OPERATION_FAILED Operation failed + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_OPERATION_FAILED Operation failed * - * @post The inputmethod_run() function should be called to start to run IME application's main loop. + * @post The ime_run() function should be called to start to run IME application's main loop. * - * @see inputmethod_imdata_set_cb, inputmethod_run + * @see ime_imdata_set_cb, ime_run */ -EXPORT_API int inputmethod_event_set_imdata_set_cb(inputmethod_imdata_set_cb callback_func, void *user_data); +EXPORT_API int ime_event_set_imdata_set_cb(ime_imdata_set_cb callback_func, void *user_data); /** * @brief Sets @c layout_set event callback function. * - * @remarks The inputmethod_layout_set_cb() callback function is called when an associated text input + * @remarks The ime_layout_set_cb() callback function is called when an associated text input * UI control requests the input panel to set its layout. * * @since_tizen 2.4 @@ -747,20 +747,20 @@ EXPORT_API int inputmethod_event_set_imdata_set_cb(inputmethod_imdata_set_cb cal * @param[in] user_data User data to be passed to the callback function * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_OPERATION_FAILED Operation failed + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_OPERATION_FAILED Operation failed * - * @post The inputmethod_run() function should be called to start to run IME application's main loop. + * @post The ime_run() function should be called to start to run IME application's main loop. * - * @see inputmethod_layout_set_cb, inputmethod_run + * @see ime_layout_set_cb, ime_run */ -EXPORT_API int inputmethod_event_set_layout_set_cb(inputmethod_layout_set_cb callback_func, void *user_data); +EXPORT_API int ime_event_set_layout_set_cb(ime_layout_set_cb callback_func, void *user_data); /** * @brief Sets @c return_key_type_set event callback function. * - * @remarks The inputmethod_return_key_type_set_cb() callback function is called when an associated + * @remarks The ime_return_key_type_set_cb() callback function is called when an associated * text input UI control requests the input panel to set the @c Return key label. * * @since_tizen 2.4 @@ -769,20 +769,20 @@ EXPORT_API int inputmethod_event_set_layout_set_cb(inputmethod_layout_set_cb cal * @param[in] user_data User data to be passed to the callback function * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_OPERATION_FAILED Operation failed + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_OPERATION_FAILED Operation failed * - * @post The inputmethod_run() function should be called to start to run IME application's main loop. + * @post The ime_run() function should be called to start to run IME application's main loop. * - * @see inputmethod_return_key_type_set_cb, inputmethod_run + * @see ime_return_key_type_set_cb, ime_run */ -EXPORT_API int inputmethod_event_set_return_key_type_set_cb(inputmethod_return_key_type_set_cb callback_func, void *user_data); +EXPORT_API int ime_event_set_return_key_type_set_cb(ime_return_key_type_set_cb callback_func, void *user_data); /** * @brief Sets @c return_key_state_set event callback function. * - * @remarks The inputmethod_return_key_state_set_cb() callback function is called when an associated + * @remarks The ime_return_key_state_set_cb() callback function is called when an associated * text input UI control requests the input panel to enable or disable the @c Return key state. * * @since_tizen 2.4 @@ -791,20 +791,20 @@ EXPORT_API int inputmethod_event_set_return_key_type_set_cb(inputmethod_return_k * @param[in] user_data User data to be passed to the callback function * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_OPERATION_FAILED Operation failed + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_OPERATION_FAILED Operation failed * - * @post The inputmethod_run() function should be called to start to run IME application's main loop. + * @post The ime_run() function should be called to start to run IME application's main loop. * - * @see inputmethod_return_key_state_set_cb, inputmethod_run + * @see ime_return_key_state_set_cb, ime_run */ -EXPORT_API int inputmethod_event_set_return_key_state_set_cb(inputmethod_return_key_state_set_cb callback_func, void *user_data); +EXPORT_API int ime_event_set_return_key_state_set_cb(ime_return_key_state_set_cb callback_func, void *user_data); /** * @brief Sets @c geometry_requested event callback function. * - * @remarks The inputmethod_geometry_requested_cb() callback function is called when an associated + * @remarks The ime_geometry_requested_cb() callback function is called when an associated * text input UI control requests for the position and size of the input panel. * * @since_tizen 2.4 @@ -813,20 +813,20 @@ EXPORT_API int inputmethod_event_set_return_key_state_set_cb(inputmethod_return_ * @param[in] user_data User data to be passed to the callback function * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_OPERATION_FAILED Operation failed + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_OPERATION_FAILED Operation failed * - * @post The inputmethod_run() function should be called to start to run IME application's main loop. + * @post The ime_run() function should be called to start to run IME application's main loop. * - * @see inputmethod_geometry_requested_cb, inputmethod_run + * @see ime_geometry_requested_cb, ime_run */ -EXPORT_API int inputmethod_event_set_geometry_requested_cb(inputmethod_geometry_requested_cb callback_func, void *user_data); +EXPORT_API int ime_event_set_geometry_requested_cb(ime_geometry_requested_cb callback_func, void *user_data); /** * @brief Sets @c display_language_changed event callback function. * - * @remarks The inputmethod_display_language_changed_cb() callback function is called when the system + * @remarks The ime_display_language_changed_cb() callback function is called when the system * display language is changed. * * @since_tizen 2.4 @@ -835,20 +835,20 @@ EXPORT_API int inputmethod_event_set_geometry_requested_cb(inputmethod_geometry_ * @param[in] user_data User data to be passed to the callback function * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_OPERATION_FAILED Operation failed + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_OPERATION_FAILED Operation failed * - * @post The inputmethod_run() function should be called to start to run IME application's main loop. + * @post The ime_run() function should be called to start to run IME application's main loop. * - * @see inputmethod_display_language_changed_cb, inputmethod_run + * @see ime_display_language_changed_cb, ime_run */ -EXPORT_API int inputmethod_event_set_display_language_changed_cb(inputmethod_display_language_changed_cb callback_func, void *user_data); +EXPORT_API int ime_event_set_display_language_changed_cb(ime_display_language_changed_cb callback_func, void *user_data); /** * @brief Sets #c rotation_degree_changed event callback function. * - * @remarks The inputmethod_rotation_degree_changed_cb() callback function is called when the device + * @remarks The ime_rotation_degree_changed_cb() callback function is called when the device * is rotated. * * @since_tizen 2.4 @@ -857,20 +857,20 @@ EXPORT_API int inputmethod_event_set_display_language_changed_cb(inputmethod_dis * @param[in] user_data User data to be passed to the callback function * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_OPERATION_FAILED Operation failed + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_OPERATION_FAILED Operation failed * - * @post The inputmethod_run() function should be called to start to run IME application's main loop. + * @post The ime_run() function should be called to start to run IME application's main loop. * - * @see inputmethod_rotation_degree_changed_cb, inputmethod_run + * @see ime_rotation_degree_changed_cb, ime_run */ -EXPORT_API int inputmethod_event_set_rotation_degree_changed_cb(inputmethod_rotation_degree_changed_cb callback_func, void *user_data); +EXPORT_API int ime_event_set_rotation_degree_changed_cb(ime_rotation_degree_changed_cb callback_func, void *user_data); /** * @brief Sets @c accessibility_state_changed event callback function. * - * @remarks The inputmethod_accessibility_state_changed_cb() callback function is called when + * @remarks The ime_accessibility_state_changed_cb() callback function is called when * Accessibility in Settings application is on or off. * * @since_tizen 2.4 @@ -879,20 +879,20 @@ EXPORT_API int inputmethod_event_set_rotation_degree_changed_cb(inputmethod_rota * @param[in] user_data User data to be passed to the callback function * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_OPERATION_FAILED Operation failed + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_OPERATION_FAILED Operation failed * - * @post The inputmethod_run() function should be called to start to run IME application's main loop. + * @post The ime_run() function should be called to start to run IME application's main loop. * - * @see inputmethod_accessibility_state_changed_cb, inputmethod_run + * @see ime_accessibility_state_changed_cb, ime_run */ -EXPORT_API int inputmethod_event_set_accessibility_state_changed_cb(inputmethod_accessibility_state_changed_cb callback_func, void *user_data); +EXPORT_API int ime_event_set_accessibility_state_changed_cb(ime_accessibility_state_changed_cb callback_func, void *user_data); /** * @brief Sets @c option_window_created event callback function. * - * @remarks The inputmethod_option_window_created_cb() callback function is called to create the option window. + * @remarks The ime_option_window_created_cb() callback function is called to create the option window. * * @since_tizen 2.4 * @@ -900,20 +900,20 @@ EXPORT_API int inputmethod_event_set_accessibility_state_changed_cb(inputmethod_ * @param[in] user_data User data to be passed to the callback function * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_OPERATION_FAILED Operation failed + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_OPERATION_FAILED Operation failed * - * @post The inputmethod_run() function should be called to start to run IME application's main loop. + * @post The ime_run() function should be called to start to run IME application's main loop. * - * @see inputmethod_option_window_created_cb, inputmethod_run + * @see ime_option_window_created_cb, ime_run */ -EXPORT_API int inputmethod_event_set_option_window_created_cb(inputmethod_option_window_created_cb callback_func, void *user_data); +EXPORT_API int ime_event_set_option_window_created_cb(ime_option_window_created_cb callback_func, void *user_data); /** * @brief Sets @c option_window_destroyed event callback function. * - * @remarks The inputmethod_option_window_destroyed_cb() callback function is called to destroy the option window. + * @remarks The ime_option_window_destroyed_cb() callback function is called to destroy the option window. * * @since_tizen 2.4 * @@ -921,15 +921,15 @@ EXPORT_API int inputmethod_event_set_option_window_created_cb(inputmethod_option * @param[in] user_data User data to be passed to the callback function * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_OPERATION_FAILED Operation failed + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_OPERATION_FAILED Operation failed * - * @post The inputmethod_run() function should be called to start to run IME application's main loop. + * @post The ime_run() function should be called to start to run IME application's main loop. * - * @see inputmethod_option_window_destroyed_cb, inputmethod_run + * @see ime_option_window_destroyed_cb, ime_run */ -EXPORT_API int inputmethod_event_set_option_window_destroyed_cb(inputmethod_option_window_destroyed_cb callback_func, void *user_data); +EXPORT_API int ime_event_set_option_window_destroyed_cb(ime_option_window_destroyed_cb callback_func, void *user_data); /** * @brief Sends a key event directly to the associated text input UI control. @@ -940,12 +940,12 @@ EXPORT_API int inputmethod_event_set_option_window_destroyed_cb(inputmethod_opti * @param[in] keymask The modifier key mask * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_NOT_RUNNING IME main loop isn't started yet + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_NOT_RUNNING IME main loop isn't started yet * - * @see inputmethod_key_code_e, inputmethod_key_mask_e + * @see ime_key_code_e, ime_key_mask_e */ -EXPORT_API int inputmethod_send_key_event(inputmethod_key_code_e keycode, inputmethod_key_mask_e keymask); +EXPORT_API int ime_send_key_event(ime_key_code_e keycode, ime_key_mask_e keymask); /** * @brief Sends the text to the associated text input UI control. @@ -955,12 +955,12 @@ EXPORT_API int inputmethod_send_key_event(inputmethod_key_code_e keycode, inputm * @param[in] str The UTF-8 string to be committed * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_NOT_RUNNING IME main loop isn't started yet + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_NOT_RUNNING IME main loop isn't started yet * - * @see inputmethod_show_preedit_string, inputmethod_hide_preedit_string, inputmethod_update_preedit_string + * @see ime_show_preedit_string, ime_hide_preedit_string, ime_update_preedit_string */ -EXPORT_API int inputmethod_commit_string(const char *str); +EXPORT_API int ime_commit_string(const char *str); /** * @brief Requests to show preedit string. @@ -968,12 +968,12 @@ EXPORT_API int inputmethod_commit_string(const char *str); * @since_tizen 2.4 * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_NOT_RUNNING IME main loop isn't started yet + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_NOT_RUNNING IME main loop isn't started yet * - * @see inputmethod_commit_string, inputmethod_hide_preedit_string, inputmethod_update_preedit_string + * @see ime_commit_string, ime_hide_preedit_string, ime_update_preedit_string */ -EXPORT_API int inputmethod_show_preedit_string(void); +EXPORT_API int ime_show_preedit_string(void); /** * @brief Requests to hide preedit string. @@ -981,12 +981,12 @@ EXPORT_API int inputmethod_show_preedit_string(void); * @since_tizen 2.4 * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_NOT_RUNNING IME main loop isn't started yet + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_NOT_RUNNING IME main loop isn't started yet * - * @see inputmethod_commit_string, inputmethod_show_preedit_string, inputmethod_update_preedit_string + * @see ime_commit_string, ime_show_preedit_string, ime_update_preedit_string */ -EXPORT_API int inputmethod_hide_preedit_string(void); +EXPORT_API int ime_hide_preedit_string(void); /** * @brief Updates a new preedit string. @@ -996,13 +996,13 @@ EXPORT_API int inputmethod_hide_preedit_string(void); * @param[in] str The UTF-8 string to be updated in preedit * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_NOT_RUNNING IME main loop isn't started yet + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_NOT_RUNNING IME main loop isn't started yet * - * @see inputmethod_commit_string, inputmethod_show_preedit_string, inputmethod_hide_preedit_string + * @see ime_commit_string, ime_show_preedit_string, ime_hide_preedit_string */ -EXPORT_API int inputmethod_update_preedit_string(const char *str); +EXPORT_API int ime_update_preedit_string(const char *str); /** * @brief Requests the surrounding text from the position of the cursor, asynchronously. @@ -1013,17 +1013,17 @@ EXPORT_API int inputmethod_update_preedit_string(const char *str); * @param[in] maxlen_after The maximum length of string to be retrieved after the cursor; -1 means unlimited * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_NO_CALLBACK_FUNCTION Necessary callback function is not set - * @retval #INPUTMETHOD_ERROR_NOT_RUNNING IME main loop isn't started yet + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_NO_CALLBACK_FUNCTION Necessary callback function is not set + * @retval #IME_ERROR_NOT_RUNNING IME main loop isn't started yet * - * @pre The inputmethod_surrounding_text_updated_cb() callback function MUST be set by inputmethod_event_set_surrounding_text_updated_cb(). + * @pre The ime_surrounding_text_updated_cb() callback function MUST be set by ime_event_set_surrounding_text_updated_cb(). * - * @post The requested surrounding text can be received using the inputmethod_surrounding_text_updated_cb() callback function. + * @post The requested surrounding text can be received using the ime_surrounding_text_updated_cb() callback function. * - * @see inputmethod_delete_surrounding_text, inputmethod_event_set_surrounding_text_updated_cb, inputmethod_surrounding_text_updated_cb + * @see ime_delete_surrounding_text, ime_event_set_surrounding_text_updated_cb, ime_surrounding_text_updated_cb */ -EXPORT_API int inputmethod_request_surrounding_text(int maxlen_before, int maxlen_after); +EXPORT_API int ime_request_surrounding_text(int maxlen_before, int maxlen_after); /** * @brief Requests to delete surrounding text. @@ -1034,13 +1034,13 @@ EXPORT_API int inputmethod_request_surrounding_text(int maxlen_before, int maxle * @param[in] len The length of the text to delete * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_NOT_RUNNING IME main loop isn't started yet + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_NOT_RUNNING IME main loop isn't started yet * - * @see inputmethod_request_surrounding_text + * @see ime_request_surrounding_text */ -EXPORT_API int inputmethod_delete_surrounding_text(int offset, int len); +EXPORT_API int ime_delete_surrounding_text(int offset, int len); /** * @brief This API returns the pointer of input panel main window. @@ -1051,13 +1051,13 @@ EXPORT_API int inputmethod_delete_surrounding_text(int offset, int len); * * @return The input panel main window object on success, otherwise NULL * - * @exception #INPUTMETHOD_ERROR_NONE Successful - * #INPUTMETHOD_ERROR_NOT_RUNNING IME main loop isn't started yet - * #INPUTMETHOD_ERROR_OPERATION_FAILED Operation failed + * @exception #IME_ERROR_NONE Successful + * #IME_ERROR_NOT_RUNNING IME main loop isn't started yet + * #IME_ERROR_OPERATION_FAILED Operation failed * - * @see inputmethod_create_cb, inputmethod_terminate_cb, inputmethod_show_cb, inputmethod_hide_cb + * @see ime_create_cb, ime_terminate_cb, ime_show_cb, ime_hide_cb */ -EXPORT_API Evas_Object* inputmethod_get_main_window(void); +EXPORT_API Evas_Object* ime_get_main_window(void); /** * @brief This API updates the input panel window's size information. @@ -1070,39 +1070,39 @@ EXPORT_API Evas_Object* inputmethod_get_main_window(void); * @param[in] landscape_height The height in landscape mode * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_NOT_RUNNING IME main loop isn't started yet + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_NOT_RUNNING IME main loop isn't started yet * - * @see inputmethod_create_cb + * @see ime_create_cb */ -EXPORT_API int inputmethod_set_size(int portrait_width, int portrait_height, int landscape_width, int landscape_height); +EXPORT_API int ime_set_size(int portrait_width, int portrait_height, int landscape_width, int landscape_height); /** * @brief Requests to create an option window from the input panel. * * @details The input panel can call this function to open the option window. This - * function calls inputmethod_option_window_created_cb() callback function with - * #INPUTMETHOD_OPTION_WINDOW_TYPE_KEYBOARD parameter. + * function calls ime_option_window_created_cb() callback function with + * #IME_OPTION_WINDOW_TYPE_KEYBOARD parameter. * * @since_tizen 2.4 * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_NO_CALLBACK_FUNCTION Necessary callback function is not set - * @retval #INPUTMETHOD_ERROR_NOT_RUNNING IME main loop isn't started yet - * @retval #INPUTMETHOD_ERROR_OPERATION_FAILED Operation failed + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_NO_CALLBACK_FUNCTION Necessary callback function is not set + * @retval #IME_ERROR_NOT_RUNNING IME main loop isn't started yet + * @retval #IME_ERROR_OPERATION_FAILED Operation failed * - * @pre The inputmethod_option_window_created_cb() and inputmethod_option_window_destroyed_cb() - * callback functions MUST be set by inputmethod_event_set_option_window_created_cb() and - * inputmethod_event_set_option_window_destroyed_cb() respectively. + * @pre The ime_option_window_created_cb() and ime_option_window_destroyed_cb() + * callback functions MUST be set by ime_event_set_option_window_created_cb() and + * ime_event_set_option_window_destroyed_cb() respectively. * - * @post This function calls inputmethod_option_window_created_cb() callback function to - * create the option window. And inputmethod_destroy_option_window() function can be called + * @post This function calls ime_option_window_created_cb() callback function to + * create the option window. And ime_destroy_option_window() function can be called * to close the option window. * - * @see inputmethod_event_set_option_window_created_cb, inputmethod_option_window_created_cb, inputmethod_destroy_option_window + * @see ime_event_set_option_window_created_cb, ime_option_window_created_cb, ime_destroy_option_window */ -EXPORT_API int inputmethod_create_option_window(void); +EXPORT_API int ime_create_option_window(void); /** * @brief Requests to destroy an option window. @@ -1115,27 +1115,27 @@ EXPORT_API int inputmethod_create_option_window(void); * @param[in] window The option window to destroy * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_NO_CALLBACK_FUNCTION Necessary callback function is not set - * @retval #INPUTMETHOD_ERROR_NOT_RUNNING IME main loop isn't started yet + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_NO_CALLBACK_FUNCTION Necessary callback function is not set + * @retval #IME_ERROR_NOT_RUNNING IME main loop isn't started yet * - * @pre The inputmethod_option_window_created_cb() and inputmethod_option_window_destroyed_cb() - * callback functions MUST be set by inputmethod_event_set_option_window_created_cb() and - * inputmethod_event_set_option_window_destroyed_cb() respectively. + * @pre The ime_option_window_created_cb() and ime_option_window_destroyed_cb() + * callback functions MUST be set by ime_event_set_option_window_created_cb() and + * ime_event_set_option_window_destroyed_cb() respectively. * - * @post This function calls inputmethod_option_window_destroyed_cb() callback function + * @post This function calls ime_option_window_destroyed_cb() callback function * to destroy the option window. * - * @see inputmethod_event_set_option_window_destroyed_cb, inputmethod_option_window_destroyed_cb, inputmethod_create_option_window + * @see ime_event_set_option_window_destroyed_cb, ime_option_window_destroyed_cb, ime_create_option_window */ -EXPORT_API int inputmethod_destroy_option_window(Evas_Object *window); +EXPORT_API int ime_destroy_option_window(Evas_Object *window); /** * @brief Gets the layout information from the given input context. * * @details Each edit field has various attributes for input panel. This function can be - * called to get the layout information in inputmethod_show_cb() callback function. + * called to get the layout information in ime_show_cb() callback function. * * @since_tizen 2.4 * @@ -1143,21 +1143,21 @@ EXPORT_API int inputmethod_destroy_option_window(Evas_Object *window); * @param[out] layout Layout information * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_NOT_RUNNING IME main loop isn't started yet + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_NOT_RUNNING IME main loop isn't started yet * * @post Input panel UI should be drawn or operated by this information accordingly. * - * @see inputmethod_show_cb, inputmethod_layout_set_cb + * @see ime_show_cb, ime_layout_set_cb */ -EXPORT_API int inputmethod_context_get_layout(inputmethod_context_h context, Ecore_IMF_Input_Panel_Layout *layout); +EXPORT_API int ime_context_get_layout(ime_context_h context, Ecore_IMF_Input_Panel_Layout *layout); /** * @brief Gets the layout variation information from the given input context. * * @details Each edit field has various attributes for input panel. This function can be - * called to get the layout variation information in inputmethod_show_cb() callback function. + * called to get the layout variation information in ime_show_cb() callback function. * * @since_tizen 2.4 * @@ -1165,21 +1165,21 @@ EXPORT_API int inputmethod_context_get_layout(inputmethod_context_h context, Eco * @param[out] layout_variation Layout variation information * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_NOT_RUNNING IME main loop isn't started yet + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_NOT_RUNNING IME main loop isn't started yet * * @post Input panel UI should be drawn or operated by this information accordingly. * - * @see inputmethod_show_cb, inputmethod_layout_variation_e + * @see ime_show_cb, ime_layout_variation_e */ -EXPORT_API int inputmethod_context_get_layout_variation(inputmethod_context_h context, inputmethod_layout_variation_e *layout_variation); +EXPORT_API int ime_context_get_layout_variation(ime_context_h context, ime_layout_variation_e *layout_variation); /** * @brief Gets the cursor position information from the given input context. * * @details Each edit field has various attributes for input panel. This function can be - * called to get the cursor position information in inputmethod_show_cb() callback function. + * called to get the cursor position information in ime_show_cb() callback function. * * @since_tizen 2.4 * @@ -1187,21 +1187,21 @@ EXPORT_API int inputmethod_context_get_layout_variation(inputmethod_context_h co * @param[out] cursor_pos Cursor position information * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_NOT_RUNNING IME main loop isn't started yet + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_NOT_RUNNING IME main loop isn't started yet * * @post Input panel UI should be drawn or operated by this information accordingly. * - * @see inputmethod_show_cb, inputmethod_cursor_position_updated_cb + * @see ime_show_cb, ime_cursor_position_updated_cb */ -EXPORT_API int inputmethod_context_get_cursor_position(inputmethod_context_h context, int *cursor_pos); +EXPORT_API int ime_context_get_cursor_position(ime_context_h context, int *cursor_pos); /** * @brief Gets the autocapital type information from the given input context. * * @details Each edit field has various attributes for input panel. This function can be - * called to get the autocapital type information in inputmethod_show_cb() callback function. + * called to get the autocapital type information in ime_show_cb() callback function. * * @since_tizen 2.4 * @@ -1209,21 +1209,21 @@ EXPORT_API int inputmethod_context_get_cursor_position(inputmethod_context_h con * @param[out] autocapital_type Autocapital type information * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_NOT_RUNNING IME main loop isn't started yet + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_NOT_RUNNING IME main loop isn't started yet * * @post Input panel UI should be drawn or operated by this information accordingly. * - * @see inputmethod_show_cb + * @see ime_show_cb */ -EXPORT_API int inputmethod_context_get_autocapital_type(inputmethod_context_h context, Ecore_IMF_Autocapital_Type *autocapital_type); +EXPORT_API int ime_context_get_autocapital_type(ime_context_h context, Ecore_IMF_Autocapital_Type *autocapital_type); /** * @brief Gets the @c Return key label type information from the given input context. * * @details Each edit field has various attributes for input panel. This function can be - * called to get the @c Return key label type information in inputmethod_show_cb() callback function. + * called to get the @c Return key label type information in ime_show_cb() callback function. * * @since_tizen 2.4 * @@ -1231,21 +1231,21 @@ EXPORT_API int inputmethod_context_get_autocapital_type(inputmethod_context_h co * @param[out] return_key_type The @c Return key label type information * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_NOT_RUNNING IME main loop isn't started yet + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_NOT_RUNNING IME main loop isn't started yet * * @post Input panel UI should be drawn or operated by this information accordingly. * - * @see inputmethod_show_cb, inputmethod_return_key_type_set_cb + * @see ime_show_cb, ime_return_key_type_set_cb */ -EXPORT_API int inputmethod_context_get_return_key_type(inputmethod_context_h context, Ecore_IMF_Input_Panel_Return_Key_Type *return_key_type); +EXPORT_API int ime_context_get_return_key_type(ime_context_h context, Ecore_IMF_Input_Panel_Return_Key_Type *return_key_type); /** * @brief Gets the @c Return key state information from the given input context. * * @details Each edit field has various attributes for input panel. This function can be - * called to get the @c Return key state information in inputmethod_show_cb() callback function. + * called to get the @c Return key state information in ime_show_cb() callback function. * * @since_tizen 2.4 * @@ -1254,21 +1254,21 @@ EXPORT_API int inputmethod_context_get_return_key_type(inputmethod_context_h con * button, @c false to disable @c Return key button * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_NOT_RUNNING IME main loop isn't started yet + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_NOT_RUNNING IME main loop isn't started yet * * @post Input panel UI should be drawn or operated by this information accordingly. * - * @see inputmethod_show_cb, inputmethod_return_key_state_set_cb + * @see ime_show_cb, ime_return_key_state_set_cb */ -EXPORT_API int inputmethod_context_get_return_key_state(inputmethod_context_h context, bool *return_key_state); +EXPORT_API int ime_context_get_return_key_state(ime_context_h context, bool *return_key_state); /** * @brief Gets the prediction mode information from the given input context. * * @details Each edit field has various attributes for input panel. This function can be - * called to get the prediction mode information in inputmethod_show_cb() callback function. + * called to get the prediction mode information in ime_show_cb() callback function. * * @since_tizen 2.4 * @@ -1277,21 +1277,21 @@ EXPORT_API int inputmethod_context_get_return_key_state(inputmethod_context_h co * text feature if available, @c false to disable the predictive text feature * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_NOT_RUNNING IME main loop isn't started yet + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_NOT_RUNNING IME main loop isn't started yet * * @post Input panel UI should be drawn or operated by this information accordingly. * - * @see inputmethod_show_cb + * @see ime_show_cb */ -EXPORT_API int inputmethod_context_get_prediction_mode(inputmethod_context_h context, bool *prediction_mode); +EXPORT_API int ime_context_get_prediction_mode(ime_context_h context, bool *prediction_mode); /** * @brief Gets the password mode information from the given input context. * * @details Each edit field has various attributes for input panel. This function can be - * called to get the password mode information in inputmethod_show_cb() callback function. + * called to get the password mode information in ime_show_cb() callback function. * * @remarks If @a password_mode is @c true, the input panel is advised not to support the predictive text. * @@ -1302,21 +1302,21 @@ EXPORT_API int inputmethod_context_get_prediction_mode(inputmethod_context_h con * @c false to indicate non-password edit field. * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_NOT_RUNNING IME main loop isn't started yet + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_NOT_RUNNING IME main loop isn't started yet * * @post Input panel UI should be drawn or operated by this information accordingly. * - * @see inputmethod_show_cb + * @see ime_show_cb */ -EXPORT_API int inputmethod_context_get_password_mode(inputmethod_context_h context, bool *password_mode); +EXPORT_API int ime_context_get_password_mode(ime_context_h context, bool *password_mode); /** * @brief Gets the input hint information from the given input context. * * @details Each edit field has various attributes for input panel. This function can be - * called to get the input hint information in inputmethod_show_cb() callback function. + * called to get the input hint information in ime_show_cb() callback function. * * @remarks @a input_hint is a bit-wise value which recommends the input panel provide * an auto completion and so on if it is capable of supporting such features. @@ -1327,21 +1327,21 @@ EXPORT_API int inputmethod_context_get_password_mode(inputmethod_context_h conte * @param[out] input_hint Input hint information * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_NOT_RUNNING IME main loop isn't started yet + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_NOT_RUNNING IME main loop isn't started yet * * @post Input panel UI should be drawn or operated by this information accordingly. * - * @see inputmethod_show_cb + * @see ime_show_cb */ -EXPORT_API int inputmethod_context_get_input_hint(inputmethod_context_h context, Ecore_IMF_Input_Hints *input_hint); +EXPORT_API int ime_context_get_input_hint(ime_context_h context, Ecore_IMF_Input_Hints *input_hint); /** * @brief Gets the text bidirectional information from the given input context. * * @details Each edit field has various attributes for input panel. This function can be - * called to get the bidirectional information in inputmethod_show_cb() callback function. + * called to get the bidirectional information in ime_show_cb() callback function. * * @since_tizen 2.4 * @@ -1349,21 +1349,21 @@ EXPORT_API int inputmethod_context_get_input_hint(inputmethod_context_h context, * @param[out] bidi Text bidirectional information * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_NOT_RUNNING IME main loop isn't started yet + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_NOT_RUNNING IME main loop isn't started yet * * @post Input panel UI should be drawn or operated by this information accordingly. * - * @see inputmethod_show_cb + * @see ime_show_cb */ -EXPORT_API int inputmethod_context_get_bidi_direction(inputmethod_context_h context, Ecore_IMF_BiDi_Direction *bidi); +EXPORT_API int ime_context_get_bidi_direction(ime_context_h context, Ecore_IMF_BiDi_Direction *bidi); /** * @brief Gets the preferred language information from the given input context. * * @details Each edit field has various attributes for input panel. This function can be - * called to get the preferred language information in inputmethod_show_cb() callback function. + * called to get the preferred language information in ime_show_cb() callback function. * * @since_tizen 2.4 * @@ -1371,15 +1371,15 @@ EXPORT_API int inputmethod_context_get_bidi_direction(inputmethod_context_h cont * @param[out] language Preferred language information * * @return 0 on success, otherwise a negative error value - * @retval #INPUTMETHOD_ERROR_NONE No error - * @retval #INPUTMETHOD_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #INPUTMETHOD_ERROR_NOT_RUNNING IME main loop isn't started yet + * @retval #IME_ERROR_NONE No error + * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #IME_ERROR_NOT_RUNNING IME main loop isn't started yet * * @post Input panel UI should be drawn or operated by this information accordingly. * - * @see inputmethod_show_cb + * @see ime_show_cb */ -EXPORT_API int inputmethod_context_get_language(inputmethod_context_h context, Ecore_IMF_Input_Panel_Lang *language); +EXPORT_API int ime_context_get_language(ime_context_h context, Ecore_IMF_Input_Panel_Lang *language); /** * @} diff --git a/include/inputmethod_keydef.h b/include/inputmethod_keydef.h index 580514d..800dbe9 100644 --- a/include/inputmethod_keydef.h +++ b/include/inputmethod_keydef.h @@ -37,236 +37,236 @@ */ typedef enum { - INPUTMETHOD_KEY_BackSpace = 0xFF08, /**< The backspace key */ - INPUTMETHOD_KEY_Tab = 0xFF09, /**< The tab key */ - INPUTMETHOD_KEY_Linefeed = 0xFF0A, /**< The linefeed key */ - INPUTMETHOD_KEY_Clear = 0xFF0B, /**< The clear key */ - INPUTMETHOD_KEY_Return = 0xFF0D, /**< The return key */ - INPUTMETHOD_KEY_Pause = 0xFF13, /**< The pause key */ - INPUTMETHOD_KEY_Scroll_Lock = 0xFF14, /**< The scroll lock key */ - INPUTMETHOD_KEY_Sys_Req = 0xFF15, /**< The sys req key */ - INPUTMETHOD_KEY_Escape = 0xFF1B, /**< The escape key */ - INPUTMETHOD_KEY_Delete = 0xFFFF, /**< The delete key */ + IME_KEY_BackSpace = 0xFF08, /**< The backspace key */ + IME_KEY_Tab = 0xFF09, /**< The tab key */ + IME_KEY_Linefeed = 0xFF0A, /**< The linefeed key */ + IME_KEY_Clear = 0xFF0B, /**< The clear key */ + IME_KEY_Return = 0xFF0D, /**< The return key */ + IME_KEY_Pause = 0xFF13, /**< The pause key */ + IME_KEY_Scroll_Lock = 0xFF14, /**< The scroll lock key */ + IME_KEY_Sys_Req = 0xFF15, /**< The sys req key */ + IME_KEY_Escape = 0xFF1B, /**< The escape key */ + IME_KEY_Delete = 0xFFFF, /**< The delete key */ /* Cursor control & motion */ - INPUTMETHOD_KEY_Home = 0xFF50, /**< The home key */ - INPUTMETHOD_KEY_Left = 0xFF51, /**< The left directional key */ - INPUTMETHOD_KEY_Up = 0xFF52, /**< The up directional key */ - INPUTMETHOD_KEY_Right = 0xFF53, /**< The right directional key */ - INPUTMETHOD_KEY_Down = 0xFF54, /**< The down directional key */ - INPUTMETHOD_KEY_Prior = 0xFF55, /**< The prior, previous key */ - INPUTMETHOD_KEY_Page_Up = 0xFF55, /**< The page up key */ - INPUTMETHOD_KEY_Next = 0xFF56, /**< The next key */ - INPUTMETHOD_KEY_Page_Down = 0xFF56, /**< The page down key */ - INPUTMETHOD_KEY_End = 0xFF57, /**< The end key */ - INPUTMETHOD_KEY_Begin = 0xFF58, /**< The begin key */ + IME_KEY_Home = 0xFF50, /**< The home key */ + IME_KEY_Left = 0xFF51, /**< The left directional key */ + IME_KEY_Up = 0xFF52, /**< The up directional key */ + IME_KEY_Right = 0xFF53, /**< The right directional key */ + IME_KEY_Down = 0xFF54, /**< The down directional key */ + IME_KEY_Prior = 0xFF55, /**< The prior, previous key */ + IME_KEY_Page_Up = 0xFF55, /**< The page up key */ + IME_KEY_Next = 0xFF56, /**< The next key */ + IME_KEY_Page_Down = 0xFF56, /**< The page down key */ + IME_KEY_End = 0xFF57, /**< The end key */ + IME_KEY_Begin = 0xFF58, /**< The begin key */ /* Misc Functions */ - INPUTMETHOD_KEY_Select = 0xFF60, /**< The select key */ - INPUTMETHOD_KEY_Print = 0xFF61, /**< The print key */ - INPUTMETHOD_KEY_Execute = 0xFF62, /**< The execute, run, do key */ - INPUTMETHOD_KEY_Insert = 0xFF63, /**< The insert key */ - INPUTMETHOD_KEY_Undo = 0xFF65, /**< The undo key */ - INPUTMETHOD_KEY_Redo = 0xFF66, /**< The redo key */ - INPUTMETHOD_KEY_Menu = 0xFF67, /**< The menu key */ - INPUTMETHOD_KEY_Find = 0xFF68, /**< The find key */ - INPUTMETHOD_KEY_Cancel = 0xFF69, /**< The cancel, stop, abort, exit key */ - INPUTMETHOD_KEY_Help = 0xFF6A, /**< The help key */ - INPUTMETHOD_KEY_Break = 0xFF6B, /**< The break key */ - INPUTMETHOD_KEY_Mode_switch = 0xFF7E, /**< The character set switch key */ - INPUTMETHOD_KEY_Num_Lock = 0xFF7F, /**< The num lock key */ + IME_KEY_Select = 0xFF60, /**< The select key */ + IME_KEY_Print = 0xFF61, /**< The print key */ + IME_KEY_Execute = 0xFF62, /**< The execute, run, do key */ + IME_KEY_Insert = 0xFF63, /**< The insert key */ + IME_KEY_Undo = 0xFF65, /**< The undo key */ + IME_KEY_Redo = 0xFF66, /**< The redo key */ + IME_KEY_Menu = 0xFF67, /**< The menu key */ + IME_KEY_Find = 0xFF68, /**< The find key */ + IME_KEY_Cancel = 0xFF69, /**< The cancel, stop, abort, exit key */ + IME_KEY_Help = 0xFF6A, /**< The help key */ + IME_KEY_Break = 0xFF6B, /**< The break key */ + IME_KEY_Mode_switch = 0xFF7E, /**< The character set switch key */ + IME_KEY_Num_Lock = 0xFF7F, /**< The num lock key */ /* Keypad */ - INPUTMETHOD_KEY_KP_Space = 0xFF80, /**< The Numpad space key */ - INPUTMETHOD_KEY_KP_Tab = 0xFF89, /**< The Numpad tab key */ - INPUTMETHOD_KEY_KP_Enter = 0xFF8D, /**< The Numpad enter key */ - INPUTMETHOD_KEY_KP_F1 = 0xFF91, /**< The Numpad function 1 key */ - INPUTMETHOD_KEY_KP_F2 = 0xFF92, /**< The Numpad function 2 key */ - INPUTMETHOD_KEY_KP_F3 = 0xFF93, /**< The Numpad function 3 key */ - INPUTMETHOD_KEY_KP_F4 = 0xFF94, /**< The Numpad function 4 key */ - INPUTMETHOD_KEY_KP_Home = 0xFF95, /**< The Numpad home key */ - INPUTMETHOD_KEY_KP_Left = 0xFF96, /**< The Numpad left key */ - INPUTMETHOD_KEY_KP_Up = 0xFF97, /**< The Numpad up key */ - INPUTMETHOD_KEY_KP_Right = 0xFF98, /**< The Numpad right key */ - INPUTMETHOD_KEY_KP_Down = 0xFF99, /**< The Numpad down key */ - INPUTMETHOD_KEY_KP_Prior = 0xFF9A, /**< The Numpad prior, previous key */ - INPUTMETHOD_KEY_KP_Page_Up = 0xFF9A, /**< The Numpad page up key */ - INPUTMETHOD_KEY_KP_Next = 0xFF9B, /**< The Numpad next key */ - INPUTMETHOD_KEY_KP_Page_Down = 0xFF9B, /**< The Numpad page down key */ - INPUTMETHOD_KEY_KP_End = 0xFF9C, /**< The Numpad end key */ - INPUTMETHOD_KEY_KP_Begin = 0xFF9D, /**< The Numpad begin key */ - INPUTMETHOD_KEY_KP_Insert = 0xFF9E, /**< The Numpad insert key */ - INPUTMETHOD_KEY_KP_Delete = 0xFF9F, /**< The Numpad delete key */ - INPUTMETHOD_KEY_KP_Equal = 0xFFBD, /**< The Numpad equal key */ - INPUTMETHOD_KEY_KP_Multiply = 0xFFAA, /**< The Numpad multiply key */ - INPUTMETHOD_KEY_KP_Add = 0xFFAB, /**< The Numpad add key */ - INPUTMETHOD_KEY_KP_Separator = 0xFFAC, /**< The Numpad separator key */ - INPUTMETHOD_KEY_KP_Subtract = 0xFFAD, /**< The Numpad subtract key */ - INPUTMETHOD_KEY_KP_Decimal = 0xFFAE, /**< The Numpad decimal key */ - INPUTMETHOD_KEY_KP_Divide = 0xFFAF, /**< The Numpad divide key */ + IME_KEY_KP_Space = 0xFF80, /**< The Numpad space key */ + IME_KEY_KP_Tab = 0xFF89, /**< The Numpad tab key */ + IME_KEY_KP_Enter = 0xFF8D, /**< The Numpad enter key */ + IME_KEY_KP_F1 = 0xFF91, /**< The Numpad function 1 key */ + IME_KEY_KP_F2 = 0xFF92, /**< The Numpad function 2 key */ + IME_KEY_KP_F3 = 0xFF93, /**< The Numpad function 3 key */ + IME_KEY_KP_F4 = 0xFF94, /**< The Numpad function 4 key */ + IME_KEY_KP_Home = 0xFF95, /**< The Numpad home key */ + IME_KEY_KP_Left = 0xFF96, /**< The Numpad left key */ + IME_KEY_KP_Up = 0xFF97, /**< The Numpad up key */ + IME_KEY_KP_Right = 0xFF98, /**< The Numpad right key */ + IME_KEY_KP_Down = 0xFF99, /**< The Numpad down key */ + IME_KEY_KP_Prior = 0xFF9A, /**< The Numpad prior, previous key */ + IME_KEY_KP_Page_Up = 0xFF9A, /**< The Numpad page up key */ + IME_KEY_KP_Next = 0xFF9B, /**< The Numpad next key */ + IME_KEY_KP_Page_Down = 0xFF9B, /**< The Numpad page down key */ + IME_KEY_KP_End = 0xFF9C, /**< The Numpad end key */ + IME_KEY_KP_Begin = 0xFF9D, /**< The Numpad begin key */ + IME_KEY_KP_Insert = 0xFF9E, /**< The Numpad insert key */ + IME_KEY_KP_Delete = 0xFF9F, /**< The Numpad delete key */ + IME_KEY_KP_Equal = 0xFFBD, /**< The Numpad equal key */ + IME_KEY_KP_Multiply = 0xFFAA, /**< The Numpad multiply key */ + IME_KEY_KP_Add = 0xFFAB, /**< The Numpad add key */ + IME_KEY_KP_Separator = 0xFFAC, /**< The Numpad separator key */ + IME_KEY_KP_Subtract = 0xFFAD, /**< The Numpad subtract key */ + IME_KEY_KP_Decimal = 0xFFAE, /**< The Numpad decimal key */ + IME_KEY_KP_Divide = 0xFFAF, /**< The Numpad divide key */ - INPUTMETHOD_KEY_KP_0 = 0xFFB0, /**< The Numpad 0 key */ - INPUTMETHOD_KEY_KP_1 = 0xFFB1, /**< The Numpad 1 key */ - INPUTMETHOD_KEY_KP_2 = 0xFFB2, /**< The Numpad 2 key */ - INPUTMETHOD_KEY_KP_3 = 0xFFB3, /**< The Numpad 3 key */ - INPUTMETHOD_KEY_KP_4 = 0xFFB4, /**< The Numpad 4 key */ - INPUTMETHOD_KEY_KP_5 = 0xFFB5, /**< The Numpad 5 key */ - INPUTMETHOD_KEY_KP_6 = 0xFFB6, /**< The Numpad 6 key */ - INPUTMETHOD_KEY_KP_7 = 0xFFB7, /**< The Numpad 7 key */ - INPUTMETHOD_KEY_KP_8 = 0xFFB8, /**< The Numpad 8 key */ - INPUTMETHOD_KEY_KP_9 = 0xFFB9, /**< The Numpad 9 key */ + IME_KEY_KP_0 = 0xFFB0, /**< The Numpad 0 key */ + IME_KEY_KP_1 = 0xFFB1, /**< The Numpad 1 key */ + IME_KEY_KP_2 = 0xFFB2, /**< The Numpad 2 key */ + IME_KEY_KP_3 = 0xFFB3, /**< The Numpad 3 key */ + IME_KEY_KP_4 = 0xFFB4, /**< The Numpad 4 key */ + IME_KEY_KP_5 = 0xFFB5, /**< The Numpad 5 key */ + IME_KEY_KP_6 = 0xFFB6, /**< The Numpad 6 key */ + IME_KEY_KP_7 = 0xFFB7, /**< The Numpad 7 key */ + IME_KEY_KP_8 = 0xFFB8, /**< The Numpad 8 key */ + IME_KEY_KP_9 = 0xFFB9, /**< The Numpad 9 key */ /* Auxilliary Functions */ - INPUTMETHOD_KEY_F1 = 0xFFBE, /**< The function 1 key */ - INPUTMETHOD_KEY_F2 = 0xFFBF, /**< The function 2 key */ - INPUTMETHOD_KEY_F3 = 0xFFC0, /**< The function 3 key */ - INPUTMETHOD_KEY_F4 = 0xFFC1, /**< The function 4 key */ - INPUTMETHOD_KEY_F5 = 0xFFC2, /**< The function 5 key */ - INPUTMETHOD_KEY_F6 = 0xFFC3, /**< The function 6 key */ - INPUTMETHOD_KEY_F7 = 0xFFC4, /**< The function 7 key */ - INPUTMETHOD_KEY_F8 = 0xFFC5, /**< The function 8 key */ - INPUTMETHOD_KEY_F9 = 0xFFC6, /**< The function 9 key */ - INPUTMETHOD_KEY_F10 = 0xFFC7, /**< The function 10 key */ - INPUTMETHOD_KEY_F11 = 0xFFC8, /**< The function 11 key */ - INPUTMETHOD_KEY_F12 = 0xFFC9, /**< The function 12 key */ - INPUTMETHOD_KEY_F13 = 0xFFCA, /**< The function 13 key */ - INPUTMETHOD_KEY_F14 = 0xFFCB, /**< The function 14 key */ - INPUTMETHOD_KEY_F15 = 0xFFCC, /**< The function 15 key */ - INPUTMETHOD_KEY_F16 = 0xFFCD, /**< The function 16 key */ - INPUTMETHOD_KEY_F17 = 0xFFCE, /**< The function 17 key */ - INPUTMETHOD_KEY_F18 = 0xFFCF, /**< The function 18 key */ - INPUTMETHOD_KEY_F19 = 0xFFD0, /**< The function 19 key */ - INPUTMETHOD_KEY_F20 = 0xFFD1, /**< The function 20 key */ - INPUTMETHOD_KEY_F21 = 0xFFD2, /**< The function 21 key */ - INPUTMETHOD_KEY_F22 = 0xFFD3, /**< The function 22 key */ - INPUTMETHOD_KEY_F23 = 0xFFD4, /**< The function 23 key */ - INPUTMETHOD_KEY_F24 = 0xFFD5, /**< The function 24 key */ - INPUTMETHOD_KEY_F25 = 0xFFD6, /**< The function 25 key */ - INPUTMETHOD_KEY_F26 = 0xFFD7, /**< The function 26 key */ - INPUTMETHOD_KEY_F27 = 0xFFD8, /**< The function 27 key */ - INPUTMETHOD_KEY_F28 = 0xFFD9, /**< The function 28 key */ - INPUTMETHOD_KEY_F29 = 0xFFDA, /**< The function 29 key */ - INPUTMETHOD_KEY_F30 = 0xFFDB, /**< The function 30 key */ - INPUTMETHOD_KEY_F31 = 0xFFDC, /**< The function 31 key */ - INPUTMETHOD_KEY_F32 = 0xFFDD, /**< The function 32 key */ - INPUTMETHOD_KEY_F33 = 0xFFDE, /**< The function 33 key */ - INPUTMETHOD_KEY_F34 = 0xFFDF, /**< The function 34 key */ - INPUTMETHOD_KEY_F35 = 0xFFE0, /**< The function 35 key */ + IME_KEY_F1 = 0xFFBE, /**< The function 1 key */ + IME_KEY_F2 = 0xFFBF, /**< The function 2 key */ + IME_KEY_F3 = 0xFFC0, /**< The function 3 key */ + IME_KEY_F4 = 0xFFC1, /**< The function 4 key */ + IME_KEY_F5 = 0xFFC2, /**< The function 5 key */ + IME_KEY_F6 = 0xFFC3, /**< The function 6 key */ + IME_KEY_F7 = 0xFFC4, /**< The function 7 key */ + IME_KEY_F8 = 0xFFC5, /**< The function 8 key */ + IME_KEY_F9 = 0xFFC6, /**< The function 9 key */ + IME_KEY_F10 = 0xFFC7, /**< The function 10 key */ + IME_KEY_F11 = 0xFFC8, /**< The function 11 key */ + IME_KEY_F12 = 0xFFC9, /**< The function 12 key */ + IME_KEY_F13 = 0xFFCA, /**< The function 13 key */ + IME_KEY_F14 = 0xFFCB, /**< The function 14 key */ + IME_KEY_F15 = 0xFFCC, /**< The function 15 key */ + IME_KEY_F16 = 0xFFCD, /**< The function 16 key */ + IME_KEY_F17 = 0xFFCE, /**< The function 17 key */ + IME_KEY_F18 = 0xFFCF, /**< The function 18 key */ + IME_KEY_F19 = 0xFFD0, /**< The function 19 key */ + IME_KEY_F20 = 0xFFD1, /**< The function 20 key */ + IME_KEY_F21 = 0xFFD2, /**< The function 21 key */ + IME_KEY_F22 = 0xFFD3, /**< The function 22 key */ + IME_KEY_F23 = 0xFFD4, /**< The function 23 key */ + IME_KEY_F24 = 0xFFD5, /**< The function 24 key */ + IME_KEY_F25 = 0xFFD6, /**< The function 25 key */ + IME_KEY_F26 = 0xFFD7, /**< The function 26 key */ + IME_KEY_F27 = 0xFFD8, /**< The function 27 key */ + IME_KEY_F28 = 0xFFD9, /**< The function 28 key */ + IME_KEY_F29 = 0xFFDA, /**< The function 29 key */ + IME_KEY_F30 = 0xFFDB, /**< The function 30 key */ + IME_KEY_F31 = 0xFFDC, /**< The function 31 key */ + IME_KEY_F32 = 0xFFDD, /**< The function 32 key */ + IME_KEY_F33 = 0xFFDE, /**< The function 33 key */ + IME_KEY_F34 = 0xFFDF, /**< The function 34 key */ + IME_KEY_F35 = 0xFFE0, /**< The function 35 key */ /* Modifier keys */ - INPUTMETHOD_KEY_Shift_L = 0xFFE1, /**< The left shift key */ - INPUTMETHOD_KEY_Shift_R = 0xFFE2, /**< The right shift key */ - INPUTMETHOD_KEY_Control_L = 0xFFE3, /**< The left control key */ - INPUTMETHOD_KEY_Control_R = 0xFFE4, /**< The right control key */ - INPUTMETHOD_KEY_Caps_Lock = 0xFFE5, /**< The caps lock key */ - INPUTMETHOD_KEY_Shift_Lock = 0xFFE6, /**< The shift lock key */ + IME_KEY_Shift_L = 0xFFE1, /**< The left shift key */ + IME_KEY_Shift_R = 0xFFE2, /**< The right shift key */ + IME_KEY_Control_L = 0xFFE3, /**< The left control key */ + IME_KEY_Control_R = 0xFFE4, /**< The right control key */ + IME_KEY_Caps_Lock = 0xFFE5, /**< The caps lock key */ + IME_KEY_Shift_Lock = 0xFFE6, /**< The shift lock key */ - INPUTMETHOD_KEY_Meta_L = 0xFFE7, /**< The left meta key */ - INPUTMETHOD_KEY_Meta_R = 0xFFE8, /**< The right meta key */ - INPUTMETHOD_KEY_Alt_L = 0xFFE9, /**< The left alt key */ - INPUTMETHOD_KEY_Alt_R = 0xFFEA, /**< The right alt key */ - INPUTMETHOD_KEY_Super_L = 0xFFEB, /**< The left super key */ - INPUTMETHOD_KEY_Super_R = 0xFFEC, /**< The right super key */ - INPUTMETHOD_KEY_Hyper_L = 0xFFED, /**< The left hyper key */ - INPUTMETHOD_KEY_Hyper_R = 0xFFEE, /**< The right hyper key */ + IME_KEY_Meta_L = 0xFFE7, /**< The left meta key */ + IME_KEY_Meta_R = 0xFFE8, /**< The right meta key */ + IME_KEY_Alt_L = 0xFFE9, /**< The left alt key */ + IME_KEY_Alt_R = 0xFFEA, /**< The right alt key */ + IME_KEY_Super_L = 0xFFEB, /**< The left super key */ + IME_KEY_Super_R = 0xFFEC, /**< The right super key */ + IME_KEY_Hyper_L = 0xFFED, /**< The left hyper key */ + IME_KEY_Hyper_R = 0xFFEE, /**< The right hyper key */ /* Latin 1 */ - INPUTMETHOD_KEY_space = 0x020, /**< The space key */ - INPUTMETHOD_KEY_exclam = 0x021, /**< The exclamation key */ - INPUTMETHOD_KEY_quotedbl = 0x022, /**< The quotedbl key */ - INPUTMETHOD_KEY_numbersign = 0x023, /**< The number sign key */ - INPUTMETHOD_KEY_dollar = 0x024, /**< The dollar key */ - INPUTMETHOD_KEY_percent = 0x025, /**< The percent key */ - INPUTMETHOD_KEY_ampersand = 0x026, /**< The ampersand key */ - INPUTMETHOD_KEY_apostrophe = 0x027, /**< The apostrophe key */ - INPUTMETHOD_KEY_parenleft = 0x028, /**< The parenleft key */ - INPUTMETHOD_KEY_parenright = 0x029, /**< The parenright key */ - INPUTMETHOD_KEY_asterisk = 0x02a, /**< The asterisk key */ - INPUTMETHOD_KEY_plus = 0x02b, /**< The plus key */ - INPUTMETHOD_KEY_comma = 0x02c, /**< The comma key */ - INPUTMETHOD_KEY_minus = 0x02d, /**< The minus key */ - INPUTMETHOD_KEY_period = 0x02e, /**< The period key */ - INPUTMETHOD_KEY_slash = 0x02f, /**< The slash key */ - INPUTMETHOD_KEY_0 = 0x030, /**< The 0 key */ - INPUTMETHOD_KEY_1 = 0x031, /**< The 1 key */ - INPUTMETHOD_KEY_2 = 0x032, /**< The 2 key */ - INPUTMETHOD_KEY_3 = 0x033, /**< The 3 key */ - INPUTMETHOD_KEY_4 = 0x034, /**< The 4 key */ - INPUTMETHOD_KEY_5 = 0x035, /**< The 5 key */ - INPUTMETHOD_KEY_6 = 0x036, /**< The 6 key */ - INPUTMETHOD_KEY_7 = 0x037, /**< The 7 key */ - INPUTMETHOD_KEY_8 = 0x038, /**< The 8 key */ - INPUTMETHOD_KEY_9 = 0x039, /**< The 9 key */ - INPUTMETHOD_KEY_colon = 0x03a, /**< The colon key */ - INPUTMETHOD_KEY_semicolon = 0x03b, /**< The semicolon key */ - INPUTMETHOD_KEY_less = 0x03c, /**< The less key */ - INPUTMETHOD_KEY_equal = 0x03d, /**< The equal key */ - INPUTMETHOD_KEY_greater = 0x03e, /**< The greater key */ - INPUTMETHOD_KEY_question = 0x03f, /**< The question key */ - INPUTMETHOD_KEY_at = 0x040, /**< The key */ - INPUTMETHOD_KEY_A = 0x041, /**< The A key */ - INPUTMETHOD_KEY_B = 0x042, /**< The B key */ - INPUTMETHOD_KEY_C = 0x043, /**< The C key */ - INPUTMETHOD_KEY_D = 0x044, /**< The D key */ - INPUTMETHOD_KEY_E = 0x045, /**< The E key */ - INPUTMETHOD_KEY_F = 0x046, /**< The F key */ - INPUTMETHOD_KEY_G = 0x047, /**< The G key */ - INPUTMETHOD_KEY_H = 0x048, /**< The H key */ - INPUTMETHOD_KEY_I = 0x049, /**< The I key */ - INPUTMETHOD_KEY_J = 0x04a, /**< The J key */ - INPUTMETHOD_KEY_K = 0x04b, /**< The K key */ - INPUTMETHOD_KEY_L = 0x04c, /**< The L key */ - INPUTMETHOD_KEY_M = 0x04d, /**< The M key */ - INPUTMETHOD_KEY_N = 0x04e, /**< The N key */ - INPUTMETHOD_KEY_O = 0x04f, /**< The O key */ - INPUTMETHOD_KEY_P = 0x050, /**< The P key */ - INPUTMETHOD_KEY_Q = 0x051, /**< The Q key */ - INPUTMETHOD_KEY_R = 0x052, /**< The R key */ - INPUTMETHOD_KEY_S = 0x053, /**< The S key */ - INPUTMETHOD_KEY_T = 0x054, /**< The T key */ - INPUTMETHOD_KEY_U = 0x055, /**< The U key */ - INPUTMETHOD_KEY_V = 0x056, /**< The V key */ - INPUTMETHOD_KEY_W = 0x057, /**< The W key */ - INPUTMETHOD_KEY_X = 0x058, /**< The X key */ - INPUTMETHOD_KEY_Y = 0x059, /**< The Y key */ - INPUTMETHOD_KEY_Z = 0x05a, /**< The Z key */ - INPUTMETHOD_KEY_bracketleft = 0x05b, /**< The left bracket key */ - INPUTMETHOD_KEY_backslash = 0x05c, /**< The backslash key */ - INPUTMETHOD_KEY_bracketright = 0x05d, /**< The right bracket key */ - INPUTMETHOD_KEY_asciicircum = 0x05e, /**< The circumflex key */ - INPUTMETHOD_KEY_underscore = 0x05f, /**< The underscore key */ - INPUTMETHOD_KEY_grave = 0x060, /**< The grave key */ - INPUTMETHOD_KEY_a = 0x061, /**< The a key */ - INPUTMETHOD_KEY_b = 0x062, /**< The b key */ - INPUTMETHOD_KEY_c = 0x063, /**< The c key */ - INPUTMETHOD_KEY_d = 0x064, /**< The d key */ - INPUTMETHOD_KEY_e = 0x065, /**< The e key */ - INPUTMETHOD_KEY_f = 0x066, /**< The f key */ - INPUTMETHOD_KEY_g = 0x067, /**< The g key */ - INPUTMETHOD_KEY_h = 0x068, /**< The h key */ - INPUTMETHOD_KEY_i = 0x069, /**< The i key */ - INPUTMETHOD_KEY_j = 0x06a, /**< The j key */ - INPUTMETHOD_KEY_k = 0x06b, /**< The k key */ - INPUTMETHOD_KEY_l = 0x06c, /**< The l key */ - INPUTMETHOD_KEY_m = 0x06d, /**< The m key */ - INPUTMETHOD_KEY_n = 0x06e, /**< The n key */ - INPUTMETHOD_KEY_o = 0x06f, /**< The o key */ - INPUTMETHOD_KEY_p = 0x070, /**< The p key */ - INPUTMETHOD_KEY_q = 0x071, /**< The q key */ - INPUTMETHOD_KEY_r = 0x072, /**< The r key */ - INPUTMETHOD_KEY_s = 0x073, /**< The s key */ - INPUTMETHOD_KEY_t = 0x074, /**< The t key */ - INPUTMETHOD_KEY_u = 0x075, /**< The u key */ - INPUTMETHOD_KEY_v = 0x076, /**< The v key */ - INPUTMETHOD_KEY_w = 0x077, /**< The w key */ - INPUTMETHOD_KEY_x = 0x078, /**< The x key */ - INPUTMETHOD_KEY_y = 0x079, /**< The y key */ - INPUTMETHOD_KEY_z = 0x07a, /**< The z key */ - INPUTMETHOD_KEY_braceleft = 0x07b, /**< The left brace key */ - INPUTMETHOD_KEY_bar = 0x07c, /**< The bar key */ - INPUTMETHOD_KEY_braceright = 0x07d, /**< The right brace key */ - INPUTMETHOD_KEY_asciitilde = 0x07e, /**< The tilde key */ -} inputmethod_key_code_e; + IME_KEY_space = 0x020, /**< The space key */ + IME_KEY_exclam = 0x021, /**< The exclamation key */ + IME_KEY_quotedbl = 0x022, /**< The quotedbl key */ + IME_KEY_numbersign = 0x023, /**< The number sign key */ + IME_KEY_dollar = 0x024, /**< The dollar key */ + IME_KEY_percent = 0x025, /**< The percent key */ + IME_KEY_ampersand = 0x026, /**< The ampersand key */ + IME_KEY_apostrophe = 0x027, /**< The apostrophe key */ + IME_KEY_parenleft = 0x028, /**< The parenleft key */ + IME_KEY_parenright = 0x029, /**< The parenright key */ + IME_KEY_asterisk = 0x02a, /**< The asterisk key */ + IME_KEY_plus = 0x02b, /**< The plus key */ + IME_KEY_comma = 0x02c, /**< The comma key */ + IME_KEY_minus = 0x02d, /**< The minus key */ + IME_KEY_period = 0x02e, /**< The period key */ + IME_KEY_slash = 0x02f, /**< The slash key */ + IME_KEY_0 = 0x030, /**< The 0 key */ + IME_KEY_1 = 0x031, /**< The 1 key */ + IME_KEY_2 = 0x032, /**< The 2 key */ + IME_KEY_3 = 0x033, /**< The 3 key */ + IME_KEY_4 = 0x034, /**< The 4 key */ + IME_KEY_5 = 0x035, /**< The 5 key */ + IME_KEY_6 = 0x036, /**< The 6 key */ + IME_KEY_7 = 0x037, /**< The 7 key */ + IME_KEY_8 = 0x038, /**< The 8 key */ + IME_KEY_9 = 0x039, /**< The 9 key */ + IME_KEY_colon = 0x03a, /**< The colon key */ + IME_KEY_semicolon = 0x03b, /**< The semicolon key */ + IME_KEY_less = 0x03c, /**< The less key */ + IME_KEY_equal = 0x03d, /**< The equal key */ + IME_KEY_greater = 0x03e, /**< The greater key */ + IME_KEY_question = 0x03f, /**< The question key */ + IME_KEY_at = 0x040, /**< The key */ + IME_KEY_A = 0x041, /**< The A key */ + IME_KEY_B = 0x042, /**< The B key */ + IME_KEY_C = 0x043, /**< The C key */ + IME_KEY_D = 0x044, /**< The D key */ + IME_KEY_E = 0x045, /**< The E key */ + IME_KEY_F = 0x046, /**< The F key */ + IME_KEY_G = 0x047, /**< The G key */ + IME_KEY_H = 0x048, /**< The H key */ + IME_KEY_I = 0x049, /**< The I key */ + IME_KEY_J = 0x04a, /**< The J key */ + IME_KEY_K = 0x04b, /**< The K key */ + IME_KEY_L = 0x04c, /**< The L key */ + IME_KEY_M = 0x04d, /**< The M key */ + IME_KEY_N = 0x04e, /**< The N key */ + IME_KEY_O = 0x04f, /**< The O key */ + IME_KEY_P = 0x050, /**< The P key */ + IME_KEY_Q = 0x051, /**< The Q key */ + IME_KEY_R = 0x052, /**< The R key */ + IME_KEY_S = 0x053, /**< The S key */ + IME_KEY_T = 0x054, /**< The T key */ + IME_KEY_U = 0x055, /**< The U key */ + IME_KEY_V = 0x056, /**< The V key */ + IME_KEY_W = 0x057, /**< The W key */ + IME_KEY_X = 0x058, /**< The X key */ + IME_KEY_Y = 0x059, /**< The Y key */ + IME_KEY_Z = 0x05a, /**< The Z key */ + IME_KEY_bracketleft = 0x05b, /**< The left bracket key */ + IME_KEY_backslash = 0x05c, /**< The backslash key */ + IME_KEY_bracketright = 0x05d, /**< The right bracket key */ + IME_KEY_asciicircum = 0x05e, /**< The circumflex key */ + IME_KEY_underscore = 0x05f, /**< The underscore key */ + IME_KEY_grave = 0x060, /**< The grave key */ + IME_KEY_a = 0x061, /**< The a key */ + IME_KEY_b = 0x062, /**< The b key */ + IME_KEY_c = 0x063, /**< The c key */ + IME_KEY_d = 0x064, /**< The d key */ + IME_KEY_e = 0x065, /**< The e key */ + IME_KEY_f = 0x066, /**< The f key */ + IME_KEY_g = 0x067, /**< The g key */ + IME_KEY_h = 0x068, /**< The h key */ + IME_KEY_i = 0x069, /**< The i key */ + IME_KEY_j = 0x06a, /**< The j key */ + IME_KEY_k = 0x06b, /**< The k key */ + IME_KEY_l = 0x06c, /**< The l key */ + IME_KEY_m = 0x06d, /**< The m key */ + IME_KEY_n = 0x06e, /**< The n key */ + IME_KEY_o = 0x06f, /**< The o key */ + IME_KEY_p = 0x070, /**< The p key */ + IME_KEY_q = 0x071, /**< The q key */ + IME_KEY_r = 0x072, /**< The r key */ + IME_KEY_s = 0x073, /**< The s key */ + IME_KEY_t = 0x074, /**< The t key */ + IME_KEY_u = 0x075, /**< The u key */ + IME_KEY_v = 0x076, /**< The v key */ + IME_KEY_w = 0x077, /**< The w key */ + IME_KEY_x = 0x078, /**< The x key */ + IME_KEY_y = 0x079, /**< The y key */ + IME_KEY_z = 0x07a, /**< The z key */ + IME_KEY_braceleft = 0x07b, /**< The left brace key */ + IME_KEY_bar = 0x07c, /**< The bar key */ + IME_KEY_braceright = 0x07d, /**< The right brace key */ + IME_KEY_asciitilde = 0x07e, /**< The tilde key */ +} ime_key_code_e; /** * @brief Enumeration of the key masks. @@ -275,13 +275,13 @@ typedef enum */ typedef enum { - INPUTMETHOD_KEY_MASK_PRESSED = 0, /**< The key is pressed */ - INPUTMETHOD_KEY_MASK_SHIFT = (1<<0), /**< The Shift key is pressed */ - INPUTMETHOD_KEY_MASK_CONTROL = (1<<2), /**< The Control key is pressed */ - INPUTMETHOD_KEY_MASK_ALT = (1<<3), /**< The Alt key is pressed */ - INPUTMETHOD_KEY_MASK_WIN = (1<<5), /**< The Win (between Control and Alt) is pressed */ - INPUTMETHOD_KEY_MASK_RELEASED = (1<<15) /**< The key is released */ -} inputmethod_key_mask_e; + IME_KEY_MASK_PRESSED = 0, /**< The key is pressed */ + IME_KEY_MASK_SHIFT = (1<<0), /**< The Shift key is pressed */ + IME_KEY_MASK_CONTROL = (1<<2), /**< The Control key is pressed */ + IME_KEY_MASK_ALT = (1<<3), /**< The Alt key is pressed */ + IME_KEY_MASK_WIN = (1<<5), /**< The Win (between Control and Alt) is pressed */ + IME_KEY_MASK_RELEASED = (1<<15) /**< The key is released */ +} ime_key_mask_e; /** * @} diff --git a/include/inputmethod_private.h b/include/inputmethod_private.h index 8f8cfaf..e187459 100644 --- a/include/inputmethod_private.h +++ b/include/inputmethod_private.h @@ -17,7 +17,7 @@ #ifndef __TIZEN_UIX_INPUTMETHOD_PRIVATE_H__ #define __TIZEN_UIX_INPUTMETHOD_PRIVATE_H__ -struct _inputmethod_context +struct _ime_context { Ecore_IMF_Input_Panel_Layout layout; /**< Input panel (keyboard) layout types */ int layout_variation; /**< Layout variation */ diff --git a/src/inputmethod.cpp b/src/inputmethod.cpp index 491dd39..4d5cb99 100644 --- a/src/inputmethod.cpp +++ b/src/inputmethod.cpp @@ -57,23 +57,23 @@ class CCoreEventCallback : public ISCLCoreEventCallback typedef struct { - inputmethod_focus_in_cb focus_in; /**< Called when an edit field has focus */ - inputmethod_focus_out_cb focus_out; /**< Called when an edit field loses focus */ - inputmethod_surrounding_text_updated_cb surrounding_text_updated; /**< Called when an edit field responds to a request with the surrounding text */ - inputmethod_input_context_reset_cb input_context_reset; /**< Called to reset the input context of an edit field */ - inputmethod_cursor_position_updated_cb cursor_position_updated; /**< Called when the position of the cursor in an edit field changes */ - inputmethod_language_requested_cb language_requested; /**< Called when an edit field requests for the language of the input panel */ - inputmethod_language_set_cb language_set; /**< Called to set the preferred language to the input panel */ - inputmethod_imdata_set_cb imdata_set; /**< Called to set the application specific data to deliver to the input panel */ - inputmethod_layout_set_cb layout_set; /**< Called when an edit field requests the input panel to set its layout */ - inputmethod_return_key_type_set_cb return_key_type_set; /**< Called when an edit field requests the input panel to set the "return" key label */ - inputmethod_return_key_state_set_cb return_key_state_set; /**< Called when an edit field requests the input panel to enable or disable the "return" key state. */ - inputmethod_geometry_requested_cb geometry_requested; /**< Called when an edit field requests for the position and size of the input panel */ - inputmethod_display_language_changed_cb display_language_changed; /**< Called when the system display language is changed */ - inputmethod_rotation_degree_changed_cb rotation_degree_changed; /**< Called when the device is rotated */ - inputmethod_accessibility_state_changed_cb accessibility_state_changed; /**< Called when Accessibility in Settings application is on or off */ - inputmethod_option_window_created_cb option_window_created; /**< Called to create the option window */ - inputmethod_option_window_destroyed_cb option_window_destroyed; /**< Called to destroy the option window */ + ime_focus_in_cb focus_in; /**< Called when an edit field has focus */ + ime_focus_out_cb focus_out; /**< Called when an edit field loses focus */ + ime_surrounding_text_updated_cb surrounding_text_updated; /**< Called when an edit field responds to a request with the surrounding text */ + ime_input_context_reset_cb input_context_reset; /**< Called to reset the input context of an edit field */ + ime_cursor_position_updated_cb cursor_position_updated; /**< Called when the position of the cursor in an edit field changes */ + ime_language_requested_cb language_requested; /**< Called when an edit field requests for the language of the input panel */ + ime_language_set_cb language_set; /**< Called to set the preferred language to the input panel */ + ime_imdata_set_cb imdata_set; /**< Called to set the application specific data to deliver to the input panel */ + ime_layout_set_cb layout_set; /**< Called when an edit field requests the input panel to set its layout */ + ime_return_key_type_set_cb return_key_type_set; /**< Called when an edit field requests the input panel to set the "return" key label */ + ime_return_key_state_set_cb return_key_state_set; /**< Called when an edit field requests the input panel to enable or disable the "return" key state. */ + ime_geometry_requested_cb geometry_requested; /**< Called when an edit field requests for the position and size of the input panel */ + ime_display_language_changed_cb display_language_changed; /**< Called when the system display language is changed */ + ime_rotation_degree_changed_cb rotation_degree_changed; /**< Called when the device is rotated */ + ime_accessibility_state_changed_cb accessibility_state_changed; /**< Called when Accessibility in Settings application is on or off */ + ime_option_window_created_cb option_window_created; /**< Called to create the option window */ + ime_option_window_destroyed_cb option_window_destroyed; /**< Called to destroy the option window */ void *focus_in_user_data; void *focus_out_user_data; void *surrounding_text_updated_user_data; @@ -91,10 +91,10 @@ typedef struct void *accessibility_state_changed_user_data; void *option_window_created_user_data; void *option_window_destroyed_user_data; -} inputmethod_event_callback_s; +} ime_event_callback_s; -static inputmethod_callback_s g_basic_callback = {NULL}; -static inputmethod_event_callback_s g_event_callback = {NULL}; +static ime_callback_s g_basic_callback = {NULL}; +static ime_event_callback_s g_event_callback = {NULL}; static void *g_user_data = NULL; static bool g_running = false; @@ -102,7 +102,7 @@ static CCoreEventCallback g_core_event_callback; CSCLCore g_core(&g_core_event_callback); extern "C" { - extern void inputmethod_app_main(int argc, char **argv); + extern void ime_app_main(int argc, char **argv); } void CCoreEventCallback::on_init() @@ -115,7 +115,7 @@ void CCoreEventCallback::on_init() void CCoreEventCallback::on_run(int argc, char **argv) { LOGD ("on_run"); - inputmethod_app_main(argc, argv); + ime_app_main(argc, argv); } void CCoreEventCallback::on_exit() @@ -157,9 +157,9 @@ void CCoreEventCallback::on_focus_in(sclint ic, const sclchar *ic_uuid) void CCoreEventCallback::on_ise_show(sclint ic, const int degree, Ise_Context context) { if (g_basic_callback.show) { - struct _inputmethod_context input_context; + struct _ime_context input_context; - memset(&input_context, 0, sizeof(struct _inputmethod_context)); + memset(&input_context, 0, sizeof(struct _ime_context)); input_context.layout = context.layout; input_context.layout_variation = context.layout_variation; input_context.cursor_pos = context.cursor_pos; @@ -174,7 +174,7 @@ void CCoreEventCallback::on_ise_show(sclint ic, const int degree, Ise_Context co input_context.language = context.language; input_context.client_window = context.client_window; - g_basic_callback.show(ic, (inputmethod_context_h)&input_context, g_user_data); + g_basic_callback.show(ic, (ime_context_h)&input_context, g_user_data); } } @@ -282,7 +282,7 @@ void CCoreEventCallback::on_set_accessibility_state(sclboolean state) void CCoreEventCallback::on_create_option_window(sclwindow window, SCLOptionWindowType type) { if (g_event_callback.option_window_created) { - g_event_callback.option_window_created(static_cast(window), (inputmethod_option_window_type_e)type, g_event_callback.option_window_created_user_data); + g_event_callback.option_window_created(static_cast(window), static_cast(type), g_event_callback.option_window_created_user_data); } } @@ -293,16 +293,16 @@ void CCoreEventCallback::on_destroy_option_window(sclwindow window) } } -int inputmethod_run(inputmethod_callback_s *basic_cb, void *user_data) +int ime_run(ime_callback_s *basic_cb, void *user_data) { if (g_running) { LOGE("inputmethod main loop is already running."); - return INPUTMETHOD_ERROR_OPERATION_FAILED; + return IME_ERROR_OPERATION_FAILED; } if (!basic_cb) { LOGE("basic callbacks pointer is null."); - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; } g_basic_callback = *basic_cb; @@ -310,9 +310,9 @@ int inputmethod_run(inputmethod_callback_s *basic_cb, void *user_data) if (!g_basic_callback.create || !g_basic_callback.terminate || !g_basic_callback.show || !g_basic_callback.hide) { LOGE("mandatory callback funtions are not set"); - memset(&g_basic_callback, 0, sizeof(inputmethod_callback_s)); - memset(&g_event_callback, 0, sizeof(inputmethod_event_callback_s)); - return INPUTMETHOD_ERROR_NO_CALLBACK_FUNCTION; + memset(&g_basic_callback, 0, sizeof(ime_callback_s)); + memset(&g_event_callback, 0, sizeof(ime_event_callback_s)); + return IME_ERROR_NO_CALLBACK_FUNCTION; } g_user_data = user_data; @@ -320,357 +320,357 @@ int inputmethod_run(inputmethod_callback_s *basic_cb, void *user_data) g_core.run(); - memset(&g_basic_callback, 0, sizeof(inputmethod_callback_s)); - memset(&g_event_callback, 0, sizeof(inputmethod_event_callback_s)); + memset(&g_basic_callback, 0, sizeof(ime_callback_s)); + memset(&g_event_callback, 0, sizeof(ime_event_callback_s)); g_user_data = NULL; g_running = false; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_event_set_focus_in_cb(inputmethod_focus_in_cb callback_func, void *user_data) +int ime_event_set_focus_in_cb(ime_focus_in_cb callback_func, void *user_data) { if (!callback_func) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (g_running) - return INPUTMETHOD_ERROR_OPERATION_FAILED; + return IME_ERROR_OPERATION_FAILED; g_event_callback.focus_in = callback_func; g_event_callback.focus_in_user_data = user_data; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_event_set_focus_out_cb(inputmethod_focus_out_cb callback_func, void *user_data) +int ime_event_set_focus_out_cb(ime_focus_out_cb callback_func, void *user_data) { if (!callback_func) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (g_running) - return INPUTMETHOD_ERROR_OPERATION_FAILED; + return IME_ERROR_OPERATION_FAILED; g_event_callback.focus_out = callback_func; g_event_callback.focus_out_user_data = user_data; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_event_set_surrounding_text_updated_cb(inputmethod_surrounding_text_updated_cb callback_func, void *user_data) +int ime_event_set_surrounding_text_updated_cb(ime_surrounding_text_updated_cb callback_func, void *user_data) { if (!callback_func) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (g_running) - return INPUTMETHOD_ERROR_OPERATION_FAILED; + return IME_ERROR_OPERATION_FAILED; g_event_callback.surrounding_text_updated = callback_func; g_event_callback.surrounding_text_updated_user_data = user_data; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_event_set_input_context_reset_cb(inputmethod_input_context_reset_cb callback_func, void *user_data) +int ime_event_set_input_context_reset_cb(ime_input_context_reset_cb callback_func, void *user_data) { if (!callback_func) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (g_running) - return INPUTMETHOD_ERROR_OPERATION_FAILED; + return IME_ERROR_OPERATION_FAILED; g_event_callback.input_context_reset = callback_func; g_event_callback.input_context_reset_user_data = user_data; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_event_set_cursor_position_updated_cb(inputmethod_cursor_position_updated_cb callback_func, void *user_data) +int ime_event_set_cursor_position_updated_cb(ime_cursor_position_updated_cb callback_func, void *user_data) { if (!callback_func) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (g_running) - return INPUTMETHOD_ERROR_OPERATION_FAILED; + return IME_ERROR_OPERATION_FAILED; g_event_callback.cursor_position_updated = callback_func; g_event_callback.cursor_position_updated_user_data = user_data; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_event_set_language_requested_cb(inputmethod_language_requested_cb callback_func, void *user_data) +int ime_event_set_language_requested_cb(ime_language_requested_cb callback_func, void *user_data) { if (!callback_func) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (g_running) - return INPUTMETHOD_ERROR_OPERATION_FAILED; + return IME_ERROR_OPERATION_FAILED; g_event_callback.language_requested = callback_func; g_event_callback.language_requested_user_data = user_data; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_event_set_language_set_cb(inputmethod_language_set_cb callback_func, void *user_data) +int ime_event_set_language_set_cb(ime_language_set_cb callback_func, void *user_data) { if (!callback_func) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (g_running) - return INPUTMETHOD_ERROR_OPERATION_FAILED; + return IME_ERROR_OPERATION_FAILED; g_event_callback.language_set = callback_func; g_event_callback.language_set_user_data = user_data; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_event_set_imdata_set_cb(inputmethod_imdata_set_cb callback_func, void *user_data) +int ime_event_set_imdata_set_cb(ime_imdata_set_cb callback_func, void *user_data) { if (!callback_func) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (g_running) - return INPUTMETHOD_ERROR_OPERATION_FAILED; + return IME_ERROR_OPERATION_FAILED; g_event_callback.imdata_set = callback_func; g_event_callback.imdata_set_user_data = user_data; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_event_set_layout_set_cb(inputmethod_layout_set_cb callback_func, void *user_data) +int ime_event_set_layout_set_cb(ime_layout_set_cb callback_func, void *user_data) { if (!callback_func) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (g_running) - return INPUTMETHOD_ERROR_OPERATION_FAILED; + return IME_ERROR_OPERATION_FAILED; g_event_callback.layout_set = callback_func; g_event_callback.layout_set_user_data = user_data; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_event_set_return_key_type_set_cb(inputmethod_return_key_type_set_cb callback_func, void *user_data) +int ime_event_set_return_key_type_set_cb(ime_return_key_type_set_cb callback_func, void *user_data) { if (!callback_func) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (g_running) - return INPUTMETHOD_ERROR_OPERATION_FAILED; + return IME_ERROR_OPERATION_FAILED; g_event_callback.return_key_type_set = callback_func; g_event_callback.return_key_type_set_user_data = user_data; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_event_set_return_key_state_set_cb(inputmethod_return_key_state_set_cb callback_func, void *user_data) +int ime_event_set_return_key_state_set_cb(ime_return_key_state_set_cb callback_func, void *user_data) { if (!callback_func) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (g_running) - return INPUTMETHOD_ERROR_OPERATION_FAILED; + return IME_ERROR_OPERATION_FAILED; g_event_callback.return_key_state_set = callback_func; g_event_callback.return_key_state_set_user_data = user_data; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_event_set_geometry_requested_cb(inputmethod_geometry_requested_cb callback_func, void *user_data) +int ime_event_set_geometry_requested_cb(ime_geometry_requested_cb callback_func, void *user_data) { if (!callback_func) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (g_running) - return INPUTMETHOD_ERROR_OPERATION_FAILED; + return IME_ERROR_OPERATION_FAILED; g_event_callback.geometry_requested = callback_func; g_event_callback.geometry_requested_user_data = user_data; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_event_set_display_language_changed_cb(inputmethod_display_language_changed_cb callback_func, void *user_data) +int ime_event_set_display_language_changed_cb(ime_display_language_changed_cb callback_func, void *user_data) { if (!callback_func) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (g_running) - return INPUTMETHOD_ERROR_OPERATION_FAILED; + return IME_ERROR_OPERATION_FAILED; g_event_callback.display_language_changed = callback_func; g_event_callback.display_language_changed_user_data = user_data; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_event_set_rotation_degree_changed_cb(inputmethod_rotation_degree_changed_cb callback_func, void *user_data) +int ime_event_set_rotation_degree_changed_cb(ime_rotation_degree_changed_cb callback_func, void *user_data) { if (!callback_func) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (g_running) - return INPUTMETHOD_ERROR_OPERATION_FAILED; + return IME_ERROR_OPERATION_FAILED; g_event_callback.rotation_degree_changed = callback_func; g_event_callback.rotation_degree_changed_user_data = user_data; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_event_set_accessibility_state_changed_cb(inputmethod_accessibility_state_changed_cb callback_func, void *user_data) +int ime_event_set_accessibility_state_changed_cb(ime_accessibility_state_changed_cb callback_func, void *user_data) { if (!callback_func) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (g_running) - return INPUTMETHOD_ERROR_OPERATION_FAILED; + return IME_ERROR_OPERATION_FAILED; g_event_callback.accessibility_state_changed = callback_func; g_event_callback.accessibility_state_changed_user_data = user_data; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_event_set_option_window_created_cb(inputmethod_option_window_created_cb callback_func, void *user_data) +int ime_event_set_option_window_created_cb(ime_option_window_created_cb callback_func, void *user_data) { if (!callback_func) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (g_running) - return INPUTMETHOD_ERROR_OPERATION_FAILED; + return IME_ERROR_OPERATION_FAILED; g_event_callback.option_window_created = callback_func; g_event_callback.option_window_created_user_data = user_data; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_event_set_option_window_destroyed_cb(inputmethod_option_window_destroyed_cb callback_func, void *user_data) +int ime_event_set_option_window_destroyed_cb(ime_option_window_destroyed_cb callback_func, void *user_data) { if (!callback_func) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (g_running) - return INPUTMETHOD_ERROR_OPERATION_FAILED; + return IME_ERROR_OPERATION_FAILED; g_event_callback.option_window_destroyed = callback_func; g_event_callback.option_window_destroyed_user_data = user_data; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_send_key_event(inputmethod_key_code_e keycode, inputmethod_key_mask_e keymask) +int ime_send_key_event(ime_key_code_e keycode, ime_key_mask_e keymask) { if (!g_running) - return INPUTMETHOD_ERROR_NOT_RUNNING; + return IME_ERROR_NOT_RUNNING; g_core.forward_key_event(-1, NULL, (sclu32)keycode, (sclu16)keymask); - return TIZEN_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_commit_string(const char *str) +int ime_commit_string(const char *str) { if (!g_running) - return INPUTMETHOD_ERROR_NOT_RUNNING; + return IME_ERROR_NOT_RUNNING; g_core.commit_string(-1, NULL, str); - return TIZEN_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_show_preedit_string(void) +int ime_show_preedit_string(void) { if (!g_running) - return INPUTMETHOD_ERROR_NOT_RUNNING; + return IME_ERROR_NOT_RUNNING; g_core.show_preedit_string(-1, NULL); - return TIZEN_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_hide_preedit_string(void) +int ime_hide_preedit_string(void) { if (!g_running) - return INPUTMETHOD_ERROR_NOT_RUNNING; + return IME_ERROR_NOT_RUNNING; g_core.hide_preedit_string(-1, NULL); - return TIZEN_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_update_preedit_string(const char *str) +int ime_update_preedit_string(const char *str) { if (!g_running) - return INPUTMETHOD_ERROR_NOT_RUNNING; + return IME_ERROR_NOT_RUNNING; if (!str) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; g_core.update_preedit_string(-1, NULL, str); - return TIZEN_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_request_surrounding_text(int maxlen_before, int maxlen_after) +int ime_request_surrounding_text(int maxlen_before, int maxlen_after) { if (!g_running) - return INPUTMETHOD_ERROR_NOT_RUNNING; + return IME_ERROR_NOT_RUNNING; if (!g_event_callback.surrounding_text_updated) - return INPUTMETHOD_ERROR_NO_CALLBACK_FUNCTION; + return IME_ERROR_NO_CALLBACK_FUNCTION; g_core.get_surrounding_text(NULL, maxlen_before, maxlen_after); - return TIZEN_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_delete_surrounding_text(int offset, int len) +int ime_delete_surrounding_text(int offset, int len) { if (!g_running) - return INPUTMETHOD_ERROR_NOT_RUNNING; + return IME_ERROR_NOT_RUNNING; if (len <= 0) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; g_core.delete_surrounding_text(offset, len); - return TIZEN_ERROR_NONE; + return IME_ERROR_NONE; } -Evas_Object* inputmethod_get_main_window(void) +Evas_Object* ime_get_main_window(void) { Evas_Object *win = NULL; if (!g_running) { - set_last_result(INPUTMETHOD_ERROR_NOT_RUNNING); + set_last_result(IME_ERROR_NOT_RUNNING); return NULL; } win = static_cast(g_core.get_main_window()); if (win) { - set_last_result(INPUTMETHOD_ERROR_NONE); + set_last_result(IME_ERROR_NONE); } else { - set_last_result(INPUTMETHOD_ERROR_OPERATION_FAILED); + set_last_result(IME_ERROR_OPERATION_FAILED); } return win; } -int inputmethod_set_size(int portrait_width, int portrait_height, int landscape_width, int landscape_height) +int ime_set_size(int portrait_width, int portrait_height, int landscape_width, int landscape_height) { SclSize portrait_size, landscape_size; if (!g_running) - return INPUTMETHOD_ERROR_NOT_RUNNING; + return IME_ERROR_NOT_RUNNING; portrait_size.width = portrait_width; portrait_size.height = portrait_height; @@ -680,185 +680,185 @@ int inputmethod_set_size(int portrait_width, int portrait_height, int landscape_ g_core.set_keyboard_size_hints(portrait_size, landscape_size); - return TIZEN_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_create_option_window(void) +int ime_create_option_window(void) { if (!g_running) - return INPUTMETHOD_ERROR_NOT_RUNNING; + return IME_ERROR_NOT_RUNNING; if (!g_event_callback.option_window_created || !g_event_callback.option_window_destroyed) { - LOGW("inputmethod_create_option_window_cb() and inputmethod_destroy_option_window_cb() callback functions are not set."); - return INPUTMETHOD_ERROR_NO_CALLBACK_FUNCTION; + LOGW("ime_create_option_window_cb() and ime_destroy_option_window_cb() callback functions are not set."); + return IME_ERROR_NO_CALLBACK_FUNCTION; } if (g_core.create_option_window()) - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; else - return INPUTMETHOD_ERROR_OPERATION_FAILED; + return IME_ERROR_OPERATION_FAILED; } -int inputmethod_destroy_option_window(Evas_Object *window) +int ime_destroy_option_window(Evas_Object *window) { if (!window) { LOGW("Window pointer is null."); - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; } if (!g_running) - return INPUTMETHOD_ERROR_NOT_RUNNING; + return IME_ERROR_NOT_RUNNING; if (!g_event_callback.option_window_created || !g_event_callback.option_window_destroyed) { - LOGW("inputmethod_create_option_window_cb() and inputmethod_destroy_option_window_cb() callback functions are not set."); - return INPUTMETHOD_ERROR_NO_CALLBACK_FUNCTION; + LOGW("ime_create_option_window_cb() and ime_destroy_option_window_cb() callback functions are not set."); + return IME_ERROR_NO_CALLBACK_FUNCTION; } g_core.destroy_option_window(window); - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_context_get_layout(inputmethod_context_h context, Ecore_IMF_Input_Panel_Layout *layout) +int ime_context_get_layout(ime_context_h context, Ecore_IMF_Input_Panel_Layout *layout) { if (!context || !layout) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (!g_running) - return INPUTMETHOD_ERROR_NOT_RUNNING; + return IME_ERROR_NOT_RUNNING; *layout = context->layout; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_context_get_layout_variation(inputmethod_context_h context, inputmethod_layout_variation_e *layout_variation) +int ime_context_get_layout_variation(ime_context_h context, ime_layout_variation_e *layout_variation) { if (!context || !layout_variation) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (!g_running) - return INPUTMETHOD_ERROR_NOT_RUNNING; + return IME_ERROR_NOT_RUNNING; - *layout_variation = static_cast(context->layout_variation); + *layout_variation = static_cast(context->layout_variation); - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_context_get_cursor_position(inputmethod_context_h context, int *cursor_pos) +int ime_context_get_cursor_position(ime_context_h context, int *cursor_pos) { if (!context || !cursor_pos) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (!g_running) - return INPUTMETHOD_ERROR_NOT_RUNNING; + return IME_ERROR_NOT_RUNNING; *cursor_pos = context->cursor_pos; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_context_get_autocapital_type(inputmethod_context_h context, Ecore_IMF_Autocapital_Type *autocapital_type) +int ime_context_get_autocapital_type(ime_context_h context, Ecore_IMF_Autocapital_Type *autocapital_type) { if (!context || !autocapital_type) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (!g_running) - return INPUTMETHOD_ERROR_NOT_RUNNING; + return IME_ERROR_NOT_RUNNING; *autocapital_type = context->autocapital_type; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_context_get_return_key_type(inputmethod_context_h context, Ecore_IMF_Input_Panel_Return_Key_Type *return_key_type) +int ime_context_get_return_key_type(ime_context_h context, Ecore_IMF_Input_Panel_Return_Key_Type *return_key_type) { if (!context || !return_key_type) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (!g_running) - return INPUTMETHOD_ERROR_NOT_RUNNING; + return IME_ERROR_NOT_RUNNING; *return_key_type = context->return_key_type; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_context_get_return_key_state(inputmethod_context_h context, bool *return_key_state) +int ime_context_get_return_key_state(ime_context_h context, bool *return_key_state) { if (!context || !return_key_state) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (!g_running) - return INPUTMETHOD_ERROR_NOT_RUNNING; + return IME_ERROR_NOT_RUNNING; *return_key_state = static_cast(context->return_key_disabled); - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_context_get_prediction_mode(inputmethod_context_h context, bool *prediction_mode) +int ime_context_get_prediction_mode(ime_context_h context, bool *prediction_mode) { if (!context || !prediction_mode) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (!g_running) - return INPUTMETHOD_ERROR_NOT_RUNNING; + return IME_ERROR_NOT_RUNNING; *prediction_mode = static_cast(context->prediction_allow); - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_context_get_password_mode(inputmethod_context_h context, bool *password_mode) +int ime_context_get_password_mode(ime_context_h context, bool *password_mode) { if (!context || !password_mode) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (!g_running) - return INPUTMETHOD_ERROR_NOT_RUNNING; + return IME_ERROR_NOT_RUNNING; *password_mode = static_cast(context->password_mode); - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_context_get_input_hint(inputmethod_context_h context, Ecore_IMF_Input_Hints *input_hint) +int ime_context_get_input_hint(ime_context_h context, Ecore_IMF_Input_Hints *input_hint) { if (!context || !input_hint) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (!g_running) - return INPUTMETHOD_ERROR_NOT_RUNNING; + return IME_ERROR_NOT_RUNNING; *input_hint = context->input_hint; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_context_get_bidi_direction(inputmethod_context_h context, Ecore_IMF_BiDi_Direction *bidi) +int ime_context_get_bidi_direction(ime_context_h context, Ecore_IMF_BiDi_Direction *bidi) { if (!context || !bidi) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (!g_running) - return INPUTMETHOD_ERROR_NOT_RUNNING; + return IME_ERROR_NOT_RUNNING; *bidi = context->bidi_direction; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -int inputmethod_context_get_language(inputmethod_context_h context, Ecore_IMF_Input_Panel_Lang *language) +int ime_context_get_language(ime_context_h context, Ecore_IMF_Input_Panel_Lang *language) { if (!context || !language) - return INPUTMETHOD_ERROR_INVALID_PARAMETER; + return IME_ERROR_INVALID_PARAMETER; if (!g_running) - return INPUTMETHOD_ERROR_NOT_RUNNING; + return IME_ERROR_NOT_RUNNING; *language = context->language; - return INPUTMETHOD_ERROR_NONE; + return IME_ERROR_NONE; } -- 2.7.4