2012-10-08 18:58:41 -07:00
|
|
|
static Evas_Object_Protected_Data *
|
|
|
|
evas_object_above_get_internal(const Evas_Object_Protected_Data *obj)
|
2002-11-08 00:02:15 -08:00
|
|
|
{
|
2008-10-17 04:23:18 -07:00
|
|
|
if ((EINA_INLIST_GET(obj))->next)
|
2012-10-08 18:58:41 -07:00
|
|
|
return (Evas_Object_Protected_Data *)((EINA_INLIST_GET(obj))->next);
|
2002-11-08 00:02:15 -08:00
|
|
|
else
|
|
|
|
{
|
2018-09-13 02:24:35 -07:00
|
|
|
Evas_Layer *l = (Evas_Layer *)(EINA_INLIST_GET(obj->layer))->next;
|
2005-05-21 19:49:50 -07:00
|
|
|
|
2018-09-13 02:24:35 -07:00
|
|
|
for (; l; l = (Evas_Layer *)(EINA_INLIST_GET(l))->next)
|
|
|
|
{
|
|
|
|
if (l->objects)
|
|
|
|
return l->objects;
|
2011-10-31 03:16:18 -07:00
|
|
|
}
|
2002-11-08 00:02:15 -08:00
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2012-10-08 18:58:41 -07:00
|
|
|
static Evas_Object_Protected_Data *
|
|
|
|
evas_object_below_get_internal(const Evas_Object_Protected_Data *obj)
|
2002-11-08 00:02:15 -08:00
|
|
|
{
|
2008-10-17 04:23:18 -07:00
|
|
|
if ((EINA_INLIST_GET(obj))->prev)
|
2012-10-08 18:58:41 -07:00
|
|
|
return (Evas_Object_Protected_Data *)((EINA_INLIST_GET(obj))->prev);
|
2002-11-08 00:02:15 -08:00
|
|
|
else
|
|
|
|
{
|
2013-07-11 03:39:46 -07:00
|
|
|
Evas_Layer *l = (Evas_Layer *)(EINA_INLIST_GET(obj->layer))->prev;
|
2005-05-21 19:49:50 -07:00
|
|
|
|
2013-07-11 03:39:46 -07:00
|
|
|
for (; l; l = (Evas_Layer *)(EINA_INLIST_GET(l))->prev)
|
|
|
|
{
|
|
|
|
if (l->objects)
|
|
|
|
return (Evas_Object_Protected_Data *)((EINA_INLIST_GET((l->objects)))->last);
|
2011-10-31 03:16:18 -07:00
|
|
|
}
|
2002-11-08 00:02:15 -08:00
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2015-04-03 07:23:22 -07:00
|
|
|
EAPI void
|
|
|
|
evas_object_raise(Evas_Object *obj)
|
|
|
|
{
|
2019-02-14 05:57:22 -08:00
|
|
|
efl_gfx_stack_raise_to_top((Evas_Object *)obj);
|
2015-04-03 07:23:22 -07:00
|
|
|
}
|
|
|
|
|
2014-03-11 04:51:35 -07:00
|
|
|
EOLIAN void
|
2019-02-14 05:57:22 -08:00
|
|
|
_efl_canvas_object_efl_gfx_stack_raise_to_top(Eo *eo_obj, Evas_Object_Protected_Data *obj)
|
2002-11-08 00:02:15 -08:00
|
|
|
{
|
2017-02-17 01:46:09 -08:00
|
|
|
if (_evas_object_intercept_call_evas(obj, EVAS_OBJECT_INTERCEPT_CB_RAISE, 1))
|
|
|
|
return;
|
2013-08-28 18:53:48 -07:00
|
|
|
|
2008-10-17 04:23:18 -07:00
|
|
|
if (!((EINA_INLIST_GET(obj))->next))
|
2002-12-09 22:45:18 -08:00
|
|
|
{
|
2017-10-19 16:11:30 -07:00
|
|
|
evas_object_inform_call_restack(eo_obj, obj);
|
2011-10-31 03:16:18 -07:00
|
|
|
return;
|
2002-12-09 22:45:18 -08:00
|
|
|
}
|
2005-10-26 19:44:36 -07:00
|
|
|
if (obj->smart.parent)
|
2012-10-08 18:58:41 -07:00
|
|
|
evas_object_smart_member_raise(eo_obj);
|
2005-10-26 19:44:36 -07:00
|
|
|
else
|
|
|
|
{
|
2011-10-31 03:16:18 -07:00
|
|
|
if (obj->in_layer)
|
2012-10-08 18:58:41 -07:00
|
|
|
obj->layer->objects = (Evas_Object_Protected_Data *)eina_inlist_demote(EINA_INLIST_GET(obj->layer->objects), EINA_INLIST_GET(obj));
|
2005-08-25 23:53:37 -07:00
|
|
|
}
|
2002-12-09 22:45:18 -08:00
|
|
|
if (obj->clip.clipees)
|
|
|
|
{
|
2017-10-19 16:11:30 -07:00
|
|
|
evas_object_inform_call_restack(eo_obj, obj);
|
2011-10-31 03:16:18 -07:00
|
|
|
return;
|
2002-12-09 22:45:18 -08:00
|
|
|
}
|
2012-10-08 18:58:41 -07:00
|
|
|
if (obj->layer) evas_render_invalidate(obj->layer->evas->evas);
|
2011-10-31 03:16:18 -07:00
|
|
|
obj->restack = EINA_TRUE;
|
2012-10-08 18:58:41 -07:00
|
|
|
evas_object_change(eo_obj, obj);
|
2017-10-19 16:11:30 -07:00
|
|
|
evas_object_inform_call_restack(eo_obj, obj);
|
2014-03-12 18:44:15 -07:00
|
|
|
if (!obj->layer || obj->layer->evas->is_frozen) return;
|
2012-10-21 21:57:32 -07:00
|
|
|
if ((!evas_event_passes_through(eo_obj, obj)) &&
|
|
|
|
(!evas_event_freezes_through(eo_obj, obj)) &&
|
|
|
|
(!evas_object_is_source_invisible(eo_obj, obj)))
|
2002-11-08 00:02:15 -08:00
|
|
|
{
|
2016-10-21 05:25:41 -07:00
|
|
|
if (!obj->is_smart && obj->cur->visible)
|
2011-10-31 03:16:18 -07:00
|
|
|
{
|
2016-10-21 05:25:41 -07:00
|
|
|
_evas_canvas_event_pointer_in_rect_mouse_move_feed(obj->layer->evas,
|
|
|
|
eo_obj,
|
|
|
|
obj, 1, 1,
|
|
|
|
EINA_FALSE,
|
|
|
|
NULL);
|
2011-10-31 03:16:18 -07:00
|
|
|
}
|
2002-11-08 00:02:15 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-03 07:23:22 -07:00
|
|
|
EAPI void
|
|
|
|
evas_object_lower(Evas_Object *obj)
|
|
|
|
{
|
2019-02-14 05:57:22 -08:00
|
|
|
efl_gfx_stack_lower_to_bottom((Evas_Object *)obj);
|
2015-04-03 07:23:22 -07:00
|
|
|
}
|
|
|
|
|
2014-03-11 04:51:35 -07:00
|
|
|
EOLIAN void
|
2019-02-14 05:57:22 -08:00
|
|
|
_efl_canvas_object_efl_gfx_stack_lower_to_bottom(Eo *eo_obj, Evas_Object_Protected_Data *obj)
|
2012-10-08 18:58:41 -07:00
|
|
|
{
|
2017-02-17 01:46:09 -08:00
|
|
|
if (_evas_object_intercept_call_evas(obj, EVAS_OBJECT_INTERCEPT_CB_LOWER, 1))
|
|
|
|
return;
|
2013-08-28 18:53:48 -07:00
|
|
|
|
2008-10-17 04:23:18 -07:00
|
|
|
if (!((EINA_INLIST_GET(obj))->prev))
|
2002-12-09 22:45:18 -08:00
|
|
|
{
|
2017-10-19 16:11:30 -07:00
|
|
|
evas_object_inform_call_restack(eo_obj, obj);
|
2011-10-31 03:16:18 -07:00
|
|
|
return;
|
2002-12-09 22:45:18 -08:00
|
|
|
}
|
2005-10-26 19:44:36 -07:00
|
|
|
if (obj->smart.parent)
|
2012-10-08 18:58:41 -07:00
|
|
|
evas_object_smart_member_lower(eo_obj);
|
2005-10-26 19:44:36 -07:00
|
|
|
else
|
|
|
|
{
|
2011-10-31 03:16:18 -07:00
|
|
|
if (obj->in_layer)
|
2012-10-08 18:58:41 -07:00
|
|
|
obj->layer->objects = (Evas_Object_Protected_Data *)eina_inlist_promote(EINA_INLIST_GET(obj->layer->objects),
|
|
|
|
EINA_INLIST_GET(obj));
|
2005-10-26 19:44:36 -07:00
|
|
|
}
|
2002-12-09 22:45:18 -08:00
|
|
|
if (obj->clip.clipees)
|
|
|
|
{
|
2017-10-19 16:11:30 -07:00
|
|
|
evas_object_inform_call_restack(eo_obj, obj);
|
2011-10-31 03:16:18 -07:00
|
|
|
return;
|
2002-12-09 22:45:18 -08:00
|
|
|
}
|
2012-10-08 18:58:41 -07:00
|
|
|
if (obj->layer) evas_render_invalidate(obj->layer->evas->evas);
|
2011-10-31 03:16:18 -07:00
|
|
|
obj->restack = EINA_TRUE;
|
2012-10-08 18:58:41 -07:00
|
|
|
evas_object_change(eo_obj, obj);
|
2017-10-19 16:11:30 -07:00
|
|
|
evas_object_inform_call_restack(eo_obj, obj);
|
2014-03-12 18:44:15 -07:00
|
|
|
if (!obj->layer || obj->layer->evas->is_frozen) return;
|
2012-10-21 21:57:32 -07:00
|
|
|
if ((!evas_event_passes_through(eo_obj, obj)) &&
|
|
|
|
(!evas_event_freezes_through(eo_obj, obj)) &&
|
|
|
|
(!evas_object_is_source_invisible(eo_obj, obj)))
|
2002-11-08 00:02:15 -08:00
|
|
|
{
|
2016-10-21 05:25:41 -07:00
|
|
|
if (!obj->is_smart && obj->cur->visible)
|
2011-10-31 03:16:18 -07:00
|
|
|
{
|
2016-10-21 05:25:41 -07:00
|
|
|
_evas_canvas_event_pointer_in_rect_mouse_move_feed(obj->layer->evas,
|
|
|
|
eo_obj,
|
|
|
|
obj, 1, 1,
|
|
|
|
EINA_FALSE,
|
|
|
|
NULL);
|
2011-10-31 03:16:18 -07:00
|
|
|
}
|
2002-11-08 00:02:15 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-03 07:23:22 -07:00
|
|
|
EAPI void
|
|
|
|
evas_object_stack_above(Evas_Object *obj, Evas_Object *above)
|
|
|
|
{
|
2016-03-01 10:06:28 -08:00
|
|
|
efl_gfx_stack_above((Evas_Object *)obj, above);
|
2015-04-03 07:23:22 -07:00
|
|
|
}
|
|
|
|
|
2017-03-13 03:18:02 -07:00
|
|
|
#define SERR(x, ...) EINA_SAFETY_ERROR(eina_slstr_printf(x, __VA_ARGS__))
|
|
|
|
|
2014-03-11 04:51:35 -07:00
|
|
|
EOLIAN void
|
2016-06-20 21:26:15 -07:00
|
|
|
_efl_canvas_object_efl_gfx_stack_stack_above(Eo *eo_obj, Evas_Object_Protected_Data *obj, Efl_Gfx_Stack *eo_above)
|
2002-11-08 00:02:15 -08:00
|
|
|
{
|
2012-10-08 18:58:41 -07:00
|
|
|
if (!eo_above)
|
2005-08-25 23:53:37 -07:00
|
|
|
{
|
2012-10-08 18:58:41 -07:00
|
|
|
evas_object_raise(eo_obj);
|
2011-10-31 03:16:18 -07:00
|
|
|
return;
|
2002-12-09 22:45:18 -08:00
|
|
|
}
|
2014-03-12 18:33:05 -07:00
|
|
|
if (eo_obj == eo_above) return;
|
2017-02-17 01:46:09 -08:00
|
|
|
if (_evas_object_intercept_call_evas(obj, EVAS_OBJECT_INTERCEPT_CB_STACK_ABOVE, 1, eo_above)) return;
|
2016-08-15 06:44:41 -07:00
|
|
|
Evas_Object_Protected_Data *above = efl_data_scope_get(eo_above, EFL_CANVAS_OBJECT_CLASS);
|
2008-10-17 04:23:18 -07:00
|
|
|
if ((EINA_INLIST_GET(obj))->prev == EINA_INLIST_GET(above))
|
2002-12-09 22:45:18 -08:00
|
|
|
{
|
2017-10-19 16:11:30 -07:00
|
|
|
evas_object_inform_call_restack(eo_obj, obj);
|
2011-10-31 03:16:18 -07:00
|
|
|
return;
|
2002-12-09 22:45:18 -08:00
|
|
|
}
|
2005-10-26 19:44:36 -07:00
|
|
|
if (obj->smart.parent)
|
|
|
|
{
|
2011-10-31 03:16:18 -07:00
|
|
|
if (obj->smart.parent != above->smart.parent)
|
|
|
|
{
|
2017-03-13 03:18:02 -07:00
|
|
|
SERR("Invalid operation: object '%s' %p (parent: '%s' %p) not "
|
|
|
|
"inside same smart parent as above '%s' %p (parent '%s' %p)!",
|
|
|
|
efl_class_name_get(eo_obj), eo_obj, efl_class_name_get(obj->smart.parent),
|
|
|
|
obj->smart.parent, efl_class_name_get(eo_above), eo_above,
|
|
|
|
efl_class_name_get(above->smart.parent), above->smart.parent);
|
2011-10-31 03:16:18 -07:00
|
|
|
return;
|
|
|
|
}
|
2012-10-08 18:58:41 -07:00
|
|
|
evas_object_smart_member_stack_above(eo_obj, eo_above);
|
2005-10-26 19:44:36 -07:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2011-10-31 03:16:18 -07:00
|
|
|
if (above->smart.parent)
|
2009-11-15 05:46:20 -08:00
|
|
|
{
|
2017-03-13 03:18:02 -07:00
|
|
|
SERR("Invalid operation: '%s' %p has no parent but "
|
|
|
|
"above '%s' %p has parent '%s' %p!",
|
|
|
|
efl_class_name_get(eo_obj), eo_obj,
|
|
|
|
efl_class_name_get(eo_above), eo_above,
|
|
|
|
efl_class_name_get(above->smart.parent), above->smart.parent);
|
2009-11-15 05:46:20 -08:00
|
|
|
return;
|
|
|
|
}
|
2011-10-31 03:16:18 -07:00
|
|
|
if (obj->layer != above->layer)
|
|
|
|
{
|
2017-03-13 03:18:02 -07:00
|
|
|
SERR("Invalid operation: '%s' %p is on layer %d but "
|
|
|
|
"above '%s' %p is on mismatching layer %d!",
|
|
|
|
efl_class_name_get(eo_obj), eo_obj,
|
|
|
|
obj->layer ? (int) obj->layer->layer : -99999,
|
|
|
|
efl_class_name_get(eo_above), eo_above,
|
|
|
|
above->layer ? (int) above->layer->layer : -99999);
|
2011-10-31 03:16:18 -07:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (obj->in_layer)
|
|
|
|
{
|
2012-10-08 18:58:41 -07:00
|
|
|
obj->layer->objects = (Evas_Object_Protected_Data *)eina_inlist_remove(EINA_INLIST_GET(obj->layer->objects),
|
|
|
|
EINA_INLIST_GET(obj));
|
|
|
|
obj->layer->objects = (Evas_Object_Protected_Data *)eina_inlist_append_relative(EINA_INLIST_GET(obj->layer->objects),
|
|
|
|
EINA_INLIST_GET(obj),
|
|
|
|
EINA_INLIST_GET(above));
|
2011-10-31 03:16:18 -07:00
|
|
|
}
|
2005-10-26 19:44:36 -07:00
|
|
|
}
|
2002-12-09 22:45:18 -08:00
|
|
|
if (obj->clip.clipees)
|
|
|
|
{
|
2017-10-19 16:11:30 -07:00
|
|
|
evas_object_inform_call_restack(eo_obj, obj);
|
2011-10-31 03:16:18 -07:00
|
|
|
return;
|
2002-12-09 22:45:18 -08:00
|
|
|
}
|
2012-10-08 18:58:41 -07:00
|
|
|
if (obj->layer) evas_render_invalidate(obj->layer->evas->evas);
|
2011-10-31 03:16:18 -07:00
|
|
|
obj->restack = EINA_TRUE;
|
2012-10-08 18:58:41 -07:00
|
|
|
evas_object_change(eo_obj, obj);
|
2017-10-19 16:11:30 -07:00
|
|
|
evas_object_inform_call_restack(eo_obj, obj);
|
2014-03-12 18:44:15 -07:00
|
|
|
if (!obj->layer || obj->layer->evas->is_frozen) return;
|
2012-10-21 21:57:32 -07:00
|
|
|
if ((!evas_event_passes_through(eo_obj, obj)) &&
|
|
|
|
(!evas_event_freezes_through(eo_obj, obj)) &&
|
|
|
|
(!evas_object_is_source_invisible(eo_obj, obj)))
|
2002-11-08 00:02:15 -08:00
|
|
|
{
|
2016-10-21 05:25:41 -07:00
|
|
|
if (!obj->is_smart && obj->cur->visible)
|
2011-10-31 03:16:18 -07:00
|
|
|
{
|
2016-10-21 05:25:41 -07:00
|
|
|
_evas_canvas_event_pointer_in_rect_mouse_move_feed(obj->layer->evas,
|
|
|
|
eo_obj,
|
|
|
|
obj, 1, 1,
|
|
|
|
EINA_FALSE,
|
|
|
|
NULL);
|
2011-10-31 03:16:18 -07:00
|
|
|
}
|
2002-11-08 00:02:15 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-03 07:23:22 -07:00
|
|
|
EAPI void
|
|
|
|
evas_object_stack_below(Evas_Object *obj, Evas_Object *below)
|
|
|
|
{
|
2016-03-01 10:06:28 -08:00
|
|
|
efl_gfx_stack_below((Evas_Object *)obj, below);
|
2015-04-03 07:23:22 -07:00
|
|
|
}
|
|
|
|
|
2014-03-11 04:51:35 -07:00
|
|
|
EOLIAN void
|
2016-06-20 21:26:15 -07:00
|
|
|
_efl_canvas_object_efl_gfx_stack_stack_below(Eo *eo_obj, Evas_Object_Protected_Data *obj, Efl_Gfx_Stack *eo_below)
|
2002-11-08 00:02:15 -08:00
|
|
|
{
|
2012-10-08 18:58:41 -07:00
|
|
|
if (!eo_below)
|
2002-11-08 00:02:15 -08:00
|
|
|
{
|
2012-10-08 18:58:41 -07:00
|
|
|
evas_object_lower(eo_obj);
|
2011-10-31 03:16:18 -07:00
|
|
|
return;
|
2002-12-09 22:45:18 -08:00
|
|
|
}
|
2014-03-12 18:33:05 -07:00
|
|
|
if (eo_obj == eo_below) return;
|
2017-02-17 01:46:09 -08:00
|
|
|
if (_evas_object_intercept_call_evas(obj, EVAS_OBJECT_INTERCEPT_CB_STACK_BELOW, 1, eo_below)) return;
|
2016-08-15 06:44:41 -07:00
|
|
|
Evas_Object_Protected_Data *below = efl_data_scope_get(eo_below, EFL_CANVAS_OBJECT_CLASS);
|
2008-10-17 04:23:18 -07:00
|
|
|
if ((EINA_INLIST_GET(obj))->next == EINA_INLIST_GET(below))
|
2002-12-09 22:45:18 -08:00
|
|
|
{
|
2017-10-19 16:11:30 -07:00
|
|
|
evas_object_inform_call_restack(eo_obj, obj);
|
2011-10-31 03:16:18 -07:00
|
|
|
return;
|
2002-12-09 22:45:18 -08:00
|
|
|
}
|
2005-10-26 19:44:36 -07:00
|
|
|
if (obj->smart.parent)
|
|
|
|
{
|
2011-10-31 03:16:18 -07:00
|
|
|
if (obj->smart.parent != below->smart.parent)
|
|
|
|
{
|
2017-03-13 03:18:02 -07:00
|
|
|
SERR("Invalid operation: object '%s' %p (parent: '%s' %p) not "
|
|
|
|
"inside same smart parent as below '%s' %p (parent '%s' %p)!",
|
|
|
|
efl_class_name_get(eo_obj), eo_obj, efl_class_name_get(obj->smart.parent),
|
|
|
|
obj->smart.parent, efl_class_name_get(eo_below), eo_below,
|
|
|
|
efl_class_name_get(below->smart.parent), below->smart.parent);
|
2011-10-31 03:16:18 -07:00
|
|
|
return;
|
|
|
|
}
|
2012-10-08 18:58:41 -07:00
|
|
|
evas_object_smart_member_stack_below(eo_obj, eo_below);
|
2005-10-26 19:44:36 -07:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2011-10-31 03:16:18 -07:00
|
|
|
if (below->smart.parent)
|
2009-11-15 05:46:20 -08:00
|
|
|
{
|
2017-03-13 03:18:02 -07:00
|
|
|
SERR("Invalid operation: object '%s' %p has no parent but "
|
|
|
|
"below '%s' %p has different parent '%s' %p!",
|
|
|
|
efl_class_name_get(eo_obj), eo_obj,
|
|
|
|
efl_class_name_get(eo_below), eo_below,
|
|
|
|
efl_class_name_get(below->smart.parent), below->smart.parent);
|
2009-11-15 05:46:20 -08:00
|
|
|
return;
|
|
|
|
}
|
2011-10-31 03:16:18 -07:00
|
|
|
if (obj->layer != below->layer)
|
|
|
|
{
|
2017-03-13 03:18:02 -07:00
|
|
|
SERR("Invalid operation: object '%s' %p is on layer %d but "
|
|
|
|
"below '%s' %p is on mismatching layer %d!",
|
|
|
|
efl_class_name_get(eo_obj), eo_obj,
|
|
|
|
obj->layer ? (int) obj->layer->layer : -99999,
|
|
|
|
efl_class_name_get(eo_below), eo_below,
|
|
|
|
below->layer ? (int) below->layer->layer : -99999);
|
2011-10-31 03:16:18 -07:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (obj->in_layer)
|
|
|
|
{
|
2012-10-08 18:58:41 -07:00
|
|
|
obj->layer->objects = (Evas_Object_Protected_Data *)eina_inlist_remove(EINA_INLIST_GET(obj->layer->objects),
|
2011-10-31 03:16:18 -07:00
|
|
|
EINA_INLIST_GET(obj));
|
2012-10-08 18:58:41 -07:00
|
|
|
obj->layer->objects = (Evas_Object_Protected_Data *)eina_inlist_prepend_relative(EINA_INLIST_GET(obj->layer->objects),
|
2011-10-31 03:16:18 -07:00
|
|
|
EINA_INLIST_GET(obj),
|
|
|
|
EINA_INLIST_GET(below));
|
|
|
|
}
|
2005-10-26 19:44:36 -07:00
|
|
|
}
|
2002-12-09 22:45:18 -08:00
|
|
|
if (obj->clip.clipees)
|
|
|
|
{
|
2017-10-19 16:11:30 -07:00
|
|
|
evas_object_inform_call_restack(eo_obj, obj);
|
2011-10-31 03:16:18 -07:00
|
|
|
return;
|
2002-12-09 22:45:18 -08:00
|
|
|
}
|
2012-10-08 18:58:41 -07:00
|
|
|
if (obj->layer) evas_render_invalidate(obj->layer->evas->evas);
|
2011-10-31 03:16:18 -07:00
|
|
|
obj->restack = EINA_TRUE;
|
2012-10-08 18:58:41 -07:00
|
|
|
evas_object_change(eo_obj, obj);
|
2017-10-19 16:11:30 -07:00
|
|
|
evas_object_inform_call_restack(eo_obj, obj);
|
2014-03-12 18:44:15 -07:00
|
|
|
if (!obj->layer || obj->layer->evas->is_frozen) return;
|
2012-10-21 21:57:32 -07:00
|
|
|
if ((!evas_event_passes_through(eo_obj, obj)) &&
|
|
|
|
(!evas_event_freezes_through(eo_obj, obj)) &&
|
|
|
|
(!evas_object_is_source_invisible(eo_obj, obj)))
|
2002-11-08 00:02:15 -08:00
|
|
|
{
|
2016-10-21 05:25:41 -07:00
|
|
|
if (!obj->is_smart && obj->cur->visible)
|
2011-10-31 03:16:18 -07:00
|
|
|
{
|
2016-10-21 05:25:41 -07:00
|
|
|
_evas_canvas_event_pointer_in_rect_mouse_move_feed(obj->layer->evas,
|
|
|
|
eo_obj,
|
|
|
|
obj, 1, 1,
|
|
|
|
EINA_FALSE,
|
|
|
|
NULL);
|
2011-10-31 03:16:18 -07:00
|
|
|
}
|
2002-11-08 00:02:15 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-03 07:23:22 -07:00
|
|
|
EAPI Evas_Object *
|
|
|
|
evas_object_above_get(const Evas_Object *obj)
|
|
|
|
{
|
2016-03-01 10:06:28 -08:00
|
|
|
return efl_gfx_stack_above_get((Evas_Object *)obj);
|
2015-04-03 07:23:22 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
EOLIAN Efl_Gfx_Stack *
|
2016-06-20 21:26:15 -07:00
|
|
|
_efl_canvas_object_efl_gfx_stack_above_get(Eo *eo_obj EINA_UNUSED,
|
2015-04-03 07:23:22 -07:00
|
|
|
Evas_Object_Protected_Data *obj)
|
2002-11-08 00:02:15 -08:00
|
|
|
{
|
2005-10-26 19:44:36 -07:00
|
|
|
if (obj->smart.parent)
|
2006-06-07 16:30:15 -07:00
|
|
|
{
|
2011-10-31 03:16:18 -07:00
|
|
|
do
|
|
|
|
{
|
2012-10-08 18:58:41 -07:00
|
|
|
obj = (Evas_Object_Protected_Data *)((EINA_INLIST_GET(obj))->next);
|
2014-03-11 04:51:35 -07:00
|
|
|
if ((obj) && (!obj->delete_me)) return obj->object;
|
2011-10-31 03:16:18 -07:00
|
|
|
}
|
|
|
|
while (obj);
|
2014-03-11 04:51:35 -07:00
|
|
|
return NULL;
|
2006-06-07 16:30:15 -07:00
|
|
|
}
|
|
|
|
obj = evas_object_above_get_internal(obj);
|
|
|
|
while (obj)
|
|
|
|
{
|
2014-03-11 04:51:35 -07:00
|
|
|
if (!obj->delete_me) return obj->object;
|
2011-10-31 03:16:18 -07:00
|
|
|
obj = evas_object_above_get_internal(obj);
|
2006-06-07 16:30:15 -07:00
|
|
|
}
|
2002-11-08 00:02:15 -08:00
|
|
|
return NULL;
|
2012-10-08 18:58:41 -07:00
|
|
|
}
|
|
|
|
|
2015-04-03 07:23:22 -07:00
|
|
|
EAPI Evas_Object *
|
|
|
|
evas_object_below_get(const Evas_Object *obj)
|
|
|
|
{
|
2016-03-01 10:06:28 -08:00
|
|
|
return efl_gfx_stack_below_get((Evas_Object *)obj);
|
2015-04-03 07:23:22 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
EOLIAN Efl_Gfx_Stack *
|
2016-06-20 21:26:15 -07:00
|
|
|
_efl_canvas_object_efl_gfx_stack_below_get(Eo *eo_obj EINA_UNUSED,
|
2015-04-03 07:23:22 -07:00
|
|
|
Evas_Object_Protected_Data *obj)
|
2012-10-08 18:58:41 -07:00
|
|
|
{
|
2005-10-26 19:44:36 -07:00
|
|
|
if (obj->smart.parent)
|
2006-06-07 16:30:15 -07:00
|
|
|
{
|
2011-10-31 03:16:18 -07:00
|
|
|
do
|
|
|
|
{
|
2012-10-08 18:58:41 -07:00
|
|
|
obj = (Evas_Object_Protected_Data *)((EINA_INLIST_GET(obj))->prev);
|
2014-03-11 04:51:35 -07:00
|
|
|
if ((obj) && (!obj->delete_me)) return obj->object;
|
2011-10-31 03:16:18 -07:00
|
|
|
}
|
|
|
|
while (obj);
|
2014-03-11 04:51:35 -07:00
|
|
|
return NULL;
|
2006-06-07 16:30:15 -07:00
|
|
|
}
|
|
|
|
obj = evas_object_below_get_internal(obj);
|
|
|
|
while (obj)
|
|
|
|
{
|
2014-03-11 04:51:35 -07:00
|
|
|
if (!obj->delete_me) return obj->object;
|
2011-10-31 03:16:18 -07:00
|
|
|
obj = evas_object_below_get_internal(obj);
|
2006-06-07 16:30:15 -07:00
|
|
|
}
|
2014-03-11 04:51:35 -07:00
|
|
|
return NULL;
|
2002-11-08 00:02:15 -08:00
|
|
|
}
|
|
|
|
|
2014-03-11 23:53:00 -07:00
|
|
|
EOLIAN Evas_Object*
|
2018-04-17 11:09:44 -07:00
|
|
|
_evas_canvas_object_bottom_get(const Eo *eo_e EINA_UNUSED, Evas_Public_Data *e)
|
2002-11-08 00:02:15 -08:00
|
|
|
{
|
|
|
|
if (e->layers)
|
2006-06-07 16:30:15 -07:00
|
|
|
{
|
2012-10-08 18:58:41 -07:00
|
|
|
Evas_Object_Protected_Data *obj;
|
2009-09-03 22:13:19 -07:00
|
|
|
|
2011-10-31 03:16:18 -07:00
|
|
|
obj = e->layers->objects;
|
|
|
|
while (obj)
|
|
|
|
{
|
2014-03-11 23:53:00 -07:00
|
|
|
if (!obj->delete_me) return obj->object;
|
2011-10-31 03:16:18 -07:00
|
|
|
obj = evas_object_above_get_internal(obj);
|
|
|
|
}
|
2006-06-07 16:30:15 -07:00
|
|
|
}
|
2002-11-08 00:02:15 -08:00
|
|
|
return NULL;
|
2012-10-08 18:58:41 -07:00
|
|
|
}
|
2005-05-09 12:40:49 -07:00
|
|
|
|
2014-03-11 23:53:00 -07:00
|
|
|
EOLIAN Evas_Object*
|
2018-04-17 11:09:44 -07:00
|
|
|
_evas_canvas_object_top_get(const Eo *eo_e EINA_UNUSED, Evas_Public_Data *e)
|
2012-10-08 18:58:41 -07:00
|
|
|
{
|
|
|
|
Evas_Object_Protected_Data *obj = NULL;
|
|
|
|
Eina_Inlist *list;
|
|
|
|
Evas_Layer *layer;
|
|
|
|
|
2008-10-17 04:23:18 -07:00
|
|
|
list = EINA_INLIST_GET(e->layers);
|
2014-03-11 23:53:00 -07:00
|
|
|
if (!list) return NULL;
|
2005-05-09 12:40:49 -07:00
|
|
|
|
|
|
|
layer = (Evas_Layer *) list->last;
|
2014-03-11 23:53:00 -07:00
|
|
|
if (!layer) return NULL;
|
2005-05-09 12:40:49 -07:00
|
|
|
|
2008-10-17 04:23:18 -07:00
|
|
|
list = EINA_INLIST_GET(layer->objects);
|
2014-03-11 23:53:00 -07:00
|
|
|
if (!list) return NULL;
|
2005-05-09 12:40:49 -07:00
|
|
|
|
2012-10-08 18:58:41 -07:00
|
|
|
obj = (Evas_Object_Protected_Data *) list->last;
|
2014-03-11 23:53:00 -07:00
|
|
|
if (!obj) return NULL;
|
2006-06-07 16:30:15 -07:00
|
|
|
|
|
|
|
while (obj)
|
|
|
|
{
|
2014-03-11 23:53:00 -07:00
|
|
|
if (!obj->delete_me) return obj->object;
|
2011-10-31 03:16:18 -07:00
|
|
|
obj = evas_object_below_get_internal(obj);
|
2006-06-07 16:30:15 -07:00
|
|
|
}
|
2005-05-09 12:40:49 -07:00
|
|
|
|
2014-03-12 18:34:55 -07:00
|
|
|
return NULL;
|
2002-11-08 00:02:15 -08:00
|
|
|
}
|