zmike pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=04c2d313d7e9c798395949591639c705bc1f1710
commit 04c2d313d7e9c798395949591639c705bc1f1710 Author: Marcel Hollerbach <[email protected]> Date: Wed Jan 23 14:55:51 2019 -0500 efl_ui_image: implement the last two APIs from edje 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 | 17 +++++++++++++++++ src/lib/elementary/efl_ui_image.eo | 2 ++ 2 files changed, 19 insertions(+) diff --git a/src/lib/elementary/efl_ui_image.c b/src/lib/elementary/efl_ui_image.c index e17a21f665..19895eeb70 100644 --- a/src/lib/elementary/efl_ui_image.c +++ b/src/lib/elementary/efl_ui_image.c @@ -1156,6 +1156,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) { diff --git a/src/lib/elementary/efl_ui_image.eo b/src/lib/elementary/efl_ui_image.eo index d512ad881f..33b164f80a 100644 --- a/src/lib/elementary/efl_ui_image.eo +++ b/src/lib/elementary/efl_ui_image.eo @@ -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; } --
