forked from enlightenment/efl
formatting
seriously, who breaks this shit? SVN revision: 76455
This commit is contained in:
parent
4b1e2578b0
commit
9615e7bc4c
|
@ -7,7 +7,7 @@ evas_object_clip_dirty(Evas_Object *obj)
|
|||
Eina_List *l;
|
||||
Evas_Object *data;
|
||||
|
||||
if (obj->cur.cache.clip.dirty) return ;
|
||||
if (obj->cur.cache.clip.dirty) return;
|
||||
|
||||
obj->cur.cache.clip.dirty = 1;
|
||||
EINA_LIST_FOREACH(obj->clip.clipees, l, data)
|
||||
|
@ -22,9 +22,9 @@ evas_object_recalc_clippees(Evas_Object *obj)
|
|||
|
||||
if (obj->cur.cache.clip.dirty)
|
||||
{
|
||||
evas_object_clip_recalc(obj);
|
||||
EINA_LIST_FOREACH(obj->clip.clipees, l, data)
|
||||
evas_object_recalc_clippees(data);
|
||||
evas_object_clip_recalc(obj);
|
||||
EINA_LIST_FOREACH(obj->clip.clipees, l, data)
|
||||
evas_object_recalc_clippees(data);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -33,9 +33,9 @@ evas_object_clippers_was_visible(Evas_Object *obj)
|
|||
{
|
||||
if (obj->prev.visible)
|
||||
{
|
||||
if (obj->prev.clipper)
|
||||
return evas_object_clippers_is_visible(obj->prev.clipper);
|
||||
return 1;
|
||||
if (obj->prev.clipper)
|
||||
return evas_object_clippers_is_visible(obj->prev.clipper);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ evas_object_child_map_across_mark(Evas_Object *obj, Evas_Object *map_obj, Eina_B
|
|||
Evas_Object *obj2;
|
||||
|
||||
EINA_LIST_FOREACH(obj->clip.clipees, l, obj2)
|
||||
evas_object_child_map_across_mark(obj2, map_obj, force);
|
||||
evas_object_child_map_across_mark(obj2, map_obj, force);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
@ -113,7 +113,7 @@ evas_object_clip_across_check(Evas_Object *obj)
|
|||
#ifdef MAP_ACROSS
|
||||
if (!obj->cur.clipper) return;
|
||||
if (obj->cur.clipper->cur.map_parent != obj->cur.map_parent)
|
||||
evas_object_child_map_across_mark(obj, obj->cur.map_parent, 1);
|
||||
evas_object_child_map_across_mark(obj, obj->cur.map_parent, 1);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -131,8 +131,8 @@ evas_object_clip_across_clippees_check(Evas_Object *obj)
|
|||
evas_object_child_map_across_mark(obj, obj->cur.map_parent, 0);
|
||||
if (obj->cur.cache.clip.dirty)
|
||||
{
|
||||
EINA_LIST_FOREACH(obj->clip.clipees, l, obj2)
|
||||
evas_object_clip_across_clippees_check(obj2);
|
||||
EINA_LIST_FOREACH(obj->clip.clipees, l, obj2)
|
||||
evas_object_clip_across_clippees_check(obj2);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -146,15 +146,15 @@ evas_object_mapped_clip_across_mark(Evas_Object *obj)
|
|||
{
|
||||
#ifdef MAP_ACROSS
|
||||
if ((obj->cur.map) && (obj->cur.usemap))
|
||||
evas_object_child_map_across_mark(obj, obj, 0);
|
||||
evas_object_child_map_across_mark(obj, obj, 0);
|
||||
else
|
||||
{
|
||||
if (obj->smart.parent)
|
||||
evas_object_child_map_across_mark
|
||||
(obj, obj->smart.parent->cur.map_parent, 0);
|
||||
evas_object_child_map_across_mark
|
||||
(obj, obj->smart.parent->cur.map_parent, 0);
|
||||
else
|
||||
evas_object_child_map_across_mark(obj, NULL, 0);
|
||||
}
|
||||
evas_object_child_map_across_mark(obj, NULL, 0);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -169,8 +169,8 @@ evas_object_clip_set(Evas_Object *obj, Evas_Object *clip)
|
|||
MAGIC_CHECK_END();
|
||||
if (!clip)
|
||||
{
|
||||
evas_object_clip_unset(obj);
|
||||
return;
|
||||
evas_object_clip_unset(obj);
|
||||
return;
|
||||
}
|
||||
MAGIC_CHECK(clip, Evas_Object, MAGIC_OBJ);
|
||||
return;
|
||||
|
@ -216,36 +216,36 @@ evas_object_clip_set(Evas_Object *obj, Evas_Object *clip)
|
|||
}
|
||||
if (obj->smart.smart)
|
||||
{
|
||||
if (obj->smart.smart->smart_class->clip_set)
|
||||
obj->smart.smart->smart_class->clip_set(obj, clip);
|
||||
if (obj->smart.smart->smart_class->clip_set)
|
||||
obj->smart.smart->smart_class->clip_set(obj, clip);
|
||||
}
|
||||
if (obj->cur.clipper)
|
||||
{
|
||||
/* unclip */
|
||||
obj->cur.clipper->clip.clipees = eina_list_remove(obj->cur.clipper->clip.clipees, obj);
|
||||
if (!obj->cur.clipper->clip.clipees)
|
||||
{
|
||||
obj->cur.clipper->cur.have_clipees = 0;
|
||||
if (obj->cur.clipper->cur.visible)
|
||||
evas_damage_rectangle_add(obj->cur.clipper->layer->evas,
|
||||
obj->cur.clipper->cur.geometry.x,
|
||||
obj->cur.clipper->cur.geometry.y,
|
||||
obj->cur.clipper->cur.geometry.w,
|
||||
obj->cur.clipper->cur.geometry.h);
|
||||
}
|
||||
evas_object_change(obj->cur.clipper);
|
||||
evas_object_change(obj);
|
||||
obj->cur.clipper = NULL;
|
||||
/* unclip */
|
||||
obj->cur.clipper->clip.clipees = eina_list_remove(obj->cur.clipper->clip.clipees, obj);
|
||||
if (!obj->cur.clipper->clip.clipees)
|
||||
{
|
||||
obj->cur.clipper->cur.have_clipees = 0;
|
||||
if (obj->cur.clipper->cur.visible)
|
||||
evas_damage_rectangle_add(obj->cur.clipper->layer->evas,
|
||||
obj->cur.clipper->cur.geometry.x,
|
||||
obj->cur.clipper->cur.geometry.y,
|
||||
obj->cur.clipper->cur.geometry.w,
|
||||
obj->cur.clipper->cur.geometry.h);
|
||||
}
|
||||
evas_object_change(obj->cur.clipper);
|
||||
evas_object_change(obj);
|
||||
obj->cur.clipper = NULL;
|
||||
}
|
||||
/* clip me */
|
||||
if ((!clip->clip.clipees) && (clip->cur.visible))
|
||||
{
|
||||
/* Basically it just went invisible */
|
||||
clip->changed = 1;
|
||||
clip->layer->evas->changed = 1;
|
||||
evas_damage_rectangle_add(clip->layer->evas,
|
||||
clip->cur.geometry.x, clip->cur.geometry.y,
|
||||
clip->cur.geometry.w, clip->cur.geometry.h);
|
||||
/* Basically it just went invisible */
|
||||
clip->changed = 1;
|
||||
clip->layer->evas->changed = 1;
|
||||
evas_damage_rectangle_add(clip->layer->evas,
|
||||
clip->cur.geometry.x, clip->cur.geometry.y,
|
||||
clip->cur.geometry.w, clip->cur.geometry.h);
|
||||
}
|
||||
obj->cur.clipper = clip;
|
||||
clip->clip.clipees = eina_list_append(clip->clip.clipees, obj);
|
||||
|
@ -259,16 +259,16 @@ evas_object_clip_set(Evas_Object *obj, Evas_Object *clip)
|
|||
/* If it's NOT a rectangle set the mask bits too */
|
||||
/* FIXME: Optmz ths chck */
|
||||
if (clip->type == o_rect_type)
|
||||
obj->cur.mask = NULL;
|
||||
obj->cur.mask = NULL;
|
||||
else
|
||||
{
|
||||
void *engdata;
|
||||
void *engdata;
|
||||
obj->cur.mask = clip;
|
||||
engdata = clip->func->engine_data_get(clip);
|
||||
/* FIXME: Images only */
|
||||
clip->layer->evas->engine.func->image_mask_create(
|
||||
clip->layer->evas->engine.data.output,
|
||||
engdata);
|
||||
engdata = clip->func->engine_data_get(clip);
|
||||
/* FIXME: Images only */
|
||||
clip->layer->evas->engine.func->image_mask_create(
|
||||
clip->layer->evas->engine.data.output,
|
||||
engdata);
|
||||
}
|
||||
evas_object_change(clip);
|
||||
evas_object_change(obj);
|
||||
|
@ -277,14 +277,14 @@ evas_object_clip_set(Evas_Object *obj, Evas_Object *clip)
|
|||
if ((!obj->smart.smart) &&
|
||||
(!((obj->cur.map) && (obj->cur.usemap))))
|
||||
{
|
||||
if (evas_object_is_in_output_rect(obj,
|
||||
obj->layer->evas->pointer.x,
|
||||
obj->layer->evas->pointer.y, 1, 1))
|
||||
evas_event_feed_mouse_move(obj->layer->evas,
|
||||
obj->layer->evas->pointer.x,
|
||||
obj->layer->evas->pointer.y,
|
||||
obj->layer->evas->last_timestamp,
|
||||
NULL);
|
||||
if (evas_object_is_in_output_rect(obj,
|
||||
obj->layer->evas->pointer.x,
|
||||
obj->layer->evas->pointer.y, 1, 1))
|
||||
evas_event_feed_mouse_move(obj->layer->evas,
|
||||
obj->layer->evas->pointer.x,
|
||||
obj->layer->evas->pointer.y,
|
||||
obj->layer->evas->last_timestamp,
|
||||
NULL);
|
||||
}
|
||||
evas_object_clip_across_check(obj);
|
||||
}
|
||||
|
@ -309,23 +309,23 @@ evas_object_clip_unset(Evas_Object *obj)
|
|||
if (evas_object_intercept_call_clip_unset(obj)) return;
|
||||
if (obj->smart.smart)
|
||||
{
|
||||
if (obj->smart.smart->smart_class->clip_unset)
|
||||
obj->smart.smart->smart_class->clip_unset(obj);
|
||||
if (obj->smart.smart->smart_class->clip_unset)
|
||||
obj->smart.smart->smart_class->clip_unset(obj);
|
||||
}
|
||||
if (obj->cur.clipper)
|
||||
{
|
||||
obj->cur.clipper->clip.clipees = eina_list_remove(obj->cur.clipper->clip.clipees, obj);
|
||||
if (!obj->cur.clipper->clip.clipees)
|
||||
{
|
||||
obj->cur.clipper->cur.have_clipees = 0;
|
||||
if (obj->cur.clipper->cur.visible)
|
||||
evas_damage_rectangle_add(obj->cur.clipper->layer->evas,
|
||||
obj->cur.clipper->cur.geometry.x,
|
||||
obj->cur.clipper->cur.geometry.y,
|
||||
obj->cur.clipper->cur.geometry.w,
|
||||
obj->cur.clipper->cur.geometry.h);
|
||||
}
|
||||
evas_object_change(obj->cur.clipper);
|
||||
if (!obj->cur.clipper->clip.clipees)
|
||||
{
|
||||
obj->cur.clipper->cur.have_clipees = 0;
|
||||
if (obj->cur.clipper->cur.visible)
|
||||
evas_damage_rectangle_add(obj->cur.clipper->layer->evas,
|
||||
obj->cur.clipper->cur.geometry.x,
|
||||
obj->cur.clipper->cur.geometry.y,
|
||||
obj->cur.clipper->cur.geometry.w,
|
||||
obj->cur.clipper->cur.geometry.h);
|
||||
}
|
||||
evas_object_change(obj->cur.clipper);
|
||||
}
|
||||
obj->cur.clipper = NULL;
|
||||
evas_object_change(obj);
|
||||
|
@ -334,14 +334,14 @@ evas_object_clip_unset(Evas_Object *obj)
|
|||
if ((!obj->smart.smart) &&
|
||||
(!((obj->cur.map) && (obj->cur.usemap))))
|
||||
{
|
||||
if (evas_object_is_in_output_rect(obj,
|
||||
obj->layer->evas->pointer.x,
|
||||
obj->layer->evas->pointer.y, 1, 1))
|
||||
evas_event_feed_mouse_move(obj->layer->evas,
|
||||
obj->layer->evas->pointer.x,
|
||||
obj->layer->evas->pointer.y,
|
||||
if (evas_object_is_in_output_rect(obj,
|
||||
obj->layer->evas->pointer.x,
|
||||
obj->layer->evas->pointer.y, 1, 1))
|
||||
evas_event_feed_mouse_move(obj->layer->evas,
|
||||
obj->layer->evas->pointer.x,
|
||||
obj->layer->evas->pointer.y,
|
||||
obj->layer->evas->last_timestamp,
|
||||
NULL);
|
||||
NULL);
|
||||
}
|
||||
evas_object_clip_across_check(obj);
|
||||
}
|
||||
|
@ -354,3 +354,4 @@ evas_object_clipees_get(const Evas_Object *obj)
|
|||
MAGIC_CHECK_END();
|
||||
return obj->clip.clipees;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue