38 typedef void (*g_table_entry_constructor) (gpointer entry, gpointer user_data);
39 typedef void (*g_table_entry_destroyer) (gpointer entry, gpointer user_data);
46 g_table_entry_constructor constructor,
47 g_table_entry_destroyer destroyer,
int g_table_cols(GTable *gtable)
Return the number of table columns.
GTable * g_table_new(guint entry_size, g_table_entry_constructor constructor, g_table_entry_destroyer destroyer, gpointer user_data)
Create a new table with the given entry constructor and destroyer.
gpointer g_table_index(GTable *gtable, int row, int col)
Return the element at the given row and column.
int g_table_rows(GTable *gtable)
Return the number of table rows.
void g_table_destroy(GTable *gtable)
Free the table and all associated table elements.
void g_table_resize(GTable *gtable, int rows, int cols)
Resize the table, allocating and deallocating extra table members if needed.