From ddbf3e063bb80d8760f6edf9c8b895953be60f85 Mon Sep 17 00:00:00 2001 From: jihoon Date: Mon, 13 Feb 2012 06:50:45 +0000 Subject: [PATCH] Add elm_entry_input_panel_show/hide Change-Id: I6d721db735107e3c02c14b7c8e7754b70d2c5c6c git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@67875 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_entry.c | 20 ++++++++++++++++++++ src/lib/elm_entry.h | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index 604e729..685eb55 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -4473,6 +4473,26 @@ elm_entry_autocapitalization_set(Evas_Object *obj, Eina_Bool autocap) edje_object_part_text_autocapital_type_set(wd->ent, "elm.text", wd->autocapital_type); } +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 void +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"); +} + EINA_DEPRECATED EAPI void elm_entry_autoperiod_set(Evas_Object *obj, Eina_Bool autoperiod) { diff --git a/src/lib/elm_entry.h b/src/lib/elm_entry.h index 1fbbc1f..c3966b5 100644 --- a/src/lib/elm_entry.h +++ b/src/lib/elm_entry.h @@ -1181,6 +1181,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 void elm_entry_input_panel_hide(Evas_Object *obj); + /* pre-made filters for entries */ /** -- 2.7.4