#ifdef HAVE_CONFIG_H
# include "config.h"
#else
# define EINA_UNUSED
#endif
#ifndef PACKAGE_DATA_DIR
#define PACKAGE_DATA_DIR "."
#endif
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <Ecore.h>
#include <Evas.h>
static const char commands[] = \
"commands are:\n"
"\tShift + any key - remove box\n"
"\tCtrl + any key - insert box\n"
"\tEsc - exit\n"
"\th - print help\n";
static void
{
int x, y, w, h;
int xx, yy, ww, hh;
int count;
ww = w / (count ? count : 1);
hh = h / (count ? count : 1);
if (ww < 1) ww = 1;
if (hh < 1) hh = 1;
xx = x;
yy = y;
{
xx += ww;
yy += hh;
}
}
new_greenie_block(
Evas *e)
{
return o;
}
static void
{
const Evas_Modifier *mods;
if (!strcmp(ev->
key,
"h"))
{
printf(commands);
return;
}
{
int pos;
if (obj)
return;
}
{
int pos;
obj = new_greenie_block(evas);
return;
}
if (!strcmp(ev->
key,
"Escape"))
}
box_new(Ecore_Evas *ee, const char *edje_file_path, const char *name, int x, int y, int w, int h)
{
{
printf("error: could not load file object.\n");
}
return edje_obj;
}
static void
on_resize(Ecore_Evas *ee)
{
int w;
int h;
}
static void
{
}
int
{
const char *edje_file = PACKAGE_DATA_DIR"/box.edj";
Ecore_Evas *ee;
int w;
int h;
int i;
return EXIT_FAILURE;
goto shutdown_ecore_evas;
if (!ee) goto shutdown_edje;
edje_obj = box_new(ee, edje_file, "box", 0, 0, w, h);
for (i = 1; i <= 5; i++)
{
{
fprintf(stderr, "error appending child object!\n");
return 1;
}
}
printf(commands);
return EXIT_SUCCESS;
shutdown_edje:
shutdown_ecore_evas:
return EXIT_FAILURE;
}