#ifdef HAVE_CONFIG_H
# include "config.h"
#else
# define EINA_UNUSED
#endif
#ifndef PACKAGE_DATA_DIR
#define PACKAGE_DATA_DIR "."
#endif
#include <Ecore.h>
#define WIDTH (400)
#define HEIGHT (400)
static void
{
}
static void
{
int cols, rows;
&rows))
printf("Number of columns: %d\nNumber of rows: %d\n", cols, rows);
else
fprintf(stderr, "Cannot get the number of columns and rows\n");
}
static void
_on_canvas_resize(Ecore_Evas *ee)
{
int i;
int w;
int h;
for (i = 0; i < 4; i++)
}
static void
{
fprintf(stderr, "Cannot remove the selected rectangle\n");
_columns_rows_print(edje_obj);
}
static void
{
int i;
for (i = 0; i < 4; i++)
{
_on_mouse_down, edje_obj);
}
}
int
{
const char *edje_file = PACKAGE_DATA_DIR"/table.edj";
Ecore_Evas *ee;
return EXIT_FAILURE;
goto shutdown_ecore_evas;
if (!ee) goto shutdown_edje;
_rects_create(evas, rects, edje_obj);
0, 0, 1, 2))
fprintf(stderr, "Cannot add the rectangle 1 to table\n");
0, 1, 1, 1))
fprintf(stderr, "Cannot add the rectangle 2 to table\n");
1, 0, 1, 1))
fprintf(stderr, "Cannot add the rectangle 3 to table\n");
1, 1, 1, 1))
fprintf(stderr, "Cannot add the rectangle 4 to table\n");
_columns_rows_print(edje_obj);
return EXIT_SUCCESS;
shutdown_edje:
shutdown_ecore_evas:
return EXIT_FAILURE;
}