Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

etk_table.c File Reference


Detailed Description


Functions

Etk_Widget * etk_table_new (int num_cols, int num_rows, Etk_Table_Homogeneous homogeneous)
 Creates a new table.
void etk_table_cell_clear (Etk_Table *table, int col, int row)
 Clears the cell ( col, row ): it removes from the table the widget that is in this cell.
void etk_table_resize (Etk_Table *table, int num_cols, int num_rows)
 Resizes the table. The children that are attached to a row or a column that is removed will be unparented.
void etk_table_attach (Etk_Table *table, Etk_Widget *child, int left_attach, int right_attach, int top_attach, int bottom_attach, Etk_Table_Fill_Policy fill_policy, int x_padding, int y_padding)
 Attachs a widget to the table.
void etk_table_attach_default (Etk_Table *table, Etk_Widget *child, int left_attach, int right_attach, int top_attach, int bottom_attach)
 Same as etk_table_attach() but with default settings: padding is set to 0 and the fill policy is ETK_TABLE_EXPAND_FILL.
void etk_table_homogeneous_set (Etk_Table *table, Etk_Table_Homogeneous homogeneous)
 Changes the homogenous property of the table.
Etk_Table_Homogeneous etk_table_homogeneous_get (Etk_Table *table)
 Gets whether the table is homogenous horizontally, vertically, in both directions or not at all.
void etk_table_child_position_get (Etk_Table *table, Etk_Widget *child, int *left_attach, int *right_attach, int *top_attach, int *bottom_attach)
 Gets the col and row of the given child.