summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_layer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas/canvas/evas_layer.c')
-rw-r--r--src/lib/evas/canvas/evas_layer.c38
1 files changed, 7 insertions, 31 deletions
diff --git a/src/lib/evas/canvas/evas_layer.c b/src/lib/evas/canvas/evas_layer.c
index a52391e..036f2e0 100644
--- a/src/lib/evas/canvas/evas_layer.c
+++ b/src/lib/evas/canvas/evas_layer.c
@@ -174,22 +174,10 @@ _evas_object_layer_set_child(Evas_Object *eo_obj, Evas_Object *par, short l)
174 174
175/* public functions */ 175/* public functions */
176 176
177EAPI void 177EOLIAN void
178evas_object_layer_set(Evas_Object *eo_obj, short l) 178_evas_object_layer_set(Eo *eo_obj, Evas_Object_Protected_Data *obj EINA_UNUSED, short l)
179{ 179{
180 MAGIC_CHECK(eo_obj, Evas_Object, MAGIC_OBJ);
181 return;
182 MAGIC_CHECK_END();
183 eo_do(eo_obj, evas_obj_layer_set(l));
184}
185
186void
187_layer_set(Eo *eo_obj, void *_obj, va_list *list)
188{
189 short l = va_arg(*list, int);
190
191 Evas *eo_e; 180 Evas *eo_e;
192 Evas_Object_Protected_Data *obj = _obj;
193 181
194 if (obj->delete_me) return; 182 if (obj->delete_me) return;
195 if (evas_object_intercept_call_layer_set(eo_obj, obj, l)) return; 183 if (evas_object_intercept_call_layer_set(eo_obj, obj, l)) return;
@@ -243,26 +231,14 @@ _layer_set(Eo *eo_obj, void *_obj, va_list *list)
243 evas_object_inform_call_restack(eo_obj); 231 evas_object_inform_call_restack(eo_obj);
244} 232}
245 233
246EAPI short 234EOLIAN short
247evas_object_layer_get(const Evas_Object *eo_obj) 235_evas_object_layer_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
248{ 236{
249 MAGIC_CHECK(eo_obj, Evas_Object, MAGIC_OBJ);
250 return 0;
251 MAGIC_CHECK_END();
252 short layer = 0;
253 eo_do((Eo *)eo_obj, evas_obj_layer_get(&layer));
254 return layer;
255}
256
257void
258_layer_get(Eo *eo_obj EINA_UNUSED, void *_obj, va_list *list)
259{
260 short *layer = va_arg(*list, short *);
261 const Evas_Object_Protected_Data *obj = _obj;
262 if (obj->smart.parent) 237 if (obj->smart.parent)
263 { 238 {
264 Evas_Object_Protected_Data *smart_parent_obj = eo_data_scope_get(obj->smart.parent, EVAS_OBJ_CLASS); 239 Evas_Object_Protected_Data *smart_parent_obj = eo_data_scope_get(obj->smart.parent, EVAS_OBJ_CLASS);
265 *layer = smart_parent_obj->cur->layer; 240 return smart_parent_obj->cur->layer;
266 } 241 }
267 *layer = obj->cur->layer; 242 return obj->cur->layer;
268} 243}
244