From: Amitesh Singh Date: Wed, 7 Jun 2017 05:57:06 +0000 (+0900) Subject: Efl.Ui.Image.Zoomable: implement efl.player.playable.get X-Git-Tag: upstream/1.20.0~723 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=835262f5926e221656b2fa792e09f485b9ce6fa9;p=platform%2Fupstream%2Fefl.git Efl.Ui.Image.Zoomable: implement efl.player.playable.get ref T5352 --- diff --git a/src/lib/elementary/efl_ui_image_zoomable.c b/src/lib/elementary/efl_ui_image_zoomable.c index 24a3f0e..3488bb0 100644 --- a/src/lib/elementary/efl_ui_image_zoomable.c +++ b/src/lib/elementary/efl_ui_image_zoomable.c @@ -2617,6 +2617,13 @@ _efl_ui_image_zoomable_gesture_enabled_get(Eo *obj EINA_UNUSED, Efl_Ui_Image_Zoo return sd->do_gesture; } +EOLIAN static Eina_Bool +_efl_ui_image_zoomable_efl_player_playable_get(Eo *obj EINA_UNUSED, Efl_Ui_Image_Zoomable_Data *sd) +{ + if (sd->icon_edje) return EINA_TRUE; + return evas_object_image_animated_get(sd->img); +} + EOLIAN static void _efl_ui_image_zoomable_class_constructor(Efl_Class *klass) { diff --git a/src/lib/elementary/efl_ui_image_zoomable.eo b/src/lib/elementary/efl_ui_image_zoomable.eo index cba8268..0d50295 100644 --- a/src/lib/elementary/efl_ui_image_zoomable.eo +++ b/src/lib/elementary/efl_ui_image_zoomable.eo @@ -52,6 +52,7 @@ class Efl.Ui.Image.Zoomable (Efl.Ui.Image, Efl.Ui.Zoom, Efl.Gfx.View.view_size { get; } Efl.Image.image_size { get; } Efl.Ui.Image.icon { set; get; } + Efl.Player.playable { get; } Efl.Ui.Zoom.zoom_animation { set; get; } Efl.Ui.Zoom.zoom { set; get; } Efl.Ui.Zoom.zoom_mode { set; get; }