void (*input_hint_set) (Ecore_IMF_Context *ctx, Ecore_IMF_Input_Hints input_hints); /**< Sets input hint to fine-tune input methods behavior */
void (*bidi_direction_set) (Ecore_IMF_Context *ctx, Ecore_IMF_BiDi_Direction direction); /**< Set bidirectionality at the cursor position */
Ecore_IMF_Input_Panel_Keyboard_Mode (*keyboard_mode_get) (Ecore_IMF_Context *ctx); /**< Return the current keyboard mode of the input panel */
+ void (*prediction_hint_set) (Ecore_IMF_Context *ctx, char *prediction_hint); /**< Set the prediction hint to the input panel */
};
/**
EAPI Ecore_IMF_BiDi_Direction ecore_imf_context_bidi_direction_get(Ecore_IMF_Context *ctx);
/**
+ * @ingroup Ecore_IMF_Context_Group
* @brief Get the keyboard mode on the input panel.
*
- * @ingroup Ecore_IMF_Context_Group
* @since 1.20.0
*
* @param[in] ctx An #Ecore_IMF_Context
* @return the keyboard mode
*
* @since_tizen 4.0
+ * @endif
*/
EAPI Ecore_IMF_Input_Panel_Keyboard_Mode ecore_imf_context_keyboard_mode_get(Ecore_IMF_Context *ctx);
+/**
+ * @ingroup Ecore_IMF_Context_Group
+ * @brief Set the prediction hint string to deliver to the input panel.
+ * This string is used to set prediction hint.
+ *
+ * @since 1.20.0
+ *
+ * @param[in] ctx An #Ecore_IMF_Context
+ * @param[in] prediction_hint The prediction hint string.
+ *
+ * @since_tizen 4.0
+ * @endif
+ */
+EAPI void ecore_imf_context_prediction_hint_set(Ecore_IMF_Context *ctx, char *prediction_hint);
+
/* The following entry points must be exported by each input method module
*/
return mode;
}
+
+EAPI void
+ecore_imf_context_prediction_hint_set(Ecore_IMF_Context *ctx, char *prediction_hint)
+{
+ if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
+ {
+ ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
+ "ecore_imf_context_prediction_hint_set");
+ return;
+ }
+
+ if (ctx->klass->prediction_hint_set)
+ ctx->klass->prediction_hint_set(ctx, prediction_hint);
+}