aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_object_image.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:23:26 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:23:26 +0200
commita395f5ded565f3578a138b061106884dee7d5e18 (patch)
treee5dcc1a34f9026c7a7699560cc15c532ac09bbdc /src/lib/evas/canvas/evas_object_image.c
parentevas: move Evas.VG to use Efl.Gfx.Fill. (diff)
downloadefl-a395f5ded565f3578a138b061106884dee7d5e18.tar.gz
efl: add Efl.Gfx.View and use it in Evas.Image.
Diffstat (limited to 'src/lib/evas/canvas/evas_object_image.c')
-rw-r--r--src/lib/evas/canvas/evas_object_image.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/evas_object_image.c b/src/lib/evas/canvas/evas_object_image.c
index 54fb8f647d..ebd3292c99 100644
--- a/src/lib/evas/canvas/evas_object_image.c
+++ b/src/lib/evas/canvas/evas_object_image.c
@@ -1073,8 +1073,14 @@ _evas_image_efl_gfx_fill_fill_spread_get(Eo *eo_obj EINA_UNUSED,
return (Evas_Fill_Spread)o->cur->spread;;
}
+EAPI void
+evas_object_image_size_set(Evas_Image *obj, int w, int h)
+{
+ eo_do((Evas_Image *)obj, efl_gfx_view_size_set(w, h));
+}
+
EOLIAN static void
-_evas_image_size_set(Eo *eo_obj, Evas_Image_Data *o, int w, int h)
+_evas_image_efl_gfx_view_size_set(Eo *eo_obj, Evas_Image_Data *o, int w, int h)
{
Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
@@ -1137,8 +1143,16 @@ _evas_image_size_set(Eo *eo_obj, Evas_Image_Data *o, int w, int h)
evas_object_change(eo_obj, obj);
}
+EAPI void
+evas_object_image_size_get(const Evas_Image *obj, int *w, int *h)
+{
+ eo_do((Evas_Image *)obj, efl_gfx_view_size_get(w, h));
+}
+
EOLIAN static void
-_evas_image_size_get(Eo *eo_obj EINA_UNUSED, Evas_Image_Data *o, int *w, int *h)
+_evas_image_efl_gfx_view_size_get(Eo *eo_obj EINA_UNUSED,
+ Evas_Image_Data *o,
+ int *w, int *h)
{
if (w) *w = o->cur->image.w;
if (h) *h = o->cur->image.h;