summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavio Sena <savio.sena@acm.org>2014-09-23 12:48:22 -0300
committerSavio Sena <savio.sena@acm.org>2014-09-23 12:48:22 -0300
commitd9a9594744baaf1f15c09c3bda7bc2c258b0250a (patch)
tree4abeaeb8d80c712e35d9a630f373423e13bfd6fb
parentacc4a6f195456ac6039cd1a9f941ee5fe9b736ae (diff)
Add missing FNAME(void) definition.
-rw-r--r--src/bin/cxx/image_blend_many_smooth_same_scaled.cc61
-rw-r--r--src/bin/cxx/rect_blend.cc61
-rw-r--r--src/bin/cxx/rect_blend_few.cc61
-rw-r--r--src/bin/cxx/rect_blend_pow2.cc61
-rw-r--r--src/bin/cxx/rect_blend_pow2_few.cc61
-rw-r--r--src/bin/cxx/rect_solid.cc61
-rw-r--r--src/bin/cxx/rect_solid_few.cc61
-rw-r--r--src/bin/cxx/text_basic.cc61
-rw-r--r--src/bin/cxx/text_change.cc61
-rw-r--r--src/bin/cxx/text_styles.cc61
-rw-r--r--src/bin/cxx/text_styles_different_strings.cc61
-rw-r--r--src/bin/cxx/textblock_auto_align.cc61
-rw-r--r--src/bin/cxx/textblock_basic.cc61
-rw-r--r--src/bin/cxx/textblock_intl.cc62
-rw-r--r--src/bin/cxx/textblock_text_append.cc61
-rw-r--r--src/bin/cxx/widgets_file_icons.cc61
-rw-r--r--src/bin/cxx/widgets_file_icons_2.cc61
-rw-r--r--src/bin/cxx/widgets_file_icons_2_grouped.cc61
-rw-r--r--src/bin/cxx/widgets_file_icons_2_same.cc61
-rw-r--r--src/bin/cxx/widgets_file_icons_3.cc61
-rw-r--r--src/bin/cxx/widgets_file_icons_4.cc61
-rw-r--r--src/bin/cxx/widgets_list_1.cc61
-rw-r--r--src/bin/cxx/widgets_list_1_grouped.cc61
-rw-r--r--src/bin/cxx/widgets_list_2.cc61
-rw-r--r--src/bin/cxx/widgets_list_2_grouped.cc61
-rw-r--r--src/bin/cxx/widgets_list_3.cc61
-rw-r--r--src/bin/cxx/widgets_list_3_grouped.cc61
-rw-r--r--src/bin/cxx/widgets_list_4.cc61
-rw-r--r--src/bin/cxx/widgets_list_4_grouped.cc61
29 files changed, 29 insertions, 1741 deletions
diff --git a/src/bin/cxx/image_blend_many_smooth_same_scaled.cc b/src/bin/cxx/image_blend_many_smooth_same_scaled.cc
index 50f1403..b14f439 100644
--- a/src/bin/cxx/image_blend_many_smooth_same_scaled.cc
+++ b/src/bin/cxx/image_blend_many_smooth_same_scaled.cc
@@ -45,68 +45,9 @@ static void _setup(void)
45 done = 0; 45 done = 0;
46} 46}
47 47
48/* cleanup */
49static void _cleanup(void)
50{
51 int i;
52 for (i = 0; i < MANYNUM; i++) eo_del(images[i]);
53}
54
55/* loop - do things */
56static void _loop(double t, int f)
57{
58 int i;
59 Evas_Coord x, y, w, h;
60 for (i = 0; i < MANYNUM; i++)
61 {
62 eo_do(images[i], evas_obj_size_get(&w, &h));
63 x = (win_w / 2) - (w / 2);
64 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (win_w / 2);
65 y = (win_h / 2) - (h / 2);
66 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (win_h / 2);
67 eo_do(images[i], evas_obj_position_set(x, y));
68 }
69 FPS_STD(NAME);
70}
71 48
72/* prepend special key handlers if interactive (before STD) */ 49extern "C" static void _key(char *key)
73static void _key(char *key)
74{ 50{
75 KEY_STD; 51 KEY_STD;
76} 52}
77 53
78
79
80
81
82
83
84
85
86
87
88
89/* template stuff - ignore */
90# endif
91#endif
92
93#ifdef UI
94_ui_menu_item_add(ICON, NAME, FNAME);
95#endif
96
97#ifdef PROTO
98void FNAME(void);
99#endif
100
101#ifndef PROTO
102# ifndef UI
103void FNAME(void)
104{
105 ui_func_set(_key, _loop);
106 _setup();
107}
108# endif
109#endif
110#undef FNAME
111#undef NAME
112#undef ICON
diff --git a/src/bin/cxx/rect_blend.cc b/src/bin/cxx/rect_blend.cc
index 6e2dcce..19abb26 100644
--- a/src/bin/cxx/rect_blend.cc
+++ b/src/bin/cxx/rect_blend.cc
@@ -44,68 +44,9 @@ static void _cleanup(void)
44{ 44{
45 int i; 45 int i;
46 for (i = 0; i < OBNUM; i++) eo_del(images[i]); 46 for (i = 0; i < OBNUM; i++) eo_del(images[i]);
47}
48
49/* loop - do things */
50static void _loop(double t, int f)
51{
52 int i;
53 Evas_Coord x, y, w, h, w0, h0;
54 for (i = 0; i < OBNUM; i++)
55 {
56 w0 = 80;
57 h0 = 80;
58 w = 5 + ((1.0 + cos((double)(f + (i * 10)) / (7.4 * SLOW) )) * w0 * 2);
59 h = 5 + ((1.0 + sin((double)(f + (i * 19)) / (12.6 * SLOW) )) * h0 * 2);
60 x = (win_w / 2) - (w / 2);
61 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
62 y = (win_h / 2) - (h / 2);
63 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
64 eo_do(images[i],
65 evas_obj_position_set(x, y),
66 evas_obj_size_set(w, h));
67 }
68 FPS_STD(NAME);
69}
70 47
71/* prepend special key handlers if interactive (before STD) */ 48extern "C" static void _key(char *key)
72static void _key(char *key)
73{ 49{
74 KEY_STD; 50 KEY_STD;
75} 51}
76 52
77
78
79
80
81
82
83
84
85
86
87
88/* template stuff - ignore */
89# endif
90#endif
91
92#ifdef UI
93_ui_menu_item_add(ICON, NAME, FNAME);
94#endif
95
96#ifdef PROTO
97void FNAME(void);
98#endif
99
100#ifndef PROTO
101# ifndef UI
102void FNAME(void)
103{
104 ui_func_set(_key, _loop);
105 _setup();
106}
107# endif
108#endif
109#undef FNAME
110#undef NAME
111#undef ICON
diff --git a/src/bin/cxx/rect_blend_few.cc b/src/bin/cxx/rect_blend_few.cc
index 181683c..064bdc2 100644
--- a/src/bin/cxx/rect_blend_few.cc
+++ b/src/bin/cxx/rect_blend_few.cc
@@ -45,68 +45,9 @@ static void _setup(void)
45static void _cleanup(void) 45static void _cleanup(void)
46{ 46{
47 int i; 47 int i;
48 for (i = 0; i < OBNUM; i++) eo_del(images[i]);
49}
50
51/* loop - do things */
52static void _loop(double t, int f)
53{
54 int i;
55 Evas_Coord x, y, w, h, w0, h0;
56 for (i = 0; i < OBNUM; i++)
57 {
58 w0 = 80;
59 h0 = 80;
60 w = 5 + ((1.0 + cos((double)(f + (i * 10)) / (7.4 * SLOW) )) * w0 * 2);
61 h = 5 + ((1.0 + sin((double)(f + (i * 19)) / (12.6 * SLOW) )) * h0 * 2);
62 x = (win_w / 2) - (w / 2);
63 x += sin((double)(f + (i * 113)) / (36.7 * SLOW)) * (w0 / 2);
64 y = (win_h / 2) - (h / 2);
65 y += cos((double)(f + (i * 228)) / (43.8 * SLOW)) * (h0 / 2);
66 eo_do(images[i], evas_obj_position_set(x, y),
67 evas_obj_size_set(w, h));
68 }
69 FPS_STD(NAME);
70}
71 48
72/* prepend special key handlers if interactive (before STD) */ 49extern "C" static void _key(char *key)
73static void _key(char *key)
74{ 50{
75 KEY_STD; 51 KEY_STD;
76} 52}
77 53
78
79
80
81
82
83
84
85
86
87
88
89/* template stuff - ignore */
90# endif
91#endif
92
93#ifdef UI
94_ui_menu_item_add(ICON, NAME, FNAME);
95#endif
96
97#ifdef PROTO
98void FNAME(void);
99#endif
100
101#ifndef PROTO
102# ifndef UI
103void FNAME(void)
104{
105 ui_func_set(_key, _loop);
106 _setup();
107}
108# endif
109#endif
110#undef FNAME
111#undef NAME
112#undef ICON
diff --git a/src/bin/cxx/rect_blend_pow2.cc b/src/bin/cxx/rect_blend_pow2.cc
index 8ba5fb0..202bf17 100644
--- a/src/bin/cxx/rect_blend_pow2.cc
+++ b/src/bin/cxx/rect_blend_pow2.cc
@@ -45,68 +45,9 @@ static void _cleanup(void)
45{ 45{
46 int i; 46 int i;
47 for (i = 0; i < OBNUM; i++) eo_del(images[i]); 47 for (i = 0; i < OBNUM; i++) eo_del(images[i]);
48}
49
50/* loop - do things */
51static void _loop(double t, int f)
52{
53 int i;
54 Evas_Coord x, y, w, h, w0, h0;
55 for (i = 0; i < OBNUM; i++)
56 {
57 w0 = 80;
58 h0 = 80;
59 w = 5 + ((1.0 + cos((double)(f + (i * 10)) / (7.4 * SLOW) )) * w0 * 2);
60 h = 5 + ((1.0 + sin((double)(f + (i * 19)) / (12.6 * SLOW) )) * h0 * 2);
61 x = (win_w / 2) - (w / 2);
62 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
63 y = (win_h / 2) - (h / 2);
64 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
65 eo_do(images[i],
66 evas_obj_position_set(x, y),
67 evas_obj_size_set(w, h));
68 }
69 FPS_STD(NAME);
70}
71 48
72/* prepend special key handlers if interactive (before STD) */ 49extern "C" static void _key(char *key)
73static void _key(char *key)
74{ 50{
75 KEY_STD; 51 KEY_STD;
76} 52}
77 53
78
79
80
81
82
83
84
85
86
87
88
89/* template stuff - ignore */
90# endif
91#endif
92
93#ifdef UI
94_ui_menu_item_add(ICON, NAME, FNAME);
95#endif
96
97#ifdef PROTO
98void FNAME(void);
99#endif
100
101#ifndef PROTO
102# ifndef UI
103void FNAME(void)
104{
105 ui_func_set(_key, _loop);
106 _setup();
107}
108# endif
109#endif
110#undef FNAME
111#undef NAME
112#undef ICON
diff --git a/src/bin/cxx/rect_blend_pow2_few.cc b/src/bin/cxx/rect_blend_pow2_few.cc
index 67a270a..865b846 100644
--- a/src/bin/cxx/rect_blend_pow2_few.cc
+++ b/src/bin/cxx/rect_blend_pow2_few.cc
@@ -46,68 +46,9 @@ static void _setup(void)
46static void _cleanup(void) 46static void _cleanup(void)
47{ 47{
48 int i; 48 int i;
49 for (i = 0; i < OBNUM; i++) eo_del(images[i]);
50}
51
52/* loop - do things */
53static void _loop(double t, int f)
54{
55 int i;
56 Evas_Coord x, y, w, h, w0, h0;
57 for (i = 0; i < OBNUM; i++)
58 {
59 w0 = 80;
60 h0 = 80;
61 w = 5 + ((1.0 + cos((double)(f + (i * 10)) / (7.4 * SLOW) )) * w0 * 2);
62 h = 5 + ((1.0 + sin((double)(f + (i * 19)) / (12.6 * SLOW) )) * h0 * 2);
63 x = (win_w / 2) - (w / 2);
64 x += sin((double)(f + (i * 113)) / (36.7 * SLOW)) * (w0 / 2);
65 y = (win_h / 2) - (h / 2);
66 y += cos((double)(f + (i * 228)) / (43.8 * SLOW)) * (h0 / 2);
67 eo_do(images[i], evas_obj_position_set(x, y),
68 evas_obj_size_set(w, h));
69 }
70 FPS_STD(NAME);
71}
72 49
73/* prepend special key handlers if interactive (before STD) */ 50extern "C" static void _key(char *key)
74static void _key(char *key)
75{ 51{
76 KEY_STD; 52 KEY_STD;
77} 53}
78 54
79
80
81
82
83
84
85
86
87
88
89
90/* template stuff - ignore */
91# endif
92#endif
93
94#ifdef UI
95_ui_menu_item_add(ICON, NAME, FNAME);
96#endif
97
98#ifdef PROTO
99void FNAME(void);
100#endif
101
102#ifndef PROTO
103# ifndef UI
104void FNAME(void)
105{
106 ui_func_set(_key, _loop);
107 _setup();
108}
109# endif
110#endif
111#undef FNAME
112#undef NAME
113#undef ICON
diff --git a/src/bin/cxx/rect_solid.cc b/src/bin/cxx/rect_solid.cc
index fd32d05..c8c3311 100644
--- a/src/bin/cxx/rect_solid.cc
+++ b/src/bin/cxx/rect_solid.cc
@@ -44,68 +44,9 @@ static void _cleanup(void)
44{ 44{
45 int i; 45 int i;
46 for (i = 0; i < OBNUM; i++) eo_del(images[i]); 46 for (i = 0; i < OBNUM; i++) eo_del(images[i]);
47}
48
49/* loop - do things */
50static void _loop(double t, int f)
51{
52 int i;
53 Evas_Coord x, y, w, h, w0, h0;
54 for (i = 0; i < OBNUM; i++)
55 {
56 w0 = 80;
57 h0 = 80;
58 w = 5 + ((1.0 + cos((double)(f + (i * 10)) / (7.4 * SLOW) )) * w0 * 2);
59 h = 5 + ((1.0 + sin((double)(f + (i * 19)) / (12.6 * SLOW) )) * h0 * 2);
60 x = (win_w / 2) - (w / 2);
61 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
62 y = (win_h / 2) - (h / 2);
63 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
64 eo_do(images[i],
65 evas_obj_position_set(x, y),
66 evas_obj_size_set(w, h));
67 }
68 FPS_STD(NAME);
69}
70 47
71/* prepend special key handlers if interactive (before STD) */ 48extern "C" static void _key(char *key)
72static void _key(char *key)
73{ 49{
74 KEY_STD; 50 KEY_STD;
75} 51}
76 52
77
78
79
80
81
82
83
84
85
86
87
88/* template stuff - ignore */
89# endif
90#endif
91
92#ifdef UI
93_ui_menu_item_add(ICON, NAME, FNAME);
94#endif
95
96#ifdef PROTO
97void FNAME(void);
98#endif
99
100#ifndef PROTO
101# ifndef UI
102void FNAME(void)
103{
104 ui_func_set(_key, _loop);
105 _setup();
106}
107# endif
108#endif
109#undef FNAME
110#undef NAME
111#undef ICON
diff --git a/src/bin/cxx/rect_solid_few.cc b/src/bin/cxx/rect_solid_few.cc
index 0a46888..a454143 100644
--- a/src/bin/cxx/rect_solid_few.cc
+++ b/src/bin/cxx/rect_solid_few.cc
@@ -45,68 +45,9 @@ static void _setup(void)
45static void _cleanup(void) 45static void _cleanup(void)
46{ 46{
47 int i; 47 int i;
48 for (i = 0; i < OBNUM; i++) eo_del(images[i]);
49}
50
51/* loop - do things */
52static void _loop(double t, int f)
53{
54 int i;
55 Evas_Coord x, y, w, h, w0, h0;
56 for (i = 0; i < OBNUM; i++)
57 {
58 w0 = 80;
59 h0 = 80;
60 w = 5 + ((1.0 + cos((double)(f + (i * 10)) / (7.4 * SLOW) )) * w0 * 2);
61 h = 5 + ((1.0 + sin((double)(f + (i * 19)) / (12.6 * SLOW) )) * h0 * 2);
62 x = (win_w / 2) - (w / 2);
63 x += sin((double)(f + (i * 113)) / (36.7 * SLOW)) * (w0 / 2);
64 y = (win_h / 2) - (h / 2);
65 y += cos((double)(f + (i * 228)) / (43.8 * SLOW)) * (h0 / 2);
66 eo_do(images[i], evas_obj_position_set(x, y),
67 evas_obj_size_set(w, h));
68 }
69 FPS_STD(NAME);
70}
71 48
72/* prepend special key handlers if interactive (before STD) */ 49extern "C" static void _key(char *key)
73static void _key(char *key)
74{ 50{
75 KEY_STD; 51 KEY_STD;
76} 52}
77 53
78
79
80
81
82
83
84
85
86
87
88
89/* template stuff - ignore */
90# endif
91#endif
92
93#ifdef UI
94_ui_menu_item_add(ICON, NAME, FNAME);
95#endif
96
97#ifdef PROTO
98void FNAME(void);
99#endif
100
101#ifndef PROTO
102# ifndef UI
103void FNAME(void)
104{
105 ui_func_set(_key, _loop);
106 _setup();
107}
108# endif
109#endif
110#undef FNAME
111#undef NAME
112#undef ICON
diff --git a/src/bin/cxx/text_basic.cc b/src/bin/cxx/text_basic.cc
index 692c3d7..5611888 100644
--- a/src/bin/cxx/text_basic.cc
+++ b/src/bin/cxx/text_basic.cc
@@ -35,68 +35,9 @@ static void _setup(void)
35 done = 0; 35 done = 0;
36} 36}
37 37
38/* cleanup */
39static void _cleanup(void)
40{
41 int i;
42 for (i = 0; i < OBNUM; i++) eo_del(o_texts[i]);
43}
44
45/* loop - do things */
46static void _loop(double t, int f)
47{
48 int i;
49 Evas_Coord x, y, w, h;
50 for (i = 0; i < OBNUM; i++)
51 {
52 eo_do(o_texts[i], evas_obj_size_get(&w, &h));
53 x = (win_w / 2) - (w / 2);
54 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
55 y = (win_h / 2) - (h / 2);
56 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (w / 2);
57 eo_do(o_texts[i], evas_obj_position_set(x, y));
58 }
59 FPS_STD(NAME);
60}
61 38
62/* prepend special key handlers if interactive (before STD) */ 39extern "C" static void _key(char *key)
63static void _key(char *key)
64{ 40{
65 KEY_STD; 41 KEY_STD;
66} 42}
67 43
68
69
70
71
72
73
74
75
76
77
78
79/* template stuff - ignore */
80# endif
81#endif
82
83#ifdef UI
84_ui_menu_item_add(ICON, NAME, FNAME);
85#endif
86
87#ifdef PROTO
88void FNAME(void);
89#endif
90
91#ifndef PROTO
92# ifndef UI
93void FNAME(void)
94{
95 ui_func_set(_key, _loop);
96 _setup();
97}
98# endif
99#endif
100#undef FNAME
101#undef NAME
102#undef ICON
diff --git a/src/bin/cxx/text_change.cc b/src/bin/cxx/text_change.cc
index c4e880d..aabbd0e 100644
--- a/src/bin/cxx/text_change.cc
+++ b/src/bin/cxx/text_change.cc
@@ -58,68 +58,9 @@ static void _cleanup(void)
58{ 58{
59 int i; 59 int i;
60 for (i = 0; i < OBNUM; i++) eo_del(o_texts[i]); 60 for (i = 0; i < OBNUM; i++) eo_del(o_texts[i]);
61}
62
63/* loop - do things */
64static void _loop(double t, int f)
65{
66 int i;
67 char buf[1024];
68 const char *strs[] = {
69 "Big", "Smelly", "Fish", "Pants", "Octopus", "Garden", "There", "I",
70 "Am", "You", "Are", "Erogenous", "We", "Stick", "Wet", "Fishy",
71 "Fiddly", "Family", "Lair", "Monkeys", "Magazine"
72 };
73 for (i = 0; i < OBNUM; i++)
74 {
75 snprintf(buf, sizeof(buf), "%s %s %s %s.",
76 strs[rnd() % (sizeof(strs) / sizeof(char *))],
77 strs[rnd() % (sizeof(strs) / sizeof(char *))],
78 strs[rnd() % (sizeof(strs) / sizeof(char *))],
79 strs[rnd() % (sizeof(strs) / sizeof(char *))]);
80 eo_do(o_texts[i], efl_text_set(buf));
81 }
82 FPS_STD(NAME);
83}
84 61
85/* prepend special key handlers if interactive (before STD) */ 62extern "C" static void _key(char *key)
86static void _key(char *key)
87{ 63{
88 KEY_STD; 64 KEY_STD;
89} 65}
90 66
91
92
93
94
95
96
97
98
99
100
101
102/* template stuff - ignore */
103# endif
104#endif
105
106#ifdef UI
107_ui_menu_item_add(ICON, NAME, FNAME);
108#endif
109
110#ifdef PROTO
111void FNAME(void);
112#endif
113
114#ifndef PROTO
115# ifndef UI
116void FNAME(void)
117{
118 ui_func_set(_key, _loop);
119 _setup();
120}
121# endif
122#endif
123#undef FNAME
124#undef NAME
125#undef ICON
diff --git a/src/bin/cxx/text_styles.cc b/src/bin/cxx/text_styles.cc
index 3460812..0d5111c 100644
--- a/src/bin/cxx/text_styles.cc
+++ b/src/bin/cxx/text_styles.cc
@@ -45,68 +45,9 @@ static void _setup(void)
45 done = 0; 45 done = 0;
46} 46}
47 47
48/* cleanup */
49static void _cleanup(void)
50{
51 int i;
52 for (i = 0; i < OBNUM; i++) eo_del(o_texts[i]);
53}
54
55/* loop - do things */
56static void _loop(double t, int f)
57{
58 int i;
59 Evas_Coord x, y, w, h;
60 for (i = 0; i < OBNUM; i++)
61 {
62 eo_do(o_texts[i], evas_obj_size_get(&w, &h));
63 x = (win_w / 2) - (w / 2);
64 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
65 y = (win_h / 2) - (h / 2);
66 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (w / 2);
67 eo_do(o_texts[i], evas_obj_position_set(x, y));
68 }
69 FPS_STD(NAME);
70}
71 48
72/* prepend special key handlers if interactive (before STD) */ 49extern "C" static void _key(char *key)
73static void _key(char *key)
74{ 50{
75 KEY_STD; 51 KEY_STD;
76} 52}
77 53
78
79
80
81
82
83
84
85
86
87
88
89/* template stuff - ignore */
90# endif
91#endif
92
93#ifdef UI
94_ui_menu_item_add(ICON, NAME, FNAME);
95#endif
96
97#ifdef PROTO
98void FNAME(void);
99#endif
100
101#ifndef PROTO
102# ifndef UI
103void FNAME(void)
104{
105 ui_func_set(_key, _loop);
106 _setup();
107}
108# endif
109#endif
110#undef FNAME
111#undef NAME
112#undef ICON
diff --git a/src/bin/cxx/text_styles_different_strings.cc b/src/bin/cxx/text_styles_different_strings.cc
index ffc3b63..71e8306 100644
--- a/src/bin/cxx/text_styles_different_strings.cc
+++ b/src/bin/cxx/text_styles_different_strings.cc
@@ -56,68 +56,9 @@ static void _setup(void)
56 done = 0; 56 done = 0;
57} 57}
58 58
59/* cleanup */
60static void _cleanup(void)
61{
62 int i;
63 for (i = 0; i < OBNUM; i++) eo_del(o_texts[i]);
64}
65
66/* loop - do things */
67static void _loop(double t, int f)
68{
69 int i;
70 Evas_Coord x, y, w, h;
71 for (i = 0; i < OBNUM; i++)
72 {
73 eo_do(o_texts[i], evas_obj_size_get(&w, &h));
74 x = (win_w / 2) - (w / 2);
75 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
76 y = (win_h / 2) - (h / 2);
77 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (w / 2);
78 eo_do(o_texts[i], evas_obj_position_set(x, y));
79 }
80 FPS_STD(NAME);
81}
82 59
83/* prepend special key handlers if interactive (before STD) */ 60extern "C" static void _key(char *key)
84static void _key(char *key)
85{ 61{
86 KEY_STD; 62 KEY_STD;
87} 63}
88 64
89
90
91
92
93
94
95
96
97
98
99
100/* template stuff - ignore */
101# endif
102#endif
103
104#ifdef UI
105_ui_menu_item_add(ICON, NAME, FNAME);
106#endif
107
108#ifdef PROTO
109void FNAME(void);
110#endif
111
112#ifndef PROTO
113# ifndef UI
114void FNAME(void)
115{
116 ui_func_set(_key, _loop);
117 _setup();
118}
119# endif
120#endif
121#undef FNAME
122#undef NAME
123#undef ICON
diff --git a/src/bin/cxx/textblock_auto_align.cc b/src/bin/cxx/textblock_auto_align.cc
index bc6c4dc..9aaeda3 100644
--- a/src/bin/cxx/textblock_auto_align.cc
+++ b/src/bin/cxx/textblock_auto_align.cc
@@ -59,68 +59,9 @@ static void _setup(void)
59} 59}
60 60
61/* cleanup */ 61/* cleanup */
62static void _cleanup(void)
63{
64 eo_del(o_text);
65}
66
67/* loop - do things */
68static void _loop(double t, int f)
69{
70 Evas_Coord x, y, w, h, w0, h0;
71 int i = 0;
72
73 eo_do(o_text, evas_obj_textblock_size_native_get(&w0, &h0));
74 w = w0;
75 h = h0;
76 w += fabs(sin((double)(f + (i * 13)) / (31.1 * SLOW))) * (w0);
77 x = (win_w / 2) - (w / 2);
78 y = (win_h / 2) - (h0 / 2);
79 eo_do(o_text,
80 evas_obj_position_set(x, y),
81 evas_obj_size_set(w, h));
82
83 FPS_STD(NAME);
84}
85 62
86/* prepend special key handlers if interactive (before STD) */ 63extern "C" static void _key(char *key)
87static void _key(char *key)
88{ 64{
89 KEY_STD; 65 KEY_STD;
90} 66}
91 67
92
93
94
95
96
97
98
99
100
101
102
103/* template stuff - ignore */
104# endif
105#endif
106
107#ifdef UI
108_ui_menu_item_add(ICON, NAME, FNAME);
109#endif
110
111#ifdef PROTO
112void FNAME(void);
113#endif
114
115#ifndef PROTO
116# ifndef UI
117void FNAME(void)
118{
119 ui_func_set(_key, _loop);
120 _setup();
121}
122# endif
123#endif
124#undef FNAME
125#undef NAME
126#undef ICON
diff --git a/src/bin/cxx/textblock_basic.cc b/src/bin/cxx/textblock_basic.cc
index fee4518..928034d 100644
--- a/src/bin/cxx/textblock_basic.cc
+++ b/src/bin/cxx/textblock_basic.cc
@@ -122,68 +122,9 @@ static void _setup(void)
122/* cleanup */ 122/* cleanup */
123static void _cleanup(void) 123static void _cleanup(void)
124{ 124{
125 eo_del(o_text);
126}
127 125
128/* loop - do things */ 126extern "C" static void _key(char *key)
129static void _loop(double t, int f)
130{
131 Evas_Coord x, y, w, h, w0, h0;
132 int i = 0;
133
134 w0 = 160;
135 h0 = 120;
136 w = 150 + ((1.0 + cos((double)(f + (i * 10)) / (37.4 * SLOW) )) * w0 * 2);
137 h = 50 + ((1.0 + sin((double)(f + (i * 19)) / (52.6 * SLOW) )) * h0 * 2);
138 x = (win_w / 2) - (w / 2);
139 x += sin((double)(f + (i * 13)) / (86.7 * SLOW)) * (w0 / 2);
140 y = (win_h / 2) - (h / 2);
141 y += cos((double)(f + (i * 28)) / (93.8 * SLOW)) * (h0 / 2);
142 eo_do(o_text,
143 evas_obj_position_set(x, y),
144 evas_obj_size_set(w, 5000));
145
146 FPS_STD(NAME);
147}
148
149/* prepend special key handlers if interactive (before STD) */
150static void _key(char *key)
151{ 127{
152 KEY_STD; 128 KEY_STD;
153} 129}
154 130
155
156
157
158
159
160
161
162
163
164
165
166/* template stuff - ignore */
167# endif
168#endif
169
170#ifdef UI
171_ui_menu_item_add(ICON, NAME, FNAME);
172#endif
173
174#ifdef PROTO
175void FNAME(void);
176#endif
177
178#ifndef PROTO
179# ifndef UI
180void FNAME(void)
181{
182 ui_func_set(_key, _loop);
183 _setup();
184}
185# endif
186#endif
187#undef FNAME
188#undef NAME
189#undef ICON
diff --git a/src/bin/cxx/textblock_intl.cc b/src/bin/cxx/textblock_intl.cc
index e96935c..bf177ef 100644
--- a/src/bin/cxx/textblock_intl.cc
+++ b/src/bin/cxx/textblock_intl.cc
@@ -91,69 +91,9 @@ static void _setup(void)
91} 91}
92 92
93/* cleanup */ 93/* cleanup */
94static void _cleanup(void)
95{
96 eo_del(o_text);
97}
98
99/* loop - do things */
100static void _loop(double t, int f)
101{
102 Evas_Coord x, y, w, h, w0, h0;
103 int i = 0;
104
105 eo_do(o_text, evas_obj_textblock_size_native_get(&w0, &h0));
106 w = w0;
107 h = h0;
108 x = (win_w / 2) - (w / 2);
109 x += sin((double)(f + (i * 13)) / (31.1 * SLOW)) * (w0 / (2 * 2));
110 y = (win_h / 2) - (h / 2);
111 y += cos((double)(f + (i * 28)) / (19.6 * SLOW)) * (h0 / (2 * 2));
112 eo_do(o_text,
113 evas_obj_position_set(x, y),
114 evas_obj_size_set(w, h));
115
116 FPS_STD(NAME);
117}
118 94
119/* prepend special key handlers if interactive (before STD) */ 95extern "C" static void _key(char *key)
120static void _key(char *key)
121{ 96{
122 KEY_STD; 97 KEY_STD;
123} 98}
124 99
125
126
127
128
129
130
131
132
133
134
135
136/* template stuff - ignore */
137# endif
138#endif
139
140#ifdef UI
141_ui_menu_item_add(ICON, NAME, FNAME);
142#endif
143
144#ifdef PROTO
145void FNAME(void);
146#endif
147
148#ifndef PROTO
149# ifndef UI
150void FNAME(void)
151{
152 ui_func_set(_key, _loop);
153 _setup();
154}
155# endif
156#endif
157#undef FNAME
158#undef NAME
159#undef ICON
diff --git a/src/bin/cxx/textblock_text_append.cc b/src/bin/cxx/textblock_text_append.cc
index 1e38d2a..16830cd 100644
--- a/src/bin/cxx/textblock_text_append.cc
+++ b/src/bin/cxx/textblock_text_append.cc
@@ -108,68 +108,9 @@ static void _cleanup(void)
108 eo_del(o_text); 108 eo_del(o_text);
109} 109}
110 110
111/* loop - do things */
112static void _loop(double t, int f)
113{
114 Evas_Textblock_Cursor *cur;
115 static Evas_Textblock_Cursor *cur2;
116 eo_do(o_text, cur = evas_obj_textblock_cursor_get());
117 evas_textblock_cursor_text_append(cur, "*");
118 evas_textblock_cursor_char_delete(cur);
119
120 evas_textblock_cursor_paragraph_char_first(cur);
121 if (!cur2)
122 {
123 eo_do(o_text, cur2 = evas_obj_textblock_cursor_new());
124 evas_textblock_cursor_paragraph_last(cur2);
125 evas_textblock_cursor_paragraph_char_first(cur2);
126 }
127 if (!evas_textblock_cursor_compare(cur, cur2))
128 evas_textblock_cursor_paragraph_first(cur);
129 else
130 evas_textblock_cursor_paragraph_next(cur);
131
132 FPS_STD(NAME);
133}
134 111
135/* prepend special key handlers if interactive (before STD) */ 112extern "C" static void _key(char *key)
136static void _key(char *key)
137{ 113{
138 KEY_STD; 114 KEY_STD;
139} 115}
140 116
141
142
143
144
145
146
147
148
149
150
151
152/* template stuff - ignore */
153# endif
154#endif
155
156#ifdef UI
157_ui_menu_item_add(ICON, NAME, FNAME);
158#endif
159
160#ifdef PROTO
161void FNAME(void);
162#endif
163
164#ifndef PROTO
165# ifndef UI
166void FNAME(void)
167{
168 ui_func_set(_key, _loop);
169 _setup();
170}
171# endif
172#endif
173#undef FNAME
174#undef NAME
175#undef ICON
diff --git a/src/bin/cxx/widgets_file_icons.cc b/src/bin/cxx/widgets_file_icons.cc
index 62511fb..fdee3e1 100644
--- a/src/bin/cxx/widgets_file_icons.cc
+++ b/src/bin/cxx/widgets_file_icons.cc
@@ -76,67 +76,8 @@ static void _cleanup(void)
76 } 76 }
77} 77}
78 78
79/* loop - do things */ 79extern "C" static void _key(char *key)
80static void _loop(double t, int f)
81{
82 int i;
83 Evas_Coord x, y, tw, th, cent;
84 x = 0;
85 y = 0 - f;
86 for (i = 0; i < NUM; i++)
87 {
88 eo_do(images[i], evas_obj_position_set(x + 8, y));
89 eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
90 cent = (ICON_SIZE + 16 - tw) / 2;
91 eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4));
92 x += ICON_SIZE + 16;
93 if (x > win_w)
94 {
95 x = 0;
96 y += ICON_SIZE + 16;
97 }
98 }
99 FPS_STD(NAME);
100}
101
102/* prepend special key handlers if interactive (before STD) */
103static void _key(char *key)
104{ 80{
105 KEY_STD; 81 KEY_STD;
106} 82}
107 83
108
109
110
111
112
113
114
115
116
117
118
119/* template stuff - ignore */
120# endif
121#endif
122
123#ifdef UI
124_ui_menu_item_add(ICON, NAME, FNAME);
125#endif
126
127#ifdef PROTO
128void FNAME(void);
129#endif
130
131#ifndef PROTO
132# ifndef UI
133void FNAME(void)
134{
135 ui_func_set(_key, _loop);
136 _setup();
137}
138# endif
139#endif
140#undef FNAME
141#undef NAME
142#undef ICON
diff --git a/src/bin/cxx/widgets_file_icons_2.cc b/src/bin/cxx/widgets_file_icons_2.cc
index 82d0b99..7677111 100644
--- a/src/bin/cxx/widgets_file_icons_2.cc
+++ b/src/bin/cxx/widgets_file_icons_2.cc
@@ -74,67 +74,8 @@ static void _cleanup(void)
74 } 74 }
75} 75}
76 76
77/* loop - do things */ 77extern "C" static void _key(char *key)
78static void _loop(double t, int f)
79{
80 int i;
81 Evas_Coord x, y, tw, th, cent;
82 x = 0;
83 y = 0 - f;
84 for (i = 0; i < NUM; i++)
85 {
86 eo_do(images[i], evas_obj_position_set(x + 8, y));
87 eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
88 cent = (ICON_SIZE + 16 - tw) / 2;
89 eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4));
90 x += ICON_SIZE + 16;
91 if (x > win_w)
92 {
93 x = 0;
94 y += ICON_SIZE + 16;
95 }
96 }
97 FPS_STD(NAME);
98}
99
100/* prepend special key handlers if interactive (before STD) */
101static void _key(char *key)
102{ 78{
103 KEY_STD; 79 KEY_STD;
104} 80}
105 81
106
107
108
109
110
111
112
113
114
115
116
117/* template stuff - ignore */
118# endif
119#endif
120
121#ifdef UI
122_ui_menu_item_add(ICON, NAME, FNAME);
123#endif
124
125#ifdef PROTO
126void FNAME(void);
127#endif
128
129#ifndef PROTO
130# ifndef UI
131void FNAME(void)
132{
133 ui_func_set(_key, _loop);
134 _setup();
135}
136# endif
137#endif
138#undef FNAME
139#undef NAME
140#undef ICON
diff --git a/src/bin/cxx/widgets_file_icons_2_grouped.cc b/src/bin/cxx/widgets_file_icons_2_grouped.cc
index fa42b7a..fb68eb6 100644
--- a/src/bin/cxx/widgets_file_icons_2_grouped.cc
+++ b/src/bin/cxx/widgets_file_icons_2_grouped.cc
@@ -83,67 +83,8 @@ static void _cleanup(void)
83 } 83 }
84} 84}
85 85
86/* loop - do things */ 86extern "C" static void _key(char *key)
87static void _loop(double t, int f)
88{
89 int i;
90 Evas_Coord x, y, tw, th, cent;
91 x = 0;
92 y = 0 - f;
93 for (i = 0; i < NUM; i++)
94 {
95 eo_do(images[i], evas_obj_position_set(x + 8, y));
96 eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
97 cent = (ICON_SIZE + 16 - tw) / 2;
98 eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4));
99 x += ICON_SIZE + 16;
100 if (x > win_w)
101 {
102 x = 0;
103 y += ICON_SIZE + 16;
104 }
105 }
106 FPS_STD(NAME);
107}
108
109/* prepend special key handlers if interactive (before STD) */
110static void _key(char *key)
111{ 87{
112 KEY_STD; 88 KEY_STD;
113} 89}
114 90
115
116
117
118
119
120
121
122
123
124
125
126/* template stuff - ignore */
127# endif
128#endif
129
130#ifdef UI
131_ui_menu_item_add(ICON, NAME, FNAME);
132#endif
133
134#ifdef PROTO
135void FNAME(void);
136#endif
137
138#ifndef PROTO
139# ifndef UI
140void FNAME(void)
141{
142 ui_func_set(_key, _loop);
143 _setup();
144}
145# endif
146#endif
147#undef FNAME
148#undef NAME
149#undef ICON
diff --git a/src/bin/cxx/widgets_file_icons_2_same.cc b/src/bin/cxx/widgets_file_icons_2_same.cc
index a7cf08d..ef95397 100644
--- a/src/bin/cxx/widgets_file_icons_2_same.cc
+++ b/src/bin/cxx/widgets_file_icons_2_same.cc
@@ -59,67 +59,8 @@ static void _cleanup(void)
59 } 59 }
60} 60}
61 61
62/* loop - do things */ 62extern "C" static void _key(char *key)
63static void _loop(double t, int f)
64{
65 int i;
66 Evas_Coord x, y, tw, th, cent;
67 x = 0;
68 y = 0 - f;
69 for (i = 0; i < NUM; i++)
70 {
71 eo_do(images[i], evas_obj_position_set(x + 8, y));
72 eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
73 cent = (ICON_SIZE + 16 - tw) / 2;
74 eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4));
75 x += ICON_SIZE + 16;
76 if (x > win_w)
77 {
78 x = 0;
79 y += ICON_SIZE + 16;
80 }
81 }
82 FPS_STD(NAME);
83}
84
85/* prepend special key handlers if interactive (before STD) */
86static void _key(char *key)
87{ 63{
88 KEY_STD; 64 KEY_STD;
89} 65}
90 66
91
92
93
94
95
96
97
98
99
100
101
102/* template stuff - ignore */
103# endif
104#endif
105
106#ifdef UI
107_ui_menu_item_add(ICON, NAME, FNAME);
108#endif
109
110#ifdef PROTO
111void FNAME(void);
112#endif
113
114#ifndef PROTO
115# ifndef UI
116void FNAME(void)
117{
118 ui_func_set(_key, _loop);
119 _setup();
120}
121# endif
122#endif
123#undef FNAME
124#undef NAME
125#undef ICON
diff --git a/src/bin/cxx/widgets_file_icons_3.cc b/src/bin/cxx/widgets_file_icons_3.cc
index cbc9e65..5d2577a 100644
--- a/src/bin/cxx/widgets_file_icons_3.cc
+++ b/src/bin/cxx/widgets_file_icons_3.cc
@@ -74,67 +74,8 @@ static void _cleanup(void)
74 } 74 }
75} 75}
76 76
77/* loop - do things */ 77extern "C" static void _key(char *key)
78static void _loop(double t, int f)
79{
80 int i;
81 Evas_Coord x, y, tw, th, cent;
82 x = 0;
83 y = 0 - f;
84 for (i = 0; i < NUM; i++)
85 {
86 eo_do(images[i], evas_obj_position_set(x + 8, y));
87 eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
88 cent = (ICON_SIZE + 16 - tw) / 2;
89 eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4));
90 x += ICON_SIZE + 16;
91 if (x > win_w)
92 {
93 x = 0;
94 y += ICON_SIZE + 16;
95 }
96 }
97 FPS_STD(NAME);
98}
99
100/* prepend special key handlers if interactive (before STD) */
101static void _key(char *key)
102{ 78{
103 KEY_STD; 79 KEY_STD;
104} 80}
105 81
106
107
108
109
110
111
112
113
114
115
116
117/* template stuff - ignore */
118# endif
119#endif
120
121#ifdef UI
122_ui_menu_item_add(ICON, NAME, FNAME);
123#endif
124
125#ifdef PROTO
126void FNAME(void);
127#endif
128
129#ifndef PROTO
130# ifndef UI
131void FNAME(void)
132{
133 ui_func_set(_key, _loop);
134 _setup();
135}
136# endif
137#endif
138#undef FNAME
139#undef NAME
140#undef ICON
diff --git a/src/bin/cxx/widgets_file_icons_4.cc b/src/bin/cxx/widgets_file_icons_4.cc
index f68a590..6a2224f 100644
--- a/src/bin/cxx/widgets_file_icons_4.cc
+++ b/src/bin/cxx/widgets_file_icons_4.cc
@@ -74,67 +74,8 @@ static void _cleanup(void)
74 } 74 }
75} 75}
76 76
77/* loop - do things */ 77extern "C" static void _key(char *key)
78static void _loop(double t, int f)
79{
80 int i;
81 Evas_Coord x, y, tw, th, cent;
82 x = 0;
83 y = 0 - f;
84 for (i = 0; i < NUM; i++)
85 {
86 eo_do(images[i], evas_obj_position_set(x + 8, y));
87 eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
88 cent = (ICON_SIZE + 16 - tw) / 2;
89 eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4));
90 x += ICON_SIZE + 16;
91 if (x > win_w)
92 {
93 x = 0;
94 y += ICON_SIZE + 16;
95 }
96 }
97 FPS_STD(NAME);
98}
99
100/* prepend special key handlers if interactive (before STD) */
101static void _key(char *key)
102{ 78{
103 KEY_STD; 79 KEY_STD;
104} 80}
105 81
106
107
108
109
110
111
112
113
114
115
116
117/* template stuff - ignore */
118# endif
119#endif
120
121#ifdef UI
122_ui_menu_item_add(ICON, NAME, FNAME);
123#endif
124
125#ifdef PROTO
126void FNAME(void);
127#endif
128
129#ifndef PROTO
130# ifndef UI
131void FNAME(void)
132{
133 ui_func_set(_key, _loop);
134 _setup();
135}
136# endif
137#endif
138#undef FNAME
139#undef NAME
140#undef ICON
diff --git a/src/bin/cxx/widgets_list_1.cc b/src/bin/cxx/widgets_list_1.cc
index c128d42..7af70e2 100644
--- a/src/bin/cxx/widgets_list_1.cc
+++ b/src/bin/cxx/widgets_list_1.cc
@@ -85,68 +85,9 @@ static void _cleanup(void)
85{ 85{
86 int i; 86 int i;
87 for (i = 0; i < NUM; i++) 87 for (i = 0; i < NUM; i++)
88 {
89 eo_del(images[i]);
90 eo_del(o_texts[i]);
91 }
92}
93
94/* loop - do things */
95static void _loop(double t, int f)
96{
97 int i;
98 Evas_Coord x, y, tw, th, cent;
99 x = 0;
100 y = 0 - f;
101 for (i = 0; i < NUM; i++)
102 {
103 eo_do(images[i], evas_obj_position_set(x, y));
104 eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
105 cent = (ICON_SIZE - th) / 2;
106 eo_do(o_texts[i], evas_obj_position_set(x + 8, y + cent));
107 y += ICON_SIZE;
108 }
109 FPS_STD(NAME);
110}
111 88
112/* prepend special key handlers if interactive (before STD) */ 89extern "C" static void _key(char *key)
113static void _key(char *key)
114{ 90{
115 KEY_STD; 91 KEY_STD;
116} 92}
117 93
118
119
120
121
122
123
124
125
126
127
128
129/* template stuff - ignore */
130# endif
131#endif
132
133#ifdef UI
134_ui_menu_item_add(ICON, NAME, FNAME);
135#endif
136
137#ifdef PROTO
138void FNAME(void);
139#endif
140
141#ifndef PROTO
142# ifndef UI
143void FNAME(void)
144{
145 ui_func_set(_key, _loop);
146 _setup();
147}
148# endif
149#endif
150#undef FNAME
151#undef NAME
152#undef ICON
diff --git a/src/bin/cxx/widgets_list_1_grouped.cc b/src/bin/cxx/widgets_list_1_grouped.cc
index 034a0c5..ed1ab81 100644
--- a/src/bin/cxx/widgets_list_1_grouped.cc
+++ b/src/bin/cxx/widgets_list_1_grouped.cc
@@ -93,68 +93,9 @@ static void _cleanup(void)
93{ 93{
94 int i; 94 int i;
95 for (i = 0; i < NUM; i++) 95 for (i = 0; i < NUM; i++)
96 {
97 eo_del(images[i]);
98 eo_del(o_texts[i]);
99 }
100}
101
102/* loop - do things */
103static void _loop(double t, int f)
104{
105 int i;
106 Evas_Coord x, y, tw, th, cent;
107 x = 0;
108 y = 0 - f;
109 for (i = 0; i < NUM; i++)
110 {
111 eo_do(images[i], evas_obj_position_set(x, y));
112 eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
113 cent = (ICON_SIZE - th) / 2;
114 eo_do(o_texts[i], evas_obj_position_set(x + 8, y + cent));
115 y += ICON_SIZE;
116 }
117 FPS_STD(NAME);
118}
119 96
120/* prepend special key handlers if interactive (before STD) */ 97extern "C" static void _key(char *key)
121static void _key(char *key)
122{ 98{
123 KEY_STD; 99 KEY_STD;
124} 100}
125 101
126
127
128
129
130
131
132
133
134
135
136
137/* template stuff - ignore */
138# endif
139#endif
140
141#ifdef UI
142_ui_menu_item_add(ICON, NAME, FNAME);
143#endif
144
145#ifdef PROTO
146void FNAME(void);
147#endif
148
149#ifndef PROTO
150# ifndef UI
151void FNAME(void)
152{
153 ui_func_set(_key, _loop);
154 _setup();
155}
156# endif
157#endif
158#undef FNAME
159#undef NAME
160#undef ICON
diff --git a/src/bin/cxx/widgets_list_2.cc b/src/bin/cxx/widgets_list_2.cc
index 88c3566..770e934 100644
--- a/src/bin/cxx/widgets_list_2.cc
+++ b/src/bin/cxx/widgets_list_2.cc
@@ -85,68 +85,9 @@ static void _cleanup(void)
85{ 85{
86 int i; 86 int i;
87 for (i = 0; i < NUM; i++) 87 for (i = 0; i < NUM; i++)
88 {
89 eo_del(images[i]);
90 eo_del(o_texts[i]);
91 }
92}
93
94/* loop - do things */
95static void _loop(double t, int f)
96{
97 int i;
98 Evas_Coord x, y, tw, th, cent;
99 x = 0;
100 y = 0 - f;
101 for (i = 0; i < NUM; i++)
102 {
103 eo_do(images[i], evas_obj_position_set(x, y));
104 eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
105 cent = (ICON_SIZE - th) / 2;
106 eo_do(o_texts[i], evas_obj_position_set(x + 8, y + cent));
107 y += ICON_SIZE;
108 }
109 FPS_STD(NAME);
110}
111 88
112/* prepend special key handlers if interactive (before STD) */ 89extern "C" static void _key(char *key)
113static void _key(char *key)
114{ 90{
115 KEY_STD; 91 KEY_STD;
116} 92}
117 93
118
119
120
121
122
123
124
125
126
127
128
129/* template stuff - ignore */
130# endif
131#endif
132
133#ifdef UI
134_ui_menu_item_add(ICON, NAME, FNAME);
135#endif
136
137#ifdef PROTO
138void FNAME(void);
139#endif
140
141#ifndef PROTO
142# ifndef UI
143void FNAME(void)
144{
145 ui_func_set(_key, _loop);
146 _setup();
147}
148# endif
149#endif
150#undef FNAME
151#undef NAME
152#undef ICON
diff --git a/src/bin/cxx/widgets_list_2_grouped.cc b/src/bin/cxx/widgets_list_2_grouped.cc
index b315af3..efbc4fa 100644
--- a/src/bin/cxx/widgets_list_2_grouped.cc
+++ b/src/bin/cxx/widgets_list_2_grouped.cc
@@ -93,68 +93,9 @@ static void _cleanup(void)
93{ 93{
94 int i; 94 int i;
95 for (i = 0; i < NUM; i++) 95 for (i = 0; i < NUM; i++)
96 {
97 eo_del(images[i]);
98 eo_del(o_texts[i]);
99 }
100}
101
102/* loop - do things */
103static void _loop(double t, int f)
104{
105 int i;
106 Evas_Coord x, y, tw, th, cent;
107 x = 0;
108 y = 0 - f;
109 for (i = 0; i < NUM; i++)
110 {
111 eo_do(images[i], evas_obj_position_set(x, y));
112 eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
113 cent = (ICON_SIZE - th) / 2;
114 eo_do(o_texts[i], evas_obj_position_set(x + 8, y + cent));
115 y += ICON_SIZE;
116 }
117 FPS_STD(NAME);
118}
119 96
120/* prepend special key handlers if interactive (before STD) */ 97extern "C" static void _key(char *key)
121static void _key(char *key)
122{ 98{
123 KEY_STD; 99 KEY_STD;
124} 100}
125 101
126
127
128
129
130
131
132
133
134
135
136
137/* template stuff - ignore */
138# endif
139#endif
140
141#ifdef UI
142_ui_menu_item_add(ICON, NAME, FNAME);
143#endif
144
145#ifdef PROTO
146void FNAME(void);
147#endif
148
149#ifndef PROTO
150# ifndef UI
151void FNAME(void)
152{
153 ui_func_set(_key, _loop);
154 _setup();
155}
156# endif
157#endif
158#undef FNAME
159#undef NAME
160#undef ICON
diff --git a/src/bin/cxx/widgets_list_3.cc b/src/bin/cxx/widgets_list_3.cc
index 677a234..f734aa8 100644
--- a/src/bin/cxx/widgets_list_3.cc
+++ b/src/bin/cxx/widgets_list_3.cc
@@ -116,68 +116,9 @@ static void _cleanup(void)
116 for (i = 0; i < NUM; i++) 116 for (i = 0; i < NUM; i++)
117 { 117 {
118 eo_del(images[i]); 118 eo_del(images[i]);
119 eo_del(o_icons[i]);
120 eo_del(o_texts[i]);
121 }
122}
123 119
124/* loop - do things */ 120extern "C" static void _key(char *key)
125static void _loop(double t, int f)
126{
127 int i;
128 Evas_Coord x, y, tw, th, cent;
129 x = 0;
130 y = 0 - f;
131 for (i = 0; i < NUM; i++)
132 {
133 eo_do(images[i], evas_obj_position_set(x, y));
134 eo_do(o_icons[i], evas_obj_position_set(x + 4, y + 4));
135 eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
136 cent = (ICON_SIZE - th) / 2;
137 eo_do(o_texts[i], evas_obj_position_set(x + 8 + ICON_SIZE + 8, y + cent));
138 y += ICON_SIZE;
139 }
140 FPS_STD(NAME);
141}
142
143/* prepend special key handlers if interactive (before STD) */
144static void _key(char *key)
145{ 121{
146 KEY_STD; 122 KEY_STD;
147} 123}
148 124
149
150
151
152
153
154
155
156
157
158
159
160/* template stuff - ignore */
161# endif
162#endif
163
164#ifdef UI
165_ui_menu_item_add(ICON, NAME, FNAME);
166#endif
167
168#ifdef PROTO
169void FNAME(void);
170#endif
171
172#ifndef PROTO
173# ifndef UI
174void FNAME(void)
175{
176 ui_func_set(_key, _loop);
177 _setup();
178}
179# endif
180#endif
181#undef FNAME
182#undef NAME
183#undef ICON
diff --git a/src/bin/cxx/widgets_list_3_grouped.cc b/src/bin/cxx/widgets_list_3_grouped.cc
index b1b36ca..71a83a0 100644
--- a/src/bin/cxx/widgets_list_3_grouped.cc
+++ b/src/bin/cxx/widgets_list_3_grouped.cc
@@ -133,68 +133,9 @@ static void _cleanup(void)
133 for (i = 0; i < NUM; i++) 133 for (i = 0; i < NUM; i++)
134 { 134 {
135 eo_del(images[i]); 135 eo_del(images[i]);
136 eo_del(o_icons[i]);
137 eo_del(o_texts[i]);
138 }
139}
140 136
141/* loop - do things */ 137extern "C" static void _key(char *key)
142static void _loop(double t, int f)
143{
144 int i;
145 Evas_Coord x, y, tw, th, cent;
146 x = 0;
147 y = 0 - f;
148 for (i = 0; i < NUM; i++)
149 {
150 eo_do(images[i], evas_obj_position_set(x, y));
151 eo_do(o_icons[i], evas_obj_position_set(x + 4, y + 4));
152 eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
153 cent = (ICON_SIZE - th) / 2;
154 eo_do(o_texts[i], evas_obj_position_set(x + 8 + ICON_SIZE + 8, y + cent));
155 y += ICON_SIZE;
156 }
157 FPS_STD(NAME);
158}
159
160/* prepend special key handlers if interactive (before STD) */
161static void _key(char *key)
162{ 138{
163 KEY_STD; 139 KEY_STD;
164} 140}
165 141
166
167
168
169
170
171
172
173
174
175
176
177/* template stuff - ignore */
178# endif
179#endif
180
181#ifdef UI
182_ui_menu_item_add(ICON, NAME, FNAME);
183#endif
184
185#ifdef PROTO
186void FNAME(void);
187#endif
188
189#ifndef PROTO
190# ifndef UI
191void FNAME(void)
192{
193 ui_func_set(_key, _loop);
194 _setup();
195}
196# endif
197#endif
198#undef FNAME
199#undef NAME
200#undef ICON
diff --git a/src/bin/cxx/widgets_list_4.cc b/src/bin/cxx/widgets_list_4.cc
index 4d146a3..8fc332d 100644
--- a/src/bin/cxx/widgets_list_4.cc
+++ b/src/bin/cxx/widgets_list_4.cc
@@ -113,68 +113,9 @@ static void _setup(void)
113static void _cleanup(void) 113static void _cleanup(void)
114{ 114{
115 int i; 115 int i;
116 for (i = 0; i < NUM; i++) eo_del(images[i]);
117 for (i = 0; i < NUM; i++) eo_del(o_icons[i]);
118 for (i = 0; i < NUM; i++) eo_del(o_texts[i]);
119}
120
121/* loop - do things */
122static void _loop(double t, int f)
123{
124 int i;
125 Evas_Coord x, y, tw, th, cent;
126 x = 0;
127 y = 0 - f;
128 for (i = 0; i < NUM; i++)
129 {
130 eo_do(images[i], evas_obj_position_set(x, y));
131 eo_do(o_icons[i], evas_obj_position_set(x + 4, y + 4));
132 eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
133 cent = (ICON_SIZE - th) / 2;
134 eo_do(o_texts[i], evas_obj_position_set(x + 8 + ICON_SIZE + 8, y + cent));
135 y += ICON_SIZE;
136 }
137 FPS_STD(NAME);
138}
139 116
140/* prepend special key handlers if interactive (before STD) */ 117extern "C" static void _key(char *key)
141static void _key(char *key)
142{ 118{
143 KEY_STD; 119 KEY_STD;
144} 120}
145 121
146
147
148
149
150
151
152
153
154
155
156
157/* template stuff - ignore */
158# endif
159#endif
160
161#ifdef UI
162_ui_menu_item_add(ICON, NAME, FNAME);
163#endif
164
165#ifdef PROTO
166void FNAME(void);
167#endif
168
169#ifndef PROTO
170# ifndef UI
171void FNAME(void)
172{
173 ui_func_set(_key, _loop);
174 _setup();
175}
176# endif
177#endif
178#undef FNAME
179#undef NAME
180#undef ICON
diff --git a/src/bin/cxx/widgets_list_4_grouped.cc b/src/bin/cxx/widgets_list_4_grouped.cc
index 7dc8649..be4d5d5 100644
--- a/src/bin/cxx/widgets_list_4_grouped.cc
+++ b/src/bin/cxx/widgets_list_4_grouped.cc
@@ -132,68 +132,9 @@ static void _cleanup(void)
132 for (i = 0; i < NUM; i++) 132 for (i = 0; i < NUM; i++)
133 { 133 {
134 eo_del(images[i]); 134 eo_del(images[i]);
135 eo_del(o_icons[i]);
136 eo_del(o_texts[i]);
137 }
138}
139 135
140/* loop - do things */ 136extern "C" static void _key(char *key)
141static void _loop(double t, int f)
142{
143 int i;
144 Evas_Coord x, y, tw, th, cent;
145 x = 0;
146 y = 0 - f;
147 for (i = 0; i < NUM; i++)
148 {
149 eo_do(images[i], evas_obj_position_set(x, y));
150 eo_do(o_icons[i], evas_obj_position_set(x + 4, y + 4));
151 eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
152 cent = (ICON_SIZE - th) / 2;
153 eo_do(o_texts[i], evas_obj_position_set(x + 8 + ICON_SIZE + 8, y + cent));
154 y += ICON_SIZE;
155 }
156 FPS_STD(NAME);
157}
158
159/* prepend special key handlers if interactive (before STD) */
160static void _key(char *key)
161{ 137{
162 KEY_STD; 138 KEY_STD;
163} 139}
164 140
165
166
167
168
169
170
171
172
173
174
175
176/* template stuff - ignore */
177# endif
178#endif
179
180#ifdef UI
181_ui_menu_item_add(ICON, NAME, FNAME);
182#endif
183
184#ifdef PROTO
185void FNAME(void);
186#endif
187
188#ifndef PROTO
189# ifndef UI
190void FNAME(void)
191{
192 ui_func_set(_key, _loop);
193 _setup();
194}
195# endif
196#endif
197#undef FNAME
198#undef NAME
199#undef ICON