aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-table-group.h
blob: ab79d317e97fd6e1816c446dcb55501fee77b44e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _E_TABLE_TREE_H_
#define _E_TABLE_TREE_H_

typedef struct {
    char *title;

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

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

ETableGroup *e_table_group_new          (const char *title, ETableModel *table);
ETableGroup *e_table_group_new_leaf     (const char *title);
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_ */