For our second example we'll create a table with 4 rectangles in it. Since our rectangles are of different sizes our table won't be homogeneous.
The interesting bits from this example are:
- Where we set the table as not homogeneous:
- Where we add each rectangle to the table:
elm_table_pack(table, rect, 0, 0, 2, 1);
elm_table_pack(table, rect, 0, 1, 1, 2);
elm_table_pack(table, rect, 1, 1, 1, 1);
elm_table_pack(table, rect, 1, 2, 1, 1);
Here you can see the full source:
#include <Elementary.h>
EAPI_MAIN int
{
evas_object_size_hint_min_set(rect, 100, 50);
elm_table_pack(table, rect, 0, 0, 2, 1);
evas_object_size_hint_min_set(rect, 50, 100);
elm_table_pack(table, rect, 0, 1, 1, 2);
evas_object_size_hint_min_set(rect, 50, 50);
elm_table_pack(table, rect, 1, 1, 1, 1);
evas_object_size_hint_min_set(rect, 50, 50);
elm_table_pack(table, rect, 1, 2, 1, 1);
return 0;
}
Our example will look like this: