forked from enlightenment/efl
elm_entry: add elm_entry_imf_context_get
It provides internal input method context similar to elm_entry_textblock_get() Note: Do NOT cache the return object. SVN revision: 68622
This commit is contained in:
parent
8575a8ab26
commit
862ef7961c
|
@ -3745,3 +3745,12 @@ elm_entry_input_panel_return_key_autoenabled_set(Evas_Object *obj, Eina_Bool ena
|
||||||
_check_enable_return_key(obj);
|
_check_enable_return_key(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EAPI void*
|
||||||
|
elm_entry_imf_context_get(Evas_Object *obj)
|
||||||
|
{
|
||||||
|
ELM_CHECK_WIDTYPE(obj, widtype) NULL;
|
||||||
|
Widget_Data *wd = elm_widget_data_get(obj);
|
||||||
|
if (!wd) return NULL;
|
||||||
|
|
||||||
|
return edje_object_part_text_imf_context_get(wd->ent, "elm.text");
|
||||||
|
}
|
||||||
|
|
|
@ -1394,6 +1394,19 @@ struct _Elm_Entry_Filter_Accept_Set
|
||||||
*/
|
*/
|
||||||
EAPI void elm_entry_filter_accept_set(void *data, Evas_Object *entry, char **text);
|
EAPI void elm_entry_filter_accept_set(void *data, Evas_Object *entry, char **text);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the input method context of the entry.
|
||||||
|
*
|
||||||
|
* This function exposes the internal input method context.
|
||||||
|
*
|
||||||
|
* IMPORTANT: Many functions may change (i.e delete and create a new one)
|
||||||
|
* the internal input method context. Do NOT cache the returned object.
|
||||||
|
*
|
||||||
|
* @param obj The entry object
|
||||||
|
* @return The input method context (Ecore_IMF_Context *) in entry.
|
||||||
|
*/
|
||||||
|
EAPI void *elm_entry_imf_context_get(Evas_Object *obj);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue