Add elm_entry_input_panel_show/hide
authorJihoon Kim <imfine98@gmail.com>
Mon, 13 Feb 2012 06:50:45 +0000 (06:50 +0000)
committerJihoon Kim <imfine98@gmail.com>
Mon, 13 Feb 2012 06:50:45 +0000 (06:50 +0000)
SVN revision: 67875

src/lib/elm_entry.c
src/lib/elm_entry.h

index d347c18..1cd3b80 100644 (file)
@@ -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");
+}
+
index 21fabf2..3586de3 100644 (file)
@@ -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 */
 
 /**