summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas/canvas/evas_stack.c')
-rw-r--r--src/lib/evas/canvas/evas_stack.c131
1 files changed, 20 insertions, 111 deletions
diff --git a/src/lib/evas/canvas/evas_stack.c b/src/lib/evas/canvas/evas_stack.c
index 6fbc78c..4d6d270 100644
--- a/src/lib/evas/canvas/evas_stack.c
+++ b/src/lib/evas/canvas/evas_stack.c
@@ -37,20 +37,9 @@ evas_object_below_get_internal(const Evas_Object_Protected_Data *obj)
37 return NULL; 37 return NULL;
38} 38}
39 39
40EAPI void 40EOLIAN void
41evas_object_raise(Evas_Object *eo_obj) 41_evas_object_raise(Eo *eo_obj, Evas_Object_Protected_Data *obj)
42{ 42{
43 MAGIC_CHECK(eo_obj, Evas_Object, MAGIC_OBJ);
44 return;
45 MAGIC_CHECK_END();
46 eo_do(eo_obj, evas_obj_raise());
47}
48
49void
50_raise(Eo *eo_obj, void *_pd, va_list *list EINA_UNUSED)
51{
52 Evas_Object_Protected_Data *obj = _pd;
53
54 if (evas_object_intercept_call_raise(eo_obj, obj)) return; 43 if (evas_object_intercept_call_raise(eo_obj, obj)) return;
55 44
56 if (!((EINA_INLIST_GET(obj))->next)) 45 if (!((EINA_INLIST_GET(obj))->next))
@@ -94,20 +83,9 @@ _raise(Eo *eo_obj, void *_pd, va_list *list EINA_UNUSED)
94 } 83 }
95} 84}
96 85
97EAPI void 86EOLIAN void
98evas_object_lower(Evas_Object *eo_obj) 87_evas_object_lower(Eo *eo_obj, Evas_Object_Protected_Data *obj)
99{
100 MAGIC_CHECK(eo_obj, Evas_Object, MAGIC_OBJ);
101 return;
102 MAGIC_CHECK_END();
103 eo_do(eo_obj, evas_obj_lower());
104}
105
106void
107_lower(Eo *eo_obj, void *_pd, va_list *list EINA_UNUSED)
108{ 88{
109 Evas_Object_Protected_Data *obj = _pd;
110
111 if (evas_object_intercept_call_lower(eo_obj, obj)) return; 89 if (evas_object_intercept_call_lower(eo_obj, obj)) return;
112 90
113 if (!((EINA_INLIST_GET(obj))->prev)) 91 if (!((EINA_INLIST_GET(obj))->prev))
@@ -152,21 +130,9 @@ _lower(Eo *eo_obj, void *_pd, va_list *list EINA_UNUSED)
152 } 130 }
153} 131}
154 132
155EAPI void 133EOLIAN void
156evas_object_stack_above(Evas_Object *eo_obj, Evas_Object *above) 134_evas_object_stack_above(Eo *eo_obj, Evas_Object_Protected_Data *obj, Evas_Object *eo_above)
157{ 135{
158 MAGIC_CHECK(eo_obj, Evas_Object, MAGIC_OBJ);
159 return;
160 MAGIC_CHECK_END();
161 eo_do(eo_obj, evas_obj_stack_above(above));
162}
163
164void
165_stack_above(Eo *eo_obj, void *_pd, va_list *list)
166{
167 Evas_Object_Protected_Data *obj = _pd;
168 Evas_Object *eo_above = va_arg(*list, Evas_Object *);
169
170 if (!eo_above) return; 136 if (!eo_above) return;
171 if (eo_obj == eo_above) return; 137 if (eo_obj == eo_above) return;
172 if (evas_object_intercept_call_stack_above(eo_obj, obj, eo_above)) return; 138 if (evas_object_intercept_call_stack_above(eo_obj, obj, eo_above)) return;
@@ -240,21 +206,9 @@ _stack_above(Eo *eo_obj, void *_pd, va_list *list)
240 } 206 }
241} 207}
242 208
243EAPI void 209EOLIAN void
244evas_object_stack_below(Evas_Object *eo_obj, Evas_Object *eo_below) 210_evas_object_stack_below(Eo *eo_obj, Evas_Object_Protected_Data *obj, Evas_Object *eo_below)
245{ 211{
246 MAGIC_CHECK(eo_obj, Evas_Object, MAGIC_OBJ);
247 return;
248 MAGIC_CHECK_END();
249 eo_do(eo_obj, evas_obj_stack_below(eo_below));
250}
251
252void
253_stack_below(Eo *eo_obj, void *_pd, va_list *list)
254{
255 Evas_Object *eo_below = va_arg(*list, Evas_Object *);
256 Evas_Object_Protected_Data *obj = _pd;
257
258 if (!eo_below) return; 212 if (!eo_below) return;
259 if (eo_obj == eo_below) return; 213 if (eo_obj == eo_below) return;
260 if (evas_object_intercept_call_stack_below(eo_obj, obj, eo_below)) return; 214 if (evas_object_intercept_call_stack_below(eo_obj, obj, eo_below)) return;
@@ -328,96 +282,50 @@ _stack_below(Eo *eo_obj, void *_pd, va_list *list)
328 } 282 }
329} 283}
330 284
331EAPI Evas_Object * 285EOLIAN Evas_Object *
332evas_object_above_get(const Evas_Object *eo_obj) 286_evas_object_above_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
333{ 287{
334 MAGIC_CHECK(eo_obj, Evas_Object, MAGIC_OBJ);
335 return NULL;
336 MAGIC_CHECK_END();
337 Evas_Object *ret = NULL;
338 eo_do((Eo *)eo_obj, evas_obj_above_get(&ret));
339 return ret;
340}
341
342void
343_above_get(Eo *eo_obj EINA_UNUSED, void *_pd, va_list *list)
344{
345 const Evas_Object_Protected_Data *obj = _pd;
346 Evas_Object **ret = va_arg(*list, Evas_Object **);
347
348 if (obj->smart.parent) 288 if (obj->smart.parent)
349 { 289 {
350 do 290 do
351 { 291 {
352 obj = (Evas_Object_Protected_Data *)((EINA_INLIST_GET(obj))->next); 292 obj = (Evas_Object_Protected_Data *)((EINA_INLIST_GET(obj))->next);
353 if ((obj) && (!obj->delete_me)) 293 if ((obj) && (!obj->delete_me)) return obj->object;
354 {
355 *ret = obj->object;
356 return;
357 }
358 } 294 }
359 while (obj); 295 while (obj);
360 *ret = NULL; 296 return NULL;
361 return;
362 } 297 }
363 obj = evas_object_above_get_internal(obj); 298 obj = evas_object_above_get_internal(obj);
364 while (obj) 299 while (obj)
365 { 300 {
366 if (!obj->delete_me) 301 if (!obj->delete_me) return obj->object;
367 {
368 *ret = obj->object;
369 return;
370 }
371 obj = evas_object_above_get_internal(obj); 302 obj = evas_object_above_get_internal(obj);
372 } 303 }
373 *ret = NULL;
374}
375
376EAPI Evas_Object *
377evas_object_below_get(const Evas_Object *eo_obj)
378{
379 MAGIC_CHECK(eo_obj, Evas_Object, MAGIC_OBJ);
380 return NULL; 304 return NULL;
381 MAGIC_CHECK_END();
382 Evas_Object *ret = NULL;
383 eo_do((Eo *)eo_obj, evas_obj_below_get(&ret));
384 return ret;
385} 305}
386 306
387void 307EOLIAN Evas_Object *
388_below_get(Eo *eo_obj EINA_UNUSED, void *_pd, va_list *list) 308_evas_object_below_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
389{ 309{
390 const Evas_Object_Protected_Data *obj = _pd;
391 Evas_Object **ret = va_arg(*list, Evas_Object **);
392 *ret = NULL;
393 if (obj->smart.parent) 310 if (obj->smart.parent)
394 { 311 {
395 do 312 do
396 { 313 {
397 obj = (Evas_Object_Protected_Data *)((EINA_INLIST_GET(obj))->prev); 314 obj = (Evas_Object_Protected_Data *)((EINA_INLIST_GET(obj))->prev);
398 if ((obj) && (!obj->delete_me)) 315 if ((obj) && (!obj->delete_me)) return obj->object;
399 {
400 *ret = obj->object;
401 return;
402 }
403 } 316 }
404 while (obj); 317 while (obj);
405 return; 318 return NULL;
406 } 319 }
407 obj = evas_object_below_get_internal(obj); 320 obj = evas_object_below_get_internal(obj);
408 while (obj) 321 while (obj)
409 { 322 {
410 if (!obj->delete_me) 323 if (!obj->delete_me) return obj->object;
411 {
412 *ret = obj->object;
413 return;
414 }
415 obj = evas_object_below_get_internal(obj); 324 obj = evas_object_below_get_internal(obj);
416 } 325 }
326 return NULL;
417} 327}
418 328
419
420
421EAPI Evas_Object * 329EAPI Evas_Object *
422evas_object_bottom_get(const Evas *e) 330evas_object_bottom_get(const Evas *e)
423{ 331{
@@ -497,3 +405,4 @@ _canvas_object_top_get(Eo *eo_e EINA_UNUSED, void *_pd, va_list *params_list)
497 405
498 *ret = obj->object; 406 *ret = obj->object;
499} 407}
408