From: Jihoon Kim Date: Mon, 13 Feb 2012 06:50:45 +0000 (+0000) Subject: Add elm_entry_input_panel_show/hide X-Git-Tag: v1.0.0~1035 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=04ac75af7edcb51cca2863594d8c10d597de9cd3;p=platform%2Fupstream%2Felementary.git Add elm_entry_input_panel_show/hide SVN revision: 67875 --- diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index d347c18..1cd3b80 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -3575,3 +3575,23 @@ elm_entry_input_panel_enabled_get(Evas_Object *obj) return wd->input_panel_enable; } +EAPI void +elm_entry_input_panel_show(Evas_Object *obj) +{ + ELM_CHECK_WIDTYPE(obj, widtype); + Widget_Data *wd = elm_widget_data_get(obj); + if (!wd) return; + + edje_object_part_text_input_panel_show(wd->ent, "elm.text"); +} + +EAPI Eina_Bool +elm_entry_input_panel_hide(Evas_Object *obj) +{ + ELM_CHECK_WIDTYPE(obj, widtype); + Widget_Data *wd = elm_widget_data_get(obj); + if (!wd) return; + + edje_object_part_text_input_panel_hide(wd->ent, "elm.text"); +} + diff --git a/src/lib/elm_entry.h b/src/lib/elm_entry.h index 21fabf2..3586de3 100644 --- a/src/lib/elm_entry.h +++ b/src/lib/elm_entry.h @@ -1112,6 +1112,26 @@ EAPI void elm_entry_input_panel_enabled_set(Evas_Object *obj, */ EAPI Eina_Bool elm_entry_input_panel_enabled_get(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. + * + * Note that input panel is shown or hidden automatically according to the focus state of entry widget. + * This API can be used in the case of manually controling by using elm_entry_input_panel_enabled_set(en, EINA_FALSE) + * + * @param obj The entry object + */ +EAPI void elm_entry_input_panel_show(Evas_Object *obj); + +/** + * Hide the input panel (virtual keyboard). + * + * Note that input panel is shown or hidden automatically according to the focus state of entry widget. + * This API can be used in the case of manually controling by using elm_entry_input_panel_enabled_set(en, EINA_FALSE) + * + * @param obj The entry object + */ +EAPI Eina_Bool elm_entry_input_panel_hide(Evas_Object *obj); + /* pre-made filters for entries */ /**