efl_ui_image: implement the last two APIs from edje
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Wed, 23 Jan 2019 19:55:51 +0000 (14:55 -0500)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 24 Jan 2019 05:20:19 +0000 (14:20 +0900)
Summary:
this just takes the API and redirects it to the internal edje object if
there is any. If there is no edje object, then just default values are
returned.

ref T5719
Depends on D7738

Reviewers: zmike

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T5719

Differential Revision: https://phab.enlightenment.org/D7739

src/lib/elementary/efl_ui_image.c
src/lib/elementary/efl_ui_image.eo

index 5d24e75eccee7cadd6f9ca1aaf10114df4580831..bc0e377b2ed1b1ba45afc155c34b76dd5e904e19 100644 (file)
@@ -1173,6 +1173,23 @@ _efl_ui_image_efl_file_file_set(Eo *obj, Efl_Ui_Image_Data *sd, const char *file
    return ret;
 }
 
+EOLIAN static const char*
+_efl_ui_image_efl_layout_group_group_data_get(const Eo *obj EINA_UNUSED, Efl_Ui_Image_Data *sd, const char *key)
+{
+  if (sd->edje)
+    return edje_object_data_get(sd->img, key);
+  return NULL;
+}
+
+EOLIAN static Eina_Bool
+_efl_ui_image_efl_layout_group_part_exist_get(const Eo *obj EINA_UNUSED, Efl_Ui_Image_Data *sd, const char *part)
+{
+   if (sd->edje)
+     return edje_object_part_exists(sd->img, part);
+   return EINA_FALSE;
+}
+
+
 EOLIAN static void
 _efl_ui_image_efl_layout_signal_signal_emit(Eo *obj EINA_UNUSED, Efl_Ui_Image_Data *sd, const char *emission, const char *source)
 {
index d512ad881f24a15cc3a79f8fcbfd2bfa588306f0..33b164f80a306a49a5363a68f31207d177d75eba 100644 (file)
@@ -107,6 +107,8 @@ class Efl.Ui.Image extends Efl.Ui.Widget implements Efl.Ui.Clickable, Efl.Ui.Dra
       Efl.Layout.Signal.signal_emit;
       Efl.Layout.Group.group_size_min { get; }
       Efl.Layout.Group.group_size_max { get; }
+      Efl.Layout.Group.group_data { get; }
+      Efl.Layout.Group.part_exist { get; }
       Efl.Layout.Calc.calc_size_min;
       Efl.Layout.Calc.calc_force;
       Efl.Canvas.Object.clip { set; }