Elementary grid widget
This code snippet shows basic usage of grid widget.
static void grid_test(Evas_Object *parent) {
//create a grid
Evas_Object *grid = elm_grid_add(parent);
elm_win_resize_object_add(parent, grid);
evas_object_show(grid);
//create a few buttons and add them to the grid
Evas_Object *top_left_btn = elm_button_add(grid);
elm_object_text_set(top_left_btn, "top left");
elm_grid_pack(grid, top_left_btn, 0, 0, 50, 10);
evas_object_show(top_left_btn);
Evas_Object *bottom_right_btn = elm_button_add(grid);
elm_object_text_set(bottom_right_btn, "bottom right");
elm_grid_pack(grid, bottom_right_btn, 50, 90, 50, 10);
evas_object_show(bottom_right_btn);
Evas_Object *center_btn = elm_button_add(grid);
elm_object_text_set(center_btn, "center");
elm_grid_pack(grid, center_btn, 25, 45, 50, 10);
evas_object_show(center_btn);
}