#include "codegen_example_generated.h"
static void
{
{
codegen_example_swallow_grow_emit(layout);
elm_object_text_set(btn, "Reduce me!");
if (!codegen_example_table_clear(layout,
EINA_TRUE))
fprintf(stderr, "Could not remove the items from the table!\n");
}
else
{
codegen_example_swallow_shrink_emit(layout);
elm_object_text_set(btn, "Enlarge me!");
}
}
static void
{
printf("Minimum size for this theme: %dx%d\n", w, h);
}
{
if (!btn) return NULL;
elm_object_text_set(btn, label);
return btn;
}
EAPI_MAIN int
{
const char *labels[] = {"One", "Two", "Three", "Four", "Five", "Six"};
int i;
layout = codegen_example_layout_add(win, NULL, NULL);
if (!layout)
{
printf("Could not create the layout\n");
return -1;
}
codegen_example_size_changed_callback_add(layout, _size_changed_cb, layout);
const char *title = codegen_example_title_get(layout);
if (title)
{
codegen_example_title_set(layout, title);
}
btn = _button_create(win, "Enlarge me!");
codegen_example_custom_set(layout, btn);
for (i = 0; i < 6; i++)
{
tbl_items[i] = _button_create(win, labels[i]);
if (i < 3)
{
if (!codegen_example_table_pack(layout, tbl_items[i], i, i, 1,1))
fprintf(stderr, "Could not add the button to the table!\n");
}
else
{
if (!codegen_example_box_append(layout, tbl_items[i]))
fprintf(stderr, "Could not add the button to the box!\n");
}
}
return 0;
}