|
Data Structures |
struct | Etk_Table |
| [Widget] a container that can contain several children aligned on a grid More...
|
Defines |
#define | ETK_TABLE_TYPE (etk_table_type_get()) |
#define | ETK_TABLE(obj) (ETK_OBJECT_CAST((obj), ETK_TABLE_TYPE, Etk_Table)) |
#define | ETK_IS_TABLE(obj) (ETK_OBJECT_CHECK_TYPE((obj), ETK_TABLE_TYPE)) |
Enumerations |
enum | Etk_Table_Homogeneous {
ETK_TABLE_NOT_HOMOGENEOUS = 0,
ETK_TABLE_HHOMOGENEOUS = 1 << 0,
ETK_TABLE_VHOMOGENEOUS = 1 << 1,
ETK_TABLE_HOMOGENEOUS = ETK_TABLE_HHOMOGENEOUS | ETK_TABLE_VHOMOGENEOUS
} |
| Describes whether the table should be homogenous horizontally, vertically, in both directions or not at all. More...
|
enum | Etk_Table_Fill_Policy {
ETK_TABLE_NONE = 0,
ETK_TABLE_HFILL = 1 << 0,
ETK_TABLE_VFILL = 1 << 1,
ETK_TABLE_HEXPAND = 1 << 2,
ETK_TABLE_VEXPAND = 1 << 3,
ETK_TABLE_FILL = ETK_TABLE_HFILL | ETK_TABLE_VFILL,
ETK_TABLE_EXPAND = ETK_TABLE_HEXPAND | ETK_TABLE_VEXPAND,
ETK_TABLE_EXPAND_FILL = ETK_TABLE_EXPAND | ETK_TABLE_FILL
} |
| Describes how a child of the table should fill and expand the space allocated for it. More...
|
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.
|