Add APIs related to input panel in the scrolled entry
authorJihoon Kim <jihoon48.kim@samsung.com>
Fri, 9 Jul 2010 00:27:08 +0000 (09:27 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 9 Jul 2010 00:27:08 +0000 (09:27 +0900)
src/lib/Elementary.h.in
src/lib/elc_scrolled_entry.c

index d2cce29..ba00be5 100755 (executable)
@@ -1606,8 +1606,12 @@ extern "C" {
    EAPI Eina_Bool    elm_scrolled_entry_context_menu_disabled_get(const Evas_Object *obj);
    EAPI void         elm_scrolled_entry_scrollbar_policy_set(Evas_Object *obj, Elm_Scroller_Policy h, Elm_Scroller_Policy v);
    EAPI void         elm_scrolled_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
-   EAPI void                     elm_scrolled_entry_maximum_bytes_set(Evas_Object *obj, int max_no_of_bytes);
-   EAPI void                   elm_scrolled_entry_password_show_last_character_set(Evas_Object *obj, Eina_Bool show_last_character);
+   EAPI void         elm_scrolled_entry_maximum_bytes_set(Evas_Object *obj, int max_no_of_bytes);
+   EAPI void         elm_scrolled_entry_password_show_last_character_set(Evas_Object *obj, Eina_Bool show_last_character);
+
+   EAPI void         elm_scrolled_entry_input_panel_enabled_set(Evas_Object *obj, Eina_Bool enabled);
+   EAPI void         elm_scrolled_entry_input_panel_layout_set(Evas_Object *obj, Elm_Input_Panel_Layout layout);
+   EAPI Ecore_IMF_Context *elm_scrolled_entry_imf_context_get(Evas_Object *obj);
 
    EAPI Evas_Object *elm_conformant_add(Evas_Object *parent);
    EAPI void         elm_conformant_content_set(Evas_Object *obj, Evas_Object *content);
index f0260eb..a7fc8d7 100644 (file)
@@ -970,3 +970,48 @@ elm_scrolled_entry_password_show_last_character_set(Evas_Object *obj, Eina_Bool
    elm_entry_password_show_last_character_set(wd->entry, show_last_character);
 }
 
+EAPI Ecore_IMF_Context *elm_scrolled_entry_imf_context_get(Evas_Object *obj)
+{
+   ELM_CHECK_WIDTYPE(obj, widtype);
+   Widget_Data *wd = elm_widget_data_get(obj);
+   if (!wd || !wd->entry) return NULL;
+  
+   return elm_entry_imf_context_get(wd->entry);
+}
+
+/**
+ * enable to show the input panel automatically.
+ *
+ * @param obj The scrolled entry object
+ * @param enabled If true, the input panel is enabled
+ *
+ * @ingroup Entry
+ */
+EAPI void
+elm_scrolled_entry_input_panel_enabled_set(Evas_Object *obj, Eina_Bool enabled)
+{
+   ELM_CHECK_WIDTYPE(obj, widtype);
+   Widget_Data *wd = elm_widget_data_get(obj);
+   if (!wd || !wd->entry) return;
+
+   elm_entry_input_panel_enabled_set(wd->entry, enabled);
+}
+
+/**
+ * Set the input panel layout of the scrolled entry
+ *
+ * @param obj The scrolled entry object
+ * @param layout the layout to set
+ *
+ * @ingroup Entry
+ */
+EAPI void
+elm_scrolled_entry_input_panel_layout_set(Evas_Object *obj, Elm_Input_Panel_Layout layout)
+{
+   ELM_CHECK_WIDTYPE(obj, widtype);
+   Widget_Data *wd = elm_widget_data_get(obj);
+   if (!wd || !wd->entry) return;
+
+   elm_entry_input_panel_layout_set(wd->entry, layout);
+}
+