diff options
author | Xavi Artigas <xavierartigas@yahoo.es> | 2018-04-19 13:26:59 +0200 |
---|---|---|
committer | Cedric Bail <cedric@osg.samsung.com> | 2018-04-24 09:03:40 -0700 |
commit | 5697f6e94b69ab1b5dd0e7b2f62b550fa226d56d (patch) | |
tree | 1eaf97d0f46d36b47feafbe98901e591c3cb9ccb /src/lib/emotion/emotion_smart.c | |
parent | 6073833b903f321dca982c6d79934f9d4df6ebe4 (diff) |
Efl.Gfx.Image* (From Efl.Image*)
Ref https://phab.enlightenment.org/T6847
Reviewed-by: Cedric Bail <cedric@osg.samsung.com>
Diffstat (limited to '')
-rw-r--r-- | src/lib/emotion/emotion_smart.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/emotion/emotion_smart.c b/src/lib/emotion/emotion_smart.c index 291a7ec2fc..d52e27eaca 100644 --- a/src/lib/emotion/emotion_smart.c +++ b/src/lib/emotion/emotion_smart.c | |||
@@ -740,13 +740,13 @@ emotion_object_size_get(const Evas_Object *obj, int *iw, int *ih) | |||
740 | { | 740 | { |
741 | Eina_Size2D sz; | 741 | Eina_Size2D sz; |
742 | 742 | ||
743 | sz = efl_image_load_controller_load_size_get(obj); | 743 | sz = efl_gfx_image_load_controller_load_size_get(obj); |
744 | if (iw) *iw = sz.w; | 744 | if (iw) *iw = sz.w; |
745 | if (ih) *ih = sz.h; | 745 | if (ih) *ih = sz.h; |
746 | } | 746 | } |
747 | 747 | ||
748 | EOLIAN static Eina_Size2D | 748 | EOLIAN static Eina_Size2D |
749 | _efl_canvas_video_efl_image_load_controller_load_size_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd) | 749 | _efl_canvas_video_efl_gfx_image_load_controller_load_size_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd) |
750 | { | 750 | { |
751 | // FIXME: Shouldn't this be efl_gfx_view_size instead? | 751 | // FIXME: Shouldn't this be efl_gfx_view_size instead? |
752 | return EINA_SIZE2D(sd->video.w, sd->video.h); | 752 | return EINA_SIZE2D(sd->video.w, sd->video.h); |
@@ -755,11 +755,11 @@ _efl_canvas_video_efl_image_load_controller_load_size_get(const Eo *obj EINA_UNU | |||
755 | EAPI void | 755 | EAPI void |
756 | emotion_object_smooth_scale_set(Evas_Object *obj, Eina_Bool smooth) | 756 | emotion_object_smooth_scale_set(Evas_Object *obj, Eina_Bool smooth) |
757 | { | 757 | { |
758 | efl_image_smooth_scale_set(obj, smooth); | 758 | efl_gfx_image_smooth_scale_set(obj, smooth); |
759 | } | 759 | } |
760 | 760 | ||
761 | EOLIAN static void | 761 | EOLIAN static void |
762 | _efl_canvas_video_efl_image_smooth_scale_set(Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd, Eina_Bool smooth) | 762 | _efl_canvas_video_efl_gfx_image_smooth_scale_set(Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd, Eina_Bool smooth) |
763 | { | 763 | { |
764 | evas_object_image_smooth_scale_set(sd->obj, smooth); | 764 | evas_object_image_smooth_scale_set(sd->obj, smooth); |
765 | } | 765 | } |
@@ -767,11 +767,11 @@ _efl_canvas_video_efl_image_smooth_scale_set(Eo *obj EINA_UNUSED, Efl_Canvas_Vid | |||
767 | EAPI Eina_Bool | 767 | EAPI Eina_Bool |
768 | emotion_object_smooth_scale_get(const Evas_Object *obj) | 768 | emotion_object_smooth_scale_get(const Evas_Object *obj) |
769 | { | 769 | { |
770 | return efl_image_smooth_scale_get(obj); | 770 | return efl_gfx_image_smooth_scale_get(obj); |
771 | } | 771 | } |
772 | 772 | ||
773 | EOLIAN static Eina_Bool | 773 | EOLIAN static Eina_Bool |
774 | _efl_canvas_video_efl_image_smooth_scale_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd) | 774 | _efl_canvas_video_efl_gfx_image_smooth_scale_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd) |
775 | { | 775 | { |
776 | return evas_object_image_smooth_scale_get(sd->obj); | 776 | return evas_object_image_smooth_scale_get(sd->obj); |
777 | } | 777 | } |
@@ -779,11 +779,11 @@ _efl_canvas_video_efl_image_smooth_scale_get(const Eo *obj EINA_UNUSED, Efl_Canv | |||
779 | EAPI double | 779 | EAPI double |
780 | emotion_object_ratio_get(const Evas_Object *obj) | 780 | emotion_object_ratio_get(const Evas_Object *obj) |
781 | { | 781 | { |
782 | return efl_image_ratio_get(obj); | 782 | return efl_gfx_image_ratio_get(obj); |
783 | } | 783 | } |
784 | 784 | ||
785 | EOLIAN static double | 785 | EOLIAN static double |
786 | _efl_canvas_video_efl_image_ratio_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd) | 786 | _efl_canvas_video_efl_gfx_image_ratio_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd) |
787 | { | 787 | { |
788 | if (!sd->engine_instance) return 0.0; | 788 | if (!sd->engine_instance) return 0.0; |
789 | return sd->ratio; | 789 | return sd->ratio; |