aboutsummaryrefslogblamecommitdiffstats
path: root/widgets/e-table-group.h
blob: 62bc11093f4a3f56529a5b0970bb75f3cf84c117 (plain) (tree)
1
2
3
4
5


                        

                          











                                   
                                                                          
                                                                                


                                                              
                                                                               

                             
#ifndef _E_TABLE_TREE_H_
#define _E_TABLE_TREE_H_

#include "e-table-model.h"

typedef struct {
    char *title;

    union {
        ETableModel *table;
        GSList *children;
    } u;

    guint expanded :1;
    guint is_leaf  :1;
} ETableGroup;

ETableGroup *e_table_group_new          (ETableCol *ecol, ETableItem *item
ETableGroup *e_table_group_new_leaf     (const char *title, ETableModel *table);
void         e_table_group_destroy      (ETableGroup *etg);

int          e_table_group_size         (ETableGroup *egroup);
void         e_table_group_append_child (ETableGroup *etg, ETableGroup *child);

#endif /* _E_TABLE_TREE_H_ */