Tizen Native API
|
Functions | |
Evas_Object * | evas_object_table_add (Evas *evas) |
Creates a new table. | |
Evas_Object * | evas_object_table_add_to (Evas_Object *parent) |
Creates a table that is child of a given element parent. | |
void | evas_object_table_homogeneous_set (Evas_Object *o, Evas_Object_Table_Homogeneous_Mode homogeneous) |
Sets how this table should layout children. | |
Evas_Object_Table_Homogeneous_Mode | evas_object_table_homogeneous_get (const Evas_Object *o) |
Gets the current layout homogeneous mode. | |
void | evas_object_table_padding_set (Evas_Object *o, Evas_Coord horizontal, Evas_Coord vertical) |
Sets padding between cells. | |
void | evas_object_table_padding_get (const Evas_Object *o, Evas_Coord *horizontal, Evas_Coord *vertical) |
Gets padding between cells. | |
void | evas_object_table_align_set (Evas_Object *o, double horizontal, double vertical) |
Sets the alignment of the whole bounding box of contents. | |
void | evas_object_table_align_get (const Evas_Object *o, double *horizontal, double *vertical) |
Gets the alignment of the whole bounding box of contents. | |
void | evas_object_table_mirrored_set (Evas_Object *o, Eina_Bool mirrored) |
Sets the mirrored mode of the table. | |
Eina_Bool | evas_object_table_mirrored_get (const Evas_Object *o) |
Gets the mirrored mode of the table. | |
Eina_Bool | evas_object_table_pack_get (const Evas_Object *o, Evas_Object *child, unsigned short *col, unsigned short *row, unsigned short *colspan, unsigned short *rowspan) |
Gets packing location of a child of table. | |
Eina_Bool | evas_object_table_pack (Evas_Object *o, Evas_Object *child, unsigned short col, unsigned short row, unsigned short colspan, unsigned short rowspan) |
Adds a new child to a table object or set its current packing. | |
Eina_Bool | evas_object_table_unpack (Evas_Object *o, Evas_Object *child) |
Removes child from table. | |
void | evas_object_table_clear (Evas_Object *o, Eina_Bool clear) |
Removes all child objects from a table object. | |
void | evas_object_table_col_row_size_get (const Evas_Object *o, int *cols, int *rows) |
Gets the number of columns and rows this table takes. | |
Eina_Iterator * | evas_object_table_iterator_new (const Evas_Object *o) |
Gets an iterator to walk through the list of children for the table. | |
Eina_Accessor * | evas_object_table_accessor_new (const Evas_Object *o) |
Gets an accessor to get random access to the list of children for the table. | |
Eina_List * | evas_object_table_children_get (const Evas_Object *o) |
Gets the list of children for the table. | |
Evas_Object * | evas_object_table_child_get (const Evas_Object *o, unsigned short col, unsigned short row) |
Gets the child of the table at the given coordinates. | |
Typedefs | |
typedef enum _Evas_Object_Table_Homogeneous_Mode | Evas_Object_Table_Homogeneous_Mode |
Enumeration for modes of packing items into cells in a table. |
This group provides functions for table smart objects.
Enumeration for modes of packing items into cells in a table.
Enumeration for modes of packing items into cells in a table.
Eina_Accessor* evas_object_table_accessor_new | ( | const Evas_Object * | o | ) |
Gets an accessor to get random access to the list of children for the table.
[in] | o | The table object |
NULL
in case of errors Evas_Object* evas_object_table_add | ( | Evas * | evas | ) |
Creates a new table.
[in] | evas | The canvas in which table are added |
Evas_Object* evas_object_table_add_to | ( | Evas_Object * | parent | ) |
Creates a table that is child of a given element parent.
[in] | parent | The parent element |
void evas_object_table_align_get | ( | const Evas_Object * | o, |
double * | horizontal, | ||
double * | vertical | ||
) |
Gets the alignment of the whole bounding box of contents.
[in] | o | The table object |
[out] | horizontal | The horizontal alignment that is obtained |
[out] | vertical | The vertical alignment that is obtained |
void evas_object_table_align_set | ( | Evas_Object * | o, |
double | horizontal, | ||
double | vertical | ||
) |
Sets the alignment of the whole bounding box of contents.
[in] | o | The table object |
[in] | horizontal | The horizontal alignment to set |
[in] | vertical | The vertical alignment to set |
Evas_Object* evas_object_table_child_get | ( | const Evas_Object * | o, |
unsigned short | col, | ||
unsigned short | row | ||
) |
Gets the child of the table at the given coordinates.
[in] | o | The table object |
[in] | col | The number of columns |
[in] | row | The number of rows |
Eina_List* evas_object_table_children_get | ( | const Evas_Object * | o | ) |
Gets the list of children for the table.
[in] | o | The table object |
NULL
in case of errors void evas_object_table_clear | ( | Evas_Object * | o, |
Eina_Bool | clear | ||
) |
Removes all child objects from a table object.
[in] | o | The given table object |
[in] | clear | Set EINA_TRUE to delete the just removed children, otherwise set EINA_FALSE to not delete the removed children |
void evas_object_table_col_row_size_get | ( | const Evas_Object * | o, |
int * | cols, | ||
int * | rows | ||
) |
Gets the number of columns and rows this table takes.
[in] | o | The table object |
[out] | cols | The number of columns |
[out] | rows | The number of rows |
Gets the current layout homogeneous mode.
[in] | o | The table object |
void evas_object_table_homogeneous_set | ( | Evas_Object * | o, |
Evas_Object_Table_Homogeneous_Mode | homogeneous | ||
) |
Sets how this table should layout children.
0.5
. This is the default.WIDTH
and COLUMNS
, each cell gets WIDTH / COLUMNS
pixels. If children have minimum size that is larger than this amount (including padding), then it overflows and is aligned respecting the alignment hint, possible overlapping sibling cells. Weight hint is used as a boolean, if greater than zero it makes the child expand in that axis, taking as much space as possible (bounded to maximum size hint). Negative alignment is considered as 0.5
.[in] | o | The table object |
[in] | homogeneous | The homogeneous mode |
Eina_Iterator* evas_object_table_iterator_new | ( | const Evas_Object * | o | ) |
Gets an iterator to walk through the list of children for the table.
[in] | o | The table object |
NULL
in case of errors Eina_Bool evas_object_table_mirrored_get | ( | const Evas_Object * | o | ) |
Gets the mirrored mode of the table.
[in] | o | The table object |
void evas_object_table_mirrored_set | ( | Evas_Object * | o, |
Eina_Bool | mirrored | ||
) |
Sets the mirrored mode of the table.
remarks In mirrored mode the table items go from right to left instead of left to right. That is, 1,1 is top right, not top left.
[in] | o | The table object |
[in] | mirrored | The mirrored mode to set |
Eina_Bool evas_object_table_pack | ( | Evas_Object * | o, |
Evas_Object * | child, | ||
unsigned short | col, | ||
unsigned short | row, | ||
unsigned short | colspan, | ||
unsigned short | rowspan | ||
) |
Adds a new child to a table object or set its current packing.
[in] | o | The given table object |
[in] | child | The child object to add |
[in] | col | The relative-horizontal position to place the child |
[in] | row | The relative-vertical position to place the child |
[in] | colspan | The number of relative-horizontal position to use for this child |
[in] | rowspan | The number of relative-vertical position to use for this child |
Eina_Bool evas_object_table_pack_get | ( | const Evas_Object * | o, |
Evas_Object * | child, | ||
unsigned short * | col, | ||
unsigned short * | row, | ||
unsigned short * | colspan, | ||
unsigned short * | rowspan | ||
) |
Gets packing location of a child of table.
[in] | o | The given table object |
[in] | child | The child object to add |
[out] | col | The pointer to store relative-horizontal position to place child |
[out] | row | The pointer to store relative-vertical position to place child |
[out] | colspan | The pointer to store how many relative-horizontal position to use for this child |
[out] | rowspan | The pointer to store how many relative-vertical position to use for this child |
void evas_object_table_padding_get | ( | const Evas_Object * | o, |
Evas_Coord * | horizontal, | ||
Evas_Coord * | vertical | ||
) |
Gets padding between cells.
[in] | o | The table object |
[out] | horizontal | The horizontal padding that is obtained |
[out] | vertical | The vertical padding that is obtained |
void evas_object_table_padding_set | ( | Evas_Object * | o, |
Evas_Coord | horizontal, | ||
Evas_Coord | vertical | ||
) |
Sets padding between cells.
[in] | o | The table object |
[in] | horizontal | The horizontal padding to set |
[in] | vertical | The vertical padding to set |
Eina_Bool evas_object_table_unpack | ( | Evas_Object * | o, |
Evas_Object * | child | ||
) |
Removes child from table.
[in] | o | The given table object |
[in] | child | The child object to remove |