Evas_Func_Node *fn;
if (!obj->callbacks) return;
- EINA_INLIST_ITER_NEXT(obj->callbacks->callbacks, fn)
+ EINA_INLIST_FOREACH(obj->callbacks->callbacks, fn)
fn->delete_me = 1;
}
if (!obj->callbacks) return NULL;
- EINA_INLIST_ITER_NEXT(obj->callbacks->callbacks, fn)
+ EINA_INLIST_FOREACH(obj->callbacks->callbacks, fn)
{
if ((fn->func == func) && (fn->type == type) && (!fn->delete_me))
{
if (!obj->callbacks) return NULL;
- EINA_INLIST_ITER_NEXT(obj->callbacks->callbacks, fn)
+ EINA_INLIST_FOREACH(obj->callbacks->callbacks, fn)
{
if ((fn->func == func) && (fn->type == type) && (fn->data == data) && (!fn->delete_me))
{
Evas_Object *obj;
if (!list) return in;
- EINA_INLIST_ITER_LAST(list, obj)
+ EINA_INLIST_REVERSE_FOREACH(list, obj)
{
if (obj == stop)
{
Evas_List *in = NULL;
if (!e->layers) return NULL;
- EINA_INLIST_ITER_LAST((EINA_INLIST_GET(e->layers)), lay)
+ EINA_INLIST_REVERSE_FOREACH((EINA_INLIST_GET(e->layers)), lay)
{
int norep;
{
Evas_Layer *lay;
- EINA_INLIST_ITER_NEXT((EINA_INLIST_GET(e->layers)), lay)
+ EINA_INLIST_FOREACH((EINA_INLIST_GET(e->layers)), lay)
{
Evas_Object *obj;
- EINA_INLIST_ITER_NEXT(lay->objects, obj)
+ EINA_INLIST_FOREACH(lay->objects, obj)
{
evas_object_clip_recalc(obj);
evas_object_recalc_clippees(obj);
{
Evas_Object *obj;
- EINA_INLIST_ITER_NEXT(lay->objects, obj)
+ EINA_INLIST_FOREACH(lay->objects, obj)
{
if ((!obj->smart.parent) && (!obj->delete_me))
evas_object_del(obj);
{
Evas_Layer *layer;
- EINA_INLIST_ITER_NEXT(e->layers, layer)
+ EINA_INLIST_FOREACH(e->layers, layer)
{
if (layer->layer == layer_num) return layer;
}
{
Evas_Layer *layer;
- EINA_INLIST_ITER_NEXT(lay->evas->layers, layer)
+ EINA_INLIST_FOREACH(lay->evas->layers, layer)
{
if (layer->layer > lay->layer)
{
while (del)
{
del = 0;
- EINA_INLIST_ITER_NEXT(e->layers, lay)
+ EINA_INLIST_FOREACH(e->layers, lay)
{
Evas_Object *o;
evas_layer_pre_free(lay);
- EINA_INLIST_ITER_NEXT(lay->objects, o)
+ EINA_INLIST_FOREACH(lay->objects, o)
{
if ((o->callbacks) && (o->callbacks->walking_list))
{
MAGIC_CHECK_END();
evas_image_cache_flush(e);
- EINA_INLIST_ITER_NEXT(e->layers, layer)
+ EINA_INLIST_FOREACH(e->layers, layer)
{
Evas_Object *obj;
- EINA_INLIST_ITER_NEXT(layer->objects, obj)
+ EINA_INLIST_FOREACH(layer->objects, obj)
{
Evas_Object_Image *o;
}
}
evas_image_cache_flush(e);
- EINA_INLIST_ITER_NEXT(e->layers, layer)
+ EINA_INLIST_FOREACH(e->layers, layer)
{
Evas_Object *obj;
- EINA_INLIST_ITER_NEXT(layer->objects, obj)
+ EINA_INLIST_FOREACH(layer->objects, obj)
{
Evas_Object_Image *o;
yy = y;
//// xx = evas_coord_world_x_to_screen(e, x);
//// yy = evas_coord_world_y_to_screen(e, y);
- EINA_INLIST_ITER_LAST((EINA_INLIST_GET(e->layers)), lay)
+ EINA_INLIST_REVERSE_FOREACH((EINA_INLIST_GET(e->layers)), lay)
{
Evas_Object *obj;
- EINA_INLIST_ITER_LAST(get_layer_objects_last(lay), obj)
+ EINA_INLIST_REVERSE_FOREACH(get_layer_objects_last(lay), obj)
{
if (obj->delete_me) continue;
if ((!include_pass_events_objects) && (evas_event_passes_through(obj))) continue;
//// hh = evas_coord_world_y_to_screen(e, h);
if (ww < 1) ww = 1;
if (hh < 1) hh = 1;
- EINA_INLIST_ITER_LAST((EINA_INLIST_GET(e->layers)), lay)
+ EINA_INLIST_REVERSE_FOREACH((EINA_INLIST_GET(e->layers)), lay)
{
Evas_Object *obj;
- EINA_INLIST_ITER_LAST(get_layer_objects_last(lay), obj)
+ EINA_INLIST_REVERSE_FOREACH(get_layer_objects_last(lay), obj)
{
if (obj->delete_me) continue;
if ((!include_pass_events_objects) && (evas_event_passes_through(obj))) continue;
yy = y;
//// xx = evas_coord_world_x_to_screen(e, x);
//// yy = evas_coord_world_y_to_screen(e, y);
- EINA_INLIST_ITER_LAST((EINA_INLIST_GET(e->layers)), lay)
+ EINA_INLIST_REVERSE_FOREACH((EINA_INLIST_GET(e->layers)), lay)
{
Evas_Object *obj;
- EINA_INLIST_ITER_LAST(get_layer_objects_last(lay), obj)
+ EINA_INLIST_REVERSE_FOREACH(get_layer_objects_last(lay), obj)
{
if (obj->delete_me) continue;
if ((!include_pass_events_objects) && (evas_event_passes_through(obj))) continue;
//// hh = evas_coord_world_y_to_screen(e, h);
if (ww < 1) ww = 1;
if (hh < 1) hh = 1;
- EINA_INLIST_ITER_LAST((EINA_INLIST_GET(e->layers)), lay)
+ EINA_INLIST_REVERSE_FOREACH((EINA_INLIST_GET(e->layers)), lay)
{
Evas_Object *obj;
- EINA_INLIST_ITER_LAST(get_layer_objects_last(lay), obj)
+ EINA_INLIST_REVERSE_FOREACH(get_layer_objects_last(lay), obj)
{
if (obj->delete_me) continue;
if ((!include_pass_events_objects) && (evas_event_passes_through(obj))) continue;
{
if (obj->smart.smart)
{
- EINA_INLIST_ITER_NEXT(evas_object_smart_members_get_direct(obj), obj)
+ EINA_INLIST_FOREACH(evas_object_smart_members_get_direct(obj), obj)
evas_font_object_rehint(obj);
}
else
MAGIC_CHECK_END();
if (e->hinting == hinting) return;
e->hinting = hinting;
- EINA_INLIST_ITER_NEXT(e->layers, lay)
+ EINA_INLIST_FOREACH(e->layers, lay)
{
Evas_Object *obj;
- EINA_INLIST_ITER_NEXT(lay->objects, obj)
+ EINA_INLIST_FOREACH(lay->objects, obj)
evas_font_object_rehint(obj);
}
}
{
Evas_Object_Style_Tag *tag;
- EINA_INLIST_ITER_NEXT(ts->tags, tag)
+ EINA_INLIST_FOREACH(ts->tags, tag)
{
if (!strcmp(tag->replace, s)) return tag->tag;
}
{
Evas_Object_Style_Tag *tag;
- EINA_INLIST_ITER_NEXT(ts->tags, tag)
+ EINA_INLIST_FOREACH(ts->tags, tag)
{
if (!strcmp(tag->tag, s)) return tag->replace;
}
c->maxascent = c->maxdescent = 0;
if (!c->ln->items)
_layout_format_ascent_descent_adjust(c, fmt);
- EINA_INLIST_ITER_NEXT(c->ln->items, it)
+ EINA_INLIST_FOREACH(c->ln->items, it)
{
int endx;
int index, tw, th, inset, adv;
/* it is not appended yet */
- EINA_INLIST_ITER_LAST((EINA_INLIST_GET(c->ln->items)), pit)
+ EINA_INLIST_REVERSE_FOREACH((EINA_INLIST_GET(c->ln->items)), pit)
{
if (_layout_ends_with_space(pit->text))
{
return;
}
/* run through all text and format nodes generating lines */
- EINA_INLIST_ITER_NEXT(c->o->nodes, n)
+ EINA_INLIST_FOREACH(c->o->nodes, n)
{
if (!c->ln) _layout_line_new(c, fmt);
if ((n->type == NODE_FORMAT) && (n->text))
c->format_stack = evas_list_remove_list(c->format_stack, c->format_stack);
_format_free(c->obj, fmt);
}
- EINA_INLIST_ITER_NEXT(c->lines, ln)
+ EINA_INLIST_FOREACH(c->lines, ln)
{
if (ln->line_no == -1)
{
Evas_Object_Textblock *o;
o = (Evas_Object_Textblock *)(obj->object_data);
-/* EINA_INLIST_ITER_NEXT(o->nodes, nn) */
+/* EINA_INLIST_FOREACH(o->nodes, nn) */
/* ; */
- EINA_INLIST_ITER_NEXT(o->lines, ln)
+ EINA_INLIST_FOREACH(o->lines, ln)
{
Evas_Object_Textblock_Format_Item *fit;
Evas_Object_Textblock_Item *it;
- EINA_INLIST_ITER_NEXT(ln->items, it)
+ EINA_INLIST_FOREACH(ln->items, it)
{
if (it->source_node == n)
{
}
}
}
- EINA_INLIST_ITER_NEXT(ln->format_items, fit)
+ EINA_INLIST_FOREACH(ln->format_items, fit)
{
if (fit->source_node == n)
{
Evas_Object_Textblock *o;
o = (Evas_Object_Textblock *)(obj->object_data);
- EINA_INLIST_ITER_NEXT(o->lines, ln)
+ EINA_INLIST_FOREACH(o->lines, ln)
{
Evas_Object_Textblock_Format_Item *fi;
- EINA_INLIST_ITER_NEXT(ln->format_items, fi)
+ EINA_INLIST_FOREACH(ln->format_items, fi)
{
if (fi->source_node == n)
{
Evas_Object_Textblock *o;
o = (Evas_Object_Textblock *)(obj->object_data);
- EINA_INLIST_ITER_NEXT(o->lines, ln)
+ EINA_INLIST_FOREACH(o->lines, ln)
{
if (ln->line_no == line) return ln;
}
TB_HEAD_RETURN(NULL);
if (o->markup_text) return(o->markup_text);
- EINA_INLIST_ITER_NEXT(o->nodes, n)
+ EINA_INLIST_FOREACH(o->nodes, n)
{
if ((n->type == NODE_FORMAT) && (n->text))
{
n2 = cur2->node;
index = cur2->pos;
chr = evas_common_font_utf8_get_next((unsigned char *)n2->text, &index);
- EINA_INLIST_ITER_NEXT(n1, n)
+ EINA_INLIST_FOREACH(n1, n)
{
if (n->type == NODE_TEXT)
{
if (!o->formatted.valid) _relayout(cur->obj);
x += o->style_pad.l;
y += o->style_pad.t;
- EINA_INLIST_ITER_NEXT(o->lines, ln)
+ EINA_INLIST_FOREACH(o->lines, ln)
{
if (ln->y > y) break;
if ((ln->y <= y) && ((ln->y + ln->h) > y))
{
- EINA_INLIST_ITER_NEXT(ln->items, it)
+ EINA_INLIST_FOREACH(ln->items, it)
{
if ((it->x + ln->x) > x)
{
return 1;
}
}
- EINA_INLIST_ITER_NEXT(ln->format_items, fi)
+ EINA_INLIST_FOREACH(ln->format_items, fi)
{
if ((fi->x + ln->x) > x) break;
if (((fi->x + ln->x) <= x) && (((fi->x + ln->x) + fi->w) > x))
o = (Evas_Object_Textblock *)(cur->obj->object_data);
if (!o->formatted.valid) _relayout(cur->obj);
y += o->style_pad.t;
- EINA_INLIST_ITER_NEXT(o->lines, ln)
+ EINA_INLIST_FOREACH(o->lines, ln)
{
if (ln->y > y) break;
if ((ln->y <= y) && ((ln->y + ln->h) > y))
obj->layer->evas->engine.func->context_multiplier_unset(output,
context);
#define ITEM_WALK() \
- EINA_INLIST_ITER_NEXT(o->lines, ln) \
+ EINA_INLIST_FOREACH(o->lines, ln) \
{ \
Evas_Object_Textblock_Item *it; \
\
pline = 0; \
pline2 = 0; \
pstrike = 0; \
- EINA_INLIST_ITER_NEXT(ln->items, it) \
+ EINA_INLIST_FOREACH(ln->items, it) \
{ \
int yoff; \
\
Evas_Object_Textblock_Line *ln;
o = (Evas_Object_Textblock *)(obj->object_data);
- EINA_INLIST_ITER_NEXT(o->lines, ln)
+ EINA_INLIST_FOREACH(o->lines, ln)
{
Evas_Object_Textblock_Item *it;
- EINA_INLIST_ITER_NEXT(ln->items, it)
+ EINA_INLIST_FOREACH(ln->items, it)
{
if (it->format->font.font)
evas_font_load_hinting_set(obj->layer->evas,
eina_array_push(render_objects, obj);
obj->render_pre = 1;
- EINA_INLIST_ITER_NEXT(evas_object_smart_members_get_direct(obj), obj2)
+ EINA_INLIST_FOREACH(evas_object_smart_members_get_direct(obj), obj2)
{
_evas_render_phase1_object_process(e, obj2,
active_objects,
eina_array_push(render_objects, obj);
obj->render_pre = 1;
- EINA_INLIST_ITER_NEXT(evas_object_smart_members_get_direct(obj), obj2)
+ EINA_INLIST_FOREACH(evas_object_smart_members_get_direct(obj), obj2)
{
_evas_render_phase1_object_process(e, obj2,
active_objects,
Evas_Layer *lay;
int clean_them = 0;
- EINA_INLIST_ITER_NEXT(e->layers, lay)
+ EINA_INLIST_FOREACH(e->layers, lay)
{
Evas_Object *obj;
- EINA_INLIST_ITER_NEXT(lay->objects, obj)
+ EINA_INLIST_FOREACH(lay->objects, obj)
{
clean_them |= _evas_render_phase1_object_process(e, obj,
active_objects, restack_objects,
RGBA_Font_Source *fs;
if (!name) return NULL;
- EINA_INLIST_ITER_NEXT(fonts_src, fs)
+ EINA_INLIST_FOREACH(fonts_src, fs)
{
if ((fs->name) && (!strcmp(name, fs->name)))
{
RGBA_Font_Int *fi_tmp;
RGBA_Font_Int *fi = NULL;
- EINA_INLIST_ITER_NEXT(fonts, fi_tmp)
+ EINA_INLIST_FOREACH(fonts, fi_tmp)
{
if (fi_tmp->references == 0) fi = fi_tmp;
}
{
RGBA_Font_Int *fi;
- EINA_INLIST_ITER_NEXT(fonts, fi)
+ EINA_INLIST_FOREACH(fonts, fi)
{
if ((fi->size == size) && (!strcmp(name, fi->src->name)))
{
// {
// thinfo->info = NULL;
// printf(" TH %i GO\n", thinfo->thread_num);
- EINA_INLIST_ITER_NEXT(EINA_INLIST_GET(info->im->pipe), p)
+ EINA_INLIST_FOREACH(EINA_INLIST_GET(info->im->pipe), p)
{
int i;
evas_common_cpu_end_opt();
- n = 0; EINA_INLIST_ITER_NEXT(points, pt) n++;
+ n = 0; EINA_INLIST_FOREACH(points, pt) n++;
if (n < 3) return;
edges = malloc(sizeof(RGBA_Edge) * n);
if (!edges) return;
}
k = 0;
- EINA_INLIST_ITER_NEXT(points, pt)
+ EINA_INLIST_FOREACH(points, pt)
{
point[k].x = pt->x;
point[k].y = pt->y;
qsort(point, n, sizeof(RGBA_Vertex), polygon_point_sorter);
for (k = 0; k < n; k++) sorted_index[k] = point[k].i;
k = 0;
- EINA_INLIST_ITER_NEXT(points, pt)
+ EINA_INLIST_FOREACH(points, pt)
{
point[k].x = pt->x;
point[k].y = pt->y;
{
RGBA_Span *span;
- EINA_INLIST_ITER_NEXT(spans, span)
+ EINA_INLIST_FOREACH(spans, span)
{
DATA32 *ptr;
if (x2 < (rb->w - 1)) x2 = rb->w - 1;
sp_start = NULL;
sp_stop = NULL;
- EINA_INLIST_ITER_NEXT(rb->spans[y], span)
+ EINA_INLIST_FOREACH(rb->spans[y], span)
{
nspan = (Regionspan *)(EINA_INLIST_GET(span))->next;
/* we dont know what t do with the span yet */
if (x2 < (rb->w - 1)) x2 = rb->w - 1;
sp_start = NULL;
sp_stop = NULL;
- EINA_INLIST_ITER_NEXT(rb->spans[y], span)
+ EINA_INLIST_FOREACH(rb->spans[y], span)
{
nspan = (Regionspan *)(EINA_INLIST_GET(l))->next;
/* we dont know what t do with the span yet */
return;
n = 0;
- EINA_INLIST_ITER_NEXT(points, pt) n++;
+ EINA_INLIST_FOREACH(points, pt) n++;
if (n < 3)
return;
}
k = 0;
- EINA_INLIST_ITER_NEXT(points, pt)
+ EINA_INLIST_FOREACH(points, pt)
{
point[k].x = pt->x;
point[k].y = pt->y;
sorted_index[k] = point[k].i;
k = 0;
- EINA_INLIST_ITER_NEXT(points, pt)
+ EINA_INLIST_FOREACH(points, pt)
{
point[k].x = pt->x;
point[k].y = pt->y;
if (!_dfb_surface_set_color_from_context(surface, dc))
return;
- n = 0; EINA_INLIST_ITER_NEXT(points, pt) n++;
+ n = 0; EINA_INLIST_FOREACH(points, pt) n++;
if (n < 3) return;
edges = malloc(sizeof(RGBA_Edge) * n);
if (!edges) return;
}
k = 0;
- EINA_INLIST_ITER_NEXT(points, pt)
+ EINA_INLIST_FOREACH(points, pt)
{
point[k].x = pt->x;
point[k].y = pt->y;
qsort(point, n, sizeof(RGBA_Vertex), polygon_point_sorter);
for (k = 0; k < n; k++) sorted_index[k] = point[k].i;
k = 0;
- EINA_INLIST_ITER_NEXT(points, pt)
+ EINA_INLIST_FOREACH(points, pt)
{
point[k].x = pt->x;
point[k].y = pt->y;
Tilebuf_Rect *r;
int w = 0, h = 0;
- EINA_INLIST_ITER_NEXT(re->rects, r)
+ EINA_INLIST_FOREACH(re->rects, r)
{
if (r->w > w) w = r->w;
if (r->h > h) h = r->h;
Tilebuf_Rect *r;
int w = 0, h = 0;
- EINA_INLIST_ITER_NEXT(re->rects, r)
+ EINA_INLIST_FOREACH(re->rects, r)
{
if (r->w > w) w = r->w;
if (r->h > h) h = r->h;
Tilebuf_Rect *r;
int w = 0, h = 0;
- EINA_INLIST_ITER_NEXT(re->rects, r)
+ EINA_INLIST_FOREACH(re->rects, r)
{
if (r->w > w) w = r->w;
if (r->h > h) h = r->h;
Tilebuf_Rect *r;
int w = 0, h = 0;
- EINA_INLIST_ITER_NEXT(re->rects, r)
+ EINA_INLIST_FOREACH(re->rects, r)
{
if (r->w > w) w = r->w;
if (r->h > h) h = r->h;
rects = evas_common_tilebuf_get_render_rects(im->updates);
if (rects)
{
- EINA_INLIST_ITER_NEXT(rects, r)
+ EINA_INLIST_FOREACH(rects, r)
{
int rx, ry, rw, rh;
int op;
if ((!rs) || (!dc)) return;
- num = 0; EINA_INLIST_ITER_NEXT(points, pt) num++;
+ num = 0; EINA_INLIST_FOREACH(points, pt) num++;
if (num < 3) return;
op = PictOpOver;
if (dc->render_op == _EVAS_RENDER_BLEND)
pts = malloc(num * sizeof(XPointDouble));
if (!pts) return;
i = 0;
- EINA_INLIST_ITER_NEXT(points, pt)
+ EINA_INLIST_FOREACH(points, pt)
{
if (i < num)
{
rects = evas_common_tilebuf_get_render_rects(im->updates);
if (rects)
{
- EINA_INLIST_ITER_NEXT(rects, r)
+ EINA_INLIST_FOREACH(rects, r)
{
int rx, ry, rw, rh;
/* int op; */
/* if ((!rs) || (!dc)) return; */
-/* num = 0; EINA_INLIST_ITER_NEXT(points, pt) num++; */
+/* num = 0; EINA_INLIST_FOREACH(points, pt) num++; */
/* if (num < 3) return; */
/* a = (dc->col.col >> 24) & 0xff; */
/* if (a == 0) return; */
/* pts = malloc(num * sizeof(XPointDouble)); */
/* if (!pts) return; */
/* i = 0; */
-/* EINA_INLIST_ITER_NEXT(points, pt) */
+/* EINA_INLIST_FOREACH(points, pt) */
/* { */
/* if (i < num) */
/* { */