summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-03-08 16:54:52 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-03-08 16:59:45 +0100
commit334b1a54298c2809490cea940e579041882b8510 (patch)
tree33fc50d552c09bd1fe4403cc5cb3c59fe23d712d
parent525895f3c44dd0bf876d92efcbd06d5a7b8575f4 (diff)
efl.gfx.image: namespace events for this class
Reviewers: segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl_api Differential Revision: https://phab.enlightenment.org/D8257
-rw-r--r--src/lib/efl/interfaces/efl_gfx_image.eo6
-rw-r--r--src/lib/evas/canvas/evas_callbacks.c6
-rw-r--r--src/lib/evas/canvas/evas_object_inform.c6
3 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/efl/interfaces/efl_gfx_image.eo b/src/lib/efl/interfaces/efl_gfx_image.eo
index 11eb6bfaa8..3167b3ec3b 100644
--- a/src/lib/efl/interfaces/efl_gfx_image.eo
+++ b/src/lib/efl/interfaces/efl_gfx_image.eo
@@ -213,9 +213,9 @@ interface @beta Efl.Gfx.Image
213 } 213 }
214 } 214 }
215 events { 215 events {
216 preload: void; [[Image data has been preloaded.]] 216 image,preload: void; [[Image data has been preloaded.]]
217 resize: void; [[Image was resized (its pixel data).]] 217 image,resize: void; [[Image was resized (its pixel data).]]
218 unload: void; [[Image data has been unloaded (by some mechanism in 218 image,unload: void; [[Image data has been unloaded (by some mechanism in
219 EFL that threw out the original image data).]] 219 EFL that threw out the original image data).]]
220 } 220 }
221} 221}
diff --git a/src/lib/evas/canvas/evas_callbacks.c b/src/lib/evas/canvas/evas_callbacks.c
index 724eaa390f..f5dbb15353 100644
--- a/src/lib/evas/canvas/evas_callbacks.c
+++ b/src/lib/evas/canvas/evas_callbacks.c
@@ -56,17 +56,17 @@ DEFINE_EVAS_CALLBACKS(_legacy_evas_callback_table, EVAS_CALLBACK_LAST,
56 EVAS_OBJECT_EVENT_DEL, 56 EVAS_OBJECT_EVENT_DEL,
57 EFL_EVENT_HOLD, 57 EFL_EVENT_HOLD,
58 EFL_GFX_ENTITY_EVENT_HINTS_CHANGED, 58 EFL_GFX_ENTITY_EVENT_HINTS_CHANGED,
59 EFL_GFX_IMAGE_EVENT_PRELOAD, 59 EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD,
60 EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_IN, 60 EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_IN,
61 EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_OUT, 61 EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_OUT,
62 EVAS_CANVAS_EVENT_RENDER_FLUSH_PRE, 62 EVAS_CANVAS_EVENT_RENDER_FLUSH_PRE,
63 EVAS_CANVAS_EVENT_RENDER_FLUSH_POST, 63 EVAS_CANVAS_EVENT_RENDER_FLUSH_POST,
64 EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_IN, 64 EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_IN,
65 EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_OUT, 65 EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_OUT,
66 EFL_GFX_IMAGE_EVENT_UNLOAD, 66 EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD,
67 EFL_CANVAS_SCENE_EVENT_RENDER_PRE, 67 EFL_CANVAS_SCENE_EVENT_RENDER_PRE,
68 EFL_CANVAS_SCENE_EVENT_RENDER_POST, 68 EFL_CANVAS_SCENE_EVENT_RENDER_POST,
69 EFL_GFX_IMAGE_EVENT_RESIZE, 69 EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE,
70 EFL_CANVAS_SCENE_EVENT_DEVICE_CHANGED, 70 EFL_CANVAS_SCENE_EVENT_DEVICE_CHANGED,
71 EFL_EVENT_POINTER_AXIS, 71 EFL_EVENT_POINTER_AXIS,
72 EVAS_CANVAS_EVENT_VIEWPORT_RESIZE ); 72 EVAS_CANVAS_EVENT_VIEWPORT_RESIZE );
diff --git a/src/lib/evas/canvas/evas_object_inform.c b/src/lib/evas/canvas/evas_object_inform.c
index 8e1ea01ac4..f13b3bfbae 100644
--- a/src/lib/evas/canvas/evas_object_inform.c
+++ b/src/lib/evas/canvas/evas_object_inform.c
@@ -93,7 +93,7 @@ evas_object_inform_call_image_preloaded(Evas_Object *eo_obj)
93 (preload & EVAS_IMAGE_PRELOAD_CANCEL)) 93 (preload & EVAS_IMAGE_PRELOAD_CANCEL))
94 { 94 {
95 event_id = _evas_object_event_new(); 95 event_id = _evas_object_event_new();
96 evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_IMAGE_PRELOADED, NULL, event_id, EFL_GFX_IMAGE_EVENT_PRELOAD); 96 evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_IMAGE_PRELOADED, NULL, event_id, EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD);
97 _evas_post_event_callback_call(obj->layer->evas->evas, obj->layer->evas, event_id); 97 _evas_post_event_callback_call(obj->layer->evas->evas, obj->layer->evas, event_id);
98 } 98 }
99} 99}
@@ -104,7 +104,7 @@ evas_object_inform_call_image_unloaded(Evas_Object *eo_obj)
104 Evas_Object_Protected_Data *obj = efl_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS); 104 Evas_Object_Protected_Data *obj = efl_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
105 int event_id = _evas_object_event_new(); 105 int event_id = _evas_object_event_new();
106 106
107 evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_IMAGE_UNLOADED, NULL, event_id, EFL_GFX_IMAGE_EVENT_UNLOAD); 107 evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_IMAGE_UNLOADED, NULL, event_id, EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD);
108 _evas_post_event_callback_call(obj->layer->evas->evas, obj->layer->evas, event_id); 108 _evas_post_event_callback_call(obj->layer->evas->evas, obj->layer->evas, event_id);
109} 109}
110 110
@@ -114,6 +114,6 @@ evas_object_inform_call_image_resize(Evas_Object *eo_obj)
114 Evas_Object_Protected_Data *obj = efl_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS); 114 Evas_Object_Protected_Data *obj = efl_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
115 int event_id = _evas_object_event_new(); 115 int event_id = _evas_object_event_new();
116 116
117 evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_IMAGE_RESIZE, NULL, event_id, EFL_GFX_IMAGE_EVENT_RESIZE); 117 evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_IMAGE_RESIZE, NULL, event_id, EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE);
118 _evas_post_event_callback_call(obj->layer->evas->evas, obj->layer->evas, event_id); 118 _evas_post_event_callback_call(obj->layer->evas->evas, obj->layer->evas, event_id);
119} 119}