Add missing FNAME(void) definition.

This commit is contained in:
Savio Sena 2014-09-23 12:48:22 -03:00
parent acc4a6f195
commit d9a9594744
29 changed files with 29 additions and 1741 deletions

View File

@ -45,68 +45,9 @@ static void _setup(void)
done = 0;
}
/* cleanup */
static void _cleanup(void)
{
int i;
for (i = 0; i < MANYNUM; i++) eo_del(images[i]);
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
Evas_Coord x, y, w, h;
for (i = 0; i < MANYNUM; i++)
{
eo_do(images[i], evas_obj_size_get(&w, &h));
x = (win_w / 2) - (w / 2);
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (win_w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (win_h / 2);
eo_do(images[i], evas_obj_position_set(x, y));
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -44,68 +44,9 @@ static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_del(images[i]);
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
Evas_Coord x, y, w, h, w0, h0;
for (i = 0; i < OBNUM; i++)
{
w0 = 80;
h0 = 80;
w = 5 + ((1.0 + cos((double)(f + (i * 10)) / (7.4 * SLOW) )) * w0 * 2);
h = 5 + ((1.0 + sin((double)(f + (i * 19)) / (12.6 * SLOW) )) * h0 * 2);
x = (win_w / 2) - (w / 2);
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(images[i],
evas_obj_position_set(x, y),
evas_obj_size_set(w, h));
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -45,68 +45,9 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_del(images[i]);
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
Evas_Coord x, y, w, h, w0, h0;
for (i = 0; i < OBNUM; i++)
{
w0 = 80;
h0 = 80;
w = 5 + ((1.0 + cos((double)(f + (i * 10)) / (7.4 * SLOW) )) * w0 * 2);
h = 5 + ((1.0 + sin((double)(f + (i * 19)) / (12.6 * SLOW) )) * h0 * 2);
x = (win_w / 2) - (w / 2);
x += sin((double)(f + (i * 113)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 228)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(images[i], evas_obj_position_set(x, y),
evas_obj_size_set(w, h));
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -45,68 +45,9 @@ static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_del(images[i]);
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
Evas_Coord x, y, w, h, w0, h0;
for (i = 0; i < OBNUM; i++)
{
w0 = 80;
h0 = 80;
w = 5 + ((1.0 + cos((double)(f + (i * 10)) / (7.4 * SLOW) )) * w0 * 2);
h = 5 + ((1.0 + sin((double)(f + (i * 19)) / (12.6 * SLOW) )) * h0 * 2);
x = (win_w / 2) - (w / 2);
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(images[i],
evas_obj_position_set(x, y),
evas_obj_size_set(w, h));
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -46,68 +46,9 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_del(images[i]);
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
Evas_Coord x, y, w, h, w0, h0;
for (i = 0; i < OBNUM; i++)
{
w0 = 80;
h0 = 80;
w = 5 + ((1.0 + cos((double)(f + (i * 10)) / (7.4 * SLOW) )) * w0 * 2);
h = 5 + ((1.0 + sin((double)(f + (i * 19)) / (12.6 * SLOW) )) * h0 * 2);
x = (win_w / 2) - (w / 2);
x += sin((double)(f + (i * 113)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 228)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(images[i], evas_obj_position_set(x, y),
evas_obj_size_set(w, h));
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -44,68 +44,9 @@ static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_del(images[i]);
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
Evas_Coord x, y, w, h, w0, h0;
for (i = 0; i < OBNUM; i++)
{
w0 = 80;
h0 = 80;
w = 5 + ((1.0 + cos((double)(f + (i * 10)) / (7.4 * SLOW) )) * w0 * 2);
h = 5 + ((1.0 + sin((double)(f + (i * 19)) / (12.6 * SLOW) )) * h0 * 2);
x = (win_w / 2) - (w / 2);
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(images[i],
evas_obj_position_set(x, y),
evas_obj_size_set(w, h));
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -45,68 +45,9 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_del(images[i]);
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
Evas_Coord x, y, w, h, w0, h0;
for (i = 0; i < OBNUM; i++)
{
w0 = 80;
h0 = 80;
w = 5 + ((1.0 + cos((double)(f + (i * 10)) / (7.4 * SLOW) )) * w0 * 2);
h = 5 + ((1.0 + sin((double)(f + (i * 19)) / (12.6 * SLOW) )) * h0 * 2);
x = (win_w / 2) - (w / 2);
x += sin((double)(f + (i * 113)) / (36.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 228)) / (43.8 * SLOW)) * (h0 / 2);
eo_do(images[i], evas_obj_position_set(x, y),
evas_obj_size_set(w, h));
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -35,68 +35,9 @@ static void _setup(void)
done = 0;
}
/* cleanup */
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_del(o_texts[i]);
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
Evas_Coord x, y, w, h;
for (i = 0; i < OBNUM; i++)
{
eo_do(o_texts[i], evas_obj_size_get(&w, &h));
x = (win_w / 2) - (w / 2);
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (w / 2);
eo_do(o_texts[i], evas_obj_position_set(x, y));
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -58,68 +58,9 @@ static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_del(o_texts[i]);
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
char buf[1024];
const char *strs[] = {
"Big", "Smelly", "Fish", "Pants", "Octopus", "Garden", "There", "I",
"Am", "You", "Are", "Erogenous", "We", "Stick", "Wet", "Fishy",
"Fiddly", "Family", "Lair", "Monkeys", "Magazine"
};
for (i = 0; i < OBNUM; i++)
{
snprintf(buf, sizeof(buf), "%s %s %s %s.",
strs[rnd() % (sizeof(strs) / sizeof(char *))],
strs[rnd() % (sizeof(strs) / sizeof(char *))],
strs[rnd() % (sizeof(strs) / sizeof(char *))],
strs[rnd() % (sizeof(strs) / sizeof(char *))]);
eo_do(o_texts[i], efl_text_set(buf));
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -45,68 +45,9 @@ static void _setup(void)
done = 0;
}
/* cleanup */
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_del(o_texts[i]);
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
Evas_Coord x, y, w, h;
for (i = 0; i < OBNUM; i++)
{
eo_do(o_texts[i], evas_obj_size_get(&w, &h));
x = (win_w / 2) - (w / 2);
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (w / 2);
eo_do(o_texts[i], evas_obj_position_set(x, y));
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -56,68 +56,9 @@ static void _setup(void)
done = 0;
}
/* cleanup */
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_del(o_texts[i]);
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
Evas_Coord x, y, w, h;
for (i = 0; i < OBNUM; i++)
{
eo_do(o_texts[i], evas_obj_size_get(&w, &h));
x = (win_w / 2) - (w / 2);
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (w / 2);
eo_do(o_texts[i], evas_obj_position_set(x, y));
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -59,68 +59,9 @@ static void _setup(void)
}
/* cleanup */
static void _cleanup(void)
{
eo_del(o_text);
}
/* loop - do things */
static void _loop(double t, int f)
{
Evas_Coord x, y, w, h, w0, h0;
int i = 0;
eo_do(o_text, evas_obj_textblock_size_native_get(&w0, &h0));
w = w0;
h = h0;
w += fabs(sin((double)(f + (i * 13)) / (31.1 * SLOW))) * (w0);
x = (win_w / 2) - (w / 2);
y = (win_h / 2) - (h0 / 2);
eo_do(o_text,
evas_obj_position_set(x, y),
evas_obj_size_set(w, h));
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -122,68 +122,9 @@ static void _setup(void)
/* cleanup */
static void _cleanup(void)
{
eo_del(o_text);
}
/* loop - do things */
static void _loop(double t, int f)
{
Evas_Coord x, y, w, h, w0, h0;
int i = 0;
w0 = 160;
h0 = 120;
w = 150 + ((1.0 + cos((double)(f + (i * 10)) / (37.4 * SLOW) )) * w0 * 2);
h = 50 + ((1.0 + sin((double)(f + (i * 19)) / (52.6 * SLOW) )) * h0 * 2);
x = (win_w / 2) - (w / 2);
x += sin((double)(f + (i * 13)) / (86.7 * SLOW)) * (w0 / 2);
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (93.8 * SLOW)) * (h0 / 2);
eo_do(o_text,
evas_obj_position_set(x, y),
evas_obj_size_set(w, 5000));
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -91,69 +91,9 @@ static void _setup(void)
}
/* cleanup */
static void _cleanup(void)
{
eo_del(o_text);
}
/* loop - do things */
static void _loop(double t, int f)
{
Evas_Coord x, y, w, h, w0, h0;
int i = 0;
eo_do(o_text, evas_obj_textblock_size_native_get(&w0, &h0));
w = w0;
h = h0;
x = (win_w / 2) - (w / 2);
x += sin((double)(f + (i * 13)) / (31.1 * SLOW)) * (w0 / (2 * 2));
y = (win_h / 2) - (h / 2);
y += cos((double)(f + (i * 28)) / (19.6 * SLOW)) * (h0 / (2 * 2));
eo_do(o_text,
evas_obj_position_set(x, y),
evas_obj_size_set(w, h));
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -108,68 +108,9 @@ static void _cleanup(void)
eo_del(o_text);
}
/* loop - do things */
static void _loop(double t, int f)
{
Evas_Textblock_Cursor *cur;
static Evas_Textblock_Cursor *cur2;
eo_do(o_text, cur = evas_obj_textblock_cursor_get());
evas_textblock_cursor_text_append(cur, "*");
evas_textblock_cursor_char_delete(cur);
evas_textblock_cursor_paragraph_char_first(cur);
if (!cur2)
{
eo_do(o_text, cur2 = evas_obj_textblock_cursor_new());
evas_textblock_cursor_paragraph_last(cur2);
evas_textblock_cursor_paragraph_char_first(cur2);
}
if (!evas_textblock_cursor_compare(cur, cur2))
evas_textblock_cursor_paragraph_first(cur);
else
evas_textblock_cursor_paragraph_next(cur);
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -76,67 +76,8 @@ static void _cleanup(void)
}
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
for (i = 0; i < NUM; i++)
{
eo_do(images[i], evas_obj_position_set(x + 8, y));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE + 16 - tw) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4));
x += ICON_SIZE + 16;
if (x > win_w)
{
x = 0;
y += ICON_SIZE + 16;
}
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -74,67 +74,8 @@ static void _cleanup(void)
}
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
for (i = 0; i < NUM; i++)
{
eo_do(images[i], evas_obj_position_set(x + 8, y));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE + 16 - tw) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4));
x += ICON_SIZE + 16;
if (x > win_w)
{
x = 0;
y += ICON_SIZE + 16;
}
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -83,67 +83,8 @@ static void _cleanup(void)
}
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
for (i = 0; i < NUM; i++)
{
eo_do(images[i], evas_obj_position_set(x + 8, y));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE + 16 - tw) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4));
x += ICON_SIZE + 16;
if (x > win_w)
{
x = 0;
y += ICON_SIZE + 16;
}
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -59,67 +59,8 @@ static void _cleanup(void)
}
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
for (i = 0; i < NUM; i++)
{
eo_do(images[i], evas_obj_position_set(x + 8, y));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE + 16 - tw) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4));
x += ICON_SIZE + 16;
if (x > win_w)
{
x = 0;
y += ICON_SIZE + 16;
}
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -74,67 +74,8 @@ static void _cleanup(void)
}
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
for (i = 0; i < NUM; i++)
{
eo_do(images[i], evas_obj_position_set(x + 8, y));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE + 16 - tw) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4));
x += ICON_SIZE + 16;
if (x > win_w)
{
x = 0;
y += ICON_SIZE + 16;
}
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -74,67 +74,8 @@ static void _cleanup(void)
}
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
for (i = 0; i < NUM; i++)
{
eo_do(images[i], evas_obj_position_set(x + 8, y));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE + 16 - tw) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + cent, y + ICON_SIZE + 4));
x += ICON_SIZE + 16;
if (x > win_w)
{
x = 0;
y += ICON_SIZE + 16;
}
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -85,68 +85,9 @@ static void _cleanup(void)
{
int i;
for (i = 0; i < NUM; i++)
{
eo_del(images[i]);
eo_del(o_texts[i]);
}
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
for (i = 0; i < NUM; i++)
{
eo_do(images[i], evas_obj_position_set(x, y));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE - th) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + 8, y + cent));
y += ICON_SIZE;
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -93,68 +93,9 @@ static void _cleanup(void)
{
int i;
for (i = 0; i < NUM; i++)
{
eo_del(images[i]);
eo_del(o_texts[i]);
}
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
for (i = 0; i < NUM; i++)
{
eo_do(images[i], evas_obj_position_set(x, y));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE - th) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + 8, y + cent));
y += ICON_SIZE;
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -85,68 +85,9 @@ static void _cleanup(void)
{
int i;
for (i = 0; i < NUM; i++)
{
eo_del(images[i]);
eo_del(o_texts[i]);
}
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
for (i = 0; i < NUM; i++)
{
eo_do(images[i], evas_obj_position_set(x, y));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE - th) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + 8, y + cent));
y += ICON_SIZE;
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -93,68 +93,9 @@ static void _cleanup(void)
{
int i;
for (i = 0; i < NUM; i++)
{
eo_del(images[i]);
eo_del(o_texts[i]);
}
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
for (i = 0; i < NUM; i++)
{
eo_do(images[i], evas_obj_position_set(x, y));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE - th) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + 8, y + cent));
y += ICON_SIZE;
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -116,68 +116,9 @@ static void _cleanup(void)
for (i = 0; i < NUM; i++)
{
eo_del(images[i]);
eo_del(o_icons[i]);
eo_del(o_texts[i]);
}
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
for (i = 0; i < NUM; i++)
{
eo_do(images[i], evas_obj_position_set(x, y));
eo_do(o_icons[i], evas_obj_position_set(x + 4, y + 4));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE - th) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + 8 + ICON_SIZE + 8, y + cent));
y += ICON_SIZE;
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -133,68 +133,9 @@ static void _cleanup(void)
for (i = 0; i < NUM; i++)
{
eo_del(images[i]);
eo_del(o_icons[i]);
eo_del(o_texts[i]);
}
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
for (i = 0; i < NUM; i++)
{
eo_do(images[i], evas_obj_position_set(x, y));
eo_do(o_icons[i], evas_obj_position_set(x + 4, y + 4));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE - th) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + 8 + ICON_SIZE + 8, y + cent));
y += ICON_SIZE;
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -113,68 +113,9 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < NUM; i++) eo_del(images[i]);
for (i = 0; i < NUM; i++) eo_del(o_icons[i]);
for (i = 0; i < NUM; i++) eo_del(o_texts[i]);
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
for (i = 0; i < NUM; i++)
{
eo_do(images[i], evas_obj_position_set(x, y));
eo_do(o_icons[i], evas_obj_position_set(x + 4, y + 4));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE - th) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + 8 + ICON_SIZE + 8, y + cent));
y += ICON_SIZE;
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON

