summaryrefslogtreecommitdiff
path: root/src/lib/ecore_imf/Ecore_IMF.h
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2014-08-30 12:45:38 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2014-08-30 12:45:44 +0900
commit44326f9ed8030647fca283e0f7fc00443f12102d (patch)
tree1c16b685c0386e5ef31355503790de0cb1ecf7b9 /src/lib/ecore_imf/Ecore_IMF.h
parent39cb5207186665959cf6101854e9e973dafb93f4 (diff)
ecore_imf: Add ecore_imf_context_input_hint_set API
Diffstat (limited to 'src/lib/ecore_imf/Ecore_IMF.h')
-rw-r--r--src/lib/ecore_imf/Ecore_IMF.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/lib/ecore_imf/Ecore_IMF.h b/src/lib/ecore_imf/Ecore_IMF.h
index 0cfd9bad0e..c1a255c21d 100644
--- a/src/lib/ecore_imf/Ecore_IMF.h
+++ b/src/lib/ecore_imf/Ecore_IMF.h
@@ -312,6 +312,18 @@ typedef enum
312 ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_SIGNIN /**< Sign-in @since 1.8 */ 312 ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_SIGNIN /**< Sign-in @since 1.8 */
313} Ecore_IMF_Input_Panel_Return_Key_Type; 313} Ecore_IMF_Input_Panel_Return_Key_Type;
314 314
315/**
316 * @typedef Ecore_IMF_Input_Hints
317 * @brief Enumeration that defines the types of Ecore_IMF Input Hints.
318 * @since 1.12
319 */
320typedef enum
321{
322 ECORE_IMF_INPUT_HINT_NONE = 0, /**< No active hints @since 1.12 */
323 ECORE_IMF_INPUT_HINT_AUTO_COMPLETE = 1 << 0, /**< Suggest word auto completion @since 1.12 */
324 ECORE_IMF_INPUT_HINT_SENSITIVE_DATA = 1 << 1, /**< Typed text should not be stored. @since 1.12 */
325} Ecore_IMF_Input_Hints;
326
315enum 327enum
316{ 328{
317 ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL, /**< The plain normal number layout @since 1.8 */ 329 ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL, /**< The plain normal number layout @since 1.8 */
@@ -522,6 +534,7 @@ struct _Ecore_IMF_Context_Class
522 void (*input_panel_event_callback_del) (Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Event type, void (*func) (void *data, Ecore_IMF_Context *ctx, int value)); 534 void (*input_panel_event_callback_del) (Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Event type, void (*func) (void *data, Ecore_IMF_Context *ctx, int value));
523 void (*input_panel_language_locale_get) (Ecore_IMF_Context *ctx, char **lang); 535 void (*input_panel_language_locale_get) (Ecore_IMF_Context *ctx, char **lang);
524 void (*candidate_panel_geometry_get)(Ecore_IMF_Context *ctx, int *x, int *y, int *w, int *h); 536 void (*candidate_panel_geometry_get)(Ecore_IMF_Context *ctx, int *x, int *y, int *w, int *h);
537 void (*input_hint_set) (Ecore_IMF_Context *ctx, Ecore_IMF_Input_Hints input_hints);
525}; 538};
526 539
527struct _Ecore_IMF_Context_Info 540struct _Ecore_IMF_Context_Info
@@ -1272,6 +1285,27 @@ EAPI void ecore_imf_context_autocapital_type_set(Ecore_
1272EAPI Ecore_IMF_Autocapital_Type ecore_imf_context_autocapital_type_get(Ecore_IMF_Context *ctx); 1285EAPI Ecore_IMF_Autocapital_Type ecore_imf_context_autocapital_type_get(Ecore_IMF_Context *ctx);
1273 1286
1274/** 1287/**
1288 * @brief Sets the input hint which allows input methods to fine-tune their behavior.
1289 *
1290 * @param ctx An #Ecore_IMF_Context
1291 * @param hints input hint
1292 * @note The default input hint is @c ECORE_IMF_INPUT_HINT_AUTO_COMPLETE.
1293 * @ingroup Ecore_IMF_Context_Group
1294 * @since 1.12
1295 */
1296EAPI void ecore_imf_context_input_hint_set(Ecore_IMF_Context *ctx, Ecore_IMF_Input_Hints hints);
1297
1298/**
1299 * @brief Gets the value of input hint.
1300 *
1301 * @param ctx An #Ecore_IMF_Context
1302 * @return The value of input hint
1303 * @ingroup Ecore_IMF_Context_Group
1304 * @since 1.12
1305 */
1306EAPI Ecore_IMF_Input_Hints ecore_imf_context_input_hint_get(Ecore_IMF_Context *ctx);
1307
1308/**
1275 * Ask the Input Method Context to show the control panel of using Input Method. 1309 * Ask the Input Method Context to show the control panel of using Input Method.
1276 * 1310 *
1277 * @param ctx An #Ecore_IMF_Context. 1311 * @param ctx An #Ecore_IMF_Context.