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
This commit is contained in:
Marcel Hollerbach 2019-01-23 14:55:51 -05:00 committed by Mike Blumenkrantz
parent 7c5c93eac0
commit 04c2d313d7
2 changed files with 19 additions and 0 deletions

View File

@ -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)
{

View 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; }