efl.evas.Table
Class¶efl.evas.
Table
(Canvas canvas, **kwargs)¶Bases: efl.evas.Object
Parameters: |
|
---|
align
¶Set the alignment of the whole bounding box of contents.
Type: | (double horizontal, double vertical) |
---|
align_get
()¶align_set
(horizontal, vertical)¶child_get
(col, row)¶Get the child of the table at the given coordinates
Parameters: |
|
---|
Note
This does not take into account col/row spanning
children_get
()¶Get the list of children for the table.
Type: | list of Objects |
---|
clear
(clear)¶Faster way to remove all child objects from a table object.
Parameters: | clear – if True, it will delete just removed children. |
---|
col_row_size
¶Get the number of columns and rows this table takes.
Note
columns and rows are virtual entities, one can specify a table with a single object that takes 4 columns and 5 rows. The only difference for a single cell table is that padding will be accounted proportionally.
col_row_size_get
()¶homogeneous
¶Set how this table should layout children.
Todo: | consider aspect hint and respect it. |
---|
Todo: | EVAS_OBJECT_TABLE_HOMOGENEOUS_NONE should balance weight. |
---|
WIDTH
and COLUMNS
, each cell will get WIDTH /
COLUMNS
pixels. If children have minimum size that is larger
than this amount (including padding), then it will overflow and be
aligned respecting the alignment hint, possible overlapping sibling
cells. Weight hint is used as a boolean, if greater than zero it
will make the child expand in that axis, taking as much space as
possible (bounded to maximum size hint). Negative alignment will be
considered as 0.5.Type: | Evas_Object_Table_Homogeneous_Mode |
---|
homogeneous_get
()¶homogeneous_set
(homogeneous)¶mirrored
¶Sets the mirrored mode of the table. 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.
Type: | bool |
---|
mirrored_get
()¶mirrored_set
(mirrored)¶pack
(child, col, row, colspan, rowspan)¶Add a new child to a table object or set its current packing.
Parameters: |
|
---|---|
Raises RuntimeError: | |
when the child cannot be packed to the table. |
pack_get
(child)¶Get packing location of a child of table
Parameters: |
|
---|---|
Raises RuntimeError: | |
when the packing location cannot be fetched. |
padding
¶Padding between cells.
Type: | (int horizontal, int vertical) |
---|
padding_get
()¶padding_set
(horizontal, vertical)¶unpack
(child)¶Remove child from table.
Note
Removing a child will immediately call a walk over children in order to recalculate numbers of columns and rows. If you plan to remove all children, use evas_object_table_clear() instead.
Raises RuntimeError: | |
---|---|
when the child cannot be removed from the table. |