}
EAPI Elm_Input_Panel_Layout
-elm_entry_input_panel_layout_get(Evas_Object *obj)
+elm_entry_input_panel_layout_get(const Evas_Object *obj)
{
ELM_CHECK_WIDTYPE(obj, widtype) ELM_INPUT_PANEL_LAYOUT_INVALID;
Widget_Data *wd = elm_widget_data_get(obj);
}
EAPI Elm_Autocapital_Type
-elm_entry_autocapital_type_get(Evas_Object *obj)
+elm_entry_autocapital_type_get(const Evas_Object *obj)
{
ELM_CHECK_WIDTYPE(obj, widtype) ELM_AUTOCAPITAL_TYPE_NONE;
Widget_Data *wd = elm_widget_data_get(obj);
}
EAPI void
+elm_entry_prediction_allow_set(Evas_Object *obj, Eina_Bool prediction)
+{
+ ELM_CHECK_WIDTYPE(obj, widtype);
+ Widget_Data *wd = elm_widget_data_get(obj);
+ if (!wd) return;
+
+ wd->prediction_allow = prediction;
+ edje_object_part_text_prediction_allow_set(wd->ent, "elm.text", prediction);
+}
+
+EAPI Eina_Bool
+elm_entry_prediction_allow_get(const Evas_Object *obj)
+{
+ ELM_CHECK_WIDTYPE(obj, widtype) EINA_TRUE;
+ Widget_Data *wd = elm_widget_data_get(obj);
+ if (!wd) return EINA_TRUE;
+
+ return wd->prediction_allow;
+}
+
+EAPI void
elm_entry_imf_context_reset(Evas_Object *obj)
{
ELM_CHECK_WIDTYPE(obj, widtype);
}
EAPI Eina_Bool
-elm_entry_input_panel_enabled_get(Evas_Object *obj)
+elm_entry_input_panel_enabled_get(const Evas_Object *obj)
{
ELM_CHECK_WIDTYPE(obj, widtype) EINA_TRUE;
Widget_Data *wd = elm_widget_data_get(obj);
*
* @see elm_entry_input_panel_layout_set
*/
-EAPI Elm_Input_Panel_Layout elm_entry_input_panel_layout_get(Evas_Object *obj);
+EAPI Elm_Input_Panel_Layout elm_entry_input_panel_layout_get(const Evas_Object *obj);
/**
* Set the autocapitalization type on the immodule.
* @param obj The entry object
* @return autocapitalization type
*/
-EAPI Elm_Autocapital_Type elm_entry_autocapital_type_get(Evas_Object *obj);
+EAPI Elm_Autocapital_Type elm_entry_autocapital_type_get(const Evas_Object *obj);
/**
* Sets the attribute to show the input panel automatically.
* @param obj The entry object
* @return EINA_TRUE if input panel will be appeared when the entry is clicked or has a focus, EINA_FALSE otherwise
*/
-EAPI Eina_Bool elm_entry_input_panel_enabled_get(Evas_Object *obj);
+EAPI Eina_Bool elm_entry_input_panel_enabled_get(const Evas_Object *obj);
/**
* Show the input panel (virtual keyboard) based on the input panel property of entry such as layout, autocapital types, and so on.
*/
EAPI void elm_entry_imf_context_reset(Evas_Object *obj);
+/**
+ * Set whether the entry should allow to use the text prediction.
+ *
+ * @param obj The entry object
+ * @param prediction Whether the entry should allow to use the text prediction.
+ */
+EAPI void elm_entry_prediction_allow_set(Evas_Object *obj, Eina_Bool prediction);
+
+/**
+ * Get whether the entry should allow to use the text prediction.
+ *
+ * @param obj The entry object
+ * @return EINA_TRUE if it allows to use the text prediction, otherwise EINA_FALSE.
+ */
+EAPI Eina_Bool elm_entry_prediction_allow_get(const Evas_Object *obj);
+
/* pre-made filters for entries */
/**