Tizen Native API
Edje Table Part

This group discusses functions that deal with parts of type table.

Remarks:
Table is a container type for parts, that means it can contain other parts.

Functions

Evas_Objectedje_object_part_table_child_get (const Evas_Object *obj, const char *part, unsigned int col, unsigned int row)
 Gets a child from a table.
Eina_Bool edje_object_part_table_pack (Evas_Object *obj, const char *part, Evas_Object *child_obj, unsigned short col, unsigned short row, unsigned short colspan, unsigned short rowspan)
 Packs an object into the table.
Eina_Bool edje_object_part_table_unpack (Evas_Object *obj, const char *part, Evas_Object *child_obj)
 Removes an object from the table.
Eina_Bool edje_object_part_table_col_row_size_get (const Evas_Object *obj, const char *part, int *cols, int *rows)
 Gets the number of columns and rows that the table has.
Eina_Bool edje_object_part_table_clear (Evas_Object *obj, const char *part, Eina_Bool clear)
 Removes all the objects from the table.

Function Documentation

Evas_Object* edje_object_part_table_child_get ( const Evas_Object obj,
const char *  part,
unsigned int  col,
unsigned int  row 
)

Gets a child from a table.

Since :
2.3.1
Parameters:
[in]objA valid Evas_Object handle
[in]partThe part name
[in]colThe column of the child to get
[in]rowThe row of the child to get
Returns:
The child Evas_Object
Eina_Bool edje_object_part_table_clear ( Evas_Object obj,
const char *  part,
Eina_Bool  clear 
)

Removes all the objects from the table.

This removes all the objects from the table indicated by the part, except the internal ones set from the theme.

Since :
2.3.1
Parameters:
[in]objA valid Evas_Object handle
[in]partThe part name
[in]clearIf set, it deletes subobjs on removal
Returns:
EINA_TRUE to clear the table, otherwise EINA_FALSE on failure
Eina_Bool edje_object_part_table_col_row_size_get ( const Evas_Object obj,
const char *  part,
int *  cols,
int *  rows 
)

Gets the number of columns and rows that the table has.

This gets the size of the table in the form of number of columns and rows.

Since :
2.3.1
Parameters:
[in]objA valid Evas_Object handle
[in]partThe part name
[out]colsA pointer to store the number of columns (can be NULL)
[out]rowsA pointer to store the number of rows (can be NULL)
Returns:
EINA_TRUE to get some data, otherwise EINA_FALSE on failure
Eina_Bool edje_object_part_table_pack ( Evas_Object obj,
const char *  part,
Evas_Object child_obj,
unsigned short  col,
unsigned short  row,
unsigned short  colspan,
unsigned short  rowspan 
)

Packs an object into the table.

This packs an object into the table indicated by the part.

Since :
2.3.1
Parameters:
[in]objA valid Evas_Object handle
[in]partThe part name
[in]child_objThe object to pack in
[in]colThe column to place it in
[in]rowThe row to place it in
[in]colspanThe columns the child takes
[in]rowspanThe rows the child takes
Returns:
EINA_TRUE if the object is added, otherwise EINA_FALSE on failure
Eina_Bool edje_object_part_table_unpack ( Evas_Object obj,
const char *  part,
Evas_Object child_obj 
)

Removes an object from the table.

This removes an object from the table indicated by the part.

Since :
2.3.1
Parameters:
[in]objA valid Evas_Object handle
[in]partThe part name
[in]child_objThe object to pack in
Returns:
EINA_TRUE if the object is removed, otherwise EINA_FALSE on failure