View File

@ -132,68 +132,9 @@ static void _cleanup(void)
for (i = 0; i < NUM; i++)
{
eo_del(images[i]);
eo_del(o_icons[i]);
eo_del(o_texts[i]);
}
}
/* loop - do things */
static void _loop(double t, int f)
{
int i;
Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
for (i = 0; i < NUM; i++)
{
eo_do(images[i], evas_obj_position_set(x, y));
eo_do(o_icons[i], evas_obj_position_set(x + 4, y + 4));
eo_do(o_texts[i], evas_obj_size_get(&tw, &th));
cent = (ICON_SIZE - th) / 2;
eo_do(o_texts[i], evas_obj_position_set(x + 8 + ICON_SIZE + 8, y + cent));
y += ICON_SIZE;
}
FPS_STD(NAME);
}
/* prepend special key handlers if interactive (before STD) */
static void _key(char *key)
extern "C" static void _key(char *key)
{
KEY_STD;
}
/* template stuff - ignore */
# endif
#endif
#ifdef UI
_ui_menu_item_add(ICON, NAME, FNAME);
#endif
#ifdef PROTO
void FNAME(void);
#endif
#ifndef PROTO
# ifndef UI
void FNAME(void)
{
ui_func_set(_key, _loop);
_setup();
}
# endif
#endif
#undef FNAME
#undef NAME
#undef ICON