forked from enlightenment/efl
Evas: Added align=auto format to textblock.
This is the default. This lets you make textblock (or parts affected by this tag) auto align according to the natural paragraph direction. SVN revision: 50985
This commit is contained in:
parent
3c7627035e
commit
c3759fb4a2
|
@ -1245,6 +1245,12 @@ _format_command(Evas_Object *obj, Evas_Object_Textblock_Format *fmt, const char
|
|||
&(fmt->color.strikethrough.r), &(fmt->color.strikethrough.g),
|
||||
&(fmt->color.strikethrough.b), &(fmt->color.strikethrough.a));
|
||||
else if (cmd == alignstr)
|
||||
{
|
||||
if (!strcmp(tmp_param, "auto"))
|
||||
{
|
||||
fmt->halign_auto = EINA_TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!strcmp(tmp_param, "middle")) fmt->halign = 0.5;
|
||||
else if (!strcmp(tmp_param, "center")) fmt->halign = 0.5;
|
||||
|
@ -1267,6 +1273,7 @@ _format_command(Evas_Object *obj, Evas_Object_Textblock_Format *fmt, const char
|
|||
}
|
||||
fmt->halign_auto = EINA_FALSE;
|
||||
}
|
||||
}
|
||||
else if (cmd == valignstr)
|
||||
{
|
||||
if (!strcmp(tmp_param, "top")) fmt->valign = 0.0;
|
||||
|
|
Loading…
Reference in New Issue