about: update to use new efl interface.
This commit is contained in:
parent
cf48e97379
commit
03324357ed
|
@ -6,32 +6,28 @@ static void
|
|||
_setup(void)
|
||||
{
|
||||
Evas_Object *o;
|
||||
Evas_Textblock_Style *st;
|
||||
|
||||
o = evas_object_textblock_add(evas);
|
||||
o = efl_add(EFL_CANVAS_TEXTBLOCK_CLASS, evas);
|
||||
efl_gfx_entity_position_set(o, EINA_POSITION2D(10, 40));
|
||||
efl_gfx_entity_size_set(o, EINA_SIZE2D(win_w - 20, win_h - 50));
|
||||
efl_gfx_entity_visible_set(o, EINA_TRUE);
|
||||
st = evas_textblock_style_new();
|
||||
evas_textblock_style_set
|
||||
(st,
|
||||
"DEFAULT='font=Vera font_size=8 align=left color=#000 wrap=word'"
|
||||
"center='+ font=Vera font_size=10 align=center'"
|
||||
"/center='- \n \n'"
|
||||
"p='+ font=Vera font_size=10 align=left'"
|
||||
"/p='- \n \n'"
|
||||
);
|
||||
evas_object_textblock_style_set(o, st);
|
||||
evas_object_textblock_clear(o);
|
||||
evas_object_textblock_text_markup_set
|
||||
(o, "<center>"
|
||||
|
||||
efl_text_font_family_set(o, "Vera");
|
||||
efl_text_font_size_set(o, 10);
|
||||
efl_text_color_set(o, 0, 0, 0, 255);
|
||||
efl_text_multiline_set(o, EINA_TRUE);
|
||||
efl_text_horizontal_align_set(o, 0.5);
|
||||
efl_text_wrap_set(o, EFL_TEXT_FORMAT_WRAP_WORD);
|
||||
|
||||
efl_text_markup_set
|
||||
(o,
|
||||
"Enlightenment used to be a window manager project, but "
|
||||
"since has changed a lot to become a miniature desktop and mobile "
|
||||
"device environment all of its own. It is now made up of many "
|
||||
"components (libraries and applications) that have specific uses. "
|
||||
"It is very large, and so requires more testing and demonstration."
|
||||
"</center>"
|
||||
|
||||
"</br>"
|
||||
"<center>"
|
||||
"Expedite is a full test suite for Evas, which is one of the "
|
||||
"core components of the Enlightenment Foundation Libraries. Evas "
|
||||
|
@ -39,9 +35,8 @@ _setup(void)
|
|||
"render to many targets, including framebuffer, X11, OpenGL, memory, "
|
||||
"DirectFB and other targets to boot. It handles high level graphic "
|
||||
"layout descriptions that applications set up, dealing with the hard "
|
||||
"work of doing the drawing for them."
|
||||
"</center>");
|
||||
evas_textblock_style_free(st);
|
||||
"work of doing the drawing for them.");
|
||||
|
||||
o_text = o;
|
||||
ui_fps(0.0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue