Tizen Native API

Functions

void elm_table_homogeneous_set (Elm_Table *obj, Eina_Bool homogeneous)
 Set the homogeneous layout in the table.
Eina_Bool elm_table_homogeneous_get (const Elm_Table *obj)
 Get the current table homogeneous mode.
void elm_table_padding_set (Elm_Table *obj, Evas_Coord horizontal, Evas_Coord vertical)
 Set padding between cells.
void elm_table_padding_get (const Elm_Table *obj, Evas_Coord *horizontal, Evas_Coord *vertical)
 Get padding between cells.
void elm_table_clear (Elm_Table *obj, Eina_Bool clear)
 Faster way to remove all child objects from a table object.
void elm_table_unpack (Elm_Table *obj, Evas_Object *subobj)
 Remove child from table.
void elm_table_pack (Elm_Table *obj, Evas_Object *subobj, int column, int row, int colspan, int rowspan)
 Add a subobject on the table with the coordinates passed.
Evas_Objectelm_table_add (Evas_Object *parent)
 Add a new table to the parent.
void elm_table_pack_set (Evas_Object *subobj, int col, int row, int colspan, int rowspan)
 Set the packing location of an existing child of the table.
void elm_table_pack_get (Evas_Object *subobj, int *col, int *row, int *colspan, int *rowspan)
 Get the packing location of an existing child of the table.

table_inheritance_tree.png

A container widget to arrange other widgets in a table where items can span multiple columns or rows - even overlap (and then be raised or lowered accordingly to adjust stacking if they do overlap).

The row and column count is not fixed. The table widget adjusts itself when subobjects are added to it dynamically.

The most common way to use a table is:

 table = elm_table_add(win);
 evas_object_show(table);
 elm_table_padding_set(table, space_between_columns, space_between_rows);
 elm_table_pack(table, table_content_object, column, row, colspan, rowspan);
 elm_table_pack(table, table_content_object, next_column, next_row, colspan, rowspan);
 elm_table_pack(table, table_content_object, other_column, other_row, colspan, rowspan);

Function Documentation

Add a new table to the parent.

Since :
2.3
Parameters:
[in]parentThe parent object
Returns:
The new object or NULL if it cannot be created
void elm_table_clear ( Elm_Table *  obj,
Eina_Bool  clear 
)

Faster way to remove all child objects from a table object.

Since :
2.3
Parameters:
[in]objThe elm table object
[in]clearIf true, will delete children, else just remove from table.
Eina_Bool elm_table_homogeneous_get ( const Elm_Table *  obj)

Get the current table homogeneous mode.

Since :
2.3
Returns:
A boolean to indicating if the layout is homogeneous in the table (EINA_TRUE = homogeneous, EINA_FALSE = no homogeneous)
Parameters:
[in]objThe elm table object
void elm_table_homogeneous_set ( Elm_Table *  obj,
Eina_Bool  homogeneous 
)

Set the homogeneous layout in the table.

Remarks:
If enabled, homogeneous layout makes all items the same size, according to the size of the largest of its children. It is applied to a width and a height of table items separately.
Since :
2.3
Parameters:
[in]objThe elm table object
[in]homogeneousA boolean to set if the layout is homogeneous in the table (EINA_TRUE = homogeneous, EINA_FALSE = no homogeneous)
void elm_table_pack ( Elm_Table *  obj,
Evas_Object subobj,
int  column,
int  row,
int  colspan,
int  rowspan 
)

Add a subobject on the table with the coordinates passed.

Since :
2.3
Remarks:
All positioning inside the table is relative to rows and columns, so a value of 0 for x and y, means the top left cell of the table, and a value of 1 for w and h means subobj only takes that 1 cell.
Note that columns and rows only guarantee 16bit unsigned values at best. That means that col + colspan AND row + rowspan must fit inside 16bit unsigned values cleanly. You will be warned once values exceed 15bit storage, and attempting to use values not able to fit in 16bits will result in failure.
Parameters:
[in]objThe elm table object
[in]subobjThe subobject to be added to the table
[in]columnColumn number
[in]rowRow number
[in]colspancolspan
[in]rowspanrowspan
void elm_table_pack_get ( Evas_Object subobj,
int *  col,
int *  row,
int *  colspan,
int *  rowspan 
)

Get the packing location of an existing child of the table.

Since :
2.3
Parameters:
[in]subobjThe subobject to be modified in the table
[out]colColumn number
[out]rowRow number
[out]colspancolspan
[out]rowspanrowspan
See also:
elm_table_pack_set()
void elm_table_pack_set ( Evas_Object subobj,
int  col,
int  row,
int  colspan,
int  rowspan 
)

Set the packing location of an existing child of the table.

Since :
2.3
Parameters:
[in]subobjThe subobject to be modified in the table
[in]colColumn number
[in]rowRow number
[in]colspancolspan
[in]rowspanrowspan
Remarks:
Modifies the position of an object already in the table.
All positioning inside the table is relative to rows and columns, so a value of 0 for col and row, means the top left cell of the table, and a value of 1 for colspan and rowspan means subobj only takes that 1 cell.
void elm_table_padding_get ( const Elm_Table *  obj,
Evas_Coord horizontal,
Evas_Coord vertical 
)

Get padding between cells.

Since :
2.3
Parameters:
[in]objThe elm table object
[out]horizontalset the horizontal padding.
[out]verticalset the vertical padding.
void elm_table_padding_set ( Elm_Table *  obj,
Evas_Coord  horizontal,
Evas_Coord  vertical 
)

Set padding between cells.

Since :
2.3
Remarks:
Default value is 0.
Parameters:
[in]objThe elm table object
[in]horizontalset the horizontal padding.
[in]verticalset the vertical padding.
void elm_table_unpack ( Elm_Table *  obj,
Evas_Object subobj 
)

Remove child from table.

Since :
2.3
Parameters:
[in]objThe elm table object
[in]subobjThe subobject