summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_object_image.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas/canvas/evas_object_image.c')
-rw-r--r--src/lib/evas/canvas/evas_object_image.c58
1 files changed, 29 insertions, 29 deletions
diff --git a/src/lib/evas/canvas/evas_object_image.c b/src/lib/evas/canvas/evas_object_image.c
index ed2e604..fc4a680 100644
--- a/src/lib/evas/canvas/evas_object_image.c
+++ b/src/lib/evas/canvas/evas_object_image.c
@@ -350,7 +350,7 @@ _evas_image_eo_base_constructor(Eo *eo_obj, Evas_Image_Data *o)
350 Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS); 350 Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
351 Evas_Colorspace cspace; 351 Evas_Colorspace cspace;
352 352
353 eo_obj = eo_do_super_ret(eo_obj, MY_CLASS, eo_obj, eo_constructor()); 353 eo_obj = eo_constructor(eo_super(eo_obj, MY_CLASS));
354 354
355 evas_object_image_init(eo_obj); 355 evas_object_image_init(eo_obj);
356 356
@@ -407,7 +407,7 @@ evas_object_image_memfile_set(Evas_Object *eo_obj, void *data, int size, char *f
407 407
408 f = eina_file_virtualize(NULL, data, size, EINA_TRUE); 408 f = eina_file_virtualize(NULL, data, size, EINA_TRUE);
409 if (!f) return ; 409 if (!f) return ;
410 eo_do(eo_obj, efl_file_mmap_set(f, key)); 410 efl_file_mmap_set(eo_obj, f, key);
411 eina_file_close(f); 411 eina_file_close(f);
412} 412}
413 413
@@ -732,7 +732,7 @@ EAPI Eina_Bool
732evas_object_image_source_unset(Evas_Object *eo_obj) 732evas_object_image_source_unset(Evas_Object *eo_obj)
733{ 733{
734 Eina_Bool result = EINA_FALSE; 734 Eina_Bool result = EINA_FALSE;
735 eo_do(eo_obj, result = evas_obj_image_source_set(NULL)); 735 result = evas_obj_image_source_set(eo_obj, NULL);
736 return result; 736 return result;
737} 737}
738 738
@@ -786,7 +786,7 @@ _evas_image_source_events_get(Eo *eo_obj, Evas_Image_Data *_pd EINA_UNUSED)
786EOLIAN static void 786EOLIAN static void
787_evas_image_eo_base_dbg_info_get(Eo *eo_obj, Evas_Image_Data *o, Eo_Dbg_Info *root) 787_evas_image_eo_base_dbg_info_get(Eo *eo_obj, Evas_Image_Data *o, Eo_Dbg_Info *root)
788{ 788{
789 eo_do_super(eo_obj, MY_CLASS, eo_dbg_info_get(root)); 789 eo_dbg_info_get(eo_super(eo_obj, MY_CLASS), root);
790 Eo_Dbg_Info *group = EO_DBG_INFO_LIST_APPEND(root, MY_CLASS_NAME); 790 Eo_Dbg_Info *group = EO_DBG_INFO_LIST_APPEND(root, MY_CLASS_NAME);
791 791
792 const char *file, *key; 792 const char *file, *key;
@@ -804,7 +804,7 @@ _evas_image_eo_base_dbg_info_get(Eo *eo_obj, Evas_Image_Data *o, Eo_Dbg_Info *ro
804 if (evas_object_image_load_error_get(eo_obj) != EVAS_LOAD_ERROR_NONE) 804 if (evas_object_image_load_error_get(eo_obj) != EVAS_LOAD_ERROR_NONE)
805 { 805 {
806 Evas_Load_Error error = EVAS_LOAD_ERROR_GENERIC; 806 Evas_Load_Error error = EVAS_LOAD_ERROR_GENERIC;
807 eo_do(eo_obj, error = evas_obj_image_load_error_get()); 807 error = evas_obj_image_load_error_get(eo_obj);
808 EO_DBG_INFO_APPEND(group, "Load Error", EINA_VALUE_TYPE_STRING, 808 EO_DBG_INFO_APPEND(group, "Load Error", EINA_VALUE_TYPE_STRING,
809 evas_load_error_str(error)); 809 evas_load_error_str(error));
810 } 810 }
@@ -986,7 +986,7 @@ evas_object_image_fill_set(Evas_Image *obj,
986 Evas_Coord x, Evas_Coord y, 986 Evas_Coord x, Evas_Coord y,
987 Evas_Coord w, Evas_Coord h) 987 Evas_Coord w, Evas_Coord h)
988{ 988{
989 eo_do((Evas_Image *)obj, efl_gfx_fill_set(x, y, w, h)); 989 efl_gfx_fill_set((Evas_Image *)obj, x, y, w, h);
990} 990}
991 991
992EOLIAN static void 992EOLIAN static void
@@ -1025,7 +1025,7 @@ evas_object_image_fill_get(const Evas_Image *obj,
1025 Evas_Coord *x, Evas_Coord *y, 1025 Evas_Coord *x, Evas_Coord *y,
1026 Evas_Coord *w, Evas_Coord *h) 1026 Evas_Coord *w, Evas_Coord *h)
1027{ 1027{
1028 eo_do((Evas_Image *)obj, efl_gfx_fill_get(x, y, w, h)); 1028 efl_gfx_fill_get((Evas_Image *)obj, x, y, w, h);
1029} 1029}
1030 1030
1031EOLIAN static void 1031EOLIAN static void
@@ -1041,7 +1041,7 @@ _evas_image_efl_gfx_fill_fill_get(Eo *eo_obj EINA_UNUSED, Evas_Image_Data *o,
1041EAPI void 1041EAPI void
1042evas_object_image_fill_spread_set(Evas_Image *obj, Evas_Fill_Spread spread) 1042evas_object_image_fill_spread_set(Evas_Image *obj, Evas_Fill_Spread spread)
1043{ 1043{
1044 eo_do((Evas_Image *)obj, efl_gfx_fill_spread_set(spread)); 1044 efl_gfx_fill_spread_set((Evas_Image *)obj, spread);
1045} 1045}
1046 1046
1047EOLIAN static void 1047EOLIAN static void
@@ -1066,7 +1066,7 @@ evas_object_image_fill_spread_get(const Evas_Image *obj)
1066{ 1066{
1067 Evas_Fill_Spread ret; 1067 Evas_Fill_Spread ret;
1068 1068
1069 return eo_do_ret((Evas_Image *)obj, ret, efl_gfx_fill_spread_get()); 1069 return efl_gfx_fill_spread_get((Evas_Image *)obj);
1070} 1070}
1071 1071
1072EOLIAN static Efl_Gfx_Fill_Spread 1072EOLIAN static Efl_Gfx_Fill_Spread
@@ -1079,7 +1079,7 @@ _evas_image_efl_gfx_fill_fill_spread_get(Eo *eo_obj EINA_UNUSED,
1079EAPI void 1079EAPI void
1080evas_object_image_size_set(Evas_Image *obj, int w, int h) 1080evas_object_image_size_set(Evas_Image *obj, int w, int h)
1081{ 1081{
1082 eo_do((Evas_Image *)obj, efl_gfx_view_size_set(w, h)); 1082 efl_gfx_view_size_set((Evas_Image *)obj, w, h);
1083} 1083}
1084 1084
1085EOLIAN static void 1085EOLIAN static void
@@ -1149,7 +1149,7 @@ _evas_image_efl_gfx_view_size_set(Eo *eo_obj, Evas_Image_Data *o, int w, int h)
1149EAPI void 1149EAPI void
1150evas_object_image_size_get(const Evas_Image *obj, int *w, int *h) 1150evas_object_image_size_get(const Evas_Image *obj, int *w, int *h)
1151{ 1151{
1152 eo_do((Evas_Image *)obj, efl_gfx_view_size_get(w, h)); 1152 efl_gfx_view_size_get((Evas_Image *)obj, w, h);
1153} 1153}
1154 1154
1155EOLIAN static void 1155EOLIAN static void
@@ -1383,9 +1383,9 @@ evas_object_image_preload(Evas_Object *eo_obj, Eina_Bool cancel)
1383 return; 1383 return;
1384 MAGIC_CHECK_END(); 1384 MAGIC_CHECK_END();
1385 if (cancel) 1385 if (cancel)
1386 eo_do(eo_obj, evas_obj_image_preload_cancel()); 1386 evas_obj_image_preload_cancel(eo_obj);
1387 else 1387 else
1388 eo_do(eo_obj, evas_obj_image_preload_begin()); 1388 evas_obj_image_preload_begin(eo_obj);
1389} 1389}
1390 1390
1391static void 1391static void
@@ -2188,7 +2188,7 @@ evas_object_image_native_surface_set(Evas_Object *eo_obj, Evas_Native_Surface *s
2188 if (surf) // We need to unset native surf on del to remove shared hash refs 2188 if (surf) // We need to unset native surf on del to remove shared hash refs
2189 evas_object_event_callback_add 2189 evas_object_event_callback_add
2190 (eo_obj, EVAS_CALLBACK_DEL, _on_image_native_surface_del, NULL); 2190 (eo_obj, EVAS_CALLBACK_DEL, _on_image_native_surface_del, NULL);
2191 eo_do(eo_obj, evas_obj_image_native_surface_set(surf)); 2191 evas_obj_image_native_surface_set(eo_obj, surf);
2192} 2192}
2193 2193
2194EOLIAN static void 2194EOLIAN static void
@@ -2766,7 +2766,7 @@ _3d_render(Evas *eo_e, Evas_Object *eo_obj EINA_UNUSED,
2766 scene_data.depth_constant = pd_scene->depth_constant; 2766 scene_data.depth_constant = pd_scene->depth_constant;
2767 2767
2768 /* Phase 1 - Update scene graph tree. */ 2768 /* Phase 1 - Update scene graph tree. */
2769 eo_do(scene, evas_canvas3d_object_update()); 2769 evas_canvas3d_object_update(scene);
2770 2770
2771 /* Phase 2 - Do frustum culling and get visible model nodes. */ 2771 /* Phase 2 - Do frustum culling and get visible model nodes. */
2772 evas_canvas3d_node_tree_traverse(pd_scene->root_node, 2772 evas_canvas3d_node_tree_traverse(pd_scene->root_node,
@@ -2964,7 +2964,7 @@ _evas_image_eo_base_destructor(Eo *eo_obj, Evas_Image_Data *_pd EINA_UNUSED)
2964 2964
2965 evas_object_image_video_surface_set(eo_obj, NULL); 2965 evas_object_image_video_surface_set(eo_obj, NULL);
2966 evas_object_image_free(eo_obj, obj); 2966 evas_object_image_free(eo_obj, obj);
2967 eo_do_super(eo_obj, MY_CLASS, eo_destructor()); 2967 eo_destructor(eo_super(eo_obj, MY_CLASS));
2968} 2968}
2969 2969
2970void 2970void
@@ -3408,7 +3408,7 @@ _evas_image_render(Eo *eo_obj, Evas_Object_Protected_Data *obj,
3408 if (oi->has_filter) 3408 if (oi->has_filter)
3409 { 3409 {
3410 void *output_buffer = NULL; 3410 void *output_buffer = NULL;
3411 eo_do(source->object, output_buffer = evas_filter_output_buffer_get()); 3411 output_buffer = evas_filter_output_buffer_get(source->object);
3412 if (output_buffer) 3412 if (output_buffer)
3413 pixels = output_buffer; 3413 pixels = output_buffer;
3414 } 3414 }
@@ -3749,7 +3749,7 @@ evas_object_image_render_pre(Evas_Object *eo_obj,
3749 Evas_Canvas3D_Scene *scene = o->cur->scene; 3749 Evas_Canvas3D_Scene *scene = o->cur->scene;
3750 Eina_Bool dirty; 3750 Eina_Bool dirty;
3751 3751
3752 eo_do(scene, dirty = evas_canvas3d_object_dirty_get(EVAS_CANVAS3D_STATE_ANY)); 3752 dirty = evas_canvas3d_object_dirty_get(scene, EVAS_CANVAS3D_STATE_ANY);
3753 if (dirty) 3753 if (dirty)
3754 { 3754 {
3755 evas_object_render_pre_prev_cur_add(&e->clip_changes, eo_obj, obj); 3755 evas_object_render_pre_prev_cur_add(&e->clip_changes, eo_obj, obj);
@@ -4913,64 +4913,64 @@ _evas_object_image_surface_get(Evas_Object *eo, Evas_Object_Protected_Data *obj)
4913EAPI void 4913EAPI void
4914evas_object_image_file_set(Eo *obj, const char *file, const char *key) 4914evas_object_image_file_set(Eo *obj, const char *file, const char *key)
4915{ 4915{
4916 eo_do((Eo *) obj, efl_file_set(file, key)); 4916 efl_file_set((Eo *) obj, file, key);
4917} 4917}
4918 4918
4919EAPI void 4919EAPI void
4920evas_object_image_file_get(const Eo *obj, const char **file, const char **key) 4920evas_object_image_file_get(const Eo *obj, const char **file, const char **key)
4921{ 4921{
4922 eo_do((Eo *) obj, efl_file_get(file, key)); 4922 efl_file_get((Eo *) obj, file, key);
4923} 4923}
4924 4924
4925EAPI void 4925EAPI void
4926evas_object_image_mmap_set(Evas_Image *obj, const Eina_File *f, const char *key) 4926evas_object_image_mmap_set(Evas_Image *obj, const Eina_File *f, const char *key)
4927{ 4927{
4928 eo_do((Evas_Image *)obj, efl_file_mmap_set(f, key)); 4928 efl_file_mmap_set((Evas_Image *)obj, f, key);
4929} 4929}
4930 4930
4931EAPI void 4931EAPI void
4932evas_object_image_mmap_get(const Evas_Image *obj, const Eina_File **f, const char **key) 4932evas_object_image_mmap_get(const Evas_Image *obj, const Eina_File **f, const char **key)
4933{ 4933{
4934 eo_do((Evas_Image *)obj, efl_file_mmap_get(f, key)); 4934 efl_file_mmap_get((Evas_Image *)obj, f, key);
4935} 4935}
4936 4936
4937EAPI Eina_Bool 4937EAPI Eina_Bool
4938evas_object_image_save(const Eo *obj, const char *file, const char *key, const char *flags) 4938evas_object_image_save(const Eo *obj, const char *file, const char *key, const char *flags)
4939{ 4939{
4940 Eina_Bool ret; 4940 Eina_Bool ret;
4941 return eo_do_ret((Eo *) obj, ret, efl_file_save(file, key, flags)); 4941 return efl_file_save((Eo *) obj, file, key, flags);
4942} 4942}
4943 4943
4944EAPI Eina_Bool 4944EAPI Eina_Bool
4945evas_object_image_animated_get(const Eo *obj) 4945evas_object_image_animated_get(const Eo *obj)
4946{ 4946{
4947 Eina_Bool ret; 4947 Eina_Bool ret;
4948 return eo_do_ret((Eo *) obj, ret, efl_image_animated_get()); 4948 return efl_image_animated_get((Eo *) obj);
4949} 4949}
4950 4950
4951EAPI void 4951EAPI void
4952evas_object_image_load_size_set(Eo *obj, int w, int h) 4952evas_object_image_load_size_set(Eo *obj, int w, int h)
4953{ 4953{
4954 eo_do((Eo *) obj, efl_image_load_size_set(w, h)); 4954 efl_image_load_size_set((Eo *) obj, w, h);
4955} 4955}
4956 4956
4957EAPI void 4957EAPI void
4958evas_object_image_load_size_get(const Eo *obj, int *w, int *h) 4958evas_object_image_load_size_get(const Eo *obj, int *w, int *h)
4959{ 4959{
4960 eo_do((Eo *) obj, efl_image_load_size_get(w, h)); 4960 efl_image_load_size_get((Eo *) obj, w, h);
4961} 4961}
4962 4962
4963EAPI void 4963EAPI void
4964evas_object_image_smooth_scale_set(Eo *obj, Eina_Bool smooth_scale) 4964evas_object_image_smooth_scale_set(Eo *obj, Eina_Bool smooth_scale)
4965{ 4965{
4966 eo_do((Eo *) obj, efl_image_smooth_scale_set(smooth_scale)); 4966 efl_image_smooth_scale_set((Eo *) obj, smooth_scale);
4967} 4967}
4968 4968
4969EAPI Eina_Bool 4969EAPI Eina_Bool
4970evas_object_image_smooth_scale_get(const Eo *obj) 4970evas_object_image_smooth_scale_get(const Eo *obj)
4971{ 4971{
4972 Eina_Bool ret; 4972 Eina_Bool ret;
4973 return eo_do_ret((Eo *) obj, ret, efl_image_smooth_scale_get()); 4973 return efl_image_smooth_scale_get((Eo *) obj);
4974} 4974}
4975 4975
4976EOLIAN static void 4976EOLIAN static void
@@ -4978,7 +4978,7 @@ _evas_image_efl_gfx_filter_filter_program_set(Eo *obj, Evas_Image_Data *pd EINA_
4978 const char *code, const char *name) 4978 const char *code, const char *name)
4979{ 4979{
4980 pd->has_filter = (code != NULL); 4980 pd->has_filter = (code != NULL);
4981 eo_do_super(obj, MY_CLASS, efl_gfx_filter_program_set(code, name)); 4981 efl_gfx_filter_program_set(eo_super(obj, MY_CLASS), code, name);
4982} 4982}
4983 4983
4984#include "canvas/evas_image.eo.c" 4984#include "canvas/evas_image.eo.c"