Revert "Revert "Setup before starting fps measurement""
[platform/upstream/expedite.git] / src / bin / about.c
1 #include "main.h"
2
3 #if 0
4 static Evas_Object *o_text = NULL;
5
6 static void
7 _setup(void)
8 {
9    Evas_Object *o;
10
11    o = efl_add(EFL_CANVAS_TEXTBLOCK_CLASS, evas);
12    efl_gfx_entity_position_set(o, EINA_POSITION2D(10, 40));
13    efl_gfx_entity_size_set(o, EINA_SIZE2D(win_w - 20, win_h - 50));
14    efl_gfx_entity_visible_set(o, EINA_TRUE);
15
16    efl_text_font_family_set(o, "Vera");
17    efl_text_font_size_set(o, 10);
18    efl_text_color_set(o, 0, 0, 0, 255);
19    efl_text_multiline_set(o, EINA_TRUE);
20    efl_text_horizontal_align_set(o, 0.5);
21    efl_text_wrap_set(o, EFL_TEXT_FORMAT_WRAP_WORD);
22
23    efl_text_markup_set
24      (o,
25       "Enlightenment used to be a window manager project, but "
26       "since has changed a lot to become a miniature desktop and mobile "
27       "device environment all of its own. It is now made up of many "
28       "components (libraries and applications) that have specific uses. "
29       "It is very large, and so requires more testing and demonstration."
30       "</center>"
31       "</br>"
32       "<center>"
33       "Expedite is a full test suite for Evas, which is one of the "
34       "core components of the Enlightenment Foundation Libraries. Evas "
35       "handles the realtime display canvas used by EFL applications to "
36       "render to many targets, including framebuffer, X11, OpenGL, memory, "
37       "DirectFB and other targets to boot. It handles high level graphic "
38       "layout descriptions that applications set up, dealing with the hard "
39       "work of doing the drawing for them.");
40
41    o_text = o;
42    ui_fps(0.0);
43 }
44
45 static void
46 _cleanup(void)
47 {
48    efl_del(o_text);
49    o_text = NULL;
50 }
51
52 static void
53 _loop(double t EINA_UNUSED,
54       int f EINA_UNUSED)
55 {
56 }
57
58 static void
59 _key(const char *key)
60 {
61    if ((!strcmp(key, "Escape")) || (!strcmp(key, "q")) || (!strcmp(key, "Q")))
62      {
63         _cleanup();
64         ui_menu();
65      }
66 }
67 #endif
68 void
69 about_start(void)
70 {
71 #if 0
72    _setup();
73    ui_func_set(_key, _loop);
74 #endif
75 }