Evas_Object_Textblock_Node_Text *text_node;
Eina_List *logical_items;
Evas_BiDi_Paragraph_Props *bidi_props;
- Evas_Coord x, y, w, h;
+ Evas_Coord y, w, h;
int line_no;
Eina_Bool visible : 1;
Eina_Bool indexed : 1;
}
{
- Evas_Coord new_wmax = c->par->x + c->ln->x + c->ln->w +
+ Evas_Coord new_wmax = c->ln->x + c->ln->w +
c->marginl + c->marginr - (c->o->style_pad.l + c->o->style_pad.r);
if (new_wmax > c->wmax)
c->wmax = new_wmax;
if (!o->paragraphs) return -1;
ln = o->paragraphs->lines;
if (!ln) return -1;
- if (cx) *cx = ln->par->x + ln->x;
+ if (cx) *cx = ln->x;
if (cy) *cy = ln->par->y + ln->y;
if (cw) *cw = ln->w;
if (ch) *ch = ln->h;
&x, &y, &w, &h);
}
- x += ln->par->x + ln->x + _ITEM(ti)->x;
+ x += ln->x + _ITEM(ti)->x;
- if (x < ln->par->x + ln->x)
+ if (x < ln->x)
{
- x = ln->par->x + ln->x;
+ x = ln->x;
}
y = ln->par->y + ln->y;
h = ln->h;
if (EVAS_BIDI_PARAGRAPH_DIRECTION_IS_RTL(
ln->par->bidi_props))
{
- x = ln->par->x + ln->x;
+ x = ln->x;
}
else
#endif
{
- x = ln->par->x + ln->x + ln->w;
+ x = ln->x + ln->w;
}
y = ln->par->y + ln->y;
}
}
else
{
- x = ln->par->x + ln->x + _ITEM(fi)->x;
+ x = ln->x + _ITEM(fi)->x;
y = ln->par->y + ln->y;
w = _ITEM(fi)->w;
h = ln->h;
_find_layout_item_match(cur, &ln, &it);
}
if (!ln) return -1;
- x = ln->par->x + ln->x;
+ x = ln->x;
y = ln->par->y + ln->y;
w = ln->w;
h = ln->h;
{
EINA_INLIST_FOREACH(ln->items, it)
{
- if ((it->x + ln->par->x + ln->x) > x)
+ if ((it->x + ln->x) > x)
{
it_break = it;
break;
}
- if (((it->x + ln->par->x + ln->x) <= x) && (((it->x + ln->par->x + ln->x) + it->adv) > x))
+ if (((it->x + ln->x) <= x) && (((it->x + ln->x) + it->adv) > x))
{
if (it->type == EVAS_TEXTBLOCK_ITEM_TEXT)
{
cur->ENDT,
ti->parent.format->font.font,
&ti->text_props,
- x - it->x - ln->par->x - ln->x, 0,
+ x - it->x - ln->x, 0,
&cx, &cy, &cw, &ch);
if (pos < 0)
return EINA_FALSE;
{
tr = calloc(1, sizeof(Evas_Textblock_Rectangle));
rects = eina_list_append(rects, tr);
- tr->x = ln->par->x + ln->x + it1->x + x;
+ tr->x = ln->x + it1->x + x;
tr->y = ln->par->y + ln->y;
tr->h = ln->h;
tr->w = w;
{
tr = calloc(1, sizeof(Evas_Textblock_Rectangle));
rects = eina_list_append(rects, tr);
- tr->x = ln->par->x + ln->x + it1->x + x;
+ tr->x = ln->x + it1->x + x;
tr->y = ln->par->y + ln->y;
tr->h = ln->h;
tr->w = w;
{
tr = calloc(1, sizeof(Evas_Textblock_Rectangle));
rects = eina_list_append(rects, tr);
- tr->x = ln->par->x + ln->x + min_x;
+ tr->x = ln->x + min_x;
tr->y = ln->par->y + ln->y;
tr->h = ln->h;
tr->w = max_x - min_x;
{
tr = calloc(1, sizeof(Evas_Textblock_Rectangle));
rects = eina_list_append(rects, tr);
- tr->x = ln->par->x + ln->x + it2->x + x;
+ tr->x = ln->x + it2->x + x;
tr->y = ln->par->y + ln->y;
tr->h = ln->h;
tr->w = w;
{
tr = calloc(1, sizeof(Evas_Textblock_Rectangle));
rects = eina_list_append(rects, tr);
- tr->x = lni->par->x + lni->x;
+ tr->x = lni->x;
tr->y = lni->par->y + lni->y;
tr->h = lni->h;
tr->w = lni->w;
_find_layout_item_line_match(cur->obj, cur->node, cur->pos, &ln, &it);
fi = _ITEM_FORMAT(it);
if ((!ln) || (!fi)) return EINA_FALSE;
- x = ln->par->x + ln->x + fi->parent.x;
+ x = ln->x + fi->parent.x;
y = ln->par->y + ln->y + ln->baseline + fi->y;
w = fi->parent.w;
h = fi->parent.h;
TB_HEAD_RETURN(0);
ln = _find_layout_line_num(obj, line);
if (!ln) return EINA_FALSE;
- if (cx) *cx = ln->par->x + ln->x;
+ if (cx) *cx = ln->x;
if (cy) *cy = ln->par->y + ln->y;
if (cw) *cw = ln->w;
if (ch) *ch = ln->h;
_ITEM_TEXT(itr)->baseline : ln->baseline; \
if (clip) \
{ \
- if ((obj->cur.geometry.x + x + par->x + ln->x + itr->x + itr->w) < (cx - 20)) \
+ if ((obj->cur.geometry.x + x + ln->x + itr->x + itr->w) < (cx - 20)) \
continue; \
- if ((obj->cur.geometry.x + x + par->x + ln->x + itr->x) > (cx + cw + 20)) \
+ if ((obj->cur.geometry.x + x + ln->x + itr->x) > (cx + cw + 20)) \
break; \
} \
- if ((par->x + ln->x + itr->x + itr->w) <= 0) continue; \
- if (par->x + ln->x + itr->x > obj->cur.geometry.w) break; \
+ if ((ln->x + itr->x + itr->w) <= 0) continue; \
+ if (ln->x + itr->x > obj->cur.geometry.w) break; \
do
#define ITEM_WALK_END() \
(obj->cur.cache.clip.a * ti->parent.format->color.col.a * (amul)) / 65025);
#define DRAW_TEXT(ox, oy) \
if (ti->parent.format->font.font) ENFN->font_draw(output, context, surface, ti->parent.format->font.font, \
- obj->cur.geometry.x + ln->par->x + ln->x + ti->parent.x + x + (ox), \
+ obj->cur.geometry.x + ln->x + ti->parent.x + x + (ox), \
obj->cur.geometry.y + ln->par->y + ln->y + yoff + y + (oy), \
ti->parent.w, ti->parent.h, ti->parent.w, ti->parent.h, \
&ti->text_props);
ENFN->rectangle_draw(output, \
context, \
surface, \
- obj->cur.geometry.x + ln->par->x + ln->x + x + (ox), \
+ obj->cur.geometry.x + ln->x + x + (ox), \
obj->cur.geometry.y + ln->par->y + ln->y + y + (oy), \
(ow), \
(oh)); \