Evas_Object_Textblock_Node_Text *text_nodes;
Evas_Object_Textblock_Node_Format *format_nodes;
Evas_Object_Textblock_Paragraph *paragraphs;
- Evas_Object_Textblock_Line *lines;
int last_w;
struct {
int l, r, t, b;
}
if (!calc_only)
{
- o->lines = c->par->lines;
o->paragraphs = c->paragraphs;
return;
}
o = (Evas_Object_Textblock *)(obj->object_data);
paragraphs = o->paragraphs;
o->paragraphs = NULL;
- o->lines = NULL;
o->formatted.valid = 0;
o->native.valid = 0;
_layout(obj,
o = (Evas_Object_Textblock *)(obj->object_data);
if (!o->formatted.valid) _relayout(obj);
- EINA_INLIST_FOREACH(o->lines, ln)
+ EINA_INLIST_FOREACH(o->paragraphs->lines, ln)
{
Evas_Object_Textblock_Item *it;
Evas_Object_Textblock_Line *lnn;
o = (Evas_Object_Textblock *)(obj->object_data);
if (!o->formatted.valid) _relayout(obj);
- EINA_INLIST_FOREACH(o->lines, ln)
+ EINA_INLIST_FOREACH(o->paragraphs->lines, ln)
{
Evas_Object_Textblock_Format_Item *fi;
Evas_Object_Textblock *o;
o = (Evas_Object_Textblock *)(obj->object_data);
- EINA_INLIST_FOREACH(o->lines, ln)
+ EINA_INLIST_FOREACH(o->paragraphs->lines, ln)
{
if (ln->line_no == line) return ln;
}
{
if (!o->text_nodes)
{
- ln = o->lines;
+ if (!o->paragraphs) return -1;
+ ln = o->paragraphs->lines;
if (!ln) return -1;
if (cx) *cx = ln->x;
if (cy) *cy = ln->y;
if (!o->formatted.valid) _relayout(cur->obj);
if (!cur->node)
{
- ln = o->lines;
+ ln = o->paragraphs->lines;
}
else
{
if (!o->formatted.valid) _relayout(cur->obj);
x += o->style_pad.l;
y += o->style_pad.t;
- EINA_INLIST_FOREACH(o->lines, ln)
+ EINA_INLIST_FOREACH(o->paragraphs->lines, ln)
{
if (ln->y > y) break;
if ((ln->y <= y) && ((ln->y + ln->h) > y))
o = (Evas_Object_Textblock *)(cur->obj->object_data);
if (!o->formatted.valid) _relayout(cur->obj);
y += o->style_pad.t;
- EINA_INLIST_FOREACH(o->lines, ln)
+ EINA_INLIST_FOREACH(o->paragraphs->lines, ln)
{
if (ln->y > y) break;
if ((ln->y <= y) && ((ln->y + ln->h) > y))
{
_paragraphs_clear(obj, o->paragraphs);
o->paragraphs = NULL;
- o->lines = NULL;
}
_evas_textblock_changed(o, obj);
}
context);
clip = ENFN->context_clip_get(output, context, &cx, &cy, &cw, &ch);
#define ITEM_WALK() \
- EINA_INLIST_FOREACH(o->lines, ln) \
+ EINA_INLIST_FOREACH(o->paragraphs->lines, ln) \
{ \
Evas_Object_Textblock_Item *it; \
\
paragraphs = o->paragraphs;
o->paragraphs = NULL;
- o->lines = NULL;
o->formatted.valid = 0;
o->native.valid = 0;
_layout(obj,
Evas_Object_Textblock_Line *ln;
o = (Evas_Object_Textblock *)(obj->object_data);
- EINA_INLIST_FOREACH(o->lines, ln)
+ EINA_INLIST_FOREACH(o->paragraphs->lines, ln)
{
Evas_Object_Textblock_Item *it